Changeset 114487


Ignore:
Timestamp:
Dec 9, 2013, 6:41:05 PM (6 years ago)
Author:
devans@…
Message:

vapor: update to version 2.2.4, dependencies, livecheck.

Location:
trunk/dports/science/vapor
Files:
2 added
2 deleted
1 edited

Legend:

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

    r114328 r114487  
    44PortSystem          1.0
    55name                vapor
    6 version             1.5.2
    7 revision            3
     6version             2.2.4
    87categories          science
    98maintainers         nomaintainer
     
    1615homepage            http://www.vapor.ucar.edu/
    1716platforms           darwin
    18 master_sites        ftp://ftp.ucar.edu/vapor/source
     17master_sites        https://www.vapor.ucar.edu/sites/default/files/
    1918distname            ${name}-${version}-src
    2019
    21 checksums           md5     615ac60aaf1680689e98dbb14fe6a6d3 \
    22                     sha1    c023702a99ab4672b26634d178141384e8f3d5c7 \
    23                     rmd160  2f940dcce85edd5f728ad3472f5737bd8a40cec2
     20checksums           rmd160  a690f7f587f858195db8bdbb6736ccb4f5ba8626 \
     21                    sha256  e43721801c89dc31766ae9304768670f24bea022690cefdd5cc73684249999af
    2422
    25 depends_lib         port:expat \
    26                     port:qt3 \
     23depends_build       port:gmake
     24
     25depends_lib         port:assimp2 \
     26                    port:expat \
     27                    port:glew \
     28                    port:hdf5-18 \
     29                    port:libgeotiff \
    2730                    port:netcdf \
    2831                    port:proj \
    29                     port:libgeotiff \
    30                     port:hdf5-18
     32                    port:py27-numpy \
     33                    port:py27-scipy \
     34                    port:qt4-mac \
     35                    port:udunits2
    3136
    32 worksrcdir          ${name}-${version}/${name}
    33 patchfiles          patch-base.mk.diff \
    34                     patch-glew.h.diff
    35 post-patch {
    36     reinplace "s|dynamic_lookup|dynamic_lookup -install_name ${prefix}/lib/${name}/lib\$(LIBRARY).dylib|" ${worksrcpath}/make/config/Darwin.mk
    37     reinplace "s|INSTALL_DOC_DIR = \$(INSTALL_SHAREDIR)/doc|INSTALL_DOC_DIR = ${destroot}${prefix}/share/doc/${name}|" ${worksrcpath}/doc/Makefile
    38 }
     37patchfiles          patch-options.mk.diff \
     38                    patch-make-config-Darwin.mk.diff
     39
    3940use_configure       no
     41
    4042post-configure {
    41     reinplace "s|INSTALL_PREFIX_DIR=/usr/local|INSTALL_PREFIX_DIR=${prefix}|" \
    42         ${worksrcpath}/options.mk
    43     reinplace "s|RELEASE=0|RELEASE=1|" ${worksrcpath}/options.mk
    44     reinplace "s|_INC_PATH=|_INC_PATH=${prefix}/include|" ${worksrcpath}/options.mk
    45     reinplace "s|_LIB_PATH=|_LIB_PATH=${prefix}/lib|" ${worksrcpath}/options.mk
    46     reinplace "s|QTDIR =|QTDIR =${prefix}/lib/qt3|" ${worksrcpath}/options.mk
    47     reinplace "s|QT_LIB_PATH = |QT_LIB_PATH=${prefix}/lib/qt3/lib|" ${worksrcpath}/options.mk
    48     reinplace "s|BUILD_AMR_SUPPORT = 0|BUILD_AMR_SUPPORT = 1|" ${worksrcpath}/options.mk
     43    reinplace "s|@@MP_INSTALL_PREFIX@@|${destroot}${prefix}|g" ${worksrcpath}/options.mk
     44    reinplace "s|@@MP_PREFIX@@|${prefix}|g" ${worksrcpath}/options.mk ${worksrcpath}/make/config/Darwin.mk
     45    reinplace "s|@@MP_CC@@|${configure.cc}|" ${worksrcpath}/options.mk
     46    reinplace "s|@@MP_CXX@@|${configure.cxx}|" ${worksrcpath}/options.mk
     47    reinplace "s|-F.*/lib|-F${prefix}/Library/Frameworks|" ${worksrcpath}/apps/vaporgui/Makefile ${worksrcpath}/apps/asciitf2vtf/Makefile
    4948    if {${build_arch} eq "x86_64"} {
    5049        set f [open ${worksrcpath}/site.mk "w"]
     
    5352    }
    5453}
     54
    5555use_parallel_build  no
    5656
    57 livecheck.type              regex
    58 livecheck.url               ${homepage}/downloads/index.php?id=source
    59 livecheck.regex             {Latest Release: ([0-9]+\.[0-9]+\.[0-9]+)}
     57build.cmd           gmake
     58destroot.cmd        gmake
     59
     60post-destroot {
     61    file delete -force ${destroot}${prefix}/share/udunits
     62}
     63
     64universal_variant   no
     65
     66livecheck.type      regex
     67livecheck.url       ${homepage}
     68livecheck.regex     "Version (\\d+(?:\\.\\d+)*) of VAPOR"
Note: See TracChangeset for help on using the changeset viewer.