diff options
author | bapt <bapt@FreeBSD.org> | 2013-05-06 18:22:41 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-05-06 18:22:41 +0800 |
commit | 9448bf8a9893f033f4857b17e60990eaf05437f2 (patch) | |
tree | 35173dab2afafdac2c12b688bfc1f1397a7b8cfb /net/wol | |
parent | 3d353e31abfcd08740e73294d90f9ba291e25502 (diff) | |
download | freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.tar.gz freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.tar.zst freebsd-ports-gnome-9448bf8a9893f033f4857b17e60990eaf05437f2.zip |
Convert from WITHOUT_NLS to PORT_OPTIONS:MNLS
While here do some conversion to new options framework
Diffstat (limited to 'net/wol')
-rw-r--r-- | net/wol/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/net/wol/Makefile b/net/wol/Makefile index 1d4de7c79266..a0b7981d9ee4 100644 --- a/net/wol/Makefile +++ b/net/wol/Makefile @@ -1,5 +1,3 @@ -# ex:ts=8 -# Ports collection makefile for: wol # Created by: ijliao # $FreeBSD$ @@ -17,19 +15,20 @@ USE_PERL5_BUILD= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS= --disable-nls -PLIST_SUB= NLS="@comment " -.else -USES+= gettext iconv -PLIST_SUB= NLS="" -.endif - MAN1= wol.1 INFO= wol DOCS= AUTHORS NEWS README TODO -.if !defined(NOPORTDOCS) +.include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MNLS} +USES+= gettext iconv +PLIST_SUB= NLS="" +.else +CONFIGURE_ARGS= --disable-nls +PLIST_SUB= NLS="@comment " +.endif + +.if ${PORT_OPTIONS:MDOCS} post-install: @${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} |