svn commit: r305384 - head/textproc/gnugrep

Eitan Adler eadler at FreeBSD.org
Sat Oct 6 16:12:30 UTC 2012


Author: eadler
Date: Sat Oct  6 16:12:29 2012
New Revision: 305384
URL: http://svn.freebsd.org/changeset/ports/305384

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

Modified:
  head/textproc/gnugrep/Makefile

Modified: head/textproc/gnugrep/Makefile
==============================================================================
--- head/textproc/gnugrep/Makefile	Sat Oct  6 16:11:17 2012	(r305383)
+++ head/textproc/gnugrep/Makefile	Sat Oct  6 16:12:29 2012	(r305384)
@@ -26,11 +26,11 @@ MAN1=		egrep.1 \
 		grep.1
 INFO=		grep
 
-OPTIONS=	PCRE	"Compile with Perl-compatible regex support"	off
+OPTIONS_DEFINE=	PCRE
 
 .include <bsd.port.options.mk>
 
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
 USE_GETTEXT=	yes
 LDFLAGS+=	-lintl -L${LOCALBASE}/lib
 PLIST_SUB+=	NLS=
@@ -39,14 +39,14 @@ CONFIGURE_ARGS+=	--disable-nls
 PLIST_SUB+=	NLS="@comment "
 .endif
 
-.if defined(WITH_PCRE)
+.if ${PORT_OPTIONS:MPCRE}
 LIB_DEPENDS+=	pcre.1:${PORTSDIR}/devel/pcre
 .else
 CONFIGURE_ARGS+=	--disable-perl-regexp
 .endif
 
 post-patch:
-.if defined(WITHOUT_NLS)
+.if empty(PORT_OPTIONS:MNLS)
 	@${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \
 		${WRKSRC}/lib/Makefile.in
 .endif



More information about the svn-ports-all mailing list