Changeset 38411


Ignore:
Timestamp:
Jul 19, 2008, 12:50:29 AM (11 years ago)
Author:
ryandesign@…
Message:

llvm: make better use of available variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/llvm/Portfile

    r38410 r38411  
    1515
    1616homepage                http://llvm.org/
    17 master_sites            http://llvm.org/releases/${version}/
     17master_sites            ${homepage}releases/${version}/
    1818
    1919checksums               md5     17254d72863b7fa005f3fb327aea3439 \
     
    3636configure.cppflags
    3737configure.ldflags
    38 configure.cmd           ../llvm-${version}/configure
     38configure.cmd           ${worksrcpath}/configure
    3939configure.args          --enable-optimized --enable-jit
    4040
     
    4444    file mkdir ${destroot}${prefix}/lib/llvm/obj
    4545
    46     file copy ${workpath}/llvm-${version}/include ${destroot}${prefix}/lib/llvm/src
    47     file copy ${workpath}/build/include ${destroot}${prefix}/lib/llvm/obj
    48     file copy ${workpath}/build/Release ${destroot}${prefix}/lib/llvm/obj
     46    file copy ${worksrcpath}/include ${destroot}${prefix}/lib/llvm/src
     47    file copy ${configure.dir}/include ${destroot}${prefix}/lib/llvm/obj
     48    file copy ${configure.dir}/Release ${destroot}${prefix}/lib/llvm/obj
    4949
    50     reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/bin/llvm-config
    51     reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/bin/llvm-config
    52 
    53     reinplace "s|${workpath}/build/\.\./llvm-${version}|${prefix}/lib/llvm/src|g" ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
    54     reinplace "s|${workpath}/build|${prefix}/lib/llvm/obj|g"                      ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
     50    reinplace "s|${worksrcpath}|${prefix}/lib/llvm/src|g"       ${destroot}${prefix}/bin/llvm-config \
     51                                                                ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
     52    reinplace "s|${configure.dir}|${prefix}/lib/llvm/obj|g"     ${destroot}${prefix}/bin/llvm-config \
     53                                                                ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
    5554}
Note: See TracChangeset for help on using the changeset viewer.