ports/161943: [patch] lang/ucc: respect CC/CFLAGS, drop USE_GMAKE

Nali Toja nalitoja at gmail.com
Sun Oct 23 20:40:01 UTC 2011


>Number:         161943
>Category:       ports
>Synopsis:       [patch] lang/ucc: respect CC/CFLAGS, drop USE_GMAKE
>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 Oct 23 20:40:00 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Nali Toja
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/ucc-1.6.0.log
>Fix:
--- build.diff begins here ---
Index: lang/ucc/Makefile
===================================================================
RCS file: /a/.csup/ports/lang/ucc/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- lang/ucc/Makefile	22 Aug 2009 00:24:36 -0000	1.2
+++ lang/ucc/Makefile	23 Oct 2011 20:07:28 -0000
@@ -15,9 +15,19 @@ MAINTAINER=	wenheping at gmail.com
 COMMENT=	C Compiler Which Implements the ANSI C89 Standard
 
 USE_ZIP=	yes
+USE_DOS2UNIX=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 
+post-patch:	.SILENT
+	${REINPLACE_CMD} 's/gmake/$$(MAKE)/' \
+		${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e '/^CC[[:blank:]]*=/d' \
+		-e '/^CFLAGS/ { s/=/+=/; s/-g//; }' \
+		-e '/:[[:blank:]]/s/\.c/.o/g' \
+		-e 's/$$^/$$>/g' \
+		${WRKSRC}/driver/Makefile \
+		${WRKSRC}/ucl/Makefile
+
 .include <bsd.port.mk>
--- build.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list