[67823] trunk/dports/science/hdf4
takeshi at macports.org
takeshi at macports.org
Tue May 18 17:08:30 PDT 2010
Revision: 67823
http://trac.macports.org/changeset/67823
Author: takeshi at macports.org
Date: 2010-05-18 17:08:28 -0700 (Tue, 18 May 2010)
Log Message:
-----------
hdf4: updated to 4.2.5. due to imcompatibility with jpeg >7 6b is compiled in pre-configure
Modified Paths:
--------------
trunk/dports/science/hdf4/Portfile
Removed Paths:
-------------
trunk/dports/science/hdf4/files/
Modified: trunk/dports/science/hdf4/Portfile
===================================================================
--- trunk/dports/science/hdf4/Portfile 2010-05-19 00:05:40 UTC (rev 67822)
+++ trunk/dports/science/hdf4/Portfile 2010-05-19 00:08:28 UTC (rev 67823)
@@ -4,8 +4,7 @@
PortSystem 1.0
name hdf4
-version 4.2r4
-revision 3
+version 4.2.5
platforms darwin
categories science
maintainers takeshi
@@ -13,25 +12,55 @@
description file format for storing scientific data and utilities
long_description ${description}
homepage http://www.hdfgroup.org/products/hdf4/index.html
-master_sites ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/
-checksums md5 cbcfcdb65f27b743c6001c17619704a8 \
- sha1 000fa1be9c355c490cceed786feeb269a0d355a7 \
- rmd160 13274858f1fa0c339fab83b1f9c37314bd10d624
+master_sites ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/:hdf \
+ http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/:hdf \
+ http://www.hdfgroup.org/ftp/lib-external/jpeg/src/:jpeg \
+ ftp://ftp.hdfgroup.org/lib-external/jpeg/src/:jpeg
+distname hdf-$version
+set hdfsrc ${distname}${extract.suffix}
+set jpgsrc jpegsrc.v6b${extract.suffix}
+distfiles ${hdfsrc}:hdf \
+ ${jpgsrc}:jpeg
+checksums ${hdfsrc} md5 7241a34b722d29d8561da0947c06069f \
+ ${hdfsrc} sha1 7a9bb3f5d28ed889d7bff2f34389d00be8af5d21 \
+ ${hdfsrc} rmd160 e0756ea157c26832b4bd46b083e5cd8e8ea3ba59 \
+ ${jpgsrc} md5 83992a9466af7536da30efe6b51d4064 \
+ ${jpgsrc} sha1 fdca7f17a20ebefec2c7837916fc1daa90e83332 \
+ ${jpgsrc} rmd160 9be6f07bbd052f3de5a80a25584e74dcb6dce6cf
-depends_lib port:zlib port:jpeg port:szip
-distname HDF$version
+depends_lib port:zlib port:szip
-patchfiles patch-hdfi.h.diff
-configure.args --with-szlib=yes --disable-netcdf --disable-fortran
-configure.ldflags "-L${worksrcpath}/src/.libs -L${prefix}/lib"
+set jpgdir ${workpath}/jpeg-6b
+configure.args --with-szlib=${prefix} --disable-netcdf --disable-fortran \
+ --with-jpeg=${jpgdir},${jpgdir}
+configure.cppflags-delete -I${prefix}/include
+configure.ldflags-delete -L${prefix}/lib
test.run yes
test.target check
+if {[variant_isset universal]} {
+ set copts "${configure.cflags} ${configure.universal_cflags}"
+ set ldopts ${configure.universal_ldflags}
+} else {
+ set copts "${configure.cflags} ${configure.cc_archflags}"
+ set ldopts ${configure.cc_archflags}
+}
+pre-configure {
+ system " \
+ export CC=${configure.cc}; \
+ export CPPFLAGS=\"\"; \
+ export CFLAGS=\"${copts}\"; \
+ export LDFLAGS=\"${ldopts}\"; \
+ cd ${jpgdir}; \
+ ./configure --prefix=${prefix}; \
+ make libjpeg.a"
+}
+
post-destroot {
file mkdir ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/hdf/util/testfiles ${destroot}${prefix}/share/doc/${name}/samples
- foreach f {COPYING INSTALL README release_notes/HISTORY.txt} {
+ foreach f {COPYING release_notes/HISTORY.txt release_notes/RELEASE.txt} {
file copy ${worksrcpath}/$f ${destroot}${prefix}/share/doc/${name}/
}
foreach f {bin/ncdump bin/ncgen lib/libudport.a \
@@ -39,6 +68,15 @@
share/man/man1/ncgen.1 share/man/man1/ncdump.1} {
file delete ${destroot}${prefix}/$f
}
+ xinstall -d -m 755 ${destroot}${prefix}/lib/${name}
+ xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/include
+ xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/lib
+ foreach f "${jpgdir}/jconfig.h ${jpgdir}/jerror.h \
+ ${jpgdir}/jmorecfg.h ${jpgdir}/jpeglib.h" {
+ xinstall -m 644 ${f} ${destroot}${prefix}/lib/${name}/include
+ }
+ xinstall -m 644 ${jpgdir}/libjpeg.a ${destroot}${prefix}/lib/${name}/lib
+ ui_msg "jpeg-6b required by hdf4 is to be installed in ${prefix}/lib/${name}"
}
variant g95 conflicts gcc43 conflicts universal description {build with g95} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100518/b6ee8750/attachment.html>
More information about the macports-changes
mailing list