aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/sabbu
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-05-06 18:22:41 +0800
committerbapt <bapt@FreeBSD.org>2013-05-06 18:22:41 +0800
commit9448bf8a9893f033f4857b17e60990eaf05437f2 (patch)
tree35173dab2afafdac2c12b688bfc1f1397a7b8cfb /multimedia/sabbu
parent3d353e31abfcd08740e73294d90f9ba291e25502 (diff)
downloadfreebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.tar.gz
freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.tar.zst
freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.zip
Convert from WITHOUT_NLS to PORT_OPTIONS:MNLS
While here do some conversion to new options framework
Diffstat (limited to 'multimedia/sabbu')
-rw-r--r--multimedia/sabbu/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/multimedia/sabbu/Makefile b/multimedia/sabbu/Makefile
index 58f388db472e..e2b8b7d84769 100644
--- a/multimedia/sabbu/Makefile
+++ b/multimedia/sabbu/Makefile
@@ -21,16 +21,18 @@ USE_GNOME= gtk20
CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lswscale
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= WITH_NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= WITH_NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= WITH_NLS="@comment "
.endif
ASPELL_PORT?= textproc/aspell
-.if !defined(WITHOUT_GTKSPELL)
+.if ${PORT_OPTIONS:MGTKSPELL}
LIB_DEPENDS+= gtkspell:${PORTSDIR}/textproc/gtkspell
PLIST_SUB+= WITH_ASPELL=""
.else