From 425d3f3c0de0f9b1a822031fc316557b10a9f8aa Mon Sep 17 00:00:00 2001 From: ijliao Date: Fri, 31 May 2002 14:08:59 +0000 Subject: add tuxpuck 0.7.116 Shufflepuck Cafe Clone PR: 37512 Submitted by: Jan Stocker --- games/Makefile | 1 + games/tuxpuck/Makefile | 31 +++++++++++++++++++++++++++++++ games/tuxpuck/distinfo | 1 + games/tuxpuck/files/patch-Makefile | 36 ++++++++++++++++++++++++++++++++++++ games/tuxpuck/files/patch-tuxpuck.c | 11 +++++++++++ games/tuxpuck/pkg-comment | 1 + games/tuxpuck/pkg-descr | 7 +++++++ games/tuxpuck/pkg-plist | 1 + 8 files changed, 89 insertions(+) create mode 100644 games/tuxpuck/Makefile create mode 100644 games/tuxpuck/distinfo create mode 100644 games/tuxpuck/files/patch-Makefile create mode 100644 games/tuxpuck/files/patch-tuxpuck.c create mode 100644 games/tuxpuck/pkg-comment create mode 100644 games/tuxpuck/pkg-descr create mode 100644 games/tuxpuck/pkg-plist (limited to 'games') diff --git a/games/Makefile b/games/Makefile index 52b2f02..0c5c04d 100644 --- a/games/Makefile +++ b/games/Makefile @@ -282,6 +282,7 @@ SUBDIR += ttraffic SUBDIR += tux-aqfh SUBDIR += tuxkart + SUBDIR += tuxpuck SUBDIR += tuxracer SUBDIR += tuxtype SUBDIR += tvp diff --git a/games/tuxpuck/Makefile b/games/tuxpuck/Makefile new file mode 100644 index 0000000..2004189 --- /dev/null +++ b/games/tuxpuck/Makefile @@ -0,0 +1,31 @@ +# ex:ts=8 +# New ports collection makefile for: tuxpuck +# Date created: 25 April 2002 +# Whom: Jan Stocker +# +# $FreeBSD$ +# + +PORTNAME= tuxpuck +PORTVERSION= 0.7.116 +CATEGORIES= games +MASTER_SITES= http://www.efd.lth.se/~d00jkr/tuxpuck/ + +MAINTAINER= Jan.Stocker@t-online.de + +LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \ + png.5:${PORTSDIR}/graphics/png \ + vorbis.1:${PORTSDIR}/audio/libvorbis + +SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config +USE_GMAKE= yes +MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}" + +MANCOMPRESSED= yes +MAN6= tuxpuck.6 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tuxpuck ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/man/tuxpuck.6.gz ${MANPREFIX}/man/man6 + +.include diff --git a/games/tuxpuck/distinfo b/games/tuxpuck/distinfo new file mode 100644 index 0000000..d06766c --- /dev/null +++ b/games/tuxpuck/distinfo @@ -0,0 +1 @@ +MD5 (tuxpuck-0.7.116.tar.gz) = 6533daf46c4630840c8173e02b43b9f7 diff --git a/games/tuxpuck/files/patch-Makefile b/games/tuxpuck/files/patch-Makefile new file mode 100644 index 0000000..816dbfe --- /dev/null +++ b/games/tuxpuck/files/patch-Makefile @@ -0,0 +1,36 @@ +--- Makefile.orig Thu Apr 25 23:14:27 2002 ++++ Makefile Thu Apr 25 23:25:55 2002 +@@ -1,7 +1,7 @@ + # Makefile for TuxPuck , Copyright Jacob Kroon 2001-2002 + VERSION = 0.7.109 + CC = gcc +-CFLAGS += `sdl-config --cflags` -D_VERSION=\"$(VERSION)\" \ ++CFLAGS += `$(SDL_CONFIG) --cflags` -D_VERSION=\"$(VERSION)\" \ + -g -Wall -Werror + CSOURCES = tuxpuck.c video.c audio.c sprite.c font.c timer.c board.c \ + entity.c glass.c scoreboard.c player.c zoom.c png.c jpg.c \ +@@ -11,6 +11,7 @@ + + ############################################################# + ++ + OBJS=$(CSOURCES:.c=.o) + + %.o : %.c +@@ -18,7 +19,7 @@ + + tuxpuck : $(OBJS) + cd data; $(MAKE) +- $(CC) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng -ljpeg \ ++ $(CC) $(OBJS) data/libdata.a `$(SDL_CONFIG) --libs` -lm -lpng -ljpeg \ + -lz -lvorbisfile -lvorbis -o tuxpuck + + clean : +@@ -55,3 +56,7 @@ + install -d $(DESTDIR)/usr/man/man6 + install -m755 tuxpuck $(DESTDIR)/usr/bin + install -m644 man/tuxpuck.6.gz $(DESTDIR)/usr/man/man6 ++ ++all : tuxpuck ++ ++ diff --git a/games/tuxpuck/files/patch-tuxpuck.c b/games/tuxpuck/files/patch-tuxpuck.c new file mode 100644 index 0000000..ca26c8c --- /dev/null +++ b/games/tuxpuck/files/patch-tuxpuck.c @@ -0,0 +1,11 @@ +--- tuxpuck.c.orig Thu Apr 25 23:24:18 2002 ++++ tuxpuck.c Thu Apr 25 23:24:39 2002 +@@ -40,7 +40,7 @@ + #endif + + /* externals */ +-extern time_t time(time_t *); ++#include + extern void run_intro(void); + extern AIPlayer *tux_create(Pad *, Puck *); + extern AIPlayer *arcana_create(Pad *, Puck *); diff --git a/games/tuxpuck/pkg-comment b/games/tuxpuck/pkg-comment new file mode 100644 index 0000000..d5ee69b --- /dev/null +++ b/games/tuxpuck/pkg-comment @@ -0,0 +1 @@ +Shufflepuck Cafe Clone diff --git a/games/tuxpuck/pkg-descr b/games/tuxpuck/pkg-descr new file mode 100644 index 0000000..4cf4b75 --- /dev/null +++ b/games/tuxpuck/pkg-descr @@ -0,0 +1,7 @@ +Anyone remember "Shufflepuck Cafe" for the Amiga/AtariST? + +TuxPuck is a shufflepuck game written in C using SDL. The +player moves a pad around a board and tries to shoot down +the puck through the opponents defense. + +WWW: http://www.efd.lth.se/~d00jkr/tuxpuck/ diff --git a/games/tuxpuck/pkg-plist b/games/tuxpuck/pkg-plist new file mode 100644 index 0000000..ee473a0 --- /dev/null +++ b/games/tuxpuck/pkg-plist @@ -0,0 +1 @@ +bin/tuxpuck -- cgit v1.1