Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 1999 15:32:06 +0400 (MSD)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13267: New port: glasteroids-1.0
Message-ID:  <199908201132.PAA00861@icc.surw.chel.su>

next in thread | raw e-mail | index | archive | help

>Number:         13267
>Category:       ports
>Synopsis:       New port: glasteroids-1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 20 04:40:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Zakhvatov
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
South Ural Railway ICC
>Environment:

>Description:

   This is a port of glasteroids-1.0, 3D Asteroids game clone for
X Window System. The goal is simple: Don't get killed.  

WWW: http://www.honors.montana.edu/~jjc/Glasteroids/


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	glasteroids-1.0
#	glasteroids-1.0/Makefile
#	glasteroids-1.0/files
#	glasteroids-1.0/files/md5
#	glasteroids-1.0/files/Makefile.FreeBSD
#	glasteroids-1.0/patches
#	glasteroids-1.0/patches/patch-aa
#	glasteroids-1.0/patches/patch-ac
#	glasteroids-1.0/patches/patch-ab
#	glasteroids-1.0/pkg
#	glasteroids-1.0/pkg/PLIST
#	glasteroids-1.0/pkg/COMMENT
#	glasteroids-1.0/pkg/DESCR
#
echo c - glasteroids-1.0
mkdir -p glasteroids-1.0 > /dev/null 2>&1
echo x - glasteroids-1.0/Makefile
sed 's/^X//' >glasteroids-1.0/Makefile << 'END-of-glasteroids-1.0/Makefile'
X# New ports collection makefile for:	glasteroids
X# Version required:			1.0
X# Date created:				16 August 1999
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=	Glasteriods
XPKGNAME=	glasteroids-1.0
XCATEGORIES=	games
XMASTER_SITES=	http://www.honors.montana.edu/~jjc/Glasteroids/
X
XMAINTAINER=	andy@icc.surw.chel.su
X
XLIB_DEPENDS=	MesaGL.14:${PORTSDIR}/graphics/Mesa3 \
X		MesaGLU.14:${PORTSDIR}/graphics/Mesa3 \
X		glut.3:${PORTSDIR}/graphics/Mesa3
X
XMAKEFILE=	Makefile.FreeBSD
X
XWRKSRC=		${WRKDIR}/Glasteroids
X
XUSE_X_PREFIX=	yes
X
Xpre-build:
X	@ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC}
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids
X	@ ${MKDIR} ${PREFIX}/share/glasteroids
X	@ ${INSTALL_DATA} ${WRKSRC}/gameText.txf ${PREFIX}/share/glasteroids
X	@ cd ${WRKSRC}; tar -cf - scores.txt textures | \
X		( cd ${PREFIX}/share/glasteroids; tar -xf - )
X	@ chmod a+rx ${PREFIX}/share/glasteroids/textures
X	@ chmod a+rw ${PREFIX}/share/glasteroids/scores.txt
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/glasteroids
X	@ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/glasteroids
X	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/glasteroids
X.endif
X
X.include <bsd.port.mk>
END-of-glasteroids-1.0/Makefile
echo c - glasteroids-1.0/files
mkdir -p glasteroids-1.0/files > /dev/null 2>&1
echo x - glasteroids-1.0/files/md5
sed 's/^X//' >glasteroids-1.0/files/md5 << 'END-of-glasteroids-1.0/files/md5'
XMD5 (Glasteriods.tar.gz) = d7e0bd2a2fc21724b35e4bfc318fc2bc
END-of-glasteroids-1.0/files/md5
echo x - glasteroids-1.0/files/Makefile.FreeBSD
sed 's/^X//' >glasteroids-1.0/files/Makefile.FreeBSD << 'END-of-glasteroids-1.0/files/Makefile.FreeBSD'
XSRCS  = Glasteroids.cxx Bobcat.cxx MarchingCubes.cxx BCship.cxx BCobject.cxx\
X        BCcollide.cxx GlutFunctions.cxx BCmenu.cxx BCenemy.cxx TexFont.cxx \
X	SplashScreen.cxx
XOBJS  = Glasteroids.o   Bobcat.o   MarchingCubes.o   BCship.o   BCobject.o\
X        BCcollide.o   GlutFunctions.o   BCmenu.o   BCenemy.o   TexFont.o \
X	SplashScreen.o
XCXX  ?= c++
XPROG  = Glasteroids
X
XLIBES = -lglut -lMesaGLU -lMesaGL -lXmu -lX11 -lXext -lm -lXi
X
XINCDIR = -I/usr/X11R6/include
XLIBDIR = -L/usr/X11R6/lib
X
XPREFIX ?= /usr/X11R6
X
X.SUFFIXES: .cxx .o
X
X.cxx.o:
X	$(CXX) $(CXXFLAGS) -DPREFIX=\"${PREFIX}\" -c $< $(INCDIR)
X
Xall: $(PROG)
X
X$(PROG): $(OBJS)
X	$(CXX) -o $(PROG) -Wall $(OBJS) $(LIBDIR) $(LIBES)
X
Xclean:
X	rm -f *.o *~ $(PROG)
X
Xdepend:
X	makedepend -- $(INCDIR) -- $(SRCS)
END-of-glasteroids-1.0/files/Makefile.FreeBSD
echo c - glasteroids-1.0/patches
mkdir -p glasteroids-1.0/patches > /dev/null 2>&1
echo x - glasteroids-1.0/patches/patch-aa
sed 's/^X//' >glasteroids-1.0/patches/patch-aa << 'END-of-glasteroids-1.0/patches/patch-aa'
X--- BCmenu.h	Thu Aug 12 04:48:58 1999
X+++ /home/andy/tmp/wrk/BCmenu.h	Tue Aug 17 15:28:12 1999
X@@ -23,7 +23,7 @@
X #include "BCincludes.h"
X #include "TexFont.h"
X 
X-#define HIGH_SCORE_FILE "scores.txt"
X+#define HIGH_SCORE_FILE PREFIX "/share/glasteroids/scores.txt"
X #define MAX_HIGH_SCORES 10
X #define MAX_NAME_LENGTH 10
X 
END-of-glasteroids-1.0/patches/patch-aa
echo x - glasteroids-1.0/patches/patch-ac
sed 's/^X//' >glasteroids-1.0/patches/patch-ac << 'END-of-glasteroids-1.0/patches/patch-ac'
X--- Glasteroids.cxx	Thu Aug 12 04:48:58 1999
X+++ /home/andy/tmp/wrk/Glasteroids.cxx	Tue Aug 17 15:11:12 1999
X@@ -1,5 +1,8 @@
X #include <stdlib.h>
X #include <time.h>
X+#ifdef __FreeBSD__
X+#include <floatingpoint.h>
X+#endif
X #include "Bobcat.h"
X 
X /*
X@@ -75,6 +78,9 @@
X {
X     BCworld *world;
X     
X+#ifdef __FreeBSD__
X+    fpsetmask(0);
X+#endif
X     world = BCgetWorld ( );
X 
X     world->InitWorld ( argc, argv,"Glasteroids", 640, 480, 100 );
END-of-glasteroids-1.0/patches/patch-ac
echo x - glasteroids-1.0/patches/patch-ab
sed 's/^X//' >glasteroids-1.0/patches/patch-ab << 'END-of-glasteroids-1.0/patches/patch-ab'
X--- Bobcat.cxx	Thu Aug 12 04:48:58 1999
X+++ /home/andy/tmp/wrk/Bobcat.cxx	Tue Aug 17 15:28:23 1999
X@@ -111,14 +111,14 @@
X     
X     glutIdleFunc ( InternalIdle );
X 
X-    font = txfLoadFont ( "gameText.txf" );
X+    font = txfLoadFont ( PREFIX "/share/glasteroids/gameText.txf" );
X 
X     Menu = new BCmenu ( font );
X 
X     InitTextures ( );    
X     InitOpenGL ( );
X 
X-    LoadSplashScreen ( "textures/splash.raw" );
X+    LoadSplashScreen ( PREFIX "/share/glasteroids/textures/splash.raw" );
X     
X     numActiveDust = 0;
X     for ( i = 0; i < MAX_ASTEROID_DUST_SYSTEMS; i++ )
END-of-glasteroids-1.0/patches/patch-ab
echo c - glasteroids-1.0/pkg
mkdir -p glasteroids-1.0/pkg > /dev/null 2>&1
echo x - glasteroids-1.0/pkg/PLIST
sed 's/^X//' >glasteroids-1.0/pkg/PLIST << 'END-of-glasteroids-1.0/pkg/PLIST'
Xbin/glasteroids
Xshare/doc/glasteroids/COPYING
Xshare/doc/glasteroids/README
Xshare/glasteroids/gameText.txf
X@mode 666
Xshare/glasteroids/scores.txt
X@mode
Xshare/glasteroids/textures/splash.raw
Xshare/glasteroids/textures/splash_non.raw
X@dirrm share/doc/glasteroids
X@dirrm share/glasteroids/textures
X@dirrm share/glasteroids
END-of-glasteroids-1.0/pkg/PLIST
echo x - glasteroids-1.0/pkg/COMMENT
sed 's/^X//' >glasteroids-1.0/pkg/COMMENT << 'END-of-glasteroids-1.0/pkg/COMMENT'
X3D Asteroids game for X Window System
END-of-glasteroids-1.0/pkg/COMMENT
echo x - glasteroids-1.0/pkg/DESCR
sed 's/^X//' >glasteroids-1.0/pkg/DESCR << 'END-of-glasteroids-1.0/pkg/DESCR'
X3D Asteroids game clone for X Window System.
XThe goal is simple: Don't get killed.  
X
XFeel free to email questions, comments, ideas,
Xetc. to cohen@cs.montana.edu
X
XWWW: http://www.honors.montana.edu/~jjc/Glasteroids/
END-of-glasteroids-1.0/pkg/DESCR
exit


>How-To-Repeat:

>Fix:

   Please, check and commit this port.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908201132.PAA00861>