summaryrefslogtreecommitdiffstats
path: root/science/hdf/Makefile
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2005-03-18 21:20:05 +0000
committerglewis <glewis@FreeBSD.org>2005-03-18 21:20:05 +0000
commit9008b7d48e46e569711d29b336762338e00a2b68 (patch)
tree9aa2312c0e039499782378320be0cdde4ef9cec1 /science/hdf/Makefile
parentd65cb3e3537db1fa7cb2e8cb4c0794d2eb9b87da (diff)
downloadFreeBSD-ports-9008b7d48e46e569711d29b336762338e00a2b68.zip
FreeBSD-ports-9008b7d48e46e569711d29b336762338e00a2b68.tar.gz
. Install documentation.
Diffstat (limited to 'science/hdf/Makefile')
-rw-r--r--science/hdf/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/science/hdf/Makefile b/science/hdf/Makefile
index 9b1adbf..7217044 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
OpenPOWER on IntegriCloud