aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pinfo
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-05-06 23:34:17 +0800
committerbapt <bapt@FreeBSD.org>2013-05-06 23:34:17 +0800
commit8125658176eb2b6a00216bc61058e31e8d19d160 (patch)
tree5b19e4fae39149280653cc670bc170d039477f8e /misc/pinfo
parent4ca6469bebf737a13fe9257550d791b2fdc61200 (diff)
downloadfreebsd-ports-gnome-8125658176eb2b6a00216bc61058e31e8d19d160.tar.gz
freebsd-ports-gnome-8125658176eb2b6a00216bc61058e31e8d19d160.tar.zst
freebsd-ports-gnome-8125658176eb2b6a00216bc61058e31e8d19d160.zip
Convert USE_NCURSES by USES=ncurses
Convert USE_READLINE by USES=readline
Diffstat (limited to 'misc/pinfo')
-rw-r--r--misc/pinfo/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/misc/pinfo/Makefile b/misc/pinfo/Makefile
index 9c4f00dc3706..5c8625b7deb7 100644
--- a/misc/pinfo/Makefile
+++ b/misc/pinfo/Makefile
@@ -16,8 +16,7 @@ OPTIONS_DEFAULT=READLINE
READLINE_DESC= Enable readline support
USE_BZIP2= yes
-USE_NCURSES= yes
-USES= gettext
+USES= gettext ncurses
USE_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf
LIBTOOLIZE_ARGS=--force
ACLOCAL_ARGS= -I macros
@@ -31,13 +30,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN1= pinfo.1
INFO= pinfo
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
-USES+= gettext
-PLIST_SUB+= NLS=""
-.endif
+.include <bsd.port.options.mk>
PLIST_FILES= bin/pinfo etc/pinforc
.for lang in cs de eu ja nl pl pt_BR ro ru sv vi
@@ -46,8 +39,17 @@ PLIST_FILES+= %%NLS%%share/locale/${lang}/LC_MESSAGES/pinfo.mo
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+
.if ${PORT_OPTIONS:MREADLINE}
-USE_READLINE= yes
+USES= readline
.else
CONFIGURE_ARGS+=--without-readline
.endif