Support stage

This commit is contained in:
Baptiste Daroussin 2014-04-22 09:54:33 +00:00
parent a8c883dcba
commit 83a1143e40
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351788

View File

@ -27,25 +27,16 @@ post-patch:
-e "s|-ltk\$$(tclvers)|-ltk${TK_SHLIB_VER}|" \
${WRKSRC}/Makefile
NO_STAGE= yes
PORTDOCS= README
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>