Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Aug 2012 15:10:23 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/170704: [NEW PORT] games/patapizza-tetris: An unofficial clone of the original Tetris game
Message-ID:  <20120817131031.B3EEC1065670@hub.freebsd.org>
Resent-Message-ID: <201208171320.q7HDK8vo046417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170704
>Category:       ports
>Synopsis:       [NEW PORT] games/patapizza-tetris: An unofficial clone of the original Tetris game
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 17 13:20:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC
>Description:
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

Generated and tested manually, tested with port test and with RedPorts (all RELEASES), sent with FreeBSD Port Tools 0.99_6 (mode: new)
>How-To-Repeat:
>Fix:

--- .shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	patapizza-tetris
#	patapizza-tetris/files
#	patapizza-tetris/files/patch-Makefile
#	patapizza-tetris/files/patch-tetris.c
#	patapizza-tetris/files/patapizza-tetris.sh.in
#	patapizza-tetris/Makefile
#	patapizza-tetris/pkg-descr
#	patapizza-tetris/distinfo
#
echo c - patapizza-tetris
mkdir -p patapizza-tetris > /dev/null 2>&1
echo c - patapizza-tetris/files
mkdir -p patapizza-tetris/files > /dev/null 2>&1
echo x - patapizza-tetris/files/patch-Makefile
sed 's/^X//' >patapizza-tetris/files/patch-Makefile << '3e7614c7d6e140795cb7cd0a068d9b11'
X--- Makefile.orig	2012-04-09 13:32:21.000000000 +0200
X+++ Makefile	2012-08-17 00:24:43.000000000 +0200
X@@ -1,6 +1,6 @@
X SHELL = /bin/sh
X-CC = gcc
X-prefix = /usr
X+CC = g++
X+prefix = /usr/local
X includedir = $(prefix)/include
X tetris: tetris.c
X 	$(CC) -Wall -I$(includedir)/SDL $< -o $@ -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lm
3e7614c7d6e140795cb7cd0a068d9b11
echo x - patapizza-tetris/files/patch-tetris.c
sed 's/^X//' >patapizza-tetris/files/patch-tetris.c << 'c00603c32f7607310976d287939f5190'
X--- tetris.c.orig	2012-04-09 13:32:21.000000000 +0200
X+++ tetris.c	2012-08-17 00:10:28.000000000 +0200
X@@ -20,7 +20,6 @@
X  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
X  */
X  
X-#include <malloc.h>
X #include <stdio.h>
X #include <stdlib.h>
X #include <time.h>
c00603c32f7607310976d287939f5190
echo x - patapizza-tetris/files/patapizza-tetris.sh.in
sed 's/^X//' >patapizza-tetris/files/patapizza-tetris.sh.in << '86a6499e22d0cdcbfc14435b985a71e7'
X#!/bin/sh
X#
X# $FreeBSD$
X
Xecho "patapizza Tetris: Starting up..."
Xcd "%%DATADIR%%"
X./patapizza-tetris
86a6499e22d0cdcbfc14435b985a71e7
echo x - patapizza-tetris/Makefile
sed 's/^X//' >patapizza-tetris/Makefile << 'b6dd6d9e3fc5fb1056d292025b271f8d'
X# New Ports collection makefile for	patapizza-tetris
X# Date created:		2012-08-16
X# Whom:			nemysis@gmx.ch
X#
X# $FreeBSD$
X#
X
XPORTNAME=	patapizza-tetris
XPORTVERSION=	1.0
XCATEGORIES=	games
XMASTER_SITES=	https://github.com/patapizza/tetris/downloads/
XDISTNAME=	${PORTNAME:S/patapizza-//}-${DISTVERSION}
X
XMAINTAINER=	nemysis@gmx.ch
XCOMMENT=	An unofficial clone of the original Tetris game
X
XLICENSE=	GPLv3
X
XOPTIONS_DEFINE=	DATA
XOPTIONS_DEFAULT=	DATA
X
XFETCH_ARGS?=	-Fpr
XUSE_GMAKE=	yes
XUSE_SDL=	sdl image gfx ttf
X
XPLIST_FILES=	bin/${PORTNAME} \
X		share/pixmaps/${PORTNAME}.png
X
XPORTDATA=	*
XPORTDOCS=	README.md
X
XSUB_FILES=	${PORTNAME}.sh
X
X.include <bsd.port.options.mk>
X
Xdo-build:
X	cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
X		-DDATA_PREFIX=\"${DATADIR}/\" \
X		-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lm tetris.c
X
Xdo-install:
X# Scripts
X	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
X
X# Executable
X	${MKDIR} ${DATADIR}
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
X
X# Data
X.if ${PORT_OPTIONS:MDATA}
X	@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR})
X.endif
X
X# Pixmaps
X	${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
X
X# Documentation
X.if ${PORT_OPTIONS:MDOCS}
X	${MKDIR} ${DOCSDIR}
X.  for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.  endfor
X.endif
X
X.include <bsd.port.mk>
b6dd6d9e3fc5fb1056d292025b271f8d
echo x - patapizza-tetris/pkg-descr
sed 's/^X//' >patapizza-tetris/pkg-descr << '42210853b48da60838738c760415551e'
XThis game is an unofficial clone of the original Tetris game
Xand is not endorsed by the registered trademark owners The Tetris Company, Inc.
X
XWWW: https://github.com/patapizza/tetris
42210853b48da60838738c760415551e
echo x - patapizza-tetris/distinfo
sed 's/^X//' >patapizza-tetris/distinfo << '95d08708f98c1d1892f04b5da4375cb7'
XSHA256 (tetris-1.0.tar.gz) = 06945705ca0b5242f4c3e7c86c1e6111e452a47a11919a549e0fb19bbb78210e
XSIZE (tetris-1.0.tar.gz) = 47115
95d08708f98c1d1892f04b5da4375cb7
exit
--- .shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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