2014-03-17 09:57:49 +00:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2012-12-04 22:42:38 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tong
|
2014-04-06 23:08:30 +00:00
|
|
|
PORTVERSION= 1.3
|
2014-12-08 16:48:38 +00:00
|
|
|
PORTREVISION= 2
|
2012-12-04 22:42:38 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.nongnu.org/tong/
|
|
|
|
|
2018-06-26 17:06:33 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-12-04 22:42:38 +00:00
|
|
|
COMMENT= Tetris and Pong in the same place at the same time
|
|
|
|
|
2016-01-12 16:20:31 +00:00
|
|
|
LICENSE= GPLv3+
|
2015-01-12 23:56:13 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2012-12-04 22:42:38 +00:00
|
|
|
|
2013-11-30 09:33:51 +00:00
|
|
|
USES= gmake
|
2012-12-04 22:42:38 +00:00
|
|
|
USE_SDL= image mixer sdl
|
|
|
|
|
2014-04-06 23:08:30 +00:00
|
|
|
PORTDOCS= CHANGELOG CREDITS README making-of.txt notes.txt
|
2014-03-17 09:57:49 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-12-04 22:42:38 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2014-03-17 09:57:49 +00:00
|
|
|
DESKTOP_ENTRIES="TONG!" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
2012-12-04 22:42:38 +00:00
|
|
|
|
|
|
|
post-patch:
|
2014-04-06 23:08:30 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|GAME_DATA_DIR := .|GAME_DATA_DIR := ${DATADIR}|; \
|
|
|
|
s|CC = g++ -O3 |CC = ${CXX} ${CXXFLAGS} |' \
|
2012-12-04 22:42:38 +00:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
2013-11-30 09:33:51 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
2014-04-06 23:08:30 +00:00
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "*.png" ${STAGEDIR}${DATADIR})
|
2013-11-30 09:33:51 +00:00
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/media/
|
2014-03-17 09:57:49 +00:00
|
|
|
.for f in *.png *.xcf *.ogg *.ico
|
2014-04-06 23:08:30 +00:00
|
|
|
@(cd ${WRKSRC}/media && ${COPYTREE_SHARE} "${f}" \
|
|
|
|
${STAGEDIR}${DATADIR}/media/)
|
2013-11-30 09:33:51 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
${LN} -sf ${DATADIR}/media/icon.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
|
|
|
2014-04-06 23:08:30 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-11-30 09:33:51 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2014-04-06 23:08:30 +00:00
|
|
|
${LN} -sf ${DOCSDIR}/CREDITS ${STAGEDIR}${DATADIR}
|
2012-12-04 22:42:38 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|