[48017] trunk/dports/x11/wine-devel/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Thu Mar 12 19:19:48 PDT 2009
Revision: 48017
http://trac.macports.org/changeset/48017
Author: jeremyhu at macports.org
Date: 2009-03-12 19:19:47 -0700 (Thu, 12 Mar 2009)
Log Message:
-----------
wine-devel: Link against MacPorts X11 libs instead of system libs
Modified Paths:
--------------
trunk/dports/x11/wine-devel/Portfile
Modified: trunk/dports/x11/wine-devel/Portfile
===================================================================
--- trunk/dports/x11/wine-devel/Portfile 2009-03-13 01:52:41 UTC (rev 48016)
+++ trunk/dports/x11/wine-devel/Portfile 2009-03-13 02:19:47 UTC (rev 48017)
@@ -5,6 +5,7 @@
name wine-devel
set my_name wine
version 1.1.16
+revision 1
categories x11
maintainers ryandesign jwa openmaintainer
homepage http://www.winehq.com/
@@ -70,6 +71,18 @@
reinplace s|@X11PREFIX@|${x11prefix}|g ${destroot}${prefix}/bin/wine
}
+# AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6.
+# This block helps us link 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
+pre-configure {
+ if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+ configure.cppflags-append -I${x11prefix}/include
+ configure.ldflags-append -L${x11prefix}/lib
+ }
+}
+
livecheck.name ${my_name}
livecheck.check sourceforge
livecheck.regex "<title>Source Packages (\[0-9\]+\\.\[0-9\]*\[13579\](\\.\[0-9\]+)*) released.*</title>"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090312/5176aff4/attachment.html>
More information about the macports-changes
mailing list