Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2012 16:11:17 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305383 - head/textproc/bsdgrep
Message-ID:  <201210061611.q96GBHCE094743@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat Oct  6 16:11:17 2012
New Revision: 305383
URL: http://svn.freebsd.org/changeset/ports/305383

Log:
  Convert to OptionsNG
  
  Approved by:	gabor (maintainer)

Modified:
  head/textproc/bsdgrep/Makefile

Modified: head/textproc/bsdgrep/Makefile
==============================================================================
--- head/textproc/bsdgrep/Makefile	Sat Oct  6 16:10:53 2012	(r305382)
+++ head/textproc/bsdgrep/Makefile	Sat Oct  6 16:11:17 2012	(r305383)
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210061611.q96GBHCE094743>