aboutsummaryrefslogtreecommitdiff
path: root/games/wordplay
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-12-31 08:51:35 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-12-31 08:51:35 +0000
commitcb6955c10b1bd545229fca3f2948a3cb1cb9038e (patch)
treeb68a79685f14fdbf15260cab33410888a4e2ffa6 /games/wordplay
parent043782591d5d4704d0588d1965b2529670936c11 (diff)
downloadports-cb6955c10b1bd545229fca3f2948a3cb1cb9038e.tar.gz
ports-cb6955c10b1bd545229fca3f2948a3cb1cb9038e.zip
Notes
Diffstat (limited to 'games/wordplay')
-rw-r--r--games/wordplay/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/games/wordplay/Makefile b/games/wordplay/Makefile
index 4072f320a02d..5fee4216200f 100644
--- a/games/wordplay/Makefile
+++ b/games/wordplay/Makefile
@@ -19,8 +19,7 @@ PORTDOCS= readme
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt
PLIST_DIRS= %%DATADIR%%
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|CC=gcc|CC?=g++|' ${WRKSRC}/makefile
@@ -31,12 +30,11 @@ do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/words721.txt ${STAGEDIR}${DATADIR}
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>