[87933] trunk/dports/lang/pure/Portfile
ryandesign at macports.org
ryandesign at macports.org
Tue Dec 13 01:38:52 PST 2011
Revision: 87933
http://trac.macports.org/changeset/87933
Author: ryandesign at macports.org
Date: 2011-12-13 01:38:50 -0800 (Tue, 13 Dec 2011)
Log Message:
-----------
pure: prevent build issue when previous llvm port is active
Modified Paths:
--------------
trunk/dports/lang/pure/Portfile
Modified: trunk/dports/lang/pure/Portfile
===================================================================
--- trunk/dports/lang/pure/Portfile 2011-12-13 09:14:19 UTC (rev 87932)
+++ trunk/dports/lang/pure/Portfile 2011-12-13 09:38:50 UTC (rev 87933)
@@ -32,7 +32,9 @@
checksums rmd160 ab3e0db4b7243e0a998e1f1130145fd6786b16a3 \
sha256 7d8c27c9812dcad09a6aba0f9e114965993d446343ef49f17802e9896b65794e
-configure.env PATH=${prefix}/libexec/llvm-3.0/bin:$env(PATH)
+set llvm_version 3.0
+set llvm_path ${prefix}/libexec/llvm-${llvm_version}
+configure.env PATH=${llvm_path}/bin:$env(PATH)
if {${name} == ${subport}} {
revision 2
@@ -40,13 +42,13 @@
depends_lib port:gmp \
port:libiconv \
port:libtool \
- port:llvm-3.0 \
+ port:llvm-${llvm_version} \
port:mpfr \
port:readline
depends_run path:bin/w3m:w3m
- # llvm-3.0 is not universal
+ # llvm-${llvm_version} is not universal
universal_variant no
patchfiles patch-interpreter.diff \
@@ -54,6 +56,10 @@
configure.args --without-elisp
+ # Prevent build failure when old llvm port is installed
+ configure.cppflags -I${llvm_path}/include ${configure.cppflags}
+ configure.ldflags -L${llvm_path}/lib ${configure.ldflags}
+
platform macosx {
depends_run-replace s|path:bin/w3m:w3m|path:bin/openbrowser:openbrowser|
patchfiles-append patch-openbrowser.diff
@@ -99,7 +105,7 @@
long_description ${subport} is an ${description}.
depends_build port:gmp \
- port:llvm-3.0 \
+ port:llvm-${llvm_version} \
port:mpfr \
port:readline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111213/5b0359bd/attachment-0001.html>
More information about the macports-changes
mailing list