2014-04-10 08:21:55 +02:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2012-09-22 18:22:48 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= patapizza-tetris
|
|
|
|
PORTVERSION= 1.0
|
2014-05-02 16:16:49 +02:00
|
|
|
PORTREVISION= 3
|
2012-09-22 18:22:48 +02:00
|
|
|
CATEGORIES= games
|
2013-12-31 19:07:06 +01:00
|
|
|
MASTER_SITES= SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}.png:icons
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
|
2012-09-22 18:22:48 +02:00
|
|
|
|
games/bombherman
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/connectagram
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
- Break lines around 80 characters
games/cretan-hubris
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/fbg2
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/gottet
- Transfer maintainership to games@ team
games/gtkatlantic
- Simplify master site
- Use tar.gz instead of tar.bz2
- Transfer maintainership to games@ team
- Don't silence warnings
- Set PORTSCOUT, Upstream use GTK3 in newer Versions
games/kye
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/madbomber
- Transfer maintainership to games@ team
games/megamario
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
- Add fixes_v1.7.txt to DOCS
games/nelly
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
- Cosmetical changes
games/oneisenough
- Transfer maintainership to games@ team
- USES shebangfix and SHEBANG_FILES instead of REINPLACE
- Simplify installation handling
games/patapizza-tetris
- Transfer maintainership to games@ team
games/puckman
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/pycadia
- Transfer maintainership to games@ team
games/pyspacewar
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
- Remove TODO.txt from DOCS
games/simsu
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
- Use tar:bzip2 instead of USE_BZIP2=yes
games/smashbattle
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/syobon
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
games/tanglet
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
- Use tar:bzip2 instead of USE_BZIP2=yes
games/thegrind
- Change Makefile header, use my name and @FreeBSD.org email
- Transfer maintainership to games@ team
2014-05-06 00:02:09 +02:00
|
|
|
MAINTAINER= games@FreeBSD.org
|
2012-09-22 18:22:48 +02:00
|
|
|
COMMENT= Unofficial clone of the original Tetris game
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-12-31 19:07:06 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= patapizza
|
|
|
|
GH_PROJECT= tetris
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
|
|
GH_COMMIT= e6f1a41
|
2012-09-22 18:22:48 +02:00
|
|
|
|
2013-12-31 19:07:06 +01:00
|
|
|
USES= gmake
|
|
|
|
USE_SDL= sdl image gfx ttf
|
2012-09-22 18:22:48 +02:00
|
|
|
|
|
|
|
PORTDOCS= README.md
|
2013-12-31 19:07:06 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-09-22 18:22:48 +02:00
|
|
|
|
2013-12-31 19:07:06 +01:00
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Patapizza Tetris" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;LogicGame;" ""
|
2012-09-22 18:22:48 +02:00
|
|
|
|
2012-09-22 21:52:31 +02:00
|
|
|
post-patch:
|
2014-04-10 08:21:55 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|CC =|CC ?=|; \
|
|
|
|
s|/usr|${PREFIX}|' ${WRKSRC}/Makefile
|
2012-09-22 21:52:31 +02:00
|
|
|
|
2012-09-22 18:22:48 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
|
|
|
|
-DDATA_PREFIX=\"${DATADIR}/\" \
|
2013-12-31 19:07:06 +01:00
|
|
|
-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image \
|
|
|
|
-lSDL_gfx -lSDL_ttf -lm tetris.c
|
2012-09-22 18:22:48 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-12-31 19:07:06 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${STAGEDIR}${DATADIR})
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2012-09-22 18:22:48 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|