From 5b7008e22822185e1a0066b1a7ae5c39da9a3150 Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Wed, 30 Oct 2013 06:42:56 +0000 Subject: [PATCH] - Convert USE_GMAKE to USES - Add stage support --- games/cavezofphear/Makefile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/games/cavezofphear/Makefile b/games/cavezofphear/Makefile index f9e41f01445e..4f0a8ad5f55b 100644 --- a/games/cavezofphear/Makefile +++ b/games/cavezofphear/Makefile @@ -18,28 +18,23 @@ OPTIONS_DEFINE= DOCS BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_BZIP2= yes -USE_GMAKE= yes +USES= gmake MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" ALL_TARGET= phear PORTDOCS= ChangeLog README README-EDITOR TODO -NO_STAGE= yes -.include - post-patch: @${REINPLACE_CMD} -e 's|\./data|${DATADIR}/data|' ${WRKSRC}/src/chk.c @${REINPLACE_CMD} -e 's|\./phear|phear|' ${WRKSRC}/README-EDITOR do-install: - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/phear ${PREFIX}/bin - ${MKDIR} ${DATADIR} - @(cd ${WRKSRC}; ${COPYTREE_SHARE} data ${DATADIR}) -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/phear ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}; ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include