--- pacman-10.orig/Imakefile +++ pacman-10/Imakefile @@ -18,12 +18,14 @@ t180.o t270.o t90.o timing.o usrinter.o vertwall.o \ walls.o -CURSES = -lcurses -ltermcap +CURSES = -lcurses /* most X11 screens are rather large, you might wisht to use "double" mode */ -/* CXXEXTRA_DEFINES = -DDOUBLE */ +CXXEXTRA_DEFINES = -DDOUBLE -fno-rtti -fno-exceptions -fPIC +CCLINK = g++ NormalProgramTarget(pacman,$(OBJS),$(DEPXLIB),$(CURSES),$(XLIB)) InstallProgram(pacman,$(BINDIR)) InstallManPage(pacman,$(MANDIR)) +AllTarget(pacman) DependTarget() --- pacman-10.orig/board.cc +++ pacman-10/board.cc @@ -119,7 +119,7 @@ oldtemp=oldlist; while (oldtemp) { //delete elements in the now previous sprite list oldnext=oldtemp->next; - delete oldnext; + delete oldtemp; oldtemp=oldnext; } if (zero && oldlist) { //personal thingie used for debug, not useful --- pacman-10.orig/gamedata.cc +++ pacman-10/gamedata.cc @@ -1,3 +1,4 @@ +#include #include"gamedata.h" #include"board.h" #include"pac.h" --- pacman-10.orig/ghost.cc +++ pacman-10/ghost.cc @@ -165,7 +165,7 @@ } } -Ghost::go(Pacman *pac) { //go for pacman: do ghost code +int Ghost::go(Pacman *pac) { //go for pacman: do ghost code typ w; //what type is at next coordinates int i=1; //moved or not? int xx,yy; //coordinates --- pacman-10.orig/ghost.h +++ pacman-10/ghost.h @@ -31,7 +31,7 @@ Ghost(COLOURTYPE,int,int); //constructor with coordinates ~Ghost(); //destructor void draw(void); //draw the ghost -go(Pacman*); //go for pacman: do ghost code +int go(Pacman*); //go for pacman: do ghost code typ is_a(void) {return classGhost;} void eat(void); //when pacman eats ghost void getxy(int*,int*); --- pacman-10.orig/pac.cc +++ pacman-10/pac.cc @@ -107,7 +107,7 @@ gh[2]= new Ghost(Colour::GHOSTCOLOUR3,GHOST3X,GHOST3Y); //initializing ghost 3 gh[3]= new Ghost(Colour::GHOSTCOLOUR4,GHOST4X,GHOST4Y); //initializing ghost 4 -inp=u->getinput(); //gets whether the game is done +// inp=u->getinput(); //gets whether the game is done writetext(); --- pacman-10.orig/pacman.man +++ pacman-10/pacman.man @@ -3,9 +3,9 @@ .\" This program is free software. See the file COPYING for a list .\" of conditions. .\" -.TH PACMAN 1 +.TH PACMAN 6 .SH NAME -pacman - the game of pacman +pacman \- the game of pacman .SH SYNOPSIS .B "pacman" [grey] --- pacman-10.orig/point.cc +++ pacman-10/point.cc @@ -1,7 +1,7 @@ #include"point.h" Point::Point(int xx=0,int yy=0) { x=xx; y=yy; }; -Point::val_x() { return x; }; -Point::val_y() { return y; }; +int Point::val_x() { return x; }; +int Point::val_y() { return y; }; void Point::set_x(int xx) { x=xx; }; void Point::set_y(int yy) { y=yy; }; void Point::set_xy(int xx,int yy) { x=xx; y=yy; }; --- pacman-10.orig/debian/changelog +++ pacman-10/debian/changelog @@ -0,0 +1,106 @@ +pacman (10-15) unstable; urgency=low + + * New Maintainer (closes: #182985). + * Update build system to use debhelper. + * debian/control: Std-Ver (bumped to 3.6.1). + * pacman.man: escaped bare dash. + + -- Joe Nahmias Wed, 29 Oct 2003 12:52:30 -0500 + +pacman (10-14) unstable; urgency=low + + * Rebuilt with g++ 3.3 which fixes old libstdc++2.10-glibc2.2 dep (closes: #210503) + + -- Peter Joseph Fri, 12 Sep 2003 13:37:11 +0100 + +pacman (10-13) unstable; urgency=low + + * Fixed HPPA build problems thanks to Snowman (closes: #104861) + + -- Peter Joseph Mon, 16 Jul 2001 00:40:44 +0100 + +pacman (10-12) unstable; urgency=low + + * New Maintainer (closes: #89251) + + -- Peter Joseph Sun, 17 Jun 2001 23:44:27 +0100 + +pacman (10-11) unstable; urgency=low + + * Fixed initialisation bug that was causing segfault at startup for some user. Closes: #45027. + + -- Steve McIntyre <93sam@debian.org> Fri, 9 Mar 2001 22:34:27 -0000 + +pacman (10-10) unstable; urgency=low + + * Renamed Build-Depends-Indep to Build-Depends. Closes: #88734. + * Changed maintainer address. + + -- Steve McIntyre <93sam@debian.org> Wed, 7 Mar 2001 01:00:27 -0000 + +pacman (10-9) unstable; urgency=low + + * Added Build-Depends-Indep. Closes: #84650. + * Updated Standards-Version. + + -- Steve McIntyre Sun, 18 Feb 2001 21:21:46 -0000 + +pacman (10-8) unstable; urgency=low + + * Moved /usr/doc stuff to /usr/share/doc. + * Updated Standards-Version. + * Lots of lintian warning fixes. + + -- Steve McIntyre Sat, 23 Dec 2000 16:11:46 -0000 + +pacman (10-7) frozen unstable; urgency=low + + * Rebuilt against ncurses4 for slink. + * Needed to add -fno-rtti -fno-exceptions to compiler flags to fix linking problems. + + -- Steve McIntyre Sat, 31 Oct 1998 09:30:46 -0000 + +pacman (10-6) unstable; urgency=low + + * Moved binary to /usr/games and manpage to /usr/man/man6, to fit Policy section 4.9. + + -- Steve McIntyre Sat, 14 Mar 1998 21:34:02 -0000 + +pacman (10-5) unstable; urgency=low + + * Libc6 compilation - used patch in bug#16195 (now closed). + * Fixed debian/rules so fakeroot will work. + * New standards-version. + * Updated menu entry. + + -- Steve McIntyre Sat, 10 Jan 1998 17:56:21 -0000 + +pacman (10-4) unstable; urgency=low + + * Moved man page into section 6. + * Fixed perms on man page. + + -- Steve McIntyre Thu, 31 Jan 1997 20:14:38 -0000 + +pacman (10-3) unstable; urgency=low + + * New maintainer + * Moved menu entry again - now Games/Arcade + + -- Steve McIntyre Mon, 20 Jan 1997 11:21:38 -0000 + +pacman (10-2) unstable; urgency=low + + * Changed location of pacman in the menus according to joey's advice. + + -- Christoph Lameter Tue, 7 Jan 1997 13:21:38 -0800 + +pacman (10-1) unstable; urgency=low + + * Initial Release. + + -- Christoph Lameter Sun, 29 Dec 1996 15:54:27 -0800 + +Local variables: +mode: debian-changelog +End: --- pacman-10.orig/debian/copyright +++ pacman-10/debian/copyright @@ -0,0 +1,24 @@ +This package was originally debianized by Christoph Lameter clameter@debian.org on Sun, 29 Dec 1996 15:54:27 -0800, and is now maintained by Joe Nahmias . + +It was downloaded from ftp.cdrom.com:/pub/FreeBSD/distfiles + +Upstream Author: Roar Thronaes + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- pacman-10.orig/debian/compat +++ pacman-10/debian/compat @@ -0,0 +1 @@ +4 --- pacman-10.orig/debian/menu +++ pacman-10/debian/menu @@ -0,0 +1 @@ +?package(pacman): needs=x11 section=Games/Arcade title=PacMan command=/usr/games/pacman --- pacman-10.orig/debian/manpages +++ pacman-10/debian/manpages @@ -0,0 +1 @@ +pacman._man --- pacman-10.orig/debian/control +++ pacman-10/debian/control @@ -0,0 +1,17 @@ +Source: pacman +Section: games +Priority: optional +Maintainer: Joe Nahmias +Standards-Version: 3.6.1.0 +Build-Depends: debhelper (>= 4), xlibs-dev, xutils, libncurses5-dev + +Package: pacman +Architecture: any +Depends: ${shlibs:Depends} +Description: Chase Monsters in a Labyrinth + You are Pacman, and you are supposed to eat all the small dots to get to + the next level. You are also supposed to keep away from the ghosts, + if they take you, you lose one life, unless you have eaten a large dot, + then you can, for a limited amount of time, chase and eat the ghosts. + There is also bonus available, for a limited amount of time. + An X gives just points, but a little pacman gives an extra life. --- pacman-10.orig/debian/rules +++ pacman-10/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +export CFLAGS + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + xmkmf -a + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -f Makefile + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/pacman. +# $(MAKE) install DESTDIR=$(CURDIR)/debian/pacman + dh_install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- pacman-10.orig/debian/install +++ pacman-10/debian/install @@ -0,0 +1 @@ +pacman usr/games/