Ignore:
Timestamp:
May 19, 2010, 12:08:28 AM (10 years ago)
Author:
takeshi@…
Message:

hdf4: updated to 4.2.5. due to imcompatibility with jpeg >7 6b is compiled in pre-configure

File:
1 edited

Legend:

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

    r64763 r67823  
    55
    66name                hdf4
    7 version             4.2r4
    8 revision            3
     7version             4.2.5
    98platforms           darwin
    109categories          science
     
    1413long_description    ${description}
    1514homepage            http://www.hdfgroup.org/products/hdf4/index.html
    16 master_sites        ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/
    17 checksums           md5    cbcfcdb65f27b743c6001c17619704a8         \
    18                     sha1   000fa1be9c355c490cceed786feeb269a0d355a7 \
    19                     rmd160 13274858f1fa0c339fab83b1f9c37314bd10d624
     15master_sites        ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/:hdf \
     16                    http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/:hdf \
     17                    http://www.hdfgroup.org/ftp/lib-external/jpeg/src/:jpeg \
     18                    ftp://ftp.hdfgroup.org/lib-external/jpeg/src/:jpeg
     19distname            hdf-$version
     20set hdfsrc ${distname}${extract.suffix}
     21set jpgsrc jpegsrc.v6b${extract.suffix}
     22distfiles           ${hdfsrc}:hdf \
     23                    ${jpgsrc}:jpeg
     24checksums           ${hdfsrc} md5     7241a34b722d29d8561da0947c06069f \
     25                    ${hdfsrc} sha1    7a9bb3f5d28ed889d7bff2f34389d00be8af5d21 \
     26                    ${hdfsrc} rmd160  e0756ea157c26832b4bd46b083e5cd8e8ea3ba59 \
     27                    ${jpgsrc} md5     83992a9466af7536da30efe6b51d4064 \
     28                    ${jpgsrc} sha1    fdca7f17a20ebefec2c7837916fc1daa90e83332 \
     29                    ${jpgsrc} rmd160  9be6f07bbd052f3de5a80a25584e74dcb6dce6cf
    2030
    21 depends_lib         port:zlib port:jpeg port:szip
    22 distname            HDF$version
     31depends_lib         port:zlib port:szip
    2332
    24 patchfiles          patch-hdfi.h.diff
    25 configure.args       --with-szlib=yes --disable-netcdf --disable-fortran
    26 configure.ldflags    "-L${worksrcpath}/src/.libs -L${prefix}/lib"
     33set jpgdir ${workpath}/jpeg-6b
     34configure.args       --with-szlib=${prefix} --disable-netcdf --disable-fortran \
     35                     --with-jpeg=${jpgdir},${jpgdir}
     36configure.cppflags-delete   -I${prefix}/include
     37configure.ldflags-delete    -L${prefix}/lib
    2738
    2839test.run            yes
    2940test.target         check
    3041
     42if {[variant_isset universal]} {
     43  set copts "${configure.cflags} ${configure.universal_cflags}"
     44  set ldopts ${configure.universal_ldflags}
     45} else {
     46  set copts "${configure.cflags} ${configure.cc_archflags}"
     47  set ldopts ${configure.cc_archflags}
     48}
     49pre-configure {
     50    system " \
     51      export CC=${configure.cc}; \
     52      export CPPFLAGS=\"\"; \
     53      export CFLAGS=\"${copts}\"; \
     54      export LDFLAGS=\"${ldopts}\"; \
     55      cd ${jpgdir}; \
     56      ./configure --prefix=${prefix}; \
     57      make libjpeg.a"
     58}
     59
    3160post-destroot {
    3261        file mkdir ${destroot}${prefix}/share/doc/${name}
    3362        file copy ${worksrcpath}/hdf/util/testfiles ${destroot}${prefix}/share/doc/${name}/samples
    34         foreach f {COPYING INSTALL README release_notes/HISTORY.txt} {
     63        foreach f {COPYING release_notes/HISTORY.txt release_notes/RELEASE.txt} {
    3564                file copy ${worksrcpath}/$f ${destroot}${prefix}/share/doc/${name}/
    3665        }
     
    4069                file delete ${destroot}${prefix}/$f
    4170        }
     71    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}
     72    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/include
     73    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/lib
     74    foreach f "${jpgdir}/jconfig.h ${jpgdir}/jerror.h \
     75               ${jpgdir}/jmorecfg.h ${jpgdir}/jpeglib.h" {
     76        xinstall -m 644 ${f} ${destroot}${prefix}/lib/${name}/include
     77    }
     78    xinstall -m 644 ${jpgdir}/libjpeg.a ${destroot}${prefix}/lib/${name}/lib
     79    ui_msg "jpeg-6b required by hdf4 is to be installed in ${prefix}/lib/${name}"
    4280}
    4381
Note: See TracChangeset for help on using the changeset viewer.