diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 1999-12-23 21:39:31 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 1999-12-23 21:39:31 +0000 |
commit | e94fcf41dc2290be374eb5734ff7e2a0b64624b6 (patch) | |
tree | 29ef29707aa13c9190ce729326b784a20aa48236 /games/glasteroids | |
parent | Turn some spaces into tabs. (diff) |
This is a port of glasteroids-1.0, 3D Asteroids game clone for
X Window System. The goal is simple: Don't get killed.
PR: 13267
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes:
svn path=/head/; revision=23939
Diffstat (limited to 'games/glasteroids')
-rw-r--r-- | games/glasteroids/Makefile | 45 | ||||
-rw-r--r-- | games/glasteroids/distinfo | 1 | ||||
-rw-r--r-- | games/glasteroids/files/Makefile.FreeBSD | 31 | ||||
-rw-r--r-- | games/glasteroids/files/patch-aa | 11 | ||||
-rw-r--r-- | games/glasteroids/files/patch-ab | 19 | ||||
-rw-r--r-- | games/glasteroids/files/patch-ac | 21 | ||||
-rw-r--r-- | games/glasteroids/pkg-comment | 1 | ||||
-rw-r--r-- | games/glasteroids/pkg-descr | 7 | ||||
-rw-r--r-- | games/glasteroids/pkg-plist | 12 |
9 files changed, 148 insertions, 0 deletions
diff --git a/games/glasteroids/Makefile b/games/glasteroids/Makefile new file mode 100644 index 000000000000..5d5691e3d795 --- /dev/null +++ b/games/glasteroids/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: glasteroids +# Version required: 1.0 +# Date created: 16 August 1999 +# Whom: Andrey Zakhvatov +# +# $FreeBSD$ +# + +DISTNAME= Glasteriods +PKGNAME= glasteroids-1.0 +CATEGORIES= games +MASTER_SITES= http://www.honors.montana.edu/~jjc/Glasteroids/ + +MAINTAINER= andy@icc.surw.chel.su + +LIB_DEPENDS= MesaGL.14:${PORTSDIR}/graphics/Mesa3 \ + MesaGLU.14:${PORTSDIR}/graphics/Mesa3 \ + glut.3:${PORTSDIR}/graphics/Mesa3 + +MAKEFILE= Makefile.FreeBSD + +WRKSRC= ${WRKDIR}/Glasteroids + +USE_X_PREFIX= yes + +pre-build: + @ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC} + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids + @ ${MKDIR} ${PREFIX}/share/glasteroids + @ ${INSTALL_DATA} ${WRKSRC}/gameText.txf ${PREFIX}/share/glasteroids + @ cd ${WRKSRC}; tar -cf - scores.txt textures | \ + ( cd ${PREFIX}/share/glasteroids; tar -xf - ) + @ chmod a+rx ${PREFIX}/share/glasteroids/textures + @ chmod a+rw ${PREFIX}/share/glasteroids/scores.txt + +post-install: +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${PREFIX}/share/doc/glasteroids + @ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/glasteroids + @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/glasteroids +.endif + +.include <bsd.port.mk> diff --git a/games/glasteroids/distinfo b/games/glasteroids/distinfo new file mode 100644 index 000000000000..7f39b48ea84a --- /dev/null +++ b/games/glasteroids/distinfo @@ -0,0 +1 @@ +MD5 (Glasteriods.tar.gz) = d7e0bd2a2fc21724b35e4bfc318fc2bc diff --git a/games/glasteroids/files/Makefile.FreeBSD b/games/glasteroids/files/Makefile.FreeBSD new file mode 100644 index 000000000000..13e9b4c9d690 --- /dev/null +++ b/games/glasteroids/files/Makefile.FreeBSD @@ -0,0 +1,31 @@ +SRCS = Glasteroids.cxx Bobcat.cxx MarchingCubes.cxx BCship.cxx BCobject.cxx\ + BCcollide.cxx GlutFunctions.cxx BCmenu.cxx BCenemy.cxx TexFont.cxx \ + SplashScreen.cxx +OBJS = Glasteroids.o Bobcat.o MarchingCubes.o BCship.o BCobject.o\ + BCcollide.o GlutFunctions.o BCmenu.o BCenemy.o TexFont.o \ + SplashScreen.o +CXX ?= c++ +PROG = Glasteroids + +LIBES = -lglut -lMesaGLU -lMesaGL -lXmu -lX11 -lXext -lm -lXi + +INCDIR = -I/usr/X11R6/include +LIBDIR = -L/usr/X11R6/lib + +PREFIX ?= /usr/X11R6 + +.SUFFIXES: .cxx .o + +.cxx.o: + $(CXX) $(CXXFLAGS) -DPREFIX=\"${PREFIX}\" -c $< $(INCDIR) + +all: $(PROG) + +$(PROG): $(OBJS) + $(CXX) -o $(PROG) -Wall $(OBJS) $(LIBDIR) $(LIBES) + +clean: + rm -f *.o *~ $(PROG) + +depend: + makedepend -- $(INCDIR) -- $(SRCS) diff --git a/games/glasteroids/files/patch-aa b/games/glasteroids/files/patch-aa new file mode 100644 index 000000000000..d484839dc974 --- /dev/null +++ b/games/glasteroids/files/patch-aa @@ -0,0 +1,11 @@ +--- BCmenu.h Thu Aug 12 04:48:58 1999 ++++ /home/andy/tmp/wrk/BCmenu.h Tue Aug 17 15:28:12 1999 +@@ -23,7 +23,7 @@ + #include "BCincludes.h" + #include "TexFont.h" + +-#define HIGH_SCORE_FILE "scores.txt" ++#define HIGH_SCORE_FILE PREFIX "/share/glasteroids/scores.txt" + #define MAX_HIGH_SCORES 10 + #define MAX_NAME_LENGTH 10 + diff --git a/games/glasteroids/files/patch-ab b/games/glasteroids/files/patch-ab new file mode 100644 index 000000000000..df2f64692275 --- /dev/null +++ b/games/glasteroids/files/patch-ab @@ -0,0 +1,19 @@ +--- Bobcat.cxx Thu Aug 12 04:48:58 1999 ++++ /home/andy/tmp/wrk/Bobcat.cxx Tue Aug 17 15:28:23 1999 +@@ -111,14 +111,14 @@ + + glutIdleFunc ( InternalIdle ); + +- font = txfLoadFont ( "gameText.txf" ); ++ font = txfLoadFont ( PREFIX "/share/glasteroids/gameText.txf" ); + + Menu = new BCmenu ( font ); + + InitTextures ( ); + InitOpenGL ( ); + +- LoadSplashScreen ( "textures/splash.raw" ); ++ LoadSplashScreen ( PREFIX "/share/glasteroids/textures/splash.raw" ); + + numActiveDust = 0; + for ( i = 0; i < MAX_ASTEROID_DUST_SYSTEMS; i++ ) diff --git a/games/glasteroids/files/patch-ac b/games/glasteroids/files/patch-ac new file mode 100644 index 000000000000..7585e82d0362 --- /dev/null +++ b/games/glasteroids/files/patch-ac @@ -0,0 +1,21 @@ +--- Glasteroids.cxx Thu Aug 12 04:48:58 1999 ++++ /home/andy/tmp/wrk/Glasteroids.cxx Tue Aug 17 15:11:12 1999 +@@ -1,5 +1,8 @@ + #include <stdlib.h> + #include <time.h> ++#ifdef __FreeBSD__ ++#include <floatingpoint.h> ++#endif + #include "Bobcat.h" + + /* +@@ -75,6 +78,9 @@ + { + BCworld *world; + ++#ifdef __FreeBSD__ ++ fpsetmask(0); ++#endif + world = BCgetWorld ( ); + + world->InitWorld ( argc, argv,"Glasteroids", 640, 480, 100 ); diff --git a/games/glasteroids/pkg-comment b/games/glasteroids/pkg-comment new file mode 100644 index 000000000000..bc394c5d3a94 --- /dev/null +++ b/games/glasteroids/pkg-comment @@ -0,0 +1 @@ +3D Asteroids game for X Window System diff --git a/games/glasteroids/pkg-descr b/games/glasteroids/pkg-descr new file mode 100644 index 000000000000..9b4096724f2d --- /dev/null +++ b/games/glasteroids/pkg-descr @@ -0,0 +1,7 @@ +3D Asteroids game clone for X Window System. +The goal is simple: Don't get killed. + +Feel free to email questions, comments, ideas, +etc. to cohen@cs.montana.edu + +WWW: http://www.honors.montana.edu/~jjc/Glasteroids/ diff --git a/games/glasteroids/pkg-plist b/games/glasteroids/pkg-plist new file mode 100644 index 000000000000..dfa5796acf08 --- /dev/null +++ b/games/glasteroids/pkg-plist @@ -0,0 +1,12 @@ +bin/glasteroids +share/doc/glasteroids/COPYING +share/doc/glasteroids/README +share/glasteroids/gameText.txf +@mode 666 +share/glasteroids/scores.txt +@mode +share/glasteroids/textures/splash.raw +share/glasteroids/textures/splash_non.raw +@dirrm share/doc/glasteroids +@dirrm share/glasteroids/textures +@dirrm share/glasteroids |