[45779] trunk/dports/x11/mesa/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Wed Jan 21 12:49:04 PST 2009
Revision: 45779
http://trac.macports.org/changeset/45779
Author: jeremyhu at macports.org
Date: 2009-01-21 12:49:04 -0800 (Wed, 21 Jan 2009)
Log Message:
-----------
mesa: Fix building -system_x11 when the rest of xorg-libs are +system_x11
Modified Paths:
--------------
trunk/dports/x11/mesa/Portfile
Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile 2009-01-21 20:39:34 UTC (rev 45778)
+++ trunk/dports/x11/mesa/Portfile 2009-01-21 20:49:04 UTC (rev 45779)
@@ -37,12 +37,6 @@
use_configure no
-post-extract {
- if {! [file exists "${worksrcpath}/configs/current"]} {
- ln -s darwin ${worksrcpath}/configs/current
- }
-}
-
build.target default
build.args-append INSTALL_DIR=${prefix}
destroot.args-append INSTALL_DIR=${prefix}
@@ -54,6 +48,19 @@
build.args-append RC_ARCHS="${universal_archs}"
}
+if {! [variant_isset system_x11]} {
+ post-extract {
+ if {! [file exists "${worksrcpath}/configs/current"]} {
+ ln -s darwin ${worksrcpath}/configs/current
+ }
+ }
+
+ if {! [file exists ${prefix}/lib/libX11.dylib]} {
+ build.args-append X11_DIR=${x11prefix}
+ destroot.args-append X11_DIR=${x11prefix}
+ }
+}
+
variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
build.args-append X11_DIR=${x11prefix}
destroot.args-append X11_DIR=${x11prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090121/4027b734/attachment.html>
More information about the macports-changes
mailing list