aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-06-30 09:53:44 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-06-30 09:53:44 +0800
commita9d7f5c2c8b3d36782a1147988ec704a96d3051a (patch)
treedc67bfce22e6df59ba8fe8fc5523dc6b141e24cc /misc
parentedb1dccf0351e64e6fef0ad696226ddb44858b73 (diff)
downloadfreebsd-ports-gnome-a9d7f5c2c8b3d36782a1147988ec704a96d3051a.tar.gz
freebsd-ports-gnome-a9d7f5c2c8b3d36782a1147988ec704a96d3051a.tar.zst
freebsd-ports-gnome-a9d7f5c2c8b3d36782a1147988ec704a96d3051a.zip
- Convert to new options framework
Diffstat (limited to 'misc')
-rw-r--r--misc/help2man/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/misc/help2man/Makefile b/misc/help2man/Makefile
index 16bf8e50b205..d5d74ee2590c 100644
--- a/misc/help2man/Makefile
+++ b/misc/help2man/Makefile
@@ -15,6 +15,8 @@ COMMENT= Automatically generating simple manual pages from program output
LICENSE= GPLv3
+OPTIONS_DEFINE= NLS
+
CFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
USE_GMAKE= yes
@@ -24,9 +26,9 @@ INFO= ${PORTNAME}
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/${PORTNAME}
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS= --disable-nls
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
BUILD_DEPENDS+= p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
RUN_DEPENDS+= p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
@@ -44,6 +46,8 @@ PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.for lang in ${LANGS}
PLIST_DIRSTRY+= man/${lang}/man1 man/${lang}
.endfor
+.else
+CONFIGURE_ARGS= --disable-nls
.endif
post-patch: