1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

1: Stagify.

2: use options helper.

Approved by:	portmgr@ (blanket approval)
This commit is contained in:
Vanilla I. Shu 2014-07-02 08:25:06 +00:00
parent 2367a20fe5
commit 2a7ba74da1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360156

View File

@ -15,16 +15,18 @@ HAS_CONFIGURE= yes
PLIST_FILES= bin/tthttpd
SUB_FILES= example.conf
PORTDOCS= README example.conf ChangeLog
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tthttpd ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tthttpd ${STAGEDIR}${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/example.conf ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/example.conf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>