Ignore:
Timestamp:
Mar 22, 2012, 12:52:13 PM (7 years ago)
Author:
aronnax@…
Message:

healpix: address ryandesign's comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/healpix/Portfile

    r90985 r91025  
    1313homepage            http://healpix.jpl.nasa.gov/
    1414platforms           darwin
    15 master_sites        sourceforge
    16 master_sites.mirror_subdir ${name}/Healpix_${version}
     15master_sites        sourceforge:project/${name}/Healpix_${version}
    1716worksrcdir          Healpix_${version}
    1817distname            Healpix_${version}_2011Feb09
     
    2120                    sha1    f7a0fdab8e9fcfdf81e3e5e9a7d18912203d3803 \
    2221                    rmd160  e15b14262591a679764665d4d1774c38786a7a00
     22
     23universal_variant   yes
    2324
    2425depends_lib         port:cfitsio
     
    3738       depends_build-append port:apple-gcc42
    3839       configure.compiler apple-gcc-4.2
    39        # base (as of 2.0.3) doesn't set cxx for apple-gcc-4.2
    40        configure.cxx ${prefix}/bin/g++-apple-4.2
    4140   }
    4241}
     
    5251                    CFITSIO_EXT_LIB=${prefix}/lib/libcfitsio.a \
    5352                    CFITSIO_EXT_INC=${prefix}/include \
    54                     CC=${configure.cc} CL=${configure.cc} \
    55                     CXX=${configure.cxx} CXXL=${configure.cxx}
     53                    CC="${configure.cc} [get_canonical_archflags cc]" \
     54                    CL="${configure.cc} [get_canonical_archflags ld]" \
     55                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
     56                    CXXL="${configure.cxx} [get_canonical_archflags ld]"
    5657
    5758build {
    58     system "${build.cmd} -C ${worksrcpath}/src/cxx ${build.post_args}"
    59     system "${build.cmd} -C ${worksrcpath}/src/C/subs static install AR=\"ar -rsv\" ${build.post_args}"
     59    system -W ${worksrcpath}/src/cxx "${build.cmd} [join ${build.post_args}]"
     60    system -W ${worksrcpath}/src/C/subs "${build.cmd} static install AR=\"ar -rsv\" [join ${build.post_args}]"
    6061}
    6162
    62 pre-destroot {
     63post-build {
    6364    # This file is just a copy of ${worksrcpath}/lib/libhpxgif.a
    6465    # and conflicts with port:giflib.
     
    6768
    6869destroot {
    69     xinstall -d ${destroot}${prefix}/include
    70     xinstall -d ${destroot}${prefix}/lib
    71     xinstall -d ${destroot}${prefix}/bin
    7270    eval xinstall [glob ${worksrcpath}/include/*] ${destroot}${prefix}/include
    7371    eval xinstall [glob ${worksrcpath}/lib/*] ${destroot}${prefix}/lib
Note: See TracChangeset for help on using the changeset viewer.