ports/162535: [patch] lang/dice: respect CC/CFLAGS

Jan Beich jbeich at tormail.net
Sun Nov 13 20:50:11 UTC 2011


>Number:         162535
>Category:       ports
>Synopsis:       [patch] lang/dice: respect CC/CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 13 20:50:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/dice-3.15_1.log
>Fix:
--- cc.diff begins here ---
Index: lang/dice/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/dice/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- lang/dice/Makefile	9 May 2006 20:52:12 -0000	1.15
+++ lang/dice/Makefile	13 Nov 2011 19:09:26 -0000
@@ -27,9 +27,14 @@ post-patch:
 		@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} \
 			${REINPLACE_CMD} -e 's at __aligned@dice_aligned at g'
 
+		@${REINPLACE_CMD} -e 's/gcc/$$(CC)/' \
+			-e '/^CFLAGS/{s/=/+=/;s/-O2//;}' \
+			${WRKSRC}/suplib/Makefile \
+			${WRKSRC}/src/*/Makefile
+
 do-build:
-		cd ${WRKSRC}/suplib && ${MAKE} && ${MAKE} install
-		cd ${WRKSRC}/src && ${MAKE} && ${MAKE} install
+		cd ${WRKSRC}/suplib && ${MAKE} && ${MAKE_ENV} ${MAKE} install
+		cd ${WRKSRC}/src && ${MAKE} && ${MAKE_ENV} ${MAKE} install
 
 do-install:
 		@${RM} ${WRKSRC}/doc/loadabs.c.bak
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list