[47554] trunk/dports/x11/xfe/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Feb 28 16:45:31 PST 2009
Revision: 47554
http://trac.macports.org/changeset/47554
Author: jeremyhu at macports.org
Date: 2009-02-28 16:45:30 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
xfe: Don't append -Lx11prefix/lib unless we need to
Modified Paths:
--------------
trunk/dports/x11/xfe/Portfile
Modified: trunk/dports/x11/xfe/Portfile
===================================================================
--- trunk/dports/x11/xfe/Portfile 2009-03-01 00:45:09 UTC (rev 47553)
+++ trunk/dports/x11/xfe/Portfile 2009-03-01 00:45:30 UTC (rev 47554)
@@ -24,8 +24,14 @@
depends_lib lib:libFOX-1.6:fox lib:libpng:libpng port:freetype
configure.args --with-included-gettext --enable-release
-configure.cppflags-append -I${prefix}/include/freetype2
-configure.ldflags-append -L${x11prefix}/lib
+
+pre-configure {
+ if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+ configure.cppflags-append -I${x11prefix}/include
+ configure.ldflags-append -L${x11prefix}/lib
+ }
+}
+
configure.env LIBS="-lX11 -lXft"
post-configure {
reinplace "s;/usr/local/share;${prefix}/share;" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/7d1464cd/attachment-0001.html>
More information about the macports-changes
mailing list