Bug 12788 - New port: gltron-0.31
Summary: New port: gltron-0.31
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-24 13:50 UTC by Andrey Zakhvatov
Modified: 1999-08-01 05:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Zakhvatov 1999-07-24 13:50:03 UTC
   This is a port of 3D worm game for two players for X Window System
Objective for game is not to drive into a wall.


# 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:
#
#	gltron-0.31
#	gltron-0.31/Makefile
#	gltron-0.31/files
#	gltron-0.31/files/md5
#	gltron-0.31/pkg
#	gltron-0.31/pkg/PLIST
#	gltron-0.31/pkg/COMMENT
#	gltron-0.31/pkg/DESCR
#	gltron-0.31/patches
#	gltron-0.31/patches/patch-aa
#	gltron-0.31/patches/patch-ab
#
echo c - gltron-0.31
mkdir -p gltron-0.31 > /dev/null 2>&1
echo x - gltron-0.31/Makefile
sed 's/^X//' >gltron-0.31/Makefile << 'END-of-gltron-0.31/Makefile'
X# New ports collection makefile for:	gltron
X# Version required:			0.31
X# Date created:				24 July 1999
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=	glTron-0.31
XPKGNAME=	gltron-0.31
XCATEGORIES=	games
XMASTER_SITES=	http://www.ards.net/Andreas/
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
XUSE_X11=	yes
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/gltron
X	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gltron
X.endif
X
X.include <bsd.port.mk>
END-of-gltron-0.31/Makefile
echo c - gltron-0.31/files
mkdir -p gltron-0.31/files > /dev/null 2>&1
echo x - gltron-0.31/files/md5
sed 's/^X//' >gltron-0.31/files/md5 << 'END-of-gltron-0.31/files/md5'
XMD5 (glTron-0.31.tar.gz) = e521ed8e2ddcbad9b98ea42f0167b95f
END-of-gltron-0.31/files/md5
echo c - gltron-0.31/pkg
mkdir -p gltron-0.31/pkg > /dev/null 2>&1
echo x - gltron-0.31/pkg/PLIST
sed 's/^X//' >gltron-0.31/pkg/PLIST << 'END-of-gltron-0.31/pkg/PLIST'
Xbin/gltron
Xshare/doc/gltron/README
X@dirrm share/doc/gltron
END-of-gltron-0.31/pkg/PLIST
echo x - gltron-0.31/pkg/COMMENT
sed 's/^X//' >gltron-0.31/pkg/COMMENT << 'END-of-gltron-0.31/pkg/COMMENT'
XA 3D worm game for two players for X Window System
END-of-gltron-0.31/pkg/COMMENT
echo x - gltron-0.31/pkg/DESCR
sed 's/^X//' >gltron-0.31/pkg/DESCR << 'END-of-gltron-0.31/pkg/DESCR'
XObjective for game is not to drive into a wall.
X
XWWW: http://www.ards.net/Andreas/gltron.html
END-of-gltron-0.31/pkg/DESCR
echo c - gltron-0.31/patches
mkdir -p gltron-0.31/patches > /dev/null 2>&1
echo x - gltron-0.31/patches/patch-aa
sed 's/^X//' >gltron-0.31/patches/patch-aa << 'END-of-gltron-0.31/patches/patch-aa'
X--- Makefile	Fri Jul 23 14:02:24 1999
X+++ /home/andy/tmp/wrk/Makefile	Sat Jul 24 16:30:58 1999
X@@ -1,12 +1,12 @@
X # Makefile for gltron
X 
X-XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lm
X+XLIBS = -L$(X11BASE)/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lm
X 
X-GL_LIBS = -lMesaGL -lMesaGLU -lglut $(XLIBS)
X+GL_LIBS = -lMesaGL -lMesaGLU -lglut
X 
X-CC = gcc -g
X+#CC = gcc -g
X 
X all: gltron
X 
X gltron: gltron.c gltron.h
X-	$(CC) -o gltron gltron.c $(GL_LIBS) $(XLIBS)
X+	$(CC) -o gltron gltron.c -I$(X11BASE)/include $(GL_LIBS) $(XLIBS)
END-of-gltron-0.31/patches/patch-aa
echo x - gltron-0.31/patches/patch-ab
sed 's/^X//' >gltron-0.31/patches/patch-ab << 'END-of-gltron-0.31/patches/patch-ab'
X--- gltron.c	Fri Jul 23 14:29:57 1999
X+++ /home/andy/tmp/wrk/gltron.c	Sat Jul 24 16:32:48 1999
X@@ -17,6 +17,9 @@
X */
X 
X #include "gltron.h"
X+#ifdef __FreeBSD__
X+#include <floatingpoint.h>
X+#endif
X 
X void setCol(int x, int y) {
X   int offset, mask;
X@@ -669,6 +672,9 @@
X     
X   int win_id;
X 
X+#ifdef __FreeBSD__
X+  fpsetmask(0);
X+#endif
X   glutInit(&argc, argv);
X   glutInitWindowSize(WIN_WIDTH, WIN_HEIGHT);
X   glutInitWindowPosition(0, 0);
END-of-gltron-0.31/patches/patch-ab
exit

Fix: 

Please, check and commit this port.
Comment 1 cpiazza freebsd_committer freebsd_triage 1999-08-01 05:18:12 UTC
State Changed
From-To: open->closed

Committed with an upgrade to 0.32, thanks!