From 8b7640dc5584e02683a24af4deb4c59c7c5e4cc6 Mon Sep 17 00:00:00 2001 From: garbled Date: Wed, 21 Jul 1999 22:58:26 +0000 Subject: Pacman-1.0.0. The test application for clanlib. A pretty good version of the game too. Known to work on 1.4/alpha Pacman, a small demonstration game for ClanLib. --- games/pacman/Makefile | 20 ++++++++++++++++++++ games/pacman/files/md5 | 3 +++ games/pacman/files/patch-sum | 4 ++++ games/pacman/patches/patch-aa | 29 +++++++++++++++++++++++++++++ games/pacman/patches/patch-ab | 10 ++++++++++ games/pacman/pkg/COMMENT | 1 + games/pacman/pkg/DESCR | 3 +++ games/pacman/pkg/MESSAGE | 3 +++ games/pacman/pkg/PLIST | 4 ++++ 9 files changed, 77 insertions(+) create mode 100644 games/pacman/Makefile create mode 100644 games/pacman/files/md5 create mode 100644 games/pacman/files/patch-sum create mode 100644 games/pacman/patches/patch-aa create mode 100644 games/pacman/patches/patch-ab create mode 100644 games/pacman/pkg/COMMENT create mode 100644 games/pacman/pkg/DESCR create mode 100644 games/pacman/pkg/MESSAGE create mode 100644 games/pacman/pkg/PLIST diff --git a/games/pacman/Makefile b/games/pacman/Makefile new file mode 100644 index 00000000000..2d2155649c2 --- /dev/null +++ b/games/pacman/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/07/21 22:58:26 garbled Exp $ + +DISTNAME= Pacman-1.0.0 +CATEGORIES= games x11 +MASTER_SITES= http://dark.x.dtu.dk/clansoft/clanlib/download/ + +MAINTAINER= root@garbled.net +HOMEPAGE= http://www.clanlib.org/ + +DEPENDS+= ClanLib-0.1.15:../../graphics/ClanLib + +USE_X11BASE= yes +GNU_CONFIGURE= yes +USE_GMAKE= yes + +LDFLAGS+= -L${LOCALBASE}/lib +CFLAGS+= -I${X11BASE}/include +MAKE_ENV+= LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" + +.include "../../mk/bsd.pkg.mk" diff --git a/games/pacman/files/md5 b/games/pacman/files/md5 new file mode 100644 index 00000000000..ea2c5b07371 --- /dev/null +++ b/games/pacman/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/07/21 22:58:26 garbled Exp $ + +MD5 (Pacman-1.0.0.tar.gz) = e96a1849b0ae70b6bb9cfba11cac086a diff --git a/games/pacman/files/patch-sum b/games/pacman/files/patch-sum new file mode 100644 index 00000000000..b28883ef4b1 --- /dev/null +++ b/games/pacman/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 1999/07/21 22:58:26 garbled Exp $ + +MD5 (patch-aa) = 10eef50f8b825f2fe0664aaca3a8a809 +MD5 (patch-ab) = 66b07bd619cf9c0225a8e708de37f596 diff --git a/games/pacman/patches/patch-aa b/games/pacman/patches/patch-aa new file mode 100644 index 00000000000..cbd50fe12e7 --- /dev/null +++ b/games/pacman/patches/patch-aa @@ -0,0 +1,29 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/07/21 22:58:26 garbled Exp $ +--- Makefile.in.orig Mon Jun 7 10:49:02 1999 ++++ Makefile.in Tue Jul 20 23:59:02 1999 +@@ -4,9 +4,10 @@ + datadir = @datadir@ + bindir = @bindir@ + ++CPPFLAGS+= $(CFLAGS) + OBJF = pacman.o objects.o fontblowup.o + DATAFILES = pacman.dat +-EXTERN_LIBS = -lclan -lclanlayer2 ++EXTERN_LIBS = $(LDFLAGS) -lclan -lclanlayer2 + + all: pacman + +@@ -29,11 +30,11 @@ + + pacman: $(OBJF) $(DATAFILES) + @echo "Building executable pacman..." +- @g++ $(EXTERN_LIBS) -o pacman $(OBJF) ++ @g++ $(EXTERN_LIBS) -DDATAFILE=\"$(datadir)/pacman/pacman.dat\" -o pacman $(OBJF) + + %.o : %.cpp + @echo "Compiling $<" +- @$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -O3 -Wall $< -o $@ ++ @$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -DDATAFILE=\"$(datadir)/pacman/pacman.dat\" -O3 -Wall $< -o $@ + %.dat : %.scr + @echo "Building datafile $<" + @datafile_compiler $< $@ diff --git a/games/pacman/patches/patch-ab b/games/pacman/patches/patch-ab new file mode 100644 index 00000000000..1e39284941a --- /dev/null +++ b/games/pacman/patches/patch-ab @@ -0,0 +1,10 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/07/21 22:58:26 garbled Exp $ +--- config.h.in.orig Tue Jul 20 23:50:42 1999 ++++ config.h.in Tue Jul 20 23:51:30 1999 +@@ -2,6 +2,4 @@ + #ifndef header_config + #define header_config + +-#define DATAFILE "/usr/share/pacman/pacman.dat" +- + #endif diff --git a/games/pacman/pkg/COMMENT b/games/pacman/pkg/COMMENT new file mode 100644 index 00000000000..3899621befe --- /dev/null +++ b/games/pacman/pkg/COMMENT @@ -0,0 +1 @@ +Pacman, a small demonstration game for ClanLib. diff --git a/games/pacman/pkg/DESCR b/games/pacman/pkg/DESCR new file mode 100644 index 00000000000..ec91f20006e --- /dev/null +++ b/games/pacman/pkg/DESCR @@ -0,0 +1,3 @@ +A pacman game based on an old Apple IIe variant, where ghosts can follow a +trail the pacman leaves behind. +The game was written to demonstrate ClanLib, a crossplatform game SDK. diff --git a/games/pacman/pkg/MESSAGE b/games/pacman/pkg/MESSAGE new file mode 100644 index 00000000000..30daf2342e1 --- /dev/null +++ b/games/pacman/pkg/MESSAGE @@ -0,0 +1,3 @@ +Please set the environment variable LD_LIBRARY_PATH to the location of +your clanlib install (most likely ${X11BASE}/lib) in order to run +this program. You should only need to do this if you have an ELF machine. diff --git a/games/pacman/pkg/PLIST b/games/pacman/pkg/PLIST new file mode 100644 index 00000000000..5bb87b3edd1 --- /dev/null +++ b/games/pacman/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/07/21 22:58:26 garbled Exp $ +bin/pacman +share/pacman/pacman.dat +@dirrm share/pacman -- cgit v1.2.3