- Stagify

- Make DOCS into an option, deprecating NOPORTDOCS

PR:		ports/187873
Submitted by:	Johannes Jost Meixner <xmj@chaot.net>
This commit is contained in:
Steve Wills 2014-03-26 02:24:37 +00:00
parent 3b41c49d0a
commit bb6378744f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349211

View file

@ -21,6 +21,8 @@ WRKSRC= ${WRKDIR}/WorldOfGooDemo
DATADIR= ${PREFIX}/share/WorldOfGoo
DOCSDIR= ${PREFIX}/share/doc/WorldOfGoo
OPTIONS_DEFINE= DOCS
.if defined(WITH_NVIDIA_GL)
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
USE_LINUX_APPS+= libglu
@ -28,7 +30,6 @@ USE_LINUX_APPS+= libglu
USE_LINUX_APPS+= dri
.endif
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
@ -52,12 +53,12 @@ pre-patch: .SILENT
>> ${WRKSRC}/WorldOfGoo
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${TARGET_BIN} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/WorldOfGoo ${PREFIX}/bin
cd ${WRKSRC} && ${COPYTREE_SHARE} "properties res" ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${TARGET_BIN} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/WorldOfGoo ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && ${COPYTREE_SHARE} "properties res" ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.post.mk>