aboutsummaryrefslogtreecommitdiff
path: root/net/wol
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-06 10:22:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-06 10:22:41 +0000
commit062ed8d36fcff34f0d3051dd7687377d27558a32 (patch)
tree35173dab2afafdac2c12b688bfc1f1397a7b8cfb /net/wol
parent00787ee8ab577b8449043d2c735d6136daf31f74 (diff)
Notes
Diffstat (limited to 'net/wol')
-rw-r--r--net/wol/Makefile21
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}