svn commit: r404315 - head/lang/dmd2

Cy Schubert cy at FreeBSD.org
Wed Dec 23 19:25:49 UTC 2015


Author: cy
Date: Wed Dec 23 19:25:48 2015
New Revision: 404315
URL: https://svnweb.freebsd.org/changeset/ports/404315

Log:
  Correctly locate the config file and use the correct complier when
  linking.
  
  Submitted by:	gahr
  Obtained from:	https://people.freebsd.org/~gahr/lang-dmd2.diff

Modified:
  head/lang/dmd2/Makefile

Modified: head/lang/dmd2/Makefile
==============================================================================
--- head/lang/dmd2/Makefile	Wed Dec 23 19:11:44 2015	(r404314)
+++ head/lang/dmd2/Makefile	Wed Dec 23 19:25:48 2015	(r404315)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	dmd
-PKGNAMESUFFIX=	2
+PKGNAMESUFFIX=	3
 PORTVERSION=	2.069.2
 CATEGORIES=	lang
 MASTER_SITES=	http://ftp.digitalmars.com/
@@ -55,7 +55,10 @@ MAKE_ARGS+=	DEBUG_FLAGS=-g\ -DDEBUG=1\ -
 MODULEDIR=	${PREFIX}/include/d/phobos2
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|g++|${CXX}|" ${WRKSRC}/posix.mak
+	@${REINPLACE_CMD} -e "s|g++|${CXX}|" \
+			  -e "s|/etc|${PREFIX}/etc|" \
+		${WRKSRC}/posix.mak
+	@${REINPLACE_CMD} -e "s|gcc|${CC}|" ${WRKSRC}/link.d
 	@${REINPLACE_CMD} -e "s|cc|${CC}|" ${WRKSRC}/../phobos/posix.mak
 	@${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|"	\
 			  -e "s|\(dmd\)|\12|gI"		\


More information about the svn-ports-all mailing list