aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/sdcv
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-05-06 17:26:23 +0800
committerbapt <bapt@FreeBSD.org>2013-05-06 17:26:23 +0800
commit28e615f24b937ec2ce73c3c951bc5ab27358a869 (patch)
tree0e80e9091c87717737c6686bb77944ac00328d6b /textproc/sdcv
parent8098a2385c0b152d5ab5267693fbb05317d76717 (diff)
downloadfreebsd-ports-gnome-28e615f24b937ec2ce73c3c951bc5ab27358a869.tar.gz
freebsd-ports-gnome-28e615f24b937ec2ce73c3c951bc5ab27358a869.tar.zst
freebsd-ports-gnome-28e615f24b937ec2ce73c3c951bc5ab27358a869.zip
Finish converting textproc from WITHOUT_NLS to PORT_OPTIONS:MNLS
Diffstat (limited to 'textproc/sdcv')
-rw-r--r--textproc/sdcv/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/textproc/sdcv/Makefile b/textproc/sdcv/Makefile
index b34c548ce3d4..b6f2c0fdbd1b 100644
--- a/textproc/sdcv/Makefile
+++ b/textproc/sdcv/Makefile
@@ -17,7 +17,9 @@ USE_GNOME= glib20
USES= pkgconfig iconv
SUB_FILES= pkg-message
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include
@@ -47,7 +49,7 @@ post-patch:
${WRKSRC}/src/sdcv.cpp
@${REINPLACE_CMD} -e 's,@mandir@/uk,@mandir@,' \
${WRKSRC}/doc/uk/Makefile.in
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's,@USE_NLS@,yes,g' ${WRKSRC}/po/Makefile.in.in
@${REINPLACE_CMD} -e 's, getopt.h,,g; s,@USE_NLS@,yes,g' \
${WRKSRC}/src/Makefile.in