[47567] trunk/dports/lang/tclcl/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Feb 28 17:10:28 PST 2009
Revision: 47567
http://trac.macports.org/changeset/47567
Author: jeremyhu at macports.org
Date: 2009-02-28 17:10:28 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
tclcl: Only use x11prefix if we need to
Modified Paths:
--------------
trunk/dports/lang/tclcl/Portfile
Modified: trunk/dports/lang/tclcl/Portfile
===================================================================
--- trunk/dports/lang/tclcl/Portfile 2009-03-01 01:09:36 UTC (rev 47566)
+++ trunk/dports/lang/tclcl/Portfile 2009-03-01 01:10:28 UTC (rev 47567)
@@ -39,11 +39,22 @@
--with-tcl=${prefix} --with-tcl-ver=${tclmaj} \
--with-tk=${prefix} --with-tk-ver=${tclmaj} \
--with-otcl=${prefix} \
- --prefix=${prefix} \
- CPPFLAGS='-I${x11prefix}/include -I${workpath}/tcl${tclv}/generic/' \
- CFLAGS='-I${x11prefix}/include -I${workpath}/tcl${tclv}/generic/' \
- LDFLAGS='-L${x11prefix}/lib'
+ --prefix=${prefix}
+pre-configure {
+ if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+ configure.args-append \
+ CPPFLAGS='-I${prefix}/include -I${workpath}/tcl${tclv}/generic/' \
+ CFLAGS='-I${prefix}/include -I${workpath}/tcl${tclv}/generic/' \
+ LDFLAGS='-L${prefix}/lib'
+ } else {
+ configure.args-append \
+ CPPFLAGS='-I${x11prefix}/include -I${workpath}/tcl${tclv}/generic/' \
+ CFLAGS='-I${x11prefix}/include -I${workpath}/tcl${tclv}/generic/' \
+ LDFLAGS='-L${x11prefix}/lib'
+ }
+}
+
post-configure {
reinplace "s|@V_TCLSH@|${prefix}/bin/tclsh8.4|g" \
${worksrcpath}/Makefile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/cd1906b5/attachment.html>
More information about the macports-changes
mailing list