summaryrefslogtreecommitdiff
path: root/dns/libidn
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
commit9ff06b3cbf038359059e40e0db31ba0cbe996d0f (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /dns/libidn
parentUpdate to 2.3.0 (diff)
Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here: - trim headers - convert to new options framework
Notes
Notes: svn path=/head/; revision=316850
Diffstat (limited to 'dns/libidn')
-rw-r--r--dns/libidn/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/dns/libidn/Makefile b/dns/libidn/Makefile
index 450f7216ef6f..64b1b97a74a3 100644
--- a/dns/libidn/Makefile
+++ b/dns/libidn/Makefile
@@ -20,7 +20,9 @@ CPPFLAGS+= -I${LOCALBASE}/include
INFO= libidn
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -34,13 +36,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|$$(AUTOMAKE)|${TRUE}|' \
-e 's|imagesdir = $$(infodir)|imagesdir = $$(docdir)|' \
${WRKSRC}/doc/Makefile.in
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|install-data-am: install-imagesDATA install-info-am install-man|install-data-am: install-info-am install-man|' \
${WRKSRC}/doc/Makefile.in
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in FAQ NEWS README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}