aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accessibility/yasr/Makefile6
-rw-r--r--archivers/lha-ac/Makefile4
-rw-r--r--audio/wxguitar/Makefile10
-rw-r--r--benchmarks/gtkperf/Makefile10
-rw-r--r--cad/geda-gattrib/Makefile10
-rw-r--r--cad/geda-gschem/Makefile10
-rw-r--r--cad/kicad/Makefile14
-rw-r--r--cad/libgeda/Makefile4
-rw-r--r--cad/repsnapper/Makefile12
-rw-r--r--chinese/opencc/Makefile10
-rw-r--r--comms/gpredict/Makefile15
-rw-r--r--comms/gsmlib/Makefile17
-rw-r--r--comms/xlog/Makefile16
-rw-r--r--deskutils/bmp-docklet/Makefile16
-rw-r--r--deskutils/genius/Makefile18
-rw-r--r--deskutils/gimmie/Makefile10
-rw-r--r--deskutils/gxmessage/Makefile10
-rw-r--r--deskutils/kompose/Makefile16
-rw-r--r--deskutils/tpb/Makefile6
-rw-r--r--deskutils/vym/Makefile10
-rw-r--r--deskutils/x-tile/Makefile18
-rw-r--r--devel/gmake/Makefile11
-rw-r--r--devel/gnucflow/Makefile9
-rw-r--r--devel/idutils/Makefile16
-rw-r--r--devel/m17n-db/Makefile10
-rw-r--r--devel/motor/Makefile13
-rw-r--r--devel/obby/Makefile4
-rw-r--r--devel/quilt/Makefile15
-rw-r--r--devel/thunar-vcs-plugin/Makefile18
-rw-r--r--dns/libidn/Makefile8
-rw-r--r--dns/mydns/Makefile16
-rw-r--r--finance/gnofin/Makefile10
-rw-r--r--finance/grisbi/Makefile18
-rw-r--r--games/fgrun/Makefile18
-rw-r--r--games/ggz-client-libs/Makefile17
-rw-r--r--games/ggz-gtk-client/Makefile17
-rw-r--r--games/ggz-gtk-games/Makefile17
-rw-r--r--games/ggz-txt-client/Makefile17
-rw-r--r--games/glchess/Makefile18
-rw-r--r--games/lincity/Makefile14
-rw-r--r--games/lpairs/Makefile10
-rw-r--r--games/neverball/Makefile8
-rw-r--r--games/springlobby/Makefile20
-rw-r--r--games/typespeed/Makefile18
-rw-r--r--games/zaz/Makefile12
-rw-r--r--graphics/albumshaper/Makefile8
-rw-r--r--graphics/exif/Makefile10
-rw-r--r--graphics/gimp-focusblur-plugin/Makefile10
-rw-r--r--graphics/gpicview/Makefile4
-rw-r--r--graphics/gqview/Makefile18
-rw-r--r--graphics/gscan2pdf/Makefile10
-rw-r--r--graphics/gtkdps/Makefile4
-rw-r--r--graphics/libgphoto2/Makefile12
-rw-r--r--graphics/pornview/Makefile10
54 files changed, 306 insertions, 356 deletions
diff --git a/accessibility/yasr/Makefile b/accessibility/yasr/Makefile
index f671ae670c42..89a5852c22a2 100644
--- a/accessibility/yasr/Makefile
+++ b/accessibility/yasr/Makefile
@@ -19,7 +19,9 @@ PORTDOCS= AUTHORS BUGS CREDITS ChangeLog NEWS README TODO \
README-br README-de README-es README-fr README-ru
SUB_FILES= pkg-message
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
USES+= gettext
@@ -44,7 +46,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/csh|' ${WRKSRC}/yasr.conf
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
diff --git a/archivers/lha-ac/Makefile b/archivers/lha-ac/Makefile
index 64bd860973c2..2f8b9a9beb5b 100644
--- a/archivers/lha-ac/Makefile
+++ b/archivers/lha-ac/Makefile
@@ -23,7 +23,9 @@ GNU_CONFIGURE= yes
RESTRICTED= no permission to redistribute
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-multibyte-filename
.else
CONFIGURE_ARGS+= --enable-multibyte-filename=auto
diff --git a/audio/wxguitar/Makefile b/audio/wxguitar/Makefile
index 8438c472741d..2f93b045895f 100644
--- a/audio/wxguitar/Makefile
+++ b/audio/wxguitar/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: wxguitar
-# Date created: 19 Aug 2009
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= wxguitar
PORTVERSION= 1.01
@@ -27,7 +23,9 @@ MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/wxGuitar
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/benchmarks/gtkperf/Makefile b/benchmarks/gtkperf/Makefile
index 368d5b9d4d51..5f79a44265c9 100644
--- a/benchmarks/gtkperf/Makefile
+++ b/benchmarks/gtkperf/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: gtkperf
-# Date created: 2006-04-22
-# Whom: Andreas Kohn <andreas@syndrom23.de>
-#
+# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$
-#
PORTNAME= gtkperf
PORTVERSION= 0.40
@@ -20,7 +16,9 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gtk20 gnomeprefix
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext iconv
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/cad/geda-gattrib/Makefile b/cad/geda-gattrib/Makefile
index d88b63969d50..14e969cf6b8f 100644
--- a/cad/geda-gattrib/Makefile
+++ b/cad/geda-gattrib/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: geda-gattrib
-# Date created: 26 June 2006
-# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
-#
+# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$
-#
PORTNAME= gattrib
PORTVERSION= 1.4.3
@@ -33,7 +29,9 @@ CONFIGURE_ARGS= --with-docdir="${DOCSDIR}" --disable-update-mime-database \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/cad/geda-gschem/Makefile b/cad/geda-gschem/Makefile
index dcce41c40c69..c951ca46c11c 100644
--- a/cad/geda-gschem/Makefile
+++ b/cad/geda-gschem/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: geda
-# Date created: 4 April 2001
-# Whom: bruno schwander <bruno@tinkerbox.org>
-#
+# Created by: bruno schwander <bruno@tinkerbox.org>
# $FreeBSD$
-#
PORTNAME= gschem
PORTVERSION= 1.4.3
@@ -36,7 +32,9 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN1= gschem.1
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/cad/kicad/Makefile b/cad/kicad/Makefile
index aec7adb6bfb3..96e5e097c30b 100644
--- a/cad/kicad/Makefile
+++ b/cad/kicad/Makefile
@@ -38,11 +38,13 @@ WRKSRC= ${WRKDIR}/${SFNAME}
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
-.if defined(WITHOUT_NLS)
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
.endif
SFNAME= ${PORTNAME}-sources-${DISTVERSION}
@@ -59,7 +61,7 @@ RUN_DEPENDS+= konqueror:${PORTSDIR}/x11/kdebase3
RUN_DEPENDS+= xpdf:${PORTSDIR}/graphics/xpdf
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-extract:
cd ${WRKSRC} && ${TAR} -xf ${DISTDIR}/${DFNAME}.tgz
.endif
@@ -72,14 +74,14 @@ pre-configure:
${WRKSRC}/common/gestfich.cpp
post-install:
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${DATADIR}/internat
(cd ${WRKSRC}/internat && \
${COPYTREE_SHARE} \* ${DATADIR}/internat)
${RM} ${DATADIR}/internat/CMakeLists.txt
${FIND} ${DATADIR}/internat -name kicad.po -delete
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
@${ECHO_MSG}
diff --git a/cad/libgeda/Makefile b/cad/libgeda/Makefile
index eb597f48c8e8..7d539f2d8f5b 100644
--- a/cad/libgeda/Makefile
+++ b/cad/libgeda/Makefile
@@ -25,7 +25,9 @@ CONFIGURE_ARGS= --disable-update-mime-database \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/cad/repsnapper/Makefile b/cad/repsnapper/Makefile
index 5199d489ab87..bb00b4c319d8 100644
--- a/cad/repsnapper/Makefile
+++ b/cad/repsnapper/Makefile
@@ -45,7 +45,9 @@ USE_GMAKE= yes
USE_XORG= ice pixman sm x11 xau xcomposite xcursor xdamage xdmcp xext \
xfixes xi xinerama xmu xrandr xrender xt xxf86vm
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -75,10 +77,4 @@ post-install:
${PREFIX}/etc/xdg/repsnapper/repsnapper.conf ; \
fi
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 800000
-IGNORE= needs acosl(3) function to compile
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/chinese/opencc/Makefile b/chinese/opencc/Makefile
index 54fe20d9485f..a2c2ede97d0e 100644
--- a/chinese/opencc/Makefile
+++ b/chinese/opencc/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: opencc
-# Date created: 28 Nov 2011
-# Whom: Zhihao Yuan <lichray@gmail.com>
-#
+# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
-#
PORTNAME= opencc
PORTVERSION= 0.3.0
@@ -20,7 +16,9 @@ MAN1= opencc.1 opencc_dict.1
USES= cmake
USE_LDCONFIG= yes
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CMAKE_ARGS+= -DENABLE_GETTEXT=On
PLIST_SUB+= NLS=""
diff --git a/comms/gpredict/Makefile b/comms/gpredict/Makefile
index be804c71b11c..a9a88545fcae 100644
--- a/comms/gpredict/Makefile
+++ b/comms/gpredict/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: gpredict
-# Date created: 2004-01-22
-# Whom: Matt Dawson <matt@mattsnetwork.co.uk>
-#
+# Created by: Matt Dawson <matt@mattsnetwork.co.uk>
# $FreeBSD$
PORTNAME= gpredict
@@ -27,12 +24,14 @@ MAN1= gpredict.1
LICENSE= GPLv2
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-USES= gettext
-PLIST_SUB+= NLS=""
.endif
DESKTOP_ENTRIES="GPREDICT" \
diff --git a/comms/gsmlib/Makefile b/comms/gsmlib/Makefile
index 2193ea39cfb1..7ab118486d2e 100644
--- a/comms/gsmlib/Makefile
+++ b/comms/gsmlib/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: gsmlib
-# Date created: Apr 24, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= gsmlib
PORTVERSION= 1.10
@@ -31,12 +26,14 @@ CPPFLAGS+= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \
${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-USES= gettext
-PLIST_SUB+= NLS=""
.endif
post-patch:
diff --git a/comms/xlog/Makefile b/comms/xlog/Makefile
index d16bb741b38e..2c64a7e7c333 100644
--- a/comms/xlog/Makefile
+++ b/comms/xlog/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xlog
-# Date created: 2002-11-05
-# Whom: Patrick Gardella <patrick@FreeBSD.org>
-#
+# Created by: Patrick Gardella <patrick@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= xlog
PORTVERSION= 2.0.5
@@ -28,17 +24,19 @@ LIB_DEPENDS+= hamlib:${PORTSDIR}/comms/hamlib
MAN1= xlog.1
LICENSE= GPLv3
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-PLIST_SUB+= NLS=""
.endif
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-D.*_DISABLE_DEPRECATED||g'
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|desktop doc dxcc|desktop dxcc|g' \
${WRKSRC}/data/Makefile.in
@${REINPLACE_CMD} -e \
diff --git a/deskutils/bmp-docklet/Makefile b/deskutils/bmp-docklet/Makefile
index 567d89b2564c..d4b77542c144 100644
--- a/deskutils/bmp-docklet/Makefile
+++ b/deskutils/bmp-docklet/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: bmp-docklet
-# Date created: 10 April, 2005
-# Whom: Adam Weinberger <adamw@FreeBSD.org>
-#
+# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= bmp-docklet
PORTVERSION= 1.3
@@ -27,12 +23,14 @@ USE_GNOME= gnomehack intlhack
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment"
-.else
-USES= gettext
-PLIST_SUB+= NLS=""
.endif
.include <bsd.port.mk>
diff --git a/deskutils/genius/Makefile b/deskutils/genius/Makefile
index 2e78f71d9549..92200cf17c52 100644
--- a/deskutils/genius/Makefile
+++ b/deskutils/genius/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: genius
-# Date created: 1 May 1999
-# Whom: Andrey Zakhvatov
-#
+# Created by: Andrey Zakhvatov
# $FreeBSD$
-#
PORTNAME= genius
PORTVERSION= 1.0.12
@@ -33,13 +29,15 @@ USE_LDCONFIG= yes
INSTALLS_ICONS= yes
INSTALLS_OMF= yes
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
-USES= gettext
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.mk>
diff --git a/deskutils/gimmie/Makefile b/deskutils/gimmie/Makefile
index ec63435d06fc..78f16b958d52 100644
--- a/deskutils/gimmie/Makefile
+++ b/deskutils/gimmie/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gimmie
-# Date created: 28 06 2006
-# Whom: pneumann@gmail.com
-#
+# Created by: pneumann@gmail.com
# $FreeBSD$
-#
PORTNAME= gimmie
PORTVERSION= 0.2.7
@@ -30,7 +26,9 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/deskutils/gxmessage/Makefile b/deskutils/gxmessage/Makefile
index cec130660640..902977e841d1 100644
--- a/deskutils/gxmessage/Makefile
+++ b/deskutils/gxmessage/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gxmessage
-# Date created: 9 March 2005
-# Whom: Andriy Gapon <avg@icyb.net.ua>
-#
+# Created by: Andriy Gapon <avg@icyb.net.ua>
# $FreeBSD$
-#
PORTNAME= gxmessage
PORTVERSION= 2.12.4
@@ -22,7 +18,9 @@ INSTALLS_ICONS= yes
MAKE_ARGS+= INSTALL="${INSTALL_PROGRAM}"
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
diff --git a/deskutils/kompose/Makefile b/deskutils/kompose/Makefile
index 1df407853fd7..f543992f1f95 100644
--- a/deskutils/kompose/Makefile
+++ b/deskutils/kompose/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kompose
-# Date created: 31 Aug 2004
-# Whom: Lauri Watts <lauri@kde.org>
-#
+# Created by: Lauri Watts <lauri@kde.org>
# $FreeBSD$
-#
PORTNAME= kompose
PORTVERSION= 0.5.3
@@ -28,12 +24,14 @@ INSTALLS_ICONS= yes
DOCSDIR= share/doc/HTML/en/${PORTNAME}
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-USES= gettext
-PLIST_SUB+= NLS=""
.endif
post-patch:
diff --git a/deskutils/tpb/Makefile b/deskutils/tpb/Makefile
index 5f3e0e0cea8a..c3812685ed69 100644
--- a/deskutils/tpb/Makefile
+++ b/deskutils/tpb/Makefile
@@ -23,7 +23,9 @@ CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE}
MAN1= tpb.1
-.ifndef(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -39,7 +41,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/tpbrc ${PREFIX}/etc/tpbrc.default
-.ifndef(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/doc/callback_example.sh ${DOCSDIR}
.endif
diff --git a/deskutils/vym/Makefile b/deskutils/vym/Makefile
index 0d86b37af453..da696b1aafdf 100644
--- a/deskutils/vym/Makefile
+++ b/deskutils/vym/Makefile
@@ -28,7 +28,9 @@ DESKTOP_ENTRIES= "VYM" \
"" \
false
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USE_QT4+= linguist_build
PLIST_SUB+= NLS=""
.else
@@ -36,12 +38,12 @@ PLIST_SUB+= NLS="@comment "
.endif
post-patch:
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/INSTALLS += doc/d' ${WRKSRC}/vym.pro
.endif
do-configure:
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
cd ${WRKSRC} && ${QT_LRELEASE} vym.pro
.endif
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
@@ -49,7 +51,7 @@ do-configure:
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${DATADIR}/lang
${INSTALL_DATA} ${WRKSRC}/lang/*.qm ${DATADIR}/lang/
.endif
diff --git a/deskutils/x-tile/Makefile b/deskutils/x-tile/Makefile
index 9692d1fcc06b..2785e64d56da 100644
--- a/deskutils/x-tile/Makefile
+++ b/deskutils/x-tile/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: x-tile
-# Date created: 2010-09-17
-# Whom: Pedro Garcia Freitas <sawp@sawp.com.br>
-#
+# Created by: Pedro Garcia Freitas <sawp@sawp.com.br>
# $FreeBSD$
-#
PORTNAME= x-tile
PORTVERSION= 2.2.1
@@ -21,12 +17,9 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= X_Tile
-post-patch:
- @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
- ${WRKSRC}/x-tile ${WRKSRC}/linux/x-tile.desktop \
- ${WRKSRC}/modules/cons.py
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -35,4 +28,9 @@ PYDISTUTILS_INSTALL_TARGET= --without-gettext install
PLIST_SUB+= NLS="@comment "
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
+ ${WRKSRC}/x-tile ${WRKSRC}/linux/x-tile.desktop \
+ ${WRKSRC}/modules/cons.py
+
.include <bsd.port.mk>
diff --git a/devel/gmake/Makefile b/devel/gmake/Makefile
index 9cee30684374..8ab3fd443bb1 100644
--- a/devel/gmake/Makefile
+++ b/devel/gmake/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: GNU make
-# Date created: 11 September 1994
-# Whom: jkh
-#
+# Created by: jkh
# $FreeBSD$
-#
PORTNAME= gmake
PORTVERSION= 3.82
@@ -22,7 +18,10 @@ COMMENT= GNU version of 'make' utility
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--program-prefix=g
-.if !defined(WITHOUT_NLS)
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
diff --git a/devel/gnucflow/Makefile b/devel/gnucflow/Makefile
index 0d9d85f12aa4..918b688bd7a6 100644
--- a/devel/gnucflow/Makefile
+++ b/devel/gnucflow/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gnucflow
-# Date created: 07 Feb 2008
-# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
-#
PORTNAME= gnucflow
PORTVERSION= 1.4
@@ -26,8 +22,9 @@ INFO= cflow
PLIST_FILES= bin/cflow
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
PLIST_FILES+= share/locale/da/LC_MESSAGES/cflow.mo \
diff --git a/devel/idutils/Makefile b/devel/idutils/Makefile
index 22cfb93fc4cd..64399493aa47 100644
--- a/devel/idutils/Makefile
+++ b/devel/idutils/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: id-utils
-# Date created: 22 Aug 1996
-# Whom: pst@freebsd.org
-#
+# Created by: pst@freebsd.org
# $FreeBSD$
-#
PORTNAME= idutils
PORTVERSION= 4.6
@@ -24,12 +20,14 @@ LDFLAGS+= -L${LOCALBASE}/lib
INFO= idutils
MAN1= aid.1 defid.1 eid.1 fid.1 fnid.1 gid.1 lid.1 mkid.1 xtokid.1
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-USES= gettext
-PLIST_SUB+= NLS=""
.endif
# Port configure script will auto-install the .elc file if [x]emacs is found
diff --git a/devel/m17n-db/Makefile b/devel/m17n-db/Makefile
index 59db927e3a8f..b2f8e1f5872c 100644
--- a/devel/m17n-db/Makefile
+++ b/devel/m17n-db/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: m17n-db
-# Date created: 29 May 2004
-# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
-#
+# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
# $FreeBSD$
-#
PORTNAME= m17n-db
PORTVERSION= 1.6.3
@@ -24,7 +20,9 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-charmaps=${CHARMAPSDIR}
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/devel/motor/Makefile b/devel/motor/Makefile
index 25314a6aa3bb..2b411f7b9bc1 100644
--- a/devel/motor/Makefile
+++ b/devel/motor/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: motor
-# Date created: 20 February 2001
-# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
-#
+# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= motor
PORTVERSION= 3.4.0
@@ -19,7 +15,10 @@ USE_GMAKE= yes
USES= iconv
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE}
-.if !defined(WITHOUT_NLS)
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=--with-libintl-prefix=${LOCALBASE}
PLIST_SUB= NLS=""
@@ -35,7 +34,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|strndup|my_strndup|' ${WRKSRC}/parser/src/parser.c \
${WRKSRC}/parser/src/strfn.c ${WRKSRC}/parser/include/strfn.h
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} ; ${INSTALL_DATA} FAQ README ${DOCSDIR})
diff --git a/devel/obby/Makefile b/devel/obby/Makefile
index bc914345c781..0db61baeda1c 100644
--- a/devel/obby/Makefile
+++ b/devel/obby/Makefile
@@ -19,7 +19,9 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USES+= gettext
diff --git a/devel/quilt/Makefile b/devel/quilt/Makefile
index 40d9d91e245d..862d1350a34b 100644
--- a/devel/quilt/Makefile
+++ b/devel/quilt/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: quilt
-# Date created: 20 Oct 2006
-# Whom: Dirk Jagdmann <doj@cubic.org>
-#
+# Created by: Dirk Jagdmann <doj@cubic.org>
# $FreeBSD$
-#
PORTNAME= quilt
PORTVERSION= 0.60
@@ -28,7 +24,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \
USE_GMAKE= yes
USE_PERL5= yes
-OPTIONS= RPMBUILD "rpmbuild support" off
+OPTIONS_DEFINE= RPMBUILD DOCS NLS
+RPMBUILD_DESC= rpmbuild support
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-sed=${LOCALBASE}/bin/gsed \
@@ -40,7 +37,7 @@ PORTDOCS= README README.MAIL quilt.pdf
.include <bsd.port.options.mk>
-.if defined(WITH_RPMBUILD)
+.if ${PORT_OPTIONS:MRPMBUILD}
BUILD_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS+= rpm:${PORTSDIR}/archivers/rpm
PLIST_SUB+= RPMBUILD=""
@@ -49,7 +46,7 @@ CONFIGURE_ARGS+=--without-rpmbuild
PLIST_SUB+= RPMBUILD="@comment "
.endif
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
@@ -63,7 +60,7 @@ PLIST_SUB+= SENDMAIL=""
PLIST_SUB+= SENDMAIL="@comment "
.endif
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-Makefile.in
.endif
diff --git a/devel/thunar-vcs-plugin/Makefile b/devel/thunar-vcs-plugin/Makefile
index 74ddd2e50155..1eda5677b427 100644
--- a/devel/thunar-vcs-plugin/Makefile
+++ b/devel/thunar-vcs-plugin/Makefile
@@ -23,14 +23,14 @@ USES= pkgconfig
LDFLAGS+= -L${LOCALBASE}/lib
-OPTIONS= NLS "Enable Native Language Support" on \
- GIT "Enable Git support" off \
- SVN "Enable Subversion support" on
+OPTIONS_DEFINE= NLS GIT SVN
+OPTIONS_DEFAULT= SVN
+GIT_DESC= Git support
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_NLS)
-USE_GETTEXT= yes
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS=""
.else
@@ -38,7 +38,7 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
-.if defined(WITH_GIT)
+.if ${PORT_OPTIONS:MGIT}
RUN_DEPENDS+= git:${PORTSDIR}/devel/git
CONFIGURE_ARGS+=--enable-git
PLIST_SUB+= GIT=""
@@ -47,7 +47,7 @@ CONFIGURE_ARGS+=--disable-git
PLIST_SUB+= GIT="@comment "
.endif
-.if !defined(WITHOUT_SVN)
+.if ${PORT_OPTIONS:MSVN}
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
CONFIGURE_ARGS+=--enable-subversion
PLIST_SUB+= SVN=""
@@ -59,4 +59,4 @@ PLIST_SUB+= SVN="@comment "
post-install:
@-update-desktop-database
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/dns/libidn/Makefile b/dns/libidn/Makefile
index 450f7216ef6f..64b1b97a74a3 100644
--- a/dns/libidn/Makefile
+++ b/dns/libidn/Makefile
@@ -20,7 +20,9 @@ CPPFLAGS+= -I${LOCALBASE}/include
INFO= libidn
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -34,13 +36,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|$$(AUTOMAKE)|${TRUE}|' \
-e 's|imagesdir = $$(infodir)|imagesdir = $$(docdir)|' \
${WRKSRC}/doc/Makefile.in
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|install-data-am: install-imagesDATA install-info-am install-man|install-data-am: install-info-am install-man|' \
${WRKSRC}/doc/Makefile.in
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in FAQ NEWS README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
diff --git a/dns/mydns/Makefile b/dns/mydns/Makefile
index afbeced56410..d72546eba859 100644
--- a/dns/mydns/Makefile
+++ b/dns/mydns/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mydns
-# Date created: 23 July 2002
-# Whom: Simon Dick <simond@irrelevant.org>
-#
+# Created by: Simon Dick <simond@irrelevant.org>
# $FreeBSD$
-#
PORTNAME= mydns
PORTVERSION= 1.1.0
@@ -30,18 +26,18 @@ MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
-.if defined(WITH_ALIAS)
+.if ${PORT_OPTIONS:MALIAS}
CONFIGURE_ARGS+=--enable-alias
.endif
-.if defined(WITH_OPENSSL)
+.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl \
--with-openssl-include=${OPENSSLINC} \
--with-openssl-lib=${OPENSSLLIB}
.endif
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--without-mysql \
--with-pgsql-include=${LOCALBASE}/include \
@@ -55,7 +51,7 @@ PKGNAMESUFFIX= -mysql
USE_MYSQL= yes
.endif
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -73,7 +69,7 @@ pre-fetch:
@${ECHO} ""
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/contrib
.for f in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
diff --git a/finance/gnofin/Makefile b/finance/gnofin/Makefile
index 74dabe8475bf..793b0ee4783e 100644
--- a/finance/gnofin/Makefile
+++ b/finance/gnofin/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gnofin
-# Date created: Sun Jul 18 1999
-# Whom: domi@saargate.de
-#
+# Created by: domi@saargate.de
# $FreeBSD$
-#
PORTNAME= gnofin
PORTVERSION= 0.8.4
@@ -22,7 +18,9 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB= NLS=""
.else
diff --git a/finance/grisbi/Makefile b/finance/grisbi/Makefile
index 048e9045e372..1cb7336ce041 100644
--- a/finance/grisbi/Makefile
+++ b/finance/grisbi/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: grisbi
-# Date created: 19 November 2002
-# Whom: Thierry Thomas <thierry@pompo.net>
-#
+# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
-#
PORTNAME= grisbi
PORTVERSION= 0.8.9
@@ -32,18 +28,20 @@ MAN1= grisbi.1
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
pre-configure:
${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
${WRKSRC}/${CONFIGURE_SCRIPT}
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e "s|pixmaps help|pixmaps|" ${WRKSRC}/Makefile.in
.endif
diff --git a/games/fgrun/Makefile b/games/fgrun/Makefile
index 3c7c57ba248a..187898efeff9 100644
--- a/games/fgrun/Makefile
+++ b/games/fgrun/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: fgrun
-# Date created: 18 Oct 2008
-# Whom: buganini@gmail.com
-#
+# Created by: buganini@gmail.com
# $FreeBSD$
-#
PORTNAME= fgrun
PORTVERSION= 1.6.0
@@ -26,16 +22,18 @@ CONFIGURE_ARGS= --with-boost="${LOCALBASE}"
USE_GMAKE= yes
USE_GL= gl
-.if defined(WITHOUT_NLS)
-PLIST_SUB+= NLS="@comment "
-CONFIGURE_ARGS+= --disable-nls
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
+CONFIGURE_ARGS+= --disable-nls
.endif
post-patch:
-.if defined(WITHOUT_NLS)
+.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} 's|SUBDIRS = src po msvc|SUBDIRS = src|' \
${WRKSRC}/Makefile.in
.endif
diff --git a/games/ggz-client-libs/Makefile b/games/ggz-client-libs/Makefile
index af9fb1a0cc59..a0746e67ab7e 100644
--- a/games/ggz-client-libs/Makefile
+++ b/games/ggz-client-libs/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: ggz-client-libs
-# Date created: Oct 8, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= ggz-client-libs
PORTVERSION= ${GGZ_VERSION}
@@ -31,12 +26,14 @@ MAN7= ggz.7
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
post-patch:
diff --git a/games/ggz-gtk-client/Makefile b/games/ggz-gtk-client/Makefile
index 8eb33dd6df2d..817caefadd7c 100644
--- a/games/ggz-gtk-client/Makefile
+++ b/games/ggz-gtk-client/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: ggz-gtk-client
-# Date created: Oct 22, 2005
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= ggz-gtk-client
PORTVERSION= ${GGZ_VERSION}
@@ -25,12 +20,14 @@ MAN6= ggz-gtk.6
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.pre.mk>
diff --git a/games/ggz-gtk-games/Makefile b/games/ggz-gtk-games/Makefile
index ab8852fc4285..7b73f40f94c7 100644
--- a/games/ggz-gtk-games/Makefile
+++ b/games/ggz-gtk-games/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: ggz-gtk-games
-# Date created: Feb. 19, 2006
-# Whom: yinjieh
-#
+# Created by: yinjieh
# $FreeBSD$
-#
PORTNAME= ggz-gtk-games
PORTVERSION= ${GGZ_VERSION}
@@ -24,12 +19,14 @@ USE_GGZ= client
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
post-install:
diff --git a/games/ggz-txt-client/Makefile b/games/ggz-txt-client/Makefile
index aebf6b871823..09d07d333ea6 100644
--- a/games/ggz-txt-client/Makefile
+++ b/games/ggz-txt-client/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: ggz-txt-client
-# Date created: Oct 8, 2002
-# Whom: ijliao
-#
+# Created by: ijliao
# $FreeBSD$
-#
PORTNAME= ggz-txt-client
PORTVERSION= ${GGZ_VERSION}
@@ -23,12 +18,14 @@ MAN6= ggz-txt.6
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
post-install:
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
index 8f5b3ec8af36..6ace8df4e212 100644
--- a/games/glchess/Makefile
+++ b/games/glchess/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: glchess
-# Date created: Wed Jul 18 08:35:56 EDT 2001
-# Whom: Patrick Li <pat@databits.net>
-#
+# Created by: Patrick Li <pat@databits.net>
# $FreeBSD$
-#
PORTNAME= glchess
PORTVERSION= 1.0.6
@@ -23,12 +19,14 @@ USE_PYDISTUTILS= yes
GCONF_SCHEMAS= glchess.schemas
-.if defined(WITHOUT_NLS)
-PLIST_SUB+= NLS="@comment"
-CONFIGURE_ARGS+= --disable-nls
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
+.else
+PLIST_SUB+= NLS="@comment"
+CONFIGURE_ARGS+= --disable-nls
.endif
post-patch:
@@ -49,7 +47,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \
${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \
done)
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
diff --git a/games/lincity/Makefile b/games/lincity/Makefile
index 2555d8ffc660..e18e55b68fb0 100644
--- a/games/lincity/Makefile
+++ b/games/lincity/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: lincity
-# Date created: 13 Feb 1997
-# Whom: Julian Assange
-#
+# Created by: Julian Assange
# $FreeBSD$
-#
PORTNAME= lincity
PORTVERSION= 1.13.1
@@ -14,6 +10,8 @@ MASTER_SITES= SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Rich city simulation game for X
+OPTIONS_DEFINE= SVGALIB NLS
+
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
.if ${CC} == "clang"
@@ -27,10 +25,12 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN6= lincity.6
+.include <bsd.port.options.mk>
+
pre-configure:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
-.if defined(WITH_SVGALIB)
+.if ${PORT_OPTIONS:MSVGALIB}
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+= --without-x
PLIST_SUB= PROG="bin/lincity"
@@ -40,7 +40,7 @@ CONFIGURE_ARGS+= --without-svga
PLIST_SUB= PROG="bin/xlincity"
.endif
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/games/lpairs/Makefile b/games/lpairs/Makefile
index f0291129dfdc..f3a9a41df5fd 100644
--- a/games/lpairs/Makefile
+++ b/games/lpairs/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: lpairs
-# Date created: 12 Sep 2008
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= lpairs
PORTVERSION= 1.0.4
@@ -19,7 +15,9 @@ USE_SDL= sdl
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
diff --git a/games/neverball/Makefile b/games/neverball/Makefile
index 64553dcbd0f7..c744a36d1c9d 100644
--- a/games/neverball/Makefile
+++ b/games/neverball/Makefile
@@ -25,7 +25,9 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= CHANGES COPYING README
MAN6= neverball.6 neverputt.6
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
MAKE_ENV+= ENABLE_NLS=1
LOCALE_DIRS= ca de es fi fr lv nn
@@ -55,7 +57,7 @@ do-install:
${PREFIX}/share/pixmaps/${f}.png
@${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/
.endfor
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
. for ii in ${LOCALE_DIRS}
@${MKDIR} ${PREFIX}/share/locale/${ii}/LC_MESSAGES
@${INSTALL_DATA} ${WRKSRC}/locale/${ii}/LC_MESSAGES/*.mo \
@@ -63,7 +65,7 @@ do-install:
. endfor
.endif
-.ifndef (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
. for i in ${PORTDOCS}
diff --git a/games/springlobby/Makefile b/games/springlobby/Makefile
index 4988795755c9..489bca5a7853 100644
--- a/games/springlobby/Makefile
+++ b/games/springlobby/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: springlobby
-# Date created: 02 Sep 2009
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= springlobby
PORTVERSION= 0.143
@@ -28,12 +24,14 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= *
-OPTIONS= TORRENT "Support automatic content downloads via torrent" on \
- SOUND "Enable sound" on
+OPTIONS_DEFINE= TORRENT SOUND DOCS NLS
+OPTIONS_DEFAULT= TORRENT SOUND
+TORRENT_DESC= Support automatic content downloads via torrent
+SOUND_DESC= Enable sound
.include <bsd.port.options.mk>
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -41,13 +39,13 @@ CMAKE_ARGS+= -DOPTION_TRANSLATION_SUPPORT:BOOL=OFF
PLIST_SUB+= NLS="@comment "
.endif
-.if !defined(WITHOUT_TORRENT)
+.if ${PORT_OPTIONS:MTORRENT}
LIB_DEPENDS+= torrent-rasterbar.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15
.else
CMAKE_ARGS+= -DOPTION_TORRENT_SYSTEM:BOOL=OFF
.endif
-.if !defined(WITHOUT_SOUND)
+.if ${PORT_OPTIONS:MSOUND}
USE_OPENAL= al
.else
CMAKE_ARGS+= -DOPTION_SOUND:BOOL=OFF
@@ -57,7 +55,7 @@ post-patch:
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/src/utils/curlhelper.h \
${WRKSRC}/src/utils/downloader.cpp
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/install.*FILES.*share\/doc/ d' \
${WRKSRC}/CMakeLists.txt
.endif
diff --git a/games/typespeed/Makefile b/games/typespeed/Makefile
index ffba651e1041..65f1a6baad31 100644
--- a/games/typespeed/Makefile
+++ b/games/typespeed/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: typespeed
-# Date created: 06 September 2003
-# Whom: refugee
-#
+# Created by: refugee
# $FreeBSD$
-#
PORTNAME= typespeed
PORTVERSION= 0.6.5
@@ -28,12 +24,14 @@ SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= SCOREDIR="${SCOREDIR}" SCOREFILE="${SCOREFILE}" WRKSRC="${WRKSRC}"
MAN1= typespeed.1
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@@ -52,7 +50,7 @@ do-install:
${MKDIR} ${DATADIR}/words
${FIND} ${WRKSRC}/words/ -name "words.*" -type f \
-exec ${INSTALL_DATA} {} ${DATADIR}/words \;
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
.for i in de_DE fr_FR it
${MKDIR} ${PREFIX}/share/locale/${i}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${i}.gmo \
diff --git a/games/zaz/Makefile b/games/zaz/Makefile
index fcc534e1ef7d..61693d1798cf 100644
--- a/games/zaz/Makefile
+++ b/games/zaz/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: zaz
-# Date created: 25 Aug 2009
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= zaz
PORTVERSION= 1.0.0
@@ -32,7 +28,9 @@ CONFIGURE_ARGS= --with-icondir="${PREFIX}/share/pixmaps"
PORTDOCS= *
# Unconditially disable NLS for now: the game segfaults with 8bit locales
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -43,7 +41,7 @@ PLIST_SUB+= NLS="@comment "
post-patch:
@${REINPLACE_CMD} -e '/^zazdocdir =/ s|$${prefix}/doc|$${prefix}/share/doc|' \
${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docDATA||' \
${WRKSRC}/Makefile.in
.endif
diff --git a/graphics/albumshaper/Makefile b/graphics/albumshaper/Makefile
index 5ba8e11ea348..9ddfbdbe0718 100644
--- a/graphics/albumshaper/Makefile
+++ b/graphics/albumshaper/Makefile
@@ -35,7 +35,9 @@ DESKTOP_ENTRIES= "AlbumShaper" \
"Qt;Graphics;" \
"false"
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
@@ -47,7 +49,7 @@ MYDISTDOCS= AlbumShaper.doc install packageHowTo.txt readme.txt \
post-patch:
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
${WRKSRC}/AlbumShaper.pro
-.if defined(WITHOUT_NLS)
+.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/INSTALLS\ +=\ translations/d' \
${WRKSRC}/AlbumShaper.pro
.endif
@@ -57,7 +59,7 @@ pre-build:
qmake AlbumShaper.pro )
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for doc in ${MYDISTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
diff --git a/graphics/exif/Makefile b/graphics/exif/Makefile
index 6cc1ef7d6b88..388302127f00 100644
--- a/graphics/exif/Makefile
+++ b/graphics/exif/Makefile
@@ -19,12 +19,14 @@ GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ENV+= POPT_CFLAGS=-I${LOCALBASE}/include POPT_LIBS="-L${LOCALBASE}/lib -lpopt"
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls --without-libiconv-prefix
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext iconv
PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls --without-libiconv-prefix
+PLIST_SUB+= NLS="@comment "
.endif
MAN1= exif.1
diff --git a/graphics/gimp-focusblur-plugin/Makefile b/graphics/gimp-focusblur-plugin/Makefile
index f8453c6dfce5..b4560bad603b 100644
--- a/graphics/gimp-focusblur-plugin/Makefile
+++ b/graphics/gimp-focusblur-plugin/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gimp-focusblur
-# Date created: 03 Jun 2009
-# Whom: Denis Barov <dindin@dindin.ru>
-#
+# Created by: Denis Barov <dindin@dindin.ru>
# $FreeBSD$
-#
PORTNAME= focusblur
PORTVERSION= 3.2.6
@@ -34,7 +30,9 @@ PLIST_SUB= PLUGIN_DIR=${PLUGIN_DIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/graphics/gpicview/Makefile b/graphics/gpicview/Makefile
index 1907c285906c..c2a6f2ee0dd3 100644
--- a/graphics/gpicview/Makefile
+++ b/graphics/gpicview/Makefile
@@ -16,7 +16,9 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/graphics/gqview/Makefile b/graphics/gqview/Makefile
index 6082c88e02de..c4b81df81eb7 100644
--- a/graphics/gqview/Makefile
+++ b/graphics/gqview/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gqview
-# Date Created: 27 Oct 1998
-# Whom: Vanilla Pooh Shu <vanilla@FreeBSD.org>
-#
+# Created by: Vanilla Pooh Shu <vanilla@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= gqview
PORTVERSION= 2.0.4
@@ -30,12 +26,14 @@ CONFLICTS= gqview-devel-[0-9]*
# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limitw:1,even
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
-.else
-USES= gettext
-PLIST_SUB+= NLS=""
.endif
post-patch:
@@ -52,7 +50,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/gqview.png ${PREFIX}/share/pixmaps
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
diff --git a/graphics/gscan2pdf/Makefile b/graphics/gscan2pdf/Makefile
index 5f688ddfe691..d768a216b317 100644
--- a/graphics/gscan2pdf/Makefile
+++ b/graphics/gscan2pdf/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gscan2pdf
-# Date created: 4 September 2006
-# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
-#
+# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= gscan2pdf
PORTVERSION= 1.0.4
@@ -72,7 +68,9 @@ PERL_CONFIGURE= yes
MAN1= ${PORTNAME}.1 scanadf-perl.1 scanimage-perl.1
PORT_VERBS= ${PORTNAME} Gscan2pdf
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include
diff --git a/graphics/gtkdps/Makefile b/graphics/gtkdps/Makefile
index e7c70b8e88f9..8b1f04fd99d2 100644
--- a/graphics/gtkdps/Makefile
+++ b/graphics/gtkdps/Makefile
@@ -24,7 +24,9 @@ CONFIGURE_ARGS= --with-dps-includes=${LOCALBASE}/include \
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile
index f4f5d0fb01c0..5f2f2a30e3b9 100644
--- a/graphics/libgphoto2/Makefile
+++ b/graphics/libgphoto2/Makefile
@@ -25,13 +25,15 @@ MAKE_JOBS_SAFE= yes
MAN3= libgphoto2.3 libgphoto2_port.3
-.if defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
USES+= iconv
-.else
-USES+= gettext
-PLIST_SUB+= NLS=""
.endif
CONFIGURE_ENV+= LIBUSB_LIBS="-lusb" LIBUSB_CFLAGS="-I/usr/include"
@@ -43,7 +45,7 @@ post-patch:
s|-g -O2||g ; \
/grep -i linux/s|; fi ; then|; else false; fi ; then|' ${WRKSRC}/${file}
.endfor
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|(LDFLAGS) -o|(LDFLAGS) -lintl -o|' ${WRKSRC}/libgphoto2_port/libgphoto2_port/Makefile.in
.endif
@${REINPLACE_CMD} -e '/test.*udevscriptdir/d ; s| "$$(DESTDIR)$$(udevscriptdir)"||' ${WRKSRC}/libgphoto2_port/usb/Makefile.in ${WRKSRC}/packaging/generic/Makefile.in
diff --git a/graphics/pornview/Makefile b/graphics/pornview/Makefile
index 90ff5296fab5..e05d10be2fa1 100644
--- a/graphics/pornview/Makefile
+++ b/graphics/pornview/Makefile
@@ -22,14 +22,18 @@ CONFIGURE_ARGS= --with-gtk2
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if defined(WITH_LIBXINE)
+OPTIONS_DEFINE= LIBXINE MPLAYER NLS
+OPTIONS_DEFAULT= LIBXINE
+
+.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MLIBXINE}
LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine
CONFIGURE_ARGS+= --enable-xine
-.elif defined(WITH_MPLAYER)
+.elif ${PORT_OPTIONS:MMPLAYER}
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
CONFIGURE_ARGS+= --enable-mplayer
.endif
-.if defined(WITHOUT_NLS)
+.if ! ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= WITH_NLS="@comment "
.else