[38411] trunk/dports/lang/llvm/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Jul 18 17:50:30 PDT 2008
Revision: 38411
http://trac.macosforge.org/projects/macports/changeset/38411
Author: ryandesign at macports.org
Date: 2008-07-18 17:50:29 -0700 (Fri, 18 Jul 2008)
Log Message:
-----------
llvm: make better use of available variables
Modified Paths:
--------------
trunk/dports/lang/llvm/Portfile
Modified: trunk/dports/lang/llvm/Portfile
===================================================================
--- trunk/dports/lang/llvm/Portfile 2008-07-19 00:23:30 UTC (rev 38410)
+++ trunk/dports/lang/llvm/Portfile 2008-07-19 00:50:29 UTC (rev 38411)
@@ -14,7 +14,7 @@
language incl. a C and C++ frontend.
homepage http://llvm.org/
-master_sites http://llvm.org/releases/${version}/
+master_sites ${homepage}releases/${version}/
checksums md5 17254d72863b7fa005f3fb327aea3439 \
sha1 b6df5bd3d6b361380e7f69883b166bec62e45e84 \
@@ -35,7 +35,7 @@
configure.cppflags
configure.ldflags
-configure.cmd ../llvm-${version}/configure
+configure.cmd ${worksrcpath}/configure
configure.args --enable-optimized --enable-jit
post-destroot {
@@ -43,13 +43,12 @@
file mkdir ${destroot}${prefix}/lib/llvm/src
file mkdir ${destroot}${prefix}/lib/llvm/obj
- file copy ${workpath}/llvm-${version}/include ${destroot}${prefix}/lib/llvm/src
- file copy ${workpath}/build/include ${destroot}${prefix}/lib/llvm/obj
- file copy ${workpath}/build/Release ${destroot}${prefix}/lib/llvm/obj
+ file copy ${worksrcpath}/include ${destroot}${prefix}/lib/llvm/src
+ file copy ${configure.dir}/include ${destroot}${prefix}/lib/llvm/obj
+ file copy ${configure.dir}/Release ${destroot}${prefix}/lib/llvm/obj
- reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config
- reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g" ${destroot}${prefix}/bin/llvm-config
-
- reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
- reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
+ reinplace "s|${worksrcpath}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config \
+ ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
+ reinplace "s|${configure.dir}|${prefix}/lib/llvm/obj|g" ${destroot}${prefix}/bin/llvm-config \
+ ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080718/e76df71b/attachment.html
More information about the macports-changes
mailing list