aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
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