aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-05-07 14:31:54 +0800
committerjgh <jgh@FreeBSD.org>2013-05-07 14:31:54 +0800
commit1bcdd9d3e33da086c43a8074d7ce96eccf1a3b1f (patch)
tree425a3fd5f73f6dd81fbc7c20256cadc2c3df04d9 /devel
parentd39fcfea8eb28b43c4f5c6b811e15905933d122a (diff)
downloadfreebsd-ports-gnome-1bcdd9d3e33da086c43a8074d7ce96eccf1a3b1f.tar.gz
freebsd-ports-gnome-1bcdd9d3e33da086c43a8074d7ce96eccf1a3b1f.tar.zst
freebsd-ports-gnome-1bcdd9d3e33da086c43a8074d7ce96eccf1a3b1f.zip
- remove warning for USE_GETTEXT as environment variable
- while here convert knobs to optionsNG framework Approved by: portmgr (bapt@)
Diffstat (limited to 'devel')
-rw-r--r--devel/gettext/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/devel/gettext/Makefile b/devel/gettext/Makefile
index a5b74419ad1b..e3c91e7106fa 100644
--- a/devel/gettext/Makefile
+++ b/devel/gettext/Makefile
@@ -41,12 +41,9 @@ MAN3= bind_textdomain_codeset.3 bindtextdomain.3 dcgettext.3 \
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