[41851] trunk/dports/graphics/glew
jmr at macports.org
jmr at macports.org
Tue Nov 11 00:44:37 PST 2008
Revision: 41851
http://trac.macports.org/changeset/41851
Author: jmr at macports.org
Date: 2008-11-11 00:44:37 -0800 (Tue, 11 Nov 2008)
Log Message:
-----------
glew: add universal variant. Closes #17175.
Modified Paths:
--------------
trunk/dports/graphics/glew/Portfile
Added Paths:
-----------
trunk/dports/graphics/glew/files/
trunk/dports/graphics/glew/files/patch-Makefile.diff
Modified: trunk/dports/graphics/glew/Portfile
===================================================================
--- trunk/dports/graphics/glew/Portfile 2008-11-11 08:44:01 UTC (rev 41850)
+++ trunk/dports/graphics/glew/Portfile 2008-11-11 08:44:37 UTC (rev 41851)
@@ -27,12 +27,19 @@
build.env GLEW_DEST=${prefix}
destroot.env GLEW_DEST=${destroot}${prefix}
-pre-build {
- # config.guess has CRLF line endings, which confuses sh
- reinplace "s|\r||" ${worksrcpath}/config/config.guess
+pre-patch {
+ # CRLF line endings confuse patch and sh
+ reinplace "s|\r||" ${worksrcpath}/config/config.guess \
+ ${worksrcpath}/Makefile
}
# ugh, why is configure.cc not available in the build phase?
set mycc /usr/bin/gcc-4.0
-platform darwin 8 { build.args CC=${mycc} LD=${mycc} }
-platform darwin 9 { build.args CC=${mycc} LD=${mycc} }
+platform darwin 8 { build.args-append CC=${mycc} LD=${mycc} }
+platform darwin 9 { build.args-append CC=${mycc} LD=${mycc} }
+
+variant universal {
+ patchfiles patch-Makefile.diff
+ build.args-append CFLAGS.EXTRA="${configure.universal_cflags}" \
+ LDFLAGS.EXTRA="${configure.universal_ldflags}"
+}
Added: trunk/dports/graphics/glew/files/patch-Makefile.diff
===================================================================
--- trunk/dports/graphics/glew/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/graphics/glew/files/patch-Makefile.diff 2008-11-11 08:44:37 UTC (rev 41851)
@@ -0,0 +1,10 @@
+--- Makefile.orig 2008-11-03 17:25:21.000000000 +1100
++++ Makefile 2008-11-11 19:04:13.000000000 +1100
+@@ -127,7 +127,6 @@ endif
+ ifeq ($(patsubst mingw%,mingw,$(SYSTEM)), mingw)
+ $(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
+ else
+- strip -x lib/$(LIB.STATIC)
+ $(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
+ $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
+ endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081111/ec902b03/attachment.html>
More information about the macports-changes
mailing list