[47544] trunk/dports/print/gv/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sat Feb 28 16:24:26 PST 2009


Revision: 47544
          http://trac.macports.org/changeset/47544
Author:   jeremyhu at macports.org
Date:     2009-02-28 16:24:26 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
gv: Update the AC_X_PATH workaround

Modified Paths:
--------------
    trunk/dports/print/gv/Portfile

Modified: trunk/dports/print/gv/Portfile
===================================================================
--- trunk/dports/print/gv/Portfile	2009-03-01 00:21:48 UTC (rev 47543)
+++ trunk/dports/print/gv/Portfile	2009-03-01 00:24:26 UTC (rev 47544)
@@ -49,8 +49,14 @@
 }
 
 # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
-# These next three lines should cause AC_X_PATH to let us setup our CPPFLAGS
-# and LDFLAGS without interference
+# This block helps us link correctly and setup our pc files correctly when we   
+# are +system_x11 and x11prefix is somewhere non-standard and should cause
+# AC_X_PATH to let us setup our CPPFLAGS and LDFLAGS without interference
 configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib
-configure.cppflags-append -I${x11prefix}/include
-configure.ldflags-append  -L${x11prefix}/lib
+if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+    pre-configure {
+        configure.cppflags-append -I${x11prefix}/include
+        configure.ldflags-append  -L${x11prefix}/lib
+    }
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/e675743a/attachment.html>


More information about the macports-changes mailing list