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

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-20 15:07:07 +00:00
parent 1b18054d5f
commit 63f363b5c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345249

View File

@ -14,19 +14,18 @@ PLIST_FILES= bin/${PORTNAME}
PORTDOCS= atlast.html atlast.pdf
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e "/^COPTIONS = /s, = .*, = ${CFLAGS}, " \
-e "/^CC = /s,= .*, = ${CC}," \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>