mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
* hdf5: MAJOR VERSION UPDATE 2.1.1 * hdf5: Fix tests; add upstream fortran patch * hdf5: revbumps
113 lines
3.9 KiB
Tcl
113 lines
3.9 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup cmake 1.1
|
|
PortGroup conflicts_build 1.0
|
|
PortGroup mpi 1.0
|
|
PortGroup github 1.0
|
|
PortGroup wxWidgets 1.0
|
|
|
|
github.setup gnudatalanguage gdl 1.1.3 v
|
|
revision 1
|
|
name ${github.author}
|
|
epoch 2
|
|
|
|
compilers.choose cc cxx
|
|
mpi.setup
|
|
|
|
categories math science
|
|
maintainers {takeshi @tenomoto} openmaintainer
|
|
license GPL-2+
|
|
description a free IDL combatible incremental compiler
|
|
long_description A free IDL (Interactive Data Language) compatible \
|
|
incremental compiler (i.e. runs IDL programs).
|
|
|
|
distname ${github.project}-${github.tag_prefix}${version}
|
|
|
|
checksums rmd160 b0c47160ae78f9ccb8f1e83229c074ed485036ec \
|
|
sha256 7f2b39cec13d7589e7d810ca2197ffb080f80d3de0de440a8cba26e21cadf8a1 \
|
|
size 33933705
|
|
|
|
compiler.cxx_standard 2011
|
|
|
|
set proj_ver 9
|
|
|
|
depends_build-append path:bin/pkg-config:pkgconfig \
|
|
path:share/pkgconfig/eigen3.pc:eigen3 \
|
|
port:qhull
|
|
|
|
depends_lib-append port:zlib \
|
|
port:gsl \
|
|
port:ncurses \
|
|
port:expat \
|
|
port:readline \
|
|
port:netcdf \
|
|
port:hdf4 \
|
|
port:hdf5 \
|
|
port:ecCodes \
|
|
port:proj${proj_ver} \
|
|
port:GraphicsMagick \
|
|
port:udunits2 \
|
|
port:fftw-3 \
|
|
port:fftw-3-single \
|
|
port:shapelib \
|
|
port:freetype \
|
|
port:glpk \
|
|
port:libgeotiff \
|
|
port:libaec \
|
|
port:libpng \
|
|
port:libjpeg-turbo \
|
|
port:tiff
|
|
|
|
conflicts_build antlr
|
|
|
|
configure.args-append -DMAGICK=OFF \
|
|
-DMPI=OFF \
|
|
-DOPENMP=OFF \
|
|
-DPYTHON=OFF \
|
|
-DPYTHON_MODULE=OFF \
|
|
-DWXWIDGETS=OFF \
|
|
-DLIBPROJDIR=${prefix}/lib/proj${proj_ver}
|
|
|
|
post-destroot {
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
|
|
foreach f {AUTHORS README} {
|
|
file rename ${destroot}${prefix}/share/${name}/${f} \
|
|
${destroot}${prefix}/share/doc/${name}/
|
|
}
|
|
xinstall -m 644 -W ${worksrcpath} COPYING HACKING NEWS MAP_INSTALL README README.GRIB README.md \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
file copy ${worksrcpath}/testsuite ${destroot}${prefix}/share/${name}/
|
|
}
|
|
|
|
pre-configure {
|
|
if {[mpi_variant_isset]} {
|
|
configure.args-replace -DMPI=OFF \
|
|
-DMPI=ON
|
|
configure.args-append -DMPI_CXX_COMPILER=${mpi.cxx} \
|
|
-DMPI_C_COMPILER=${mpi.cc}
|
|
}
|
|
}
|
|
|
|
variant wxWidgets description {Enable wxWidgets support} {
|
|
wxWidgets.use wxWidgets-3.2
|
|
depends_lib-append port:${wxWidgets.port}
|
|
configure.args-replace -DWXWIDGETS=OFF \
|
|
-DWXWIDGETS=ON
|
|
configure.args-append -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig}
|
|
}
|
|
|
|
# https://trac.macports.org/ticket/62087
|
|
if {${os.platform} ne "darwin" || ${os.major} >= 16} {
|
|
default_variants +wxWidgets
|
|
}
|
|
|
|
if {[gcc_variant_isset] || [clang_variant_isset]} {
|
|
configure.args-replace -DOPENMP=OFF \
|
|
-DOPENMP=ON
|
|
}
|
|
|
|
if {![variant_isset wxWidgets]} {
|
|
test.run yes
|
|
}
|