Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2013 06:31:55 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317574 - head/devel/gettext
Message-ID:  <201305070631.r476VtCE066405@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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