aboutsummaryrefslogtreecommitdiff
path: root/misc/help2man
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-06-30 01:53:44 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-06-30 01:53:44 +0000
commit2cb5e8bfc2cd34ad666d7e954b8a3f2cc135758f (patch)
tree34020760b1a19c5393f6f4287e4f7041c4fb608d /misc/help2man
parent567ac5739489089343a93af4b0f796144f8b991b (diff)
downloadports-2cb5e8bfc2cd34ad666d7e954b8a3f2cc135758f.tar.gz
ports-2cb5e8bfc2cd34ad666d7e954b8a3f2cc135758f.zip
- Convert to new options framework
Notes
Notes: svn path=/head/; revision=300235
Diffstat (limited to 'misc/help2man')
-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: