diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-12-21 01:10:47 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-12-21 01:10:47 +0800 |
commit | 58da5b0ef645d27281c020214582a2710fa9f35f (patch) | |
tree | e88c061e450c000550252bed9b1ad18c363c6806 /games/agame | |
parent | 0ba8ce4f0b181c2458f2880cbb9ca3a92281e025 (diff) | |
download | freebsd-ports-gnome-58da5b0ef645d27281c020214582a2710fa9f35f.tar.gz freebsd-ports-gnome-58da5b0ef645d27281c020214582a2710fa9f35f.tar.zst freebsd-ports-gnome-58da5b0ef645d27281c020214582a2710fa9f35f.zip |
- Support staging
- Convert USE_GMAKE to USES
Diffstat (limited to 'games/agame')
-rw-r--r-- | games/agame/Makefile | 26 | ||||
-rw-r--r-- | games/agame/pkg-plist | 24 |
2 files changed, 9 insertions, 41 deletions
diff --git a/games/agame/Makefile b/games/agame/Makefile index b5ebf2ff598b..0b64c70e7016 100644 --- a/games/agame/Makefile +++ b/games/agame/Makefile @@ -16,12 +16,14 @@ COMMENT= Simple Tetris-like game LICENSE= GPLv2 +USES= gmake USE_SDL= sdl image mixer -USE_GMAKE= yes WRKSRC= ${WRKDIR}/game -PORTDOCS= README.TXT +PLIST_FILES= bin/game +PORTDOCS= * +PORTDATA= * DESKTOP_ENTRIES="game" \ "A simple tetris-like game" \ @@ -30,25 +32,15 @@ DESKTOP_ENTRIES="game" \ "Game;BlocksGame;" \ false -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin -.for dir in wav mp3 img - ${MKDIR} ${DATADIR}/${dir} - ${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}/ -.endfor - -.if ${PORT_OPTIONS:MDOCS} -post-install: - ${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/game ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC} && ${COPYTREE_SHARE} "wav mp3 img" ${STAGEDIR}${DATADIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> diff --git a/games/agame/pkg-plist b/games/agame/pkg-plist deleted file mode 100644 index f864bbfa4f28..000000000000 --- a/games/agame/pkg-plist +++ /dev/null @@ -1,24 +0,0 @@ -bin/game -%%DATADIR%%/img/background.png -%%DATADIR%%/img/game.png -%%DATADIR%%/img/game.svg -%%DATADIR%%/img/help.png -%%DATADIR%%/img/help.svg -%%DATADIR%%/img/icon.ico -%%DATADIR%%/img/icon.png -%%DATADIR%%/mp3/track-01.mp3 -%%DATADIR%%/wav/bonus.wav -%%DATADIR%%/wav/bonus2.wav -%%DATADIR%%/wav/earthquake.wav -%%DATADIR%%/wav/explode.wav -%%DATADIR%%/wav/fall.wav -%%DATADIR%%/wav/game_over.wav -%%DATADIR%%/wav/hurry.wav -%%DATADIR%%/wav/new_block.wav -%%DATADIR%%/wav/pause.wav -%%DATADIR%%/wav/score.wav -%%DATADIR%%/wav/start.wav -@dirrm %%DATADIR%%/wav -@dirrm %%DATADIR%%/mp3 -@dirrm %%DATADIR%%/img -@dirrm %%DATADIR%% |