svn commit: r321376 - head/science/szip
Boris Samorodov
bsam at FreeBSD.org
Thu Jun 20 13:01:28 UTC 2013
Author: bsam
Date: Thu Jun 20 13:01:27 2013
New Revision: 321376
URL: http://svnweb.freebsd.org/changeset/ports/321376
Log:
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. use PLIST_FILES and PORTDOCS at Makefile;
. get rid of pkg-plist;
. trim Makefile headers.
Deleted:
head/science/szip/pkg-plist
Modified:
head/science/szip/Makefile
Modified: head/science/szip/Makefile
==============================================================================
--- head/science/szip/Makefile Thu Jun 20 12:52:25 2013 (r321375)
+++ head/science/szip/Makefile Thu Jun 20 13:01:27 2013 (r321376)
@@ -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
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 at FreeBSD.org
@@ -22,14 +18,20 @@ COMMENT= Lossless compression library fo
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>
More information about the svn-ports-all
mailing list