diff options
author | bsam <bsam@FreeBSD.org> | 2013-06-15 00:01:59 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-06-15 00:01:59 +0800 |
commit | cc7a44de47675a7ef7ac269adfd91d2c1d288bc3 (patch) | |
tree | bbbcc462b548444d1bf05db148f6b24a2aad5d2f | |
parent | 3e6752018a2a61c2ea6381f33f1d13ff0ad33300 (diff) | |
download | freebsd-ports-gnome-cc7a44de47675a7ef7ac269adfd91d2c1d288bc3.tar.gz freebsd-ports-gnome-cc7a44de47675a7ef7ac269adfd91d2c1d288bc3.tar.zst freebsd-ports-gnome-cc7a44de47675a7ef7ac269adfd91d2c1d288bc3.zip |
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. do not use a for loop for one file (README);
. do not mute install;
. trim Makefile headers.
-rw-r--r-- | sysutils/freqsdwn/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sysutils/freqsdwn/Makefile b/sysutils/freqsdwn/Makefile index 0a98a5b4d408..44cad543286c 100644 --- a/sysutils/freqsdwn/Makefile +++ b/sysutils/freqsdwn/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: freqsdwn -# Date created: 2005/11/20 -# Whom: n-shigemura@ensure.jp -# +# Created by: n-shigemura@ensure.jp # $FreeBSD$ -# PORTNAME= freqsdwn PORTVERSION= 2.00 @@ -24,9 +20,9 @@ IGNORE= ${RESTRICTED} USE_RC_SUBR= freqshpd 000.freqshpk PLIST_SUB= PORTNAME=${PORTNAME} CONFDIR=${CONFDIR} SUB_LIST= PORTNAME=${PORTNAME} CONFDIR=${CONFDIR} +OPTIONS_DEFINE= DOCS WRKSRC= ${WRKDIR}/freqship -PORTDOCS= README CONFDIR?= ${PREFIX}/etc/freqship @@ -44,6 +40,8 @@ post-extract: @${CP} ${FILESDIR}/Makefile.${dir} ${WRKSRC}/${dir:subdir=}/Makefile .endfor +.include <bsd.port.options.mk> + post-install: @${MKDIR} ${CONFDIR} .for FILE in UPSFILE UPSSTAT PMSGERR PMSGOK DELAY @@ -51,11 +49,9 @@ post-install: @[ -f ${PREFIX}/etc/freqship/${FILE} ] || \ ${CP} ${WRKSRC}/initdata/${FILE} ${PREFIX}/etc/freqship/${FILE} .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} -.for FILE in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} -.endfor + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} |