1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Use OPTIONS helpers
This commit is contained in:
Antoine Brodin 2014-01-31 17:13:02 +00:00
parent 9fff4bc59f
commit 7ce415779d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342045
2 changed files with 11 additions and 17 deletions

View File

@ -11,29 +11,22 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Tool to wake up Wake-On-LAN compliant computers
USES= perl5
GNU_CONFIGURE= yes
GNU_CONFIGURE= yes
USE_PERL5= build
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= wol.1
INFO= wol
DOCS= AUTHORS NEWS README TODO
NO_STAGE= yes
.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
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext iconv
NLS_CONFIGURE_OFF= --disable-nls
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,6 +1,7 @@
bin/wol
bin/wol-bootptab
bin/wol-dhcpdconf
man/man1/wol.1.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README