aboutsummaryrefslogtreecommitdiffstats
path: root/misc
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 /misc
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
Diffstat (limited to 'misc')
-rw-r--r--misc/countrycodes/Makefile12
-rw-r--r--misc/gopod/Makefile15
-rw-r--r--misc/ree/Makefile12
3 files changed, 18 insertions, 21 deletions
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