diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-11-30 17:33:51 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-11-30 17:33:51 +0800 |
commit | 18e72783648b58008aeebc04d16a8d3fca19e20e (patch) | |
tree | bf9c87c6a65e0cf2cfe065742ee8912d76d02669 /games/tong | |
parent | 3530f9681b8c04fba6c332434090c082d64cf5d6 (diff) | |
download | freebsd-ports-gnome-18e72783648b58008aeebc04d16a8d3fca19e20e.tar.gz freebsd-ports-gnome-18e72783648b58008aeebc04d16a8d3fca19e20e.tar.zst freebsd-ports-gnome-18e72783648b58008aeebc04d16a8d3fca19e20e.zip |
- Change Makefile header
- Change maintainer email to @FreeBSD.org
- USES gmake instead of USE_GMAKE
- Support STAGEDIR
- Add DOCS Option
Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'games/tong')
-rw-r--r-- | games/tong/Makefile | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/games/tong/Makefile b/games/tong/Makefile index 3f37f3ffb853..3084db6c5c95 100644 --- a/games/tong/Makefile +++ b/games/tong/Makefile @@ -1,4 +1,4 @@ -# Created by: nemysis@gmx.ch +# Created by: nemysis <nemysis@gmx.ch> # $FreeBSD$ PORTNAME= tong @@ -7,13 +7,13 @@ PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://www.nongnu.org/tong/ -MAINTAINER= nemysis@gmx.ch +MAINTAINER= nemysis@FreeBSD.org COMMENT= Tetris and Pong in the same place at the same time LICENSE= GPLv3 +USES= gmake USE_SDL= image mixer sdl -USE_GMAKE= yes PORTDOCS= CHANGELOG README making-of.txt notes.txt @@ -22,8 +22,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME} DESKTOP_ENTRIES="TONG!" "${COMMENT}" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" false -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|GAME_DATA_DIR := .|GAME_DATA_DIR := ${DATADIR}|' \ @@ -31,15 +30,19 @@ post-patch: ${WRKSRC}/Makefile do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - @cd ${WRKSRC} && ${COPYTREE_SHARE} "*.png" ${DATADIR} - ${MKDIR} ${DATADIR}/media - @cd ${WRKSRC}/media && ${COPYTREE_SHARE} "*.png *.xcf *.ogg *.ico" ${DATADIR}/media - ${LN} -sf ${DATADIR}/media/icon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png - -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @cd ${WRKSRC} && ${COPYTREE_SHARE} "*.png" ${STAGEDIR}${DATADIR} + + @${MKDIR} ${STAGEDIR}${DATADIR}/media/ + +.for d in *.png *.xcf *.ogg *.ico + @(cd ${WRKSRC}/media ; ${COPYTREE_SHARE} "${d}" ${STAGEDIR}${DATADIR}/media/) +.endfor + + ${LN} -sf ${DATADIR}/media/icon.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |