summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-20 13:01:27 +0000
committerbsam <bsam@FreeBSD.org>2013-06-20 13:01:27 +0000
commitff53ba5b5eedc66045df2635cdda41fc53f99444 (patch)
tree46ed5bff649e0756cd76330dbf157514e9643671
parent897f084cf21da70d8a02b1a0f361d798a57889ae (diff)
downloadFreeBSD-ports-ff53ba5b5eedc66045df2635cdda41fc53f99444.zip
FreeBSD-ports-ff53ba5b5eedc66045df2635cdda41fc53f99444.tar.gz
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. use PLIST_FILES and PORTDOCS at Makefile; . get rid of pkg-plist; . trim Makefile headers.
-rw-r--r--science/szip/Makefile20
-rw-r--r--science/szip/pkg-plist9
2 files changed, 11 insertions, 18 deletions
diff --git a/science/szip/Makefile b/science/szip/Makefile
index 93c1428..1cadabc 100644
--- a/science/szip/Makefile
+++ b/science/szip/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hdf-szip
-# Date created: 3 March 2005
-# Whom: glewis
-#
+# Created by: glewis
# $FreeBSD$
-#
PORTNAME= szip
PORTVERSION= 2.1
@@ -13,7 +9,7 @@ MASTER_SITES= ftp://ftp.hdfgroup.org/lib-external/szip/2.1/src/:src \
http://www.hdfgroup.org/doc_resource/SZIP/:doc
PKGNAMEPREFIX= hdf-
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src \
- ${DOCFILE}:doc
+ ${PORTDOCS}:doc
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
@@ -22,14 +18,20 @@ COMMENT= Lossless compression library for scientific data
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-DOCFILE= Release_notes_2_0.pdf
LDFLAGS+= -lm
CONFIGURE_ARGS+= LDFLAGS="${LDFLAGS}"
+PLIST_FILES= include/ricehdf.h include/szip_adpt.h include/szlib.h \
+ lib/libsz.a lib/libsz.la lib/libsz.so lib/libsz.so.2
+PORTDOCS= Release_notes_2_0.pdf
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${DISTDIR}/${DOCFILE} ${DOCSDIR}
+ ${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/science/szip/pkg-plist b/science/szip/pkg-plist
deleted file mode 100644
index 577fe6c..0000000
--- a/science/szip/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-include/ricehdf.h
-include/szip_adpt.h
-include/szlib.h
-lib/libsz.a
-lib/libsz.la
-lib/libsz.so
-lib/libsz.so.2
-%%PORTDOCS%%%%DOCSDIR%%/Release_notes_2_0.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud