Revision: 105618 https://trac.macports.org/changeset/105618 Author: aronnax@macports.org Date: 2013-04-27 18:11:18 -0700 (Sat, 27 Apr 2013) Log Message: ----------- healpix: update to 3.11 Modified Paths: -------------- trunk/dports/science/healpix/Portfile Modified: trunk/dports/science/healpix/Portfile =================================================================== --- trunk/dports/science/healpix/Portfile 2013-04-27 23:42:35 UTC (rev 105617) +++ trunk/dports/science/healpix/Portfile 2013-04-28 01:11:18 UTC (rev 105618) @@ -4,8 +4,8 @@ PortSystem 1.0 name healpix -set base_version 3.00 -version 3.00_2012Nov30 +set base_version 3.11 +version ${base_version}_2013Apr24 categories science license GPL-2 maintainers aronnax @@ -18,26 +18,10 @@ distname Healpix_${version} worksrcdir Healpix_${base_version} -checksums md5 92d400d3b9427dfa25cacbdfe218810a \ - sha1 a8a507a47c0a129f5efaadd144b3b561dc79f663 \ - rmd160 41febc7f9707b2285433f2a9949bafa92b529f6f +checksums md5 6ddfb66dbc2f57478cb328ec76c510d9 \ + sha1 f7d6a18ca6aad9fe85a66eca36d7a1f0ef783e95 \ + rmd160 615d52e1bd99f81c96f4e0dc131cc3bc865f85d0 -use_configure no - -subport ${name}-c { - build.dir ${worksrcpath}/src/C/subs - build.target static dynamic -} - -subport ${name}-cxx { - # Blacklist the following compilers that do not support OpenMP. - compiler.blacklist clang - - build.dir ${worksrcpath}/src/cxx - build.target compile_all - destroot {} -} - if {${name} == ${subport}} { supported_archs noarch @@ -56,30 +40,7 @@ livecheck.regex {healpix/files/Healpix_([0-9]+\.[0-9]+[a-z]?)} } else { - depends_lib port:cfitsio - build.post_args-append \ - HEALPIX_TARGET=osx \ - BINDIR=${destroot}${prefix}/bin \ - LIBDIR=${destroot}${prefix}/lib \ - INCDIR=${destroot}${prefix}/include \ - EXTERNAL_CFITSIO=yes \ - CFITSIO_INCDIR=${prefix}/include \ - CFITSIO_LIBDIR=${prefix}/lib \ - CFITSIO_EXT_LIB=${prefix}/lib/libcfitsio.a \ - CFITSIO_EXT_INC=${prefix}/include \ - OPT="${configure.optflags}" \ - CC="${configure.cc} [get_canonical_archflags cc]" \ - CL="${configure.cc} [get_canonical_archflags ld]" \ - CXX="${configure.cxx} [get_canonical_archflags cxx]" \ - CXXL="${configure.cxx} [get_canonical_archflags ld]" - - destroot.post_args-append \ - HEALPIX_TARGET=osx \ - BINDIR=${destroot}${prefix}/bin \ - LIBDIR=${destroot}${prefix}/lib \ - INCDIR=${destroot}${prefix}/include - pre-activate { if {[file exists ${prefix}/lib/libchealpix.a] && ![catch {set vers [lindex [registry_active healpix] 0]}] @@ -91,19 +52,55 @@ livecheck.type none } +subport ${name}-c { + description C language implementation of HEALPix + long_description ${long_description} This is the ${description}. + + worksrcdir Healpix_${base_version}/src/C/autotools + + depends_build port:pkgconfig + depends_lib port:cfitsio + + use_autoreconf yes +} + +subport ${name}-cxx { + description C++ language implementation of HEALPix + long_description ${long_description} This is the ${description}. + + worksrcdir Healpix_${base_version}/src/cxx/autotools + + depends_build port:pkgconfig + depends_lib port:cfitsio + + use_autoreconf yes + + default_variants +openmp + + variant openmp description "enable OpenMP parallel acceleration" { + compiler.blacklist clang + } +} + subport ${name}-java { + description Java language implementation of HEALPix + long_description ${long_description} This is the ${description}. + supported_archs noarch + patchfiles patch-build.xml.diff + depends_build bin:javac:jikes bin:jar:jikes depends_lib bin:java:kaffe - build.dir ${worksrcpath}/src/java + use_configure no + + worksrcdir Healpix_${base_version}/src/java build.cmd ant build.target dist - build.post_args destroot { xinstall -d ${destroot}${prefix}/share/java - eval xinstall [glob ${worksrcpath}/src/java/dist/*.jar] ${destroot}${prefix}/share/java + eval xinstall [glob ${worksrcpath}/dist/*.jar] ${destroot}${prefix}/share/java } }
participants (1)
-
aronnax@macports.org