[50507] trunk/dports/x11/mesa/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Fri May 1 15:47:25 PDT 2009


Revision: 50507
          http://trac.macports.org/changeset/50507
Author:   mcalhoun at macports.org
Date:     2009-05-01 15:47:24 -0700 (Fri, 01 May 2009)
Log Message:
-----------
mesa: Build glxgears and glxinfo as universal.
Partial fix of #19369.

Modified Paths:
--------------
    trunk/dports/x11/mesa/Portfile

Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile	2009-05-01 22:41:30 UTC (rev 50506)
+++ trunk/dports/x11/mesa/Portfile	2009-05-01 22:47:24 UTC (rev 50507)
@@ -76,6 +76,12 @@
 	build.args-append RC_CFLAGS="${configure.universal_cflags}"
 	eval configure.cflags-append ${configure.universal_cflags}
 	eval configure.ldflags-append ${configure.universal_ldflags}
+
+	# Ensure test programs glxgears and glxinfo are universal.
+	post-patch {
+		reinplace "s|(CC) tests|(CC) ${configure.universal_cflags} ${configure.universal_ldflags} tests|" \
+			${worksrcpath}/../AppleSGLX-${ASGLX_version}/Makefile
+	}
 }
 
 if { ![file exists /usr/include/Xplugin.h] } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090501/0c5eba4c/attachment.html>


More information about the macports-changes mailing list