Bug 179222 - net-p2p/cdonkey: Fix build with clang
Summary: net-p2p/cdonkey: Fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 19:10 UTC by tkato432
Modified: 2013-06-04 11:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1.51 KB, patch)
2013-06-02 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-06-02 19:10:06 UTC
- Fix build with clang
- Add MAKE_JOBS_SAFE
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-02 19:11:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-06-04 10:59:25 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-06-04 10:59:32 UTC
Author: miwi
Date: Tue Jun  4 09:59:19 2013
New Revision: 319843
URL: http://svnweb.freebsd.org/changeset/ports/319843

Log:
  - Fix build with clang
  - Add MAKE_JOBS_SAFE
  
  PR:		179222
  Submitted by:	Ports Fury

Modified:
  head/net-p2p/cdonkey/Makefile   (contents, props changed)

Modified: head/net-p2p/cdonkey/Makefile
==============================================================================
--- head/net-p2p/cdonkey/Makefile	Tue Jun  4 09:56:31 2013	(r319842)
+++ head/net-p2p/cdonkey/Makefile	Tue Jun  4 09:59:19 2013	(r319843)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for:	cDonkey
-# Date created:			Feb 9, 2003
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
-#
 
 PORTNAME=	cdonkey
 PORTVERSION=	0.9.0
@@ -14,21 +9,27 @@ MASTER_SITES=	http://www.sourcefiles.org
 DISTNAME=	cDonkey-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	An open and free core client for the eDonkey protocol
+COMMENT=	Open and free core client for the eDonkey protocol
+
+WRKSRC=		${WRKDIR}/cDonkey-${PORTVERSION}
 
-PLIST_FILES=	bin/cDonkey
-USE_BDB=	41
 USE_BZIP2=	yes
+USE_BDB=	41
+USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool
 CONFIGURE_ARGS=	--with-berkeley-db="${BDB_INCLUDE_DIR}:${BDB_LIB_DIR}"
-USE_GMAKE=	yes
-WRKSRC=		${WRKDIR}/cDonkey-${PORTVERSION}
+MAKE_JOBS_SAFE=	yes
 
-.include <bsd.port.pre.mk>
+PLIST_FILES=	bin/cDonkey
 
 post-patch:
-	${REINPLACE_CMD} -e "s|-ldb|-l${BDB_LIB_NAME}|g" ${WRKSRC}/configure
-	${REINPLACE_CMD} -e "s|/etc/|${LOCALBASE}/etc/|" \
-		${WRKSRC}/donkey.cpp ${WRKSRC}/donkey.h
+	@${REINPLACE_CMD} -e \
+		's|-ldb|-l${BDB_LIB_NAME}|' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e \
+		's|-fno-for-scope||' ${WRKSRC}/Makefile.in
+.for i in donkey.cpp donkey.h
+	@${REINPLACE_CMD} -e \
+		's|/etc/|${LOCALBASE}/etc/|' ${WRKSRC}/${i}
+.endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"