aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2014-01-21 20:06:04 +0800
committerrm <rm@FreeBSD.org>2014-01-21 20:06:04 +0800
commitf30c6a4a2edaba0a26c0628b62eadb2ae5844d5c (patch)
tree1232f657ba1cae420795ed6f632488505d6e9946 /deskutils
parente47c32998a1f68e33922649f7519d79c1427c05b (diff)
downloadfreebsd-ports-gnome-f30c6a4a2edaba0a26c0628b62eadb2ae5844d5c.tar.gz
freebsd-ports-gnome-f30c6a4a2edaba0a26c0628b62eadb2ae5844d5c.tar.zst
freebsd-ports-gnome-f30c6a4a2edaba0a26c0628b62eadb2ae5844d5c.zip
- use options helpers, add NLS to available options list
- add stage support
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/xchm/Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/deskutils/xchm/Makefile b/deskutils/xchm/Makefile
index c5c3912a0465..5e335bcd6af1 100644
--- a/deskutils/xchm/Makefile
+++ b/deskutils/xchm/Makefile
@@ -13,6 +13,10 @@ LICENSE= GPLv2
LIB_DEPENDS= libchm.so:${PORTSDIR}/misc/chmlib
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+NLS_USES= gettext
+
GNU_CONFIGURE= yes
USE_WX= 2.6+
WX_UNICODE= yes
@@ -20,15 +24,4 @@ WX_CONF_ARGS= absolute
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${LOCALBASE}/include
-NO_STAGE= yes
-.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.mk>