aboutsummaryrefslogtreecommitdiff
path: root/science/hdf
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2005-03-18 21:20:05 +0000
committerGreg Lewis <glewis@FreeBSD.org>2005-03-18 21:20:05 +0000
commit9ba60de158faec3d8ad27d3717666a6aaaf43285 (patch)
tree3b0521cb13d677d6c5468096bd1e5171c36d2efc /science/hdf
parente040f906233bb64d493118641e40610e33dd0f07 (diff)
downloadports-9ba60de158faec3d8ad27d3717666a6aaaf43285.tar.gz
ports-9ba60de158faec3d8ad27d3717666a6aaaf43285.zip
Notes
Diffstat (limited to 'science/hdf')
-rw-r--r--science/hdf/Makefile24
-rw-r--r--science/hdf/distinfo8
-rw-r--r--science/hdf/pkg-plist9
3 files changed, 40 insertions, 1 deletions
diff --git a/science/hdf/Makefile b/science/hdf/Makefile
index 9b1adbf2b147..72170443035d 100644
--- a/science/hdf/Makefile
+++ b/science/hdf/Makefile
@@ -8,8 +8,20 @@
PORTNAME= hdf
PORTVERSION= 4.2r1
CATEGORIES= science archivers graphics
-MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF${PORTVERSION}/src/
+MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF${PORTVERSION}/src/:src \
+ ftp://ftp.ncsa.uiuc.edu/HDF/HDF/Documentation/HDF4.2r0/:doc \
+ http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/:doc_szip
DISTNAME= HDF${PORTVERSION}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \
+ ${SZIP_DOCFILE}:doc_szip
+DOCFILES= HDF41r5_SpecDG.pdf \
+ HDF42r0_RefMan.pdf \
+ HDF42r0_UserGd.pdf
+SZIP_DOCFILE= SZIP_HDF4_2r1.pdf
+.for file in $(DOCFILES)
+DISTFILES+= ${file}:doc
+.endfor
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= glewis@FreeBSD.org
COMMENT= Hierarchical Data Format library (from NCSA)
@@ -40,6 +52,16 @@ post-patch:
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
${WRKSRC}/hdf/src/Makefile.in ${WRKSRC}/mfhdf/libsrc/Makefile.in
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOCFILES} ${SZIP_DOCFILE}
+ @${INSTALL_DATA} ${DISTDIR}/${file} ${DOCSDIR}
+.endfor
+ @cd ${WRKSRC}/release_notes && ${FIND} . \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+.endif
+
test: build
cd ${WRKSRC}/hdf/test && ${MAKE} check
diff --git a/science/hdf/distinfo b/science/hdf/distinfo
index 3a5119eb970a..3b552b538792 100644
--- a/science/hdf/distinfo
+++ b/science/hdf/distinfo
@@ -1,2 +1,10 @@
MD5 (HDF4.2r1.tar.gz) = 9082c6fa913b9188452fa6c5217e1573
SIZE (HDF4.2r1.tar.gz) = 3911745
+MD5 (HDF41r5_SpecDG.pdf) = 1bf877e11dac1351ca773647e0d0f7d8
+SIZE (HDF41r5_SpecDG.pdf) = 930454
+MD5 (HDF42r0_RefMan.pdf) = 4c931738d06fdc8a1af863d51ba52c0e
+SIZE (HDF42r0_RefMan.pdf) = 1121420
+MD5 (HDF42r0_UserGd.pdf) = 0ca1125adeefd4cf5e4618d23bb290f1
+SIZE (HDF42r0_UserGd.pdf) = 2253831
+MD5 (SZIP_HDF4_2r1.pdf) = 6bdd671db7338f14098d69b0976ac0e6
+SIZE (SZIP_HDF4_2r1.pdf) = 222497
diff --git a/science/hdf/pkg-plist b/science/hdf/pkg-plist
index 99b9d5183caa..bb1dfb6683bd 100644
--- a/science/hdf/pkg-plist
+++ b/science/hdf/pkg-plist
@@ -80,3 +80,12 @@ lib/libdf.so.1
lib/libmfhdf.a
lib/libmfhdf.so
lib/libmfhdf.so.2
+%%PORTDOCS%%%%DOCSDIR%%/HDF41r5_SpecDG.pdf
+%%PORTDOCS%%%%DOCSDIR%%/HDF42r0_RefMan.pdf
+%%PORTDOCS%%%%DOCSDIR%%/HDF42r0_UserGd.pdf
+%%PORTDOCS%%%%DOCSDIR%%/HISTORY.txt
+%%PORTDOCS%%%%DOCSDIR%%/RELEASE.txt
+%%PORTDOCS%%%%DOCSDIR%%/SZIP_HDF4_2r1.pdf
+%%PORTDOCS%%%%DOCSDIR%%/bugs_fixed.txt
+%%PORTDOCS%%%%DOCSDIR%%/misc_docs.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%