From c32416a7953eaac9f562a0c2b447680f5d75f668 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 4 Jul 2016 14:10:01 +0000 Subject: [PATCH] - Simplify installation - Switch to options helpers --- games/fmars/Makefile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/games/fmars/Makefile b/games/fmars/Makefile index a1b694c03bab..62c0607f7929 100644 --- a/games/fmars/Makefile +++ b/games/fmars/Makefile @@ -30,18 +30,13 @@ post-patch: s|gcc -E|$$(CC) -E|' ${WRKSRC}/Makefile do-install: -# Program. - (cd ${WRKSRC} && ${INSTALL_PROGRAM} x${PORTNAME} \ - ${STAGEDIR}${PREFIX}/bin/${PORTNAME}) - -# Data. + ${INSTALL_PROGRAM} ${WRKSRC}/x${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} @${MKDIR} ${STAGEDIR}${DATADIR} -.for d in rc rc-test - @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) -.endfor + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "rc rc-test" ${STAGEDIR}${DATADIR}) -# Documentation (optional). +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}) + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include