aboutsummaryrefslogtreecommitdiff
path: root/devel/gettext
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-05-07 06:31:54 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-05-07 06:31:54 +0000
commit8232838d862ed3e27b5937239ea988590eb20f75 (patch)
tree425a3fd5f73f6dd81fbc7c20256cadc2c3df04d9 /devel/gettext
parent5c04099ede042bfdf57132960bdd7ed0c67494a3 (diff)
downloadports-8232838d862ed3e27b5937239ea988590eb20f75.tar.gz
ports-8232838d862ed3e27b5937239ea988590eb20f75.zip
Notes
Diffstat (limited to 'devel/gettext')
-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