ports/65047: [PATCH] graphics/glew: [Respect CC & CFLAGS]

michael johnson ahze at ahze.net
Thu Apr 1 20:20:14 UTC 2004


>Number:         65047
>Category:       ports
>Synopsis:       [PATCH] graphics/glew: [Respect CC & CFLAGS]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 01 12:20:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #37: Sat Mar 27 18:30:44 EST 2004
>Description:
- Respect CC & CFLAGS

Port maintainer (tiamat at comset.net) is cc'd.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- glew-1.2.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/glew/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	1 Apr 2004 12:16:17 -0000	1.3
+++ Makefile	1 Apr 2004 20:14:39 -0000
@@ -19,7 +19,13 @@
 USE_X_PREFIX=	yes
 USE_GL=		yes
 INSTALLS_SHLIB=	yes
+USE_REINPLACE=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}
+MAKE_ENV=	CC="${CC}"
+
+post-patch:
+	${REINPLACE_CMD} -e 's|-O2|${CFLAGS}|' \
+		${WRKSRC}/${MAKEFILE}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin
--- glew-1.2.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list