aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2013-01-15 21:40:28 +0800
committerehaupt <ehaupt@FreeBSD.org>2013-01-15 21:40:28 +0800
commitd17f4033ae11c1ef211b336b25eb38a014e0c74b (patch)
tree98f96307b5a32cecd5d4e2104c22673c560b9789
parent7e85483bc4dd371692cb42e0670e76bc41c0a5ba (diff)
downloadfreebsd-ports-gnome-d17f4033ae11c1ef211b336b25eb38a014e0c74b.tar.gz
freebsd-ports-gnome-d17f4033ae11c1ef211b336b25eb38a014e0c74b.tar.zst
freebsd-ports-gnome-d17f4033ae11c1ef211b336b25eb38a014e0c74b.zip
- Use DOC instead of NOPORTDOCS
- Pacify portlint - Convert header
-rw-r--r--archivers/ecm/Makefile12
-rw-r--r--archivers/gzrecover/Makefile6
-rw-r--r--archivers/mar/Makefile6
-rw-r--r--archivers/ppmd/Makefile6
-rw-r--r--audio/festalon/Makefile16
-rw-r--r--audio/gbsplay/Makefile4
-rw-r--r--audio/malint/Makefile12
-rw-r--r--audio/milkytracker/Makefile18
-rw-r--r--audio/ocp/Makefile4
-rw-r--r--audio/openspc/Makefile12
-rw-r--r--audio/sidplayer/Makefile14
-rw-r--r--audio/uade/Makefile4
-rw-r--r--audio/xmms-sexypsf/Makefile12
-rw-r--r--audio/xmp/Makefile6
-rw-r--r--comms/remserial/Makefile12
-rw-r--r--devel/bunny/Makefile12
-rw-r--r--devel/ccache/Makefile4
-rw-r--r--devel/cvsspam/Makefile12
-rw-r--r--dns/dnswall/Makefile12
-rw-r--r--ftp/weex/Makefile12
-rw-r--r--graphics/fractorama/Makefile12
-rw-r--r--graphics/metacam/Makefile12
-rw-r--r--mail/isync/Makefile12
-rw-r--r--mail/sylpheed/Makefile6
-rw-r--r--math/mathomatic/Makefile6
-rw-r--r--misc/countrycodes/Makefile12
-rw-r--r--misc/gopod/Makefile15
-rw-r--r--misc/ree/Makefile12
-rw-r--r--net-im/bsflite/Makefile12
-rw-r--r--net/corkscrew/Makefile12
-rw-r--r--net/rsync/Makefile6
-rw-r--r--net/socat/Makefile16
-rw-r--r--news/brag/Makefile12
-rw-r--r--security/bcrypt/Makefile12
-rw-r--r--security/bsdsfv/Makefile12
-rw-r--r--security/cksfv/Makefile12
-rw-r--r--security/idea/Makefile12
-rw-r--r--security/pkcrack/Makefile12
-rw-r--r--security/pure-sfv/Makefile12
-rw-r--r--security/vpnc/Makefile4
-rw-r--r--sysutils/cmospwd/Makefile14
-rw-r--r--sysutils/disktype/Makefile12
-rw-r--r--sysutils/dvdbackup/Makefile14
-rw-r--r--sysutils/fatback/Makefile12
-rw-r--r--sysutils/highlnk/Makefile12
-rw-r--r--sysutils/hploscripts/Makefile12
-rw-r--r--sysutils/magicrescue/Makefile12
-rw-r--r--sysutils/rej/Makefile14
-rw-r--r--sysutils/tmpreaper/Makefile12
-rw-r--r--sysutils/watchfolder/Makefile12
-rw-r--r--sysutils/zeroer/Makefile12
-rw-r--r--textproc/fldiff/Makefile14
-rw-r--r--x11/gtk-launch/Makefile12
53 files changed, 291 insertions, 290 deletions
diff --git a/archivers/ecm/Makefile b/archivers/ecm/Makefile
index 96c8030ca6d5..b565a171656d 100644
--- a/archivers/ecm/Makefile
+++ b/archivers/ecm/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ecm
-# Date created: 9 Aug 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= ecm
PORTVERSION= 1.0
@@ -23,12 +19,16 @@ MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/ecm bin/unecm
PORTDOCS= format.txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
.for f in ${PORTNAME} un${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/archivers/gzrecover/Makefile b/archivers/gzrecover/Makefile
index c0c4e8f7ddca..dc40a500c124 100644
--- a/archivers/gzrecover/Makefile
+++ b/archivers/gzrecover/Makefile
@@ -20,12 +20,16 @@ CFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-build:
${CC} -o ${WRKSRC}/${PORTNAME} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
diff --git a/archivers/mar/Makefile b/archivers/mar/Makefile
index 0573e20864cc..3e4a1f3c674a 100644
--- a/archivers/mar/Makefile
+++ b/archivers/mar/Makefile
@@ -18,6 +18,10 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
MAN1= mar.1
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -E "s#^(CFLAGS\ |CXXFLAGS\ |CC\ |CXX\ )#\1?#" \
${WRKSRC}/src/Makefile
@@ -26,7 +30,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/man1/mar.1 ${MAN1PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}
.endif
diff --git a/archivers/ppmd/Makefile b/archivers/ppmd/Makefile
index d3f7cee386ef..6032693712a7 100644
--- a/archivers/ppmd/Makefile
+++ b/archivers/ppmd/Makefile
@@ -15,11 +15,15 @@ MAN1= ppmd.1
PORTDOCS= read_me.txt
PLIST_FILES= bin/ppmd
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/audio/festalon/Makefile b/audio/festalon/Makefile
index 1fc1a170b45a..1420c9f451c7 100644
--- a/audio/festalon/Makefile
+++ b/audio/festalon/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: festalon
-# Date created: 13 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= festalon
PORTVERSION= 0.5.5
@@ -18,7 +14,7 @@ COMMENT?= A command line player for .nsf and .hes audio files
LICENSE= GPLv2
-LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
+LIB_DEPENDS+= samplerate:${PORTSDIR}/audio/libsamplerate
USE_AUTOTOOLS= libtool
USE_BZIP2= yes
@@ -30,7 +26,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
ONLY_FOR_ARCHS= i386 amd64
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
.if ${PKGNAMEPREFIX} == ""
@@ -42,7 +40,7 @@ PORTDOCS= README
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@@ -52,4 +50,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/gbsplay/Makefile b/audio/gbsplay/Makefile
index 3bbc5ede9a71..ce17e032031a 100644
--- a/audio/gbsplay/Makefile
+++ b/audio/gbsplay/Makefile
@@ -27,7 +27,7 @@ MAN1= gbsplay.1 gbsinfo.1
MAN5= gbsplayrc.5
PORTDOCS= COPYRIGHT HISTORY README
-OPTIONS_DEFINE= NAS
+OPTIONS_DEFINE= NAS DOCS
.endif
@@ -85,7 +85,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/po/${l}.mo ${PREFIX}/share/locale/${l}/LC_MESSAGES/gbsplay.mo
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/audio/malint/Makefile b/audio/malint/Makefile
index 4bd99d599e83..0a76e53df05c 100644
--- a/audio/malint/Makefile
+++ b/audio/malint/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: malint
-# Date created: 20 Jun 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= malint
DISTVERSION= 0.2
@@ -23,7 +19,11 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= README
PLIST_FILES= bin/malint
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
diff --git a/audio/milkytracker/Makefile b/audio/milkytracker/Makefile
index 679245c50593..4e5e132d32ed 100644
--- a/audio/milkytracker/Makefile
+++ b/audio/milkytracker/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: milkytracker
-# Date created: 13 Mar 2008
-# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
-#
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= milkytracker
PORTVERSION= 0.90.85
@@ -18,7 +14,7 @@ COMMENT= A free music creation tool inspired by Fast Tracker 2
LICENSE= GPLv3
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack \
- zzip.13:${PORTSDIR}/devel/zziplib
+ zzip:${PORTSDIR}/devel/zziplib
GNU_CONFIGURE= yes
USE_SDL= sdl
@@ -35,23 +31,25 @@ PLIST_FILES= bin/milkytracker share/pixmaps/milkytracker.ico \
PORTDOCS= FAQ.html MilkyTracker.html ChangeLog.html
ICONS= carton.ico carton.png
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-install:
.for f in ${ICONS}
${INSTALL_DATA} ${WRKSRC}/resources/pictures/${f} \
${LOCALBASE}/share/pixmaps/${f:C/carton/milkytracker/}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "powerpc"
BROKEN= Does not compile on powerpc: fails in assembler
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
index 44c9cd266ae5..f0ff29ff3ebf 100644
--- a/audio/ocp/Makefile
+++ b/audio/ocp/Makefile
@@ -52,7 +52,7 @@ PFILES= configure cpiface/cpianal.c cpiface/cpidots.c \
stuff/poutput-dga.c stuff/poutput-keyboard.c \
stuff/poutput-vcsa.c stuff/poutput-x11.c
-OPTIONS_DEFINE= ADPLUG FLAC MIDI X11 SDL
+OPTIONS_DEFINE= ADPLUG FLAC MIDI X11 SDL DOCS
ADPLUG_DESC= adplug support
MIDI_DESC= timidity support
@@ -109,7 +109,7 @@ PLIST_SUB+= FLAC="@comment "
CONFIGURE_ARGS+= --without-flac
.endif
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
MAKE_ENV+= DOCS="\#"
.endif
diff --git a/audio/openspc/Makefile b/audio/openspc/Makefile
index db896e6150c2..9cbd15a76f45 100644
--- a/audio/openspc/Makefile
+++ b/audio/openspc/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: openspc
-# Date created: 10 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= openspc
PORTVERSION= 0.3.1
@@ -25,7 +21,11 @@ PORTDOCS= README
PLIST_FILES= bin/OpenSPClite include/OpenSPC.h lib/libOpenSPC.so \
lib/libOpenSPC.so.3 lib/libOpenSPC.la lib/libOpenSPC.a
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
diff --git a/audio/sidplayer/Makefile b/audio/sidplayer/Makefile
index 43b690174a8e..75ca4a1169ad 100644
--- a/audio/sidplayer/Makefile
+++ b/audio/sidplayer/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: sidplayer
-# Date created: 27 May 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= sidplayer
PORTVERSION= 4.4
@@ -24,13 +20,17 @@ MAKE_JOBS_SAFE= yes
SDLINCLUDEDIR= SDL
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|SDL/SDL_endian\.h|${SDLINCLUDEDIR}/SDL_endian\.h|' \
${WRKSRC}/src/main_sdl.cpp
do-install:
${INSTALL} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${CP} ${WRKSRC}/PSID\ Demo/* ${DOCSDIR}/
.endif
@@ -38,7 +38,7 @@ do-install:
post-install:
@${ECHO_MSG} "=============================================================="
@${ECHO_MSG} "A huge SID tune archive can be found at http://hvsc.c64.org/"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "You can find a few examples in ${DOCSDIR}"
.endif
@${ECHO_MSG} "=============================================================="
diff --git a/audio/uade/Makefile b/audio/uade/Makefile
index 5e1a98c38249..914262751584 100644
--- a/audio/uade/Makefile
+++ b/audio/uade/Makefile
@@ -32,7 +32,7 @@ PORTDOCS= BUGS PLANS REDUNDANT_REPLAYERS UAE-CREDITS UAE-README \
play_loop_state_diagram.dia play_loop_state_diagram.eps \
play_loop_state_diagram.txt uade.html
-OPTIONS_DEFINE= TEXTSCOPE FUSE XMMS
+OPTIONS_DEFINE= TEXTSCOPE FUSE XMMS DOCS
TEXTSCOPE_DESC= Audio register debug mode
XMMS_DESC= XMMS plugin
@@ -67,7 +67,7 @@ post-patch:
post-install:
@${RM} -rf ${DATADIR}/players/S
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
diff --git a/audio/xmms-sexypsf/Makefile b/audio/xmms-sexypsf/Makefile
index fe2194716f85..ffae65ea8abd 100644
--- a/audio/xmms-sexypsf/Makefile
+++ b/audio/xmms-sexypsf/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xmms-sexypsf
-# Date created: 10 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= xmms-sexypsf
PORTVERSION= 0.4.8
@@ -34,6 +30,10 @@ SOURCES= PsxBios PsxCounters PsxDma Spu PsxHw PsxMem Misc \
PLIST_FILES= lib/xmms/Input/libsexypsf.so
+OPTIONS_DEFINE=DOCS
+
+.include <bsd.port.options.mk>
+
do-build:
.for f in ${SOURCES}
${CC} ${CFLAGS} ${DEFINES} `gtk-config --cflags` -c -o ${WRKSRC}/${f}.o ${WRKSRC}/${f}.c
@@ -44,7 +44,7 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libsexypsf.so ${PREFIX}/lib/xmms/Input/libsexypsf.so
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/Docs/${f} ${DOCSDIR}
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile
index c7901655897d..c8085c90bc39 100644
--- a/audio/xmp/Makefile
+++ b/audio/xmp/Makefile
@@ -21,7 +21,7 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --disable-arts \
MAN1= xmp.1
-OPTIONS_DEFINE= ALSA BMP ESOUND NAS PULSEAUDIO UNZIP XMMS
+OPTIONS_DEFINE= ALSA BMP ESOUND NAS PULSEAUDIO UNZIP XMMS DOCS
BMP_DESC= Beep media player plugin
XMMS_DESC= XMMS plugin
@@ -34,9 +34,7 @@ CFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.options.mk>
-.if !defined(NOPORTDOCS)
PORTDOCS= *
-.endif
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
@@ -112,7 +110,7 @@ post-install: .SILENT
${ETCDIR}/modules.conf; \
fi
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${ECHO_MSG} Installing documentation in ${DOCSDIR}
( cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* \
${DOCSDIR} '! ( -name Makefile -or -name xmp.1 \
diff --git a/comms/remserial/Makefile b/comms/remserial/Makefile
index 60d77d94bba8..81b8642afd3a 100644
--- a/comms/remserial/Makefile
+++ b/comms/remserial/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: remserial
-# Date created: 05 Jan 2011
-# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
-#
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= remserial
PORTVERSION= 1.4
@@ -22,9 +18,13 @@ PORTDOCS= README.txt
CFLAGS+= -DOSVERSION=\"${OSVERSION}\"
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/devel/bunny/Makefile b/devel/bunny/Makefile
index 27c2e7e79eaf..904d022f5a7e 100644
--- a/devel/bunny/Makefile
+++ b/devel/bunny/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: bunny
-# Date created: 28 Jan 2008
-# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
-#
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= bunny
PORTVERSION= 0.93
@@ -26,6 +22,10 @@ PLIST_FILES= bin/bunny-trace bin/bunny-gcc bin/bunny-flow bin/bunny-exec \
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Fails to compile: invokes i386 asm
+OPTIONS_DEFINE=DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e '/^CFLAGS/d' ${WRKSRC}/${MAKEFILE}
@@ -34,7 +34,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${f:C/bin\///} ${PREFIX}/bin
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile
index 6195b4847512..ee2e7059064d 100644
--- a/devel/ccache/Makefile
+++ b/devel/ccache/Makefile
@@ -21,7 +21,7 @@ MAN1= ccache.1
PORTDOCS= ccache-howto-freebsd.txt MANUAL.html
-OPTIONS_DEFINE= CLANGLINK LLVMLINK STATIC
+OPTIONS_DEFINE= CLANGLINK LLVMLINK STATIC DOCS
CLANGLINK_DESC= Create clang compiler links if clang is installed
LLVMLINK_DESC= Create llvm compiler links if llvm is installed
@@ -75,7 +75,7 @@ do-install:
${PREFIX}/bin/ccache-update-links
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.tar ${DATADIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/MANUAL.html ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${HOWTO} ${DOCSDIR}
diff --git a/devel/cvsspam/Makefile b/devel/cvsspam/Makefile
index 096aaa1440af..79d4264787ea 100644
--- a/devel/cvsspam/Makefile
+++ b/devel/cvsspam/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: cvsspam
-# Date created: 16 Sep 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= cvsspam
PORTVERSION= 0.2.12
@@ -21,6 +17,10 @@ NO_BUILD= yes
PORTDOCS= COPYING CREDITS TODO cvsspam-doc.html cvsspam-doc.pdf
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
.for f in collect_diffs.rb cvsspam.rb record_lastdir.rb
@${REINPLACE_CMD} -e 's|/usr/bin/ruby|${RUBY}|' \
@@ -39,7 +39,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/cvsspam.conf ${PREFIX}/etc/cvsspam.conf
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/dns/dnswall/Makefile b/dns/dnswall/Makefile
index 703028b86e13..e580518ae14d 100644
--- a/dns/dnswall/Makefile
+++ b/dns/dnswall/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: dnswall
-# Date created: 28 Jan 2008
-# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
-#
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= dnswall
PORTVERSION= 0.1.4
@@ -28,11 +24,15 @@ PLIST_FILES= bin/dnswall
AUTOTOOLSFILES= aclocal.m4
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|1.10|%%AUTOMAKE_APIVER%%|g' \
-e 's|2.61|%%AUTOCONF_VERSION%%|g' \
${WRKSRC}/aclocal.m4
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/^dist_doc_DATA/d' ${WRKSRC}/Makefile.am
.endif
diff --git a/ftp/weex/Makefile b/ftp/weex/Makefile
index 77157613c465..dd0696225a12 100644
--- a/ftp/weex/Makefile
+++ b/ftp/weex/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: weex
-# Date created: 8 Sep 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= weex
PORTVERSION= 2.6.1.5
@@ -21,6 +17,10 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= ChangeLog README
MAN1= weex.1
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|^\(SUBDIRS.*\)debian|\1|' \
${WRKSRC}/Makefile.in
@@ -29,7 +29,7 @@ post-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/sample.weexrc ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
diff --git a/graphics/fractorama/Makefile b/graphics/fractorama/Makefile
index 32aee242571a..8acef739d9fc 100644
--- a/graphics/fractorama/Makefile
+++ b/graphics/fractorama/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: fractorama
-# Date created: Apr 15, 2001
-# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
-#
+# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= fractorama
PORTVERSION= 1.6.7
@@ -32,6 +28,10 @@ ALL_TARGET= release
CXXFLAGS+= -I${LOCALBASE}/include
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-extract:
.for e in cpp h
@${CP} ${WRKSRC}/lib/tiff/TiffWriter.${e} ${WRKSRC}
@@ -56,7 +56,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../fractorama.exe ${PREFIX}/bin/fractorama
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/../doc && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
diff --git a/graphics/metacam/Makefile b/graphics/metacam/Makefile
index 9753c97bb925..2dd378cea1b3 100644
--- a/graphics/metacam/Makefile
+++ b/graphics/metacam/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: metacam
-# Date created: 2 Sep 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= metacam
PORTVERSION= 1.2
@@ -25,11 +21,15 @@ MAN1= metacam.1
ALL_TARGET= ${PORTNAME}
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/mail/isync/Makefile b/mail/isync/Makefile
index 19c7372ef49e..90f410081e42 100644
--- a/mail/isync/Makefile
+++ b/mail/isync/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: isync
-# Date created: 2000-12-23
-# Whom: eivind
-#
+# Created by: eivind
# $FreeBSD$
-#
PORTNAME= isync
PORTVERSION= 1.0.5
@@ -27,11 +23,15 @@ PLIST_FILES= bin/get-cert bin/isync bin/mbsync bin/mdconvert
CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${OPENSSLINC}
LDFLAGS+= -L${BDB_LIB_DIR} -L${OPENSSLLIB} -lssl -lcrypto
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|: install-docDATA|:|g' ${WRKSRC}/Makefile.in
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
diff --git a/mail/sylpheed/Makefile b/mail/sylpheed/Makefile
index 6922d338dd93..fc8d16fd0dcf 100644
--- a/mail/sylpheed/Makefile
+++ b/mail/sylpheed/Makefile
@@ -31,7 +31,7 @@ CONFIGURE_ARGS= --enable-ipv6 \
CONFLICTS= sylpheed-1.[0-8]* sylpheed-2.[0-9]* sylpheed-gtk2-[0-9]*
-OPTIONS_DEFINE= GPGME COMPFACE JPILOT LDAP SSL GTKSPELL ONIGURUMA
+OPTIONS_DEFINE= GPGME COMPFACE JPILOT LDAP SSL GTKSPELL ONIGURUMA DOCS
GPGME_DESC= GnuPG support using GPGME
COMPFACE_DESC= X-Face support
@@ -114,7 +114,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|^\(DEFS.*\.\.\)$$|\1 -I../libsylph|' \
${WRKSRC}/src/Makefile.in
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e 's|^SUBDIRS = ac libsylph src plugin po manual faq nsis$$|SUBDIRS = ac libsylph src plugin po nsis|g' \
${WRKSRC}/Makefile.in
.else
@@ -126,7 +126,7 @@ post-patch:
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ChangeLog INSTALL README TODO
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
diff --git a/math/mathomatic/Makefile b/math/mathomatic/Makefile
index d125566acd1f..08d1b2798e97 100644
--- a/math/mathomatic/Makefile
+++ b/math/mathomatic/Makefile
@@ -24,6 +24,10 @@ MAN1= mathomatic.1
MAKE_ARGS= READLINE=1
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
@@ -34,7 +38,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/icons/mathomatic.desktop \
${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/icons/mathomatic.png ${PREFIX}/share/pixmaps
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
.for d in m4 tests
${MKDIR} ${DOCSDIR}/${d}
${INSTALL_DATA} ${WRKSRC}/${d}/* ${DOCSDIR}/${d}
diff --git a/misc/countrycodes/Makefile b/misc/countrycodes/Makefile
index 743e272a6c34..1bc3bb76fe05 100644
--- a/misc/countrycodes/Makefile
+++ b/misc/countrycodes/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: countrycodes
-# Date created: 6 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= countrycodes
PORTVERSION= 1.0.5
@@ -27,8 +23,12 @@ MAN1= iso3166.1
MAKE_ARGS= prefix="${PREFIX}" CC="${CC}" CCOPTS="${CFLAGS}" WARNINGS=""
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/misc/gopod/Makefile b/misc/gopod/Makefile
index 3e4003c4cc17..08e6bd40bf7b 100644
--- a/misc/gopod/Makefile
+++ b/misc/gopod/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gopod
-# Date created: 4 April 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= gopod
PORTVERSION= 1.4
@@ -19,6 +15,7 @@ COMMENT?= Utility to cap/uncap an iPod
HAS_CONFIGURE= yes
USE_GMAKE= yes
+USE_DOS2UNIX= yes
MAKE_JOBS_SAFE= yes
MAKE_ARGS+= CC="${CC}"
@@ -32,9 +29,9 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/console-version
PORTDOCS= README_EN README_FR
-post-extract:
- @${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|h)" -print0 | \
- ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-patch:
.if ${PKGNAMEPREFIX} == "gtk-"
@@ -59,7 +56,7 @@ do-install:
${PREFIX}/bin/${UNIQUENAME}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/misc/ree/Makefile b/misc/ree/Makefile
index 131e26dae3ac..b5cab5ccf45f 100644
--- a/misc/ree/Makefile
+++ b/misc/ree/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ree
-# Date created: 7 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= ree
PORTVERSION= 1.3
@@ -21,6 +17,10 @@ MAKE_JOBS_SAFE= yes
ONLY_FOR_ARCHS= i386 amd64
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-build:
.for f in ${PORTNAME} fontdump
${CC} ${CFLAGS} ${WRKSRC}/${f}.c -o ${WRKSRC}/${f}
@@ -30,7 +30,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/rom-${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/fontdump ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
.endif
diff --git a/net-im/bsflite/Makefile b/net-im/bsflite/Makefile
index 49e9674573f2..b4cd765b4d16 100644
--- a/net-im/bsflite/Makefile
+++ b/net-im/bsflite/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: bsflite
-# Date created: 3 June 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= bsflite
DISTVERSION= 0.85
@@ -19,6 +15,10 @@ PLIST_FILES= bin/bsflite %%EXAMPLESDIR%%/config-example
PLIST_DIRS= %%EXAMPLESDIR%%
PORTDOCS= COPYING ChangeLog README
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -E '/^(CC|CFLAGS)/d' \
${WRKSRC}/${MAKEFILE} \
@@ -29,7 +29,7 @@ do-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/config-example ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/net/corkscrew/Makefile b/net/corkscrew/Makefile
index d1e732941a26..fbd8c024e43e 100644
--- a/net/corkscrew/Makefile
+++ b/net/corkscrew/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: corkscrew
-# Date created: Apr 12, 2001
-# Whom: Mark Pulford <mark@kyne.com.au>
-#
+# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
-#
PORTNAME= corkscrew
PORTVERSION= 2.0
@@ -19,8 +15,12 @@ LICENSE= GPLv2
GNU_CONFIGURE= yes
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in NEWS README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
diff --git a/net/rsync/Makefile b/net/rsync/Makefile
index 3e31fd5b2b31..523f2954f02c 100644
--- a/net/rsync/Makefile
+++ b/net/rsync/Makefile
@@ -27,14 +27,12 @@ MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --disable-debug --enable-ipv6 \
--with-rsyncd-conf=${PREFIX}/etc/rsyncd.conf
-.if !defined(NOPORTDOCS)
PORTDOCS= NEWS README csprotocol.txt tech_report.tex
-.endif
MAN1= rsync.1
MAN5= rsyncd.conf.5
-OPTIONS_DEFINE= POPT_PORT SSH FLAGS ATIMES ACL ICONV TIMELIMIT RENAMED
+OPTIONS_DEFINE= POPT_PORT SSH FLAGS ATIMES ACL ICONV TIMELIMIT RENAMED DOCS
POPT_PORT_DESC= Use popt from devel/popt instead of bundled one
SSH_DESC= Use SSH instead of RSH
FLAGS_DESC= File system flags support patch, adds --fileflags
@@ -132,7 +130,7 @@ post-install:
@[ -f ${PREFIX}/etc/rsyncd.conf ] || \
${CP} ${PREFIX}/etc/rsyncd.conf.sample \
${PREFIX}/etc/rsyncd.conf
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
diff --git a/net/socat/Makefile b/net/socat/Makefile
index cdb249b4ec44..92952481b753 100644
--- a/net/socat/Makefile
+++ b/net/socat/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: socat
-# Date created: May 14, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= socat
PORTVERSION= 1.7.2.1
@@ -32,21 +28,23 @@ PORTDOCS= EXAMPLES README SECURITY FAQ
CFLAGS+= -Wno-unused-comparison
.endif
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
.for f in filan procan socat
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
${INSTALL_SCRIPT} ${FILESDIR}/socat_wrapper ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "arm"
BROKEN= Does not configure on arm
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/news/brag/Makefile b/news/brag/Makefile
index c2475f2f0815..e343a0267a5c 100644
--- a/news/brag/Makefile
+++ b/news/brag/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: brag
-# Date created: 19 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= brag
PORTVERSION= 1.4.1
@@ -25,6 +21,10 @@ PORTDOCS= CHANGES README
TCLSH= tclsh8.4
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|^\(exec\ \)tclsh|\1${TCLSH}|' \
${WRKSRC}/${PORTNAME}
@@ -33,7 +33,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/security/bcrypt/Makefile b/security/bcrypt/Makefile
index 0892afe9e10b..7ea01bb34db6 100644
--- a/security/bcrypt/Makefile
+++ b/security/bcrypt/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: bcrypt
-# Date created: 11 Aug 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= bcrypt
PORTVERSION= 1.1
@@ -24,6 +20,10 @@ PORTDOCS= README
MAN1= bcrypt.1
PLIST_FILES= bin/bcrypt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -E 's/^(CC|CFLAGS|LDFLAGS|PREFIX)\ /\1?/' \
${WRKSRC}/Makefile
@@ -32,7 +32,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/security/bsdsfv/Makefile b/security/bsdsfv/Makefile
index 3857d5537495..945458046ef1 100644
--- a/security/bsdsfv/Makefile
+++ b/security/bsdsfv/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: bsdsfv
-# Date created: 26 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= bsdsfv
PORTVERSION= 1.18
@@ -19,11 +15,15 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/bsdsfv
PORTDOCS= MANUAL
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|^\(INSTALL_PREFIX =\).*$$|\1 ${PREFIX}|g' \
${WRKSRC}/Makefile
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
diff --git a/security/cksfv/Makefile b/security/cksfv/Makefile
index 0172f27256e1..d7b30992e501 100644
--- a/security/cksfv/Makefile
+++ b/security/cksfv/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: cksfv
-# Date created: 18 October 2000
-# Whom: Johann Visagie <johann@egenetics.com>
-#
+# Created by: Johann Visagie <johann@egenetics.com>
# $FreeBSD$
-#
PORTNAME= cksfv
PORTVERSION= 1.3.14
@@ -24,6 +20,10 @@ MAN1= cksfv.1
PLIST_FILES= bin/cksfv
PORTDOCS= README ChangeLog
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|^\(CC\)=|\1?=|' ${WRKSRC}/src/Makefile.in
@@ -31,7 +31,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/security/idea/Makefile b/security/idea/Makefile
index 9b4a3a3977fd..32c58f8aa4a8 100644
--- a/security/idea/Makefile
+++ b/security/idea/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: idea
-# Date created: 4 September 2004
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= idea
PORTVERSION= 1.2
@@ -30,6 +26,10 @@ MANCOMPRESSED= no
IGNORE= you chose not to use idea related code
.endif
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-build:
${CC} ${WRKSRC}/idea.c ${WRKSRC}/idea_cmd.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME}
@@ -39,7 +39,7 @@ do-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/Examples ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/byte_ord.ps ${WRKSRC}/idea_cmd.txt ${DOCSDIR}
.endif
diff --git a/security/pkcrack/Makefile b/security/pkcrack/Makefile
index 02fc85e3fdfb..e63598a46feb 100644
--- a/security/pkcrack/Makefile
+++ b/security/pkcrack/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: pkcrack
-# Date created: 27 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= pkcrack
PORTVERSION= 1.2.2
@@ -21,6 +17,10 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
PLIST_FILES= bin/pkextract bin/pkfindkey bin/pkmakekey bin/pkcrack bin/zipdecrypt
PORTDOCS= README pkzip.ps.gz
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
.for f in pkcrack zipdecrypt
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
@@ -30,7 +30,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/pk${f}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${f} ${DOCSDIR}
diff --git a/security/pure-sfv/Makefile b/security/pure-sfv/Makefile
index 2e663583864b..f6949d591c6a 100644
--- a/security/pure-sfv/Makefile
+++ b/security/pure-sfv/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: pure-sfv
-# Date created: 26 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= pure-sfv
PORTVERSION= 0.3
@@ -24,6 +20,10 @@ WRKSRC= ${WRKDIR}
PLIST_FILES= bin/pure-sfv
PORTDOCS= ReadMe.txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -E 's/^(CFLAGS|CC)[ +=]*/\1?=/' \
${WRKSRC}/Makefile
@@ -31,7 +31,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/security/vpnc/Makefile b/security/vpnc/Makefile
index 35963ad2a0d3..dc7b58d07d6b 100644
--- a/security/vpnc/Makefile
+++ b/security/vpnc/Makefile
@@ -26,7 +26,7 @@ MAN8= vpnc.8
MAKE_ENV+= BINS="${EXTRABUILDS}"
-OPTIONS_DEFINE= DECRYPT SSL CISCOVERSION
+OPTIONS_DEFINE= DECRYPT SSL CISCOVERSION DOCS
DECRYPT_DESC= cisco-decypt password decrypt utility
CISCOVERSION_DESC= Mask linux presentation string
@@ -72,7 +72,7 @@ do-install:
.endif
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/sysutils/cmospwd/Makefile b/sysutils/cmospwd/Makefile
index 35cfb7596e07..6d3671aef33b 100644
--- a/sysutils/cmospwd/Makefile
+++ b/sysutils/cmospwd/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: cmospwd
-# Date created: 28 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= cmospwd
PORTVERSION= 5.1
@@ -24,8 +20,12 @@ PORTDOCS= cmospwd.txt
ONLY_FOR_ARCHS= i386 amd64
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e "s/`${ECHO_CMD} -e '\r'`*$$//" \
${WRKSRC}/cmospwd.txt
.endif
@@ -36,7 +36,7 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/sysutils/disktype/Makefile b/sysutils/disktype/Makefile
index 56641477ccc1..012857a481f2 100644
--- a/sysutils/disktype/Makefile
+++ b/sysutils/disktype/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: disktype
-# Date created: 15 June 2003
-# Whom: Adam Weinberger <adamw@FreeBSD.org>
-#
+# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= disktype
PORTVERSION= 9
@@ -19,6 +15,10 @@ MAKE_JOBS_SAFE= yes
PLIST_FILES= bin/disktype
PORTDOCS= README
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
.for var in CFLAGS LDFLAGS CC
@${REINPLACE_CMD} -e 's|^\(${var}\)[ ]*=|\1 ?=|' \
@@ -27,7 +27,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
diff --git a/sysutils/dvdbackup/Makefile b/sysutils/dvdbackup/Makefile
index 8c0915d04c10..b4a8a1dfed6b 100644
--- a/sysutils/dvdbackup/Makefile
+++ b/sysutils/dvdbackup/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: dvdbackup
-# Date created: 2004-09-24
-# Whom: Michael Johnson <ahze@FreeBSD.org>
-#
+# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= dvdbackup
PORTVERSION= 0.4.2
@@ -28,7 +24,11 @@ PORTDOCS= NEWS README
DEFAULT_DVD_DEVICE?= /dev/cd0
-.if !defined(WITHOUT_NLS)
+OPTIONS_DEFINE= DOCS NLS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
@@ -43,7 +43,7 @@ post-patch:
${WRKSRC}/README ${WRKSRC}/man/dvdbackup.1
pre-configure:
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} 's|^install-data-am: .*|install-data-am: |' \
${WRKSRC}/Makefile.in
.endif
diff --git a/sysutils/fatback/Makefile b/sysutils/fatback/Makefile
index f8e148f344bb..daf17d52a908 100644
--- a/sysutils/fatback/Makefile
+++ b/sysutils/fatback/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: fatback
-# Date created: 18 Jun 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= fatback
PORTVERSION= 1.3
@@ -23,12 +19,16 @@ EXTRACT_AFTER_ARGS+= |${TAR} -xpf - \
--exclude 'getopt*' \
--exclude 'set[yl].c'
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/fatback-manual.info ${PREFIX}/${INFO_PATH}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in fatback-manual.texi texinfo.tex ChangeLog AUTHORS
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
diff --git a/sysutils/highlnk/Makefile b/sysutils/highlnk/Makefile
index 1ffbeb97b620..2a5af870c234 100644
--- a/sysutils/highlnk/Makefile
+++ b/sysutils/highlnk/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: highlnk
-# Date created: 20 Jun 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= highlnk
DISTVERSION= 0.2
@@ -22,6 +18,10 @@ PLIST_FILES= bin/highlnk
PORTDOCS= README
MAN1= highlnk.1
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|linux/limits.h|sys/syslimits.h|' \
${WRKSRC}/finder.c \
@@ -33,7 +33,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
diff --git a/sysutils/hploscripts/Makefile b/sysutils/hploscripts/Makefile
index 666e1d5fbdae..f55713534f11 100644
--- a/sysutils/hploscripts/Makefile
+++ b/sysutils/hploscripts/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hploscripts
-# Date created: 11 Feb 2010
-# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
-#
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= hploscripts
PORTVERSION= 3.0
@@ -22,6 +18,10 @@ NO_BUILD= yes
PORTDOCS= iLO_perl_xml.pdf linux-LOsamplescripts.txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e '1s|.*|#!${PERL}|' ${WRKSRC}/locfg.pl
@@ -30,7 +30,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/*.xml ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/hponcfg_reformat.xsl ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/locfg.pl ${PREFIX}/bin/locfg
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/iLO_perl_xml.pdf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/linux-LOsamplescripts3.00.0-2.txt ${DOCSDIR}/linux-LOsamplescripts.txt
diff --git a/sysutils/magicrescue/Makefile b/sysutils/magicrescue/Makefile
index 0b80ab05e043..9ed55469cff1 100644
--- a/sysutils/magicrescue/Makefile
+++ b/sysutils/magicrescue/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: magicrescue
-# Date created: 18 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= magicrescue
PORTVERSION= 1.1.9
@@ -23,11 +19,15 @@ MAKE_JOBS_SAFE= yes
MAN1= dupemap.1 magicrescue.1 magicsort.1
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|^#!/usr/bin/env.*|#!${PERL}|' \
${WRKSRC}/magicsort
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
.for f in NEWS README
diff --git a/sysutils/rej/Makefile b/sysutils/rej/Makefile
index aebebb1f2b21..dd1bce2f4d4b 100644
--- a/sysutils/rej/Makefile
+++ b/sysutils/rej/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: rej
-# Date created: 16 Sep 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= rej
PORTVERSION= 0.16
@@ -19,7 +15,9 @@ NO_BUILD= yes
PORTDOCS= CHANGELOG README vimrc
PLIST_FILES= bin/rej bin/rej-qp bin/rej-mp
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-patch:
.for f in ${PORTNAME} qp mp
@@ -35,7 +33,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin/${PORTNAME}-${f}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
@@ -45,4 +43,4 @@ do-install:
run-test: patch
@cd ${WRKSRC}; ${SH} runtests.sh
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/tmpreaper/Makefile b/sysutils/tmpreaper/Makefile
index 95eb672817e7..6fc0d8eec386 100644
--- a/sysutils/tmpreaper/Makefile
+++ b/sysutils/tmpreaper/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: tmpreaper
-# Date created: 21 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= tmpreaper
PORTVERSION= 1.6.13
@@ -23,7 +19,11 @@ PLIST_FILES= sbin/tmpreaper
PORTDOCS= README
MAN8= tmpreaper.8
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
diff --git a/sysutils/watchfolder/Makefile b/sysutils/watchfolder/Makefile
index 9e7a60066744..613585d9bc6e 100644
--- a/sysutils/watchfolder/Makefile
+++ b/sysutils/watchfolder/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: watchfolder
-# Date created: 21 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= watchfolder
PORTVERSION= 0.3.3
@@ -21,6 +17,10 @@ MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/watchd-${PORTVERSION}
USE_RC_SUBR= watchd
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|gcc $$(OPT)|${CC} ${CFLAGS}|' \
${WRKSRC}/Makefile
@@ -32,7 +32,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/watchd.conf ${PREFIX}/etc/watchd.conf.sample
[ -f ${PREFIX}/etc/watchd.conf ] || \
${INSTALL_DATA} ${WRKSRC}/watchd.conf ${PREFIX}/etc
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/watchfolder.pdf ${DOCSDIR}
.endif
diff --git a/sysutils/zeroer/Makefile b/sysutils/zeroer/Makefile
index 141346e46b17..e271f1c10169 100644
--- a/sysutils/zeroer/Makefile
+++ b/sysutils/zeroer/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: zeroer
-# Date created: 2 Jan 2006
-# Whom: Emanuel Haupt <ehaupt@FreeBSD.org>
-#
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= zeroer
PORTVERSION= 0.1
@@ -25,6 +21,10 @@ PORTDOCS= README
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lpopt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-build:
${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.c \
-o ${WRKSRC}/${PORTNAME}
@@ -33,7 +33,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/textproc/fldiff/Makefile b/textproc/fldiff/Makefile
index c0f29e2a50e2..a0ad3acfba31 100644
--- a/textproc/fldiff/Makefile
+++ b/textproc/fldiff/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: fldiff
-# Date created: 13 Sep 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= fldiff
PORTVERSION= 1.1
@@ -18,7 +14,7 @@ COMMENT= A graphical diff program using FLTK
LICENSE= GPLv2
-LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
+LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
@@ -28,6 +24,10 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN1= fldiff.1
PORTDOCS= index.html fldiff.jpg
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|@OPTIM@||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|=Development|=Application;Development;|' \
@@ -40,7 +40,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/fldiff.desktop ${PREFIX}/share/applications
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/fldiff.png ${PREFIX}/share/pixmaps
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
diff --git a/x11/gtk-launch/Makefile b/x11/gtk-launch/Makefile
index 96f3f2a502e9..0c45aae4eee9 100644
--- a/x11/gtk-launch/Makefile
+++ b/x11/gtk-launch/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gtk-launch
-# Date created: 22 Jul 2005
-# Whom: Emanuel Haupt <ehaupt@critical.ch>
-#
+# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
-#
PORTNAME= gtk-launch
DISTVERSION= 1.1b
@@ -23,6 +19,10 @@ PORTDOCS= INSTALL
PORTSCOUT= skipv:1.1
+OPTIONS_DEFINE=DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
${ECHO_CMD} >> ${WRKSRC}/launch.c
@@ -33,7 +33,7 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif