[47527] trunk/dports/x11/pango/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Feb 28 15:19:50 PST 2009
Revision: 47527
http://trac.macports.org/changeset/47527
Author: jeremyhu at macports.org
Date: 2009-02-28 15:19:49 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
Set our CPPFLAGS and LDFLAGS for system_x11 handling inside a pre-configure block.
Modified Paths:
--------------
trunk/dports/x11/pango/Portfile
Modified: trunk/dports/x11/pango/Portfile
===================================================================
--- trunk/dports/x11/pango/Portfile 2009-02-28 23:10:11 UTC (rev 47526)
+++ trunk/dports/x11/pango/Portfile 2009-02-28 23:19:49 UTC (rev 47527)
@@ -4,7 +4,7 @@
name pango
version 1.22.4
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories x11
maintainers ryandesign
@@ -64,20 +64,23 @@
configure.args \
--enable-static
-# This block helps us link correctly and setup our pc files correctly when we are
-# +system_x11 and x11prefix is somewhere non-standard
-if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] && ![file exists ${x11prefix}/lib/pkgconfig/x11.pc] } {
- # 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
- configure.args-append --x-include=${prefix}/include --x-lib=${prefix}/lib
- configure.cppflags-append -I${x11prefix}/include
- configure.ldflags-append -L${x11prefix}/lib
-
+# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
+# 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
+if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+ pre-configure {
+ configure.cppflags-append -I${x11prefix}/include
+ configure.ldflags-append -L${x11prefix}/lib
+ }
+
# And this will similarly get ports that use pkgconfig to find our pkgconfig-less libX11
post-destroot {
- foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] {
- reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc}
+ if {![file exists ${x11prefix}/lib/pkgconfig/x11.pc]} {
+ foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] {
+ reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g" ${pc}
+ }
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/6a208787/attachment.html>
More information about the macports-changes
mailing list