Support staging

This commit is contained in:
Emanuel Haupt 2014-02-16 11:42:09 +00:00
parent f035b3ea09
commit 1f6893241a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344538

View file

@ -22,20 +22,13 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS EXAMPLES
NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${PREFIX}/bin
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/bioseq.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.doc ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCSDIR}/html
.endif
${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/bioseq.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.doc ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/html/*.html ${STAGEDIR}${DOCSDIR}/html
.include <bsd.port.mk>