aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-07 00:11:17 +0800
committereadler <eadler@FreeBSD.org>2012-10-07 00:11:17 +0800
commit4bbf3960dc26644f15514881aeabee2071b16e71 (patch)
tree81038c9ce53ce41fd3981ef9d32c840b9d886855 /textproc
parent410ce5e96d622aef6474f43ea6fb75ffbfd16ab0 (diff)
downloadfreebsd-ports-gnome-4bbf3960dc26644f15514881aeabee2071b16e71.tar.gz
freebsd-ports-gnome-4bbf3960dc26644f15514881aeabee2071b16e71.tar.zst
freebsd-ports-gnome-4bbf3960dc26644f15514881aeabee2071b16e71.zip
Convert to OptionsNG
Approved by: gabor (maintainer)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/bsdgrep/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/textproc/bsdgrep/Makefile b/textproc/bsdgrep/Makefile
index a1d5f686e035..44d019d5b5f4 100644
--- a/textproc/bsdgrep/Makefile
+++ b/textproc/bsdgrep/Makefile
@@ -37,8 +37,9 @@ MAKE_ENV+= BINDIR="${PREFIX}/bin" \
CATDIR="${MANPREFIX}/man/man" \
NLSDIR="${PREFIX}/share/nls"
-OPTIONS= NLS "Compile with NLS support" on \
- GNU_COMPAT "Use GNU regex library (recommended)" on
+OPTIONS_DEFINE= GNU_COMPAT
+OPTIONS_DEFAULT= GNU_COMPAT
+GNU_COMPAT_DESC= Use GNU regex library (recommended)
CONFLICTS= gnugrep-*
@@ -51,19 +52,19 @@ LDFLAGS+= -L${LOCALBASE}/lib
BROKEN= overwrites files installed by dependency
.endif
-.if defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
MAKE_ENV+= WITHOUT_NLS=yes
PLIST_SUB+= NLS="@comment "
.else
PLIST_SUB+= NLS=""
.endif
-.if defined(WITHOUT_GNU_COMPAT)
+.if !${PORT_OPTIONS:MGNU_COMPAT}
MAKE_ENV+= WITHOUT_GNU_COMPAT=yes
.endif
pre-install:
-.if defined(WITH_NLS)
+.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${LOCALBASE}/share/nls/gl_ES.ISO8859-1
.endif