diff options
author | bapt <bapt@FreeBSD.org> | 2013-04-30 06:27:05 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-04-30 06:27:05 +0800 |
commit | 31426e557795495adeb04aa9e16edb4c93184379 (patch) | |
tree | 8583dfe71adaea6ce266633e1799cd602516b801 /dns/libidn | |
parent | b36431c8212c7fe9fc83e2f7412d5935b6e10e6e (diff) | |
download | freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.gz freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.zst freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.zip |
Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here:
- trim headers
- convert to new options framework
Diffstat (limited to 'dns/libidn')
-rw-r--r-- | dns/libidn/Makefile | 8 |
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} |