aboutsummaryrefslogtreecommitdiff
path: root/games/npush
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-17 23:52:45 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-17 23:52:45 +0000
commitac3f409aed3e92a03e97fcf0ffd8c66543b1df39 (patch)
treed1d771d1922184905d5b60a2426dc49c4b6ce5a4 /games/npush
parenta9c5b8d34b9428e423d47403ac5d0cfba88b9ff2 (diff)
downloadports-ac3f409aed3e92a03e97fcf0ffd8c66543b1df39.tar.gz
ports-ac3f409aed3e92a03e97fcf0ffd8c66543b1df39.zip
Notes
Diffstat (limited to 'games/npush')
-rw-r--r--games/npush/Makefile23
-rw-r--r--games/npush/pkg-plist20
2 files changed, 11 insertions, 32 deletions
diff --git a/games/npush/Makefile b/games/npush/Makefile
index e9d8e525930e..a695c78f2770 100644
--- a/games/npush/Makefile
+++ b/games/npush/Makefile
@@ -11,9 +11,10 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= A curses-based logic game similar to Sokoban and Boulder Dash
PORTDOCS= *
+PORTDATA= *
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
post-patch:
@${REINPLACE_CMD} -e 's|"levels|"${DATADIR}/levels|' \
@@ -23,16 +24,14 @@ do-build:
cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o npush npush.cpp -lncurses
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/npush ${PREFIX}/bin
- ${MKDIR} ${DATADIR}/levels
- ${INSTALL_DATA} ${WRKSRC}/levels/* ${DATADIR}/levels
- ${INSTALL_DATA} ${WRKSRC}/npush.png ${PREFIX}/share/pixmaps/
- ${MKDIR} ${PREFIX}/share/applications/
- ${INSTALL_DATA} ${WRKSRC}/npush.desktop ${PREFIX}/share/applications/
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/npush ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DATADIR}/levels
+ ${INSTALL_DATA} ${WRKSRC}/levels/* ${STAGEDIR}${DATADIR}/levels
+ ${INSTALL_DATA} ${WRKSRC}/npush.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications/
+ ${INSTALL_DATA} ${WRKSRC}/npush.desktop ${STAGEDIR}${PREFIX}/share/applications/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/index.html ${WRKSRC}/readme.txt \
- ${WRKSRC}/screenshot?.png ${DOCSDIR}
-.endif
+ ${WRKSRC}/screenshot?.png ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/npush/pkg-plist b/games/npush/pkg-plist
index 4ea0b027d19e..6d8f801dc207 100644
--- a/games/npush/pkg-plist
+++ b/games/npush/pkg-plist
@@ -1,24 +1,4 @@
bin/npush
share/applications/npush.desktop
-%%DATADIR%%/levels/Level 01 - Gold and Exit
-%%DATADIR%%/levels/Level 02 - Rocks
-%%DATADIR%%/levels/Level 03 - Dynamite
-%%DATADIR%%/levels/Level 04 - The Show Starts
-%%DATADIR%%/levels/Level 05 - The Triangle
-%%DATADIR%%/levels/Level 06 - Moving along
-%%DATADIR%%/levels/Level 07 - Duality
-%%DATADIR%%/levels/Level 08 - Traps and Treasure
-%%DATADIR%%/levels/Level 09 - Cooperation
-%%DATADIR%%/levels/Level 10 - Golden Age
-%%DATADIR%%/levels/Level 11 - Story of a lifetime
-%%DATADIR%%/levels/Level 12 - In the Mine
-%%DATADIR%%/levels/Level 13 - Warm-up
-%%DATADIR%%/levels/Level 14 - To and fro
-%%DATADIR%%/levels/Level 15 - Little by little
-%%DATADIR%%/levels/Level 16 - The break in
-%%DATADIR%%/levels/Level 17 - The great escape
-%%DATADIR%%/levels/Level 18 - The one road
share/pixmaps/npush.png
-@dirrm %%DATADIR%%/levels
-@dirrm %%DATADIR%%
@dirrmtry share/applications