Add staging support.

This commit is contained in:
Rene Ladan 2013-09-24 13:30:45 +00:00
parent 18f59d0843
commit c81c01c796
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328129

View file

@ -20,18 +20,17 @@ PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= DOCS OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
do-build: do-build:
${CC} ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME} -lm ${CFLAGS} ${CC} ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME} -lm ${CFLAGS}
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS} .for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
.endif .endif