Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Sep 2012 16:22:49 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304694 - in head/games: . patapizza-tetris patapizza-tetris/files
Message-ID:  <201209221622.q8MGMnuX099382@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Sat Sep 22 16:22:48 2012
New Revision: 304694
URL: http://svn.freebsd.org/changeset/ports/304694

Log:
  Add patapizza-tetris 1.0, unofficial clone of the original Tetris game.
  
  PR:		ports/170704
  Submitted by:	nemysis@gmx.ch

Added:
  head/games/patapizza-tetris/
  head/games/patapizza-tetris/Makefile   (contents, props changed)
  head/games/patapizza-tetris/distinfo   (contents, props changed)
  head/games/patapizza-tetris/files/
  head/games/patapizza-tetris/files/patapizza-tetris.sh.in   (contents, props changed)
  head/games/patapizza-tetris/files/patch-Makefile   (contents, props changed)
  head/games/patapizza-tetris/files/patch-tetris.c   (contents, props changed)
  head/games/patapizza-tetris/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Sat Sep 22 16:09:00 2012	(r304693)
+++ head/games/Makefile	Sat Sep 22 16:22:48 2012	(r304694)
@@ -667,6 +667,7 @@
     SUBDIR += paintown
     SUBDIR += palomino
     SUBDIR += passage
+    SUBDIR += patapizza-tetris
     SUBDIR += pathological
     SUBDIR += pcgen
     SUBDIR += pear-Games_Chess

Added: head/games/patapizza-tetris/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/Makefile	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,64 @@
+# Created by: nemysis@gmx.ch
+# $FreeBSD$
+
+PORTNAME=	patapizza-tetris
+PORTVERSION=	1.0
+CATEGORIES=	games
+MASTER_SITES=	https://github.com/patapizza/tetris/downloads/
+DISTNAME=	${PORTNAME:S/patapizza-//}-${DISTVERSION}
+
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Unofficial clone of the original Tetris game
+
+LICENSE=	GPLv3
+
+OPTIONS_DEFINE=	DATA
+OPTIONS_DEFAULT=DATA
+
+FETCH_ARGS?=	-Fpr
+USE_GMAKE=	yes
+USE_SDL=	sdl image gfx ttf
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
+
+PORTDATA=	*
+PORTDOCS=	README.md
+
+SUB_FILES=	${PORTNAME}.sh
+
+post-patch:
+	${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKSRC}/Makefile
+
+.include <bsd.port.options.mk>
+
+do-build:
+	cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
+		-DDATA_PREFIX=\"${DATADIR}/\" \
+		-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lm tetris.c
+
+do-install:
+# Scripts
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+
+# Executable
+	${MKDIR} ${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
+
+# Data
+.if ${PORT_OPTIONS:MDATA}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR})
+.endif
+
+# Pixmaps
+	${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+.  for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.  endfor
+.endif
+
+.include <bsd.port.mk>

Added: head/games/patapizza-tetris/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/distinfo	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,2 @@
+SHA256 (tetris-1.0.tar.gz) = 06945705ca0b5242f4c3e7c86c1e6111e452a47a11919a549e0fb19bbb78210e
+SIZE (tetris-1.0.tar.gz) = 47115

Added: head/games/patapizza-tetris/files/patapizza-tetris.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/files/patapizza-tetris.sh.in	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+echo "patapizza Tetris: Starting up..."
+cd "%%DATADIR%%"
+./patapizza-tetris

Added: head/games/patapizza-tetris/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/files/patch-Makefile	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2012-04-09 13:32:21.000000000 +0200
++++ Makefile	2012-08-17 00:24:43.000000000 +0200
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+-CC = gcc
+-prefix = /usr
++CC = g++
++prefix = %%PREFIX%%
+ includedir = $(prefix)/include
+ tetris: tetris.c
+ 	$(CC) -Wall -I$(includedir)/SDL $< -o $@ -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lm

Added: head/games/patapizza-tetris/files/patch-tetris.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/files/patch-tetris.c	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,10 @@
+--- tetris.c.orig	2012-04-09 13:32:21.000000000 +0200
++++ tetris.c	2012-08-17 00:10:28.000000000 +0200
+@@ -20,7 +20,6 @@
+  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+  */
+  
+-#include <malloc.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <time.h>

Added: head/games/patapizza-tetris/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/patapizza-tetris/pkg-descr	Sat Sep 22 16:22:48 2012	(r304694)
@@ -0,0 +1,4 @@
+This game is an unofficial clone of the original Tetris game
+and is not endorsed by the registered trademark owners The Tetris Company, Inc.
+
+WWW: https://github.com/patapizza/tetris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209221622.q8MGMnuX099382>