source: trunk/dports/science/hdf4/Portfile @ 102822

Last change on this file since 102822 was 102822, checked in by jmr@…, 7 years ago

jpeg: update to version 9, rev bump dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 102822 2013-02-09 00:51:24Z jmr@macports.org $
3
4PortSystem          1.0
5
6name                hdf4
7version             4.2.8
8revision        1
9platforms           darwin
10categories          science
11license             NCSA
12maintainers         takeshi
13
14description         file format for storing scientific data and utilities
15long_description    ${description}
16homepage            http://www.hdfgroup.org/products/hdf4/index.html
17master_sites        ftp://ftp.hdfgroup.org/HDF/prev-releases/HDF${version}/src/ \
18                    http://www.hdfgroup.org/ftp/HDF/prev-releases/HDF${version}/src/
19distname            hdf-${version}
20use_bzip2           yes
21checksums           md5     380c67592e118423dc123cd4214a2cd9 \
22                    sha1    9d4ab457ccb8e582c265ca3f5f2ec90614d89da4 \
23                    rmd160  fe3e57e3967eb421a22a3ee9093fd0d287394b3a
24
25depends_lib         port:zlib port:jpeg
26
27configure.args      --disable-netcdf --disable-fortran \
28                    --with-jpeg=${prefix} --enable-shared \
29                    --without-szlib
30configure.cppflags-delete   -I${prefix}/include
31configure.ldflags-delete    -L${prefix}/lib
32
33post-configure {
34# remove -arch from h4cc to fix failure of h4cc -E with +universal
35    reinplace -E {s|-arch [a-z0-9_]+||g} ${worksrcpath}/hdf/util/h4cc
36}
37
38test.run            yes
39test.target         check
40
41post-destroot {
42    file mkdir ${destroot}${prefix}/share/doc/${name}
43    file copy ${worksrcpath}/hdf/util/testfiles ${destroot}${prefix}/share/doc/${name}/samples
44    foreach f {COPYING release_notes/HISTORY.txt release_notes/RELEASE.txt} {
45        file copy ${worksrcpath}/$f ${destroot}${prefix}/share/doc/${name}/
46    }
47    foreach f {bin/ncdump bin/ncgen lib/libudport.a                   \
48             include/netcdf.h include/netcdf.inc include/netcdf.f90 \
49             share/man/man1/ncgen.1 share/man/man1/ncdump.1} {
50        file delete ${destroot}${prefix}/$f
51    }
52}
53
54variant g95 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 universal description {build with g95} {
55    configure.args-delete   --disable-fortran --enable-shared
56    depends_build-append    port:g95
57    configure.f77           ${prefix}/bin/g95
58}
59
60variant gcc43 conflicts g95 gcc44 gcc45 gcc46 gcc47 universal description {build with gfortran 4.3} {
61    configure.args-delete   --disable-fortran --enable-shared
62    depends_build-append    port:gcc43
63    configure.f77           ${prefix}/bin/gfortran-mp-4.3
64}
65
66variant gcc44 conflicts g95 gcc43 gcc45 gcc46 gcc47 universal description {build with gfortran 4.4} {
67    configure.args-delete   --disable-fortran --enable-shared
68    depends_build-append    port:gcc44
69    configure.f77           ${prefix}/bin/gfortran-mp-4.4
70}
71
72variant gcc45 conflicts g95 gcc43 gcc44 gcc46 gcc47 universal description {build with gfortran 4.5} {
73    configure.args-delete   --disable-fortran --enable-shared
74    depends_build-append    port:gcc45
75    configure.f77           ${prefix}/bin/gfortran-mp-4.5
76}
77
78variant gcc46 conflicts g95 gcc43 gcc44 gcc45 gcc47 universal description {build with gfortran 4.6} {
79    configure.args-delete   --disable-fortran --enable-shared
80    depends_build-append    port:gcc46
81    configure.f77           ${prefix}/bin/gfortran-mp-4.6
82}
83
84variant gcc47 conflicts g95 gcc43 gcc44 gcc45 gcc46 universal description {build with gfortran 4.7} {
85    configure.args-delete   --disable-fortran --enable-shared
86    depends_build-append    port:gcc47
87    configure.f77           ${prefix}/bin/gfortran-mp-4.7
88}
89
90variant szip description {build with szip} {
91    depends_lib-append      port:szip
92    configure.args-delete   --without-szlib
93    configure.args-append   --with-szlib=${prefix}
94}
95
96livecheck.type   regex
97livecheck.url    ${homepage}
98livecheck.regex  {Release of HDF is ([0-9]+\.[0-9]+\.[0-9]+)}
Note: See TracBrowser for help on using the repository browser.