Ignore:
Timestamp:
May 21, 2010, 7:28:11 AM (10 years ago)
Author:
takeshi@…
Message:

hdf4: uses jpeg6b added in r67894

File:
1 edited

Legend:

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

    r67823 r67895  
    66name                hdf4
    77version             4.2.5
     8revision            1
    89platforms           darwin
    910categories          science
     
    1314long_description    ${description}
    1415homepage            http://www.hdfgroup.org/products/hdf4/index.html
    15 master_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
    19 distname            hdf-$version
    20 set hdfsrc ${distname}${extract.suffix}
    21 set jpgsrc jpegsrc.v6b${extract.suffix}
    22 distfiles           ${hdfsrc}:hdf \
    23                     ${jpgsrc}:jpeg
    24 checksums           ${hdfsrc} md5     7241a34b722d29d8561da0947c06069f \
    25                     ${hdfsrc} sha1    7a9bb3f5d28ed889d7bff2f34389d00be8af5d21 \
    26                     ${hdfsrc} rmd160  e0756ea157c26832b4bd46b083e5cd8e8ea3ba59 \
    27                     ${jpgsrc} md5     83992a9466af7536da30efe6b51d4064 \
    28                     ${jpgsrc} sha1    fdca7f17a20ebefec2c7837916fc1daa90e83332 \
    29                     ${jpgsrc} rmd160  9be6f07bbd052f3de5a80a25584e74dcb6dce6cf
     16master_sites        ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/ \
     17                    http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/
     18distname            hdf-${version}
     19use_bzip2           yes
     20checksums           md5     91bc17ec735b52736507570a530fe8a9 \
     21                    sha1    9c854363949bc6552bd38957e7bdfc9c54be0f82 \
     22                    rmd160  1b8fb8330529dcfc17f0c506b43eb51155471111
    3023
    31 depends_lib         port:zlib port:szip
     24depends_lib         port:zlib port:szip port:jpeg6b
    3225
    33 set jpgdir ${workpath}/jpeg-6b
    3426configure.args       --with-szlib=${prefix} --disable-netcdf --disable-fortran \
    35                      --with-jpeg=${jpgdir},${jpgdir}
     27                     --with-jpeg=${prefix}/lib/jpeg6b
    3628configure.cppflags-delete   -I${prefix}/include
    3729configure.ldflags-delete    -L${prefix}/lib
     
    3931test.run            yes
    4032test.target         check
    41 
    42 if {[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 }
    49 pre-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 }
    5933
    6034post-destroot {
     
    6943                file delete ${destroot}${prefix}/$f
    7044        }
    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}"
    8045}
    8146
Note: See TracChangeset for help on using the changeset viewer.