1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add staging support.

Require bison, as the sketch.y file contains non-generic-YACC code.
This commit is contained in:
Joerg Wunsch 2014-08-08 21:36:32 +00:00
parent 2806e18382
commit 75028fa390
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364389

View File

@ -6,11 +6,13 @@ PORTVERSION= 0.3.7
CATEGORIES= graphics CATEGORIES= graphics
MASTER_SITES= http://www.frontiernet.net/~eugene.ressler/ MASTER_SITES= http://www.frontiernet.net/~eugene.ressler/
MAINTAINER= ports@FreeBSD.org MAINTAINER= joerg@FreeBSD.org
COMMENT= 3D Scene Description Translator COMMENT= 3D Scene Description Translator
LICENSE= GPLv3 LICENSE= GPLv3
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
MAKEFILE= makefile MAKEFILE= makefile
ALL_TARGET= ALL_TARGET=
USES= dos2unix gmake perl5 tar:tgz USES= dos2unix gmake perl5 tar:tgz
@ -18,8 +20,6 @@ USE_PERL5= build
PLIST_FILES= bin/sketch PLIST_FILES= bin/sketch
NO_STAGE= yes
OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -45,23 +45,23 @@ PORTEXAMPLES= *.sk
post-patch: post-patch:
@${REINPLACE_CMD} -e 's/^CC =.*//' \ @${REINPLACE_CMD} -e 's/^CC =.*//' \
-e 's/$$(CC)/$$(CC) $$(CFLAGS)/g' \ -e 's/$$(CC)/$$(CC) $$(CFLAGS)/g' \
-e 's/^YACC =.*/YACC = yacc/' ${WRKSRC}/${MAKEFILE} -e 's/^YACC =.*/YACC = bison/' ${WRKSRC}/${MAKEFILE}
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}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}/${DOCSDIR}
@${MKDIR} ${DOCSDIR2} @${MKDIR} ${STAGEDIR}/${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2} ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}/${DOCSDIR2}
@${MKDIR} ${DOCSDIR3} @${MKDIR} ${STAGEDIR}/${DOCSDIR3}
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3} ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}/${DOCSDIR3}
.endif .endif
.if ${PORT_OPTIONS:MEXAMPLES} .if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
cd ${WRKSRC}/Data && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR} cd ${WRKSRC}/Data && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}/${EXAMPLESDIR}
.endif .endif
.include <bsd.port.mk> .include <bsd.port.mk>