Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 2004 15:17:06 -0500 (EST)
From:      michael johnson <ahze@ahze.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tiamat@comset.net
Subject:   ports/65047: [PATCH] graphics/glew: [Respect CC & CFLAGS]
Message-ID:  <200404012017.i31KH6WD037955@gentoo.ahze.net>
Resent-Message-ID: <200404012020.i31KKEWA084429@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404012017.i31KH6WD037955>