svn commit: r317574 - head/devel/gettext

Jason Helfman jgh at FreeBSD.org
Tue May 7 06:31:55 UTC 2013


Author: jgh
Date: Tue May  7 06:31:54 2013
New Revision: 317574
URL: http://svnweb.freebsd.org/changeset/ports/317574

Log:
  - remove warning for USE_GETTEXT as environment variable
  - while here convert knobs to optionsNG framework
  
  Approved by:	portmgr (bapt@)

Modified:
  head/devel/gettext/Makefile

Modified: head/devel/gettext/Makefile
==============================================================================
--- head/devel/gettext/Makefile	Tue May  7 06:31:06 2013	(r317573)
+++ head/devel/gettext/Makefile	Tue May  7 06:31:54 2013	(r317574)
@@ -41,12 +41,9 @@ MAN3=		bind_textdomain_codeset.3 bindtex
 		textdomain.3
 INFO=		autosprintf gettext
 
-.ifdef USE_GETTEXT
-.error	USE_GETTEXT is defined as an environment variable, or in the arguments \
-	to "make".  Please unset it and restart the build.
-.endif
+.include <bsd.port.options.mk>
 
-.if defined (NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-nodocs
 .endif
 
@@ -62,7 +59,7 @@ pre-extract:
 post-patch:
 	@${FIND} ${WRKSRC} -name configure -print | ${XARGS} \
 	    ${REINPLACE_CMD} -e 's|mkdir gmkdir|mkdir|; s|gawk|awk|'
-.if defined (NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
 .for dir in runtime tools
 	@${REINPLACE_CMD} -e 's|^SUBDIRS = doc|SUBDIRS =|' \
 		${WRKSRC}/gettext-${dir}/Makefile.in


More information about the svn-ports-all mailing list