summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2003-06-03 00:41:41 +0000
committerhubertf <hubertf@pkgsrc.org>2003-06-03 00:41:41 +0000
commit25d4d299e3513d11f3c3527a94a9bf1a7511b29e (patch)
tree11e0d5b6e9c42d487204e9ea3fa93aad799ed996
parentc36c8b894be2541b8475c6d8493a5424d5169806 (diff)
downloadpkgsrc-25d4d299e3513d11f3c3527a94a9bf1a7511b29e.tar.gz
Import tuxmath-20010907, from pkgsrc-wip:
"Tux, of Math Command" ("TuxMath," for short) is an educational math tutorial arcade game starring Tux, the Linux mascot. Based on the classic arcade game "Missile Command," Commander Tux must defend his cities from an attack. In this case, though, he must do it by solving math problems. Comets are crashing towards the cities, and you must destroy them by solving their equations. It has animated graphics, sound effects and music, and optional on-screen input, for players who can't use a keyboard.
-rw-r--r--games/tuxmath/DESCR10
-rw-r--r--games/tuxmath/Makefile29
-rw-r--r--games/tuxmath/PLIST107
-rw-r--r--games/tuxmath/distinfo6
-rw-r--r--games/tuxmath/patches/patch-aa30
-rw-r--r--games/tuxmath/patches/patch-ab13
6 files changed, 195 insertions, 0 deletions
diff --git a/games/tuxmath/DESCR b/games/tuxmath/DESCR
new file mode 100644
index 00000000000..96b2a471d66
--- /dev/null
+++ b/games/tuxmath/DESCR
@@ -0,0 +1,10 @@
+"Tux, of Math Command" ("TuxMath," for short) is an educational
+math tutorial arcade game starring Tux, the Linux mascot.
+
+Based on the classic arcade game "Missile Command," Commander Tux
+must defend his cities from an attack. In this case, though, he
+must do it by solving math problems. Comets are crashing towards
+the cities, and you must destroy them by solving their equations.
+
+It has animated graphics, sound effects and music, and optional
+on-screen input, for players who can't use a keyboard.
diff --git a/games/tuxmath/Makefile b/games/tuxmath/Makefile
new file mode 100644
index 00000000000..61f1768fe22
--- /dev/null
+++ b/games/tuxmath/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/03 00:41:41 hubertf Exp $
+#
+
+DISTNAME= tuxmath-2001.09.07-0102
+PKGNAME= tuxmath-20010907
+WRKSRC= ${WRKDIR}/tuxmath
+CATEGORIES= games math
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tuxmath/}
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://www.newbreedsoftware.com/tuxmath/
+COMMENT= educational math arcade game
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+NO_CONFIGURE= # defined
+
+pre-install:
+ ${FIND} ${WRKSRC} -name CVS -type d | ${XARGS} ${RM} -rf
+ ${RM} -rf ${WRKSRC}/data/images/.xvpics
+ ${RM} -rf ${WRKSRC}/data/images/status/.xvpics
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tuxmath
+ ${INSTALL_DATA} ${WRKSRC}/docs/README.txt ${PREFIX}/share/doc/tuxmath/
+
+.include "../../audio/SDL_mixer/buildlink2.mk"
+.include "../../graphics/SDL_image/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/tuxmath/PLIST b/games/tuxmath/PLIST
new file mode 100644
index 00000000000..e5c70315c1b
--- /dev/null
+++ b/games/tuxmath/PLIST
@@ -0,0 +1,107 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/03 00:41:41 hubertf Exp $
+bin/tuxmath
+share/doc/tuxmath/README.txt
+share/tuxmath/images/alpha.png
+share/tuxmath/images/backgrounds/0.jpg
+share/tuxmath/images/backgrounds/1.jpg
+share/tuxmath/images/backgrounds/2.jpg
+share/tuxmath/images/backgrounds/3.jpg
+share/tuxmath/images/backgrounds/4.jpg
+share/tuxmath/images/cities/cdead-blue.png
+share/tuxmath/images/cities/cdead-green.png
+share/tuxmath/images/cities/cdead-orange.png
+share/tuxmath/images/cities/cdead-red.png
+share/tuxmath/images/cities/city-blue.png
+share/tuxmath/images/cities/city-green.png
+share/tuxmath/images/cities/city-orange.png
+share/tuxmath/images/cities/city-red.png
+share/tuxmath/images/cities/csplode-blue-1.png
+share/tuxmath/images/cities/csplode-blue-2.png
+share/tuxmath/images/cities/csplode-blue-3.png
+share/tuxmath/images/cities/csplode-blue-4.png
+share/tuxmath/images/cities/csplode-blue-5.png
+share/tuxmath/images/cities/csplode-green-1.png
+share/tuxmath/images/cities/csplode-green-2.png
+share/tuxmath/images/cities/csplode-green-3.png
+share/tuxmath/images/cities/csplode-green-4.png
+share/tuxmath/images/cities/csplode-green-5.png
+share/tuxmath/images/cities/csplode-orange-1.png
+share/tuxmath/images/cities/csplode-orange-2.png
+share/tuxmath/images/cities/csplode-orange-3.png
+share/tuxmath/images/cities/csplode-orange-4.png
+share/tuxmath/images/cities/csplode-orange-5.png
+share/tuxmath/images/cities/csplode-red-1.png
+share/tuxmath/images/cities/csplode-red-2.png
+share/tuxmath/images/cities/csplode-red-3.png
+share/tuxmath/images/cities/csplode-red-4.png
+share/tuxmath/images/cities/csplode-red-5.png
+share/tuxmath/images/cities/shields.png
+share/tuxmath/images/comets/comet1.png
+share/tuxmath/images/comets/comet2.png
+share/tuxmath/images/comets/comet3.png
+share/tuxmath/images/comets/cometex1.png
+share/tuxmath/images/comets/cometex2.png
+share/tuxmath/images/icon.png
+share/tuxmath/images/options-devel.jpg
+share/tuxmath/images/status/cmd_credits.png
+share/tuxmath/images/status/cmd_options.png
+share/tuxmath/images/status/cmd_play.png
+share/tuxmath/images/status/cmd_quit.png
+share/tuxmath/images/status/demo-small.png
+share/tuxmath/images/status/demo.png
+share/tuxmath/images/status/gameover.png
+share/tuxmath/images/status/keypad.png
+share/tuxmath/images/status/lednums.png
+share/tuxmath/images/status/loading.png
+share/tuxmath/images/status/nbs.png
+share/tuxmath/images/status/numbers.png
+share/tuxmath/images/status/nums.png
+share/tuxmath/images/status/paused.png
+share/tuxmath/images/status/score.png
+share/tuxmath/images/status/standby.png
+share/tuxmath/images/status/title.png
+share/tuxmath/images/status/tux4kids.png
+share/tuxmath/images/status/tux_helmet1.png
+share/tuxmath/images/status/tux_helmet2.png
+share/tuxmath/images/status/tux_helmet3.png
+share/tuxmath/images/status/wave.png
+share/tuxmath/images/tux/console.png
+share/tuxmath/images/tux/tux-console1.png
+share/tuxmath/images/tux/tux-console2.png
+share/tuxmath/images/tux/tux-console3.png
+share/tuxmath/images/tux/tux-console4.png
+share/tuxmath/images/tux/tux-drat.png
+share/tuxmath/images/tux/tux-egypt1.png
+share/tuxmath/images/tux/tux-egypt2.png
+share/tuxmath/images/tux/tux-fist1.png
+share/tuxmath/images/tux/tux-fist2.png
+share/tuxmath/images/tux/tux-kiss1.png
+share/tuxmath/images/tux/tux-kiss2.png
+share/tuxmath/images/tux/tux-relax1.png
+share/tuxmath/images/tux/tux-relax2.png
+share/tuxmath/images/tux/tux-sit.png
+share/tuxmath/images/tux/tux-yay1.png
+share/tuxmath/images/tux/tux-yay2.png
+share/tuxmath/images/tux/tux-yes1.png
+share/tuxmath/images/tux/tux-yes2.png
+share/tuxmath/images/tux/tux-yipe.png
+share/tuxmath/sounds/alarm.wav
+share/tuxmath/sounds/buzz.wav
+share/tuxmath/sounds/click.wav
+share/tuxmath/sounds/explosion.wav
+share/tuxmath/sounds/game.mod
+share/tuxmath/sounds/game2.mod
+share/tuxmath/sounds/game3.mod
+share/tuxmath/sounds/laser.wav
+share/tuxmath/sounds/pop.wav
+share/tuxmath/sounds/shieldsdown.wav
+@dirrm share/tuxmath/sounds
+@dirrm share/tuxmath/images/ufos
+@dirrm share/tuxmath/images/tux
+@dirrm share/tuxmath/images/status
+@dirrm share/tuxmath/images/comets
+@dirrm share/tuxmath/images/cities
+@dirrm share/tuxmath/images/backgrounds
+@dirrm share/tuxmath/images
+@dirrm share/tuxmath
+@dirrm share/doc/tuxmath
diff --git a/games/tuxmath/distinfo b/games/tuxmath/distinfo
new file mode 100644
index 00000000000..51c2b556c86
--- /dev/null
+++ b/games/tuxmath/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/03 00:41:41 hubertf Exp $
+
+SHA1 (tuxmath-2001.09.07-0102.tar.gz) = bdc146f05a9c0b5785bb14c73da2973af16a2bfc
+Size (tuxmath-2001.09.07-0102.tar.gz) = 1339967 bytes
+SHA1 (patch-aa) = f67528fe22e7a13dba902f2940ae91822a8bcb45
+SHA1 (patch-ab) = 236ed4430c410a01196cad5ac118cbde1a48ab4e
diff --git a/games/tuxmath/patches/patch-aa b/games/tuxmath/patches/patch-aa
new file mode 100644
index 00000000000..650b321feb4
--- /dev/null
+++ b/games/tuxmath/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/03 00:41:41 hubertf Exp $
+
+--- Makefile.orig Fri Sep 7 00:40:21 2001
++++ Makefile Wed Mar 26 23:23:08 2003
+@@ -15,8 +15,8 @@
+ LIBS=$(SDL_LIBS) $(MIXERLIB) -lSDL_image
+ MIXERLIB=-lSDL_mixer
+
+-DATA_PREFIX=/usr/share/tuxmath/
+-BIN_PREFIX=/usr/local/bin/
++DATA_PREFIX=$(PREFIX)/share/tuxmath/
++BIN_PREFIX=$(PREFIX)/bin/
+
+
+ VERSION=2001.09.07
+@@ -31,13 +31,11 @@
+ install:
+ @echo "COPYING BINARY TO $(BIN_PREFIX)"
+ cp tuxmath $(BIN_PREFIX)
+- chown root.root $(BIN_PREFIX)/tuxmath
+ chmod a+rx,g-w,o-w $(BIN_PREFIX)/tuxmath
+ @echo "COPYING DATA FILES TO $(DATA_PREFIX)"
+ mkdir -p $(DATA_PREFIX)
+ cp -r data/* $(DATA_PREFIX)
+- chown -R root.root $(DATA_PREFIX)
+- chmod -R a+rX,g-w,o-w $(DATA_PREFIX)
++ chmod -R a+r,g-w,o-w $(DATA_PREFIX)
+
+ clean:
+ -rm tuxmath
diff --git a/games/tuxmath/patches/patch-ab b/games/tuxmath/patches/patch-ab
new file mode 100644
index 00000000000..dff0ff62139
--- /dev/null
+++ b/games/tuxmath/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/06/03 00:41:41 hubertf Exp $
+
+--- src/setup.c.orig Fri Sep 7 00:31:55 2001
++++ src/setup.c
+@@ -250,7 +250,7 @@ void setup(int argc, char * argv[])
+ #ifndef NOSOUND
+ if (use_sound)
+ {
+- if (SDL_Init(SDL_INIT_AUDIO) < 0)
++ if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
+ {
+ fprintf(stderr,
+ "\nWarning: I could not initialize audio!\n"