Browse files

- 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)
  • Loading branch information...
1 parent 3530f96 commit 18e72783648b58008aeebc04d16a8d3fca19e20e @nemysis nemysis committed Nov 30, 2013
Showing with 18 additions and 15 deletions.
  1. +18 −15 games/tong/Makefile
View
33 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,24 +22,27 @@ 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}|' \
-e 's|CC = g++ -O3 |CC = ${CXX} ${CXXFLAGS} |' \
${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>

0 comments on commit 18e7278

Please sign in to comment.