From andy@icc.surw.chel.su  Tue Aug  4 22:24:18 1998
Received: from rich.chel.su (mobil.surnet.ru [195.54.2.7])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA13223
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 4 Aug 1998 22:24:18 -0700 (PDT)
          (envelope-from andy@icc.surw.chel.su)
Received: from icc.surw.chel.su (surw.chel.su [195.54.2.162]) by rich.chel.su (8.7.2/Murphy) with ESMTP id LAA22012 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Aug 1998 11:25:07 +0600 (UDT)
Received: (from andy@localhost)
          by icc.surw.chel.su (8.8.5/8.8.4)
	  id JAA07806; Wed, 5 Aug 1998 09:27:23 +0400 (MSD)
Message-Id: <199808050527.JAA07806@icc.surw.chel.su>
Date: Wed, 5 Aug 1998 09:27:23 +0400 (MSD)
From: Andrey Zakhvatov <andy@icc.surw.chel.su>
Reply-To: andy@icc.surw.chel.su
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port: ssystem-1.3
X-Send-Pr-Version: 3.2

>Number:         7495
>Category:       ports
>Synopsis:       New port: ssystem-1.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mph
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug  4 22:30:01 PDT 1998
>Closed-Date:    Thu Aug 6 13:58:03 EDT 1998
>Last-Modified:  Thu Aug  6 14:01:12 EDT 1998
>Originator:     Andrey Zakhvatov
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
South Ural Railway ICC
>Environment:

>Description:

   This is a port of OpenGL Solar System simulator for X Window System.
ssystem is an OpenGL Solar System simulator. Only the Sun , the nine
planets and a few major satellites are included. Background stars are
also included.


# 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:
#
#	ssystem-1.3
#	ssystem-1.3/Makefile
#	ssystem-1.3/files
#	ssystem-1.3/files/md5
#	ssystem-1.3/patches
#	ssystem-1.3/patches/patch-ab
#	ssystem-1.3/patches/patch-aa
#	ssystem-1.3/pkg
#	ssystem-1.3/pkg/PLIST
#	ssystem-1.3/pkg/COMMENT
#	ssystem-1.3/pkg/DESCR
#
echo c - ssystem-1.3
mkdir -p ssystem-1.3 > /dev/null 2>&1
echo x - ssystem-1.3/Makefile
sed 's/^X//' >ssystem-1.3/Makefile << 'END-of-ssystem-1.3/Makefile'
X# New ports collection makefile for:	ssystem
X# Version required:			1.3
X# Date created:				4 August 1998
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=	ssystem-1.3
XCATEGORIES=	astro x11
XMASTER_SITES=	http://www1.las.es/~amil/ssystem/
X
XMAINTAINER=	andy@icc.surw.chel.su
X
XLIB_DEPENDS=	jpeg\\.9\\.:${PORTSDIR}/graphics/jpeg \
X		MesaGL\\.13\\.:${PORTSDIR}/graphics/Mesa \
X		MesaGLU\\.13\\.:${PORTSDIR}/graphics/Mesa \
X		glut\\.3\\.:${PORTSDIR}/graphics/Mesa
X
XUSE_X11=	yes
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/ssystem ${PREFIX}/bin
X	@ ${MKDIR} ${PREFIX}/share/ssystem
X	@ ${INSTALL_DATA} ${WRKSRC}/*.jpg ${PREFIX}/share/ssystem
X	@ ${INSTALL_DATA} ${WRKSRC}/Stars.dat ${PREFIX}/share/ssystem
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/ssystem
X.for file in CHANGES LEEME LICENSE README TODO
X	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/ssystem
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-ssystem-1.3/Makefile
echo c - ssystem-1.3/files
mkdir -p ssystem-1.3/files > /dev/null 2>&1
echo x - ssystem-1.3/files/md5
sed 's/^X//' >ssystem-1.3/files/md5 << 'END-of-ssystem-1.3/files/md5'
XMD5 (ssystem-1.3.tar.gz) = e43299591e5851cd224cf612e170d1c2
END-of-ssystem-1.3/files/md5
echo c - ssystem-1.3/patches
mkdir -p ssystem-1.3/patches > /dev/null 2>&1
echo x - ssystem-1.3/patches/patch-ab
sed 's/^X//' >ssystem-1.3/patches/patch-ab << 'END-of-ssystem-1.3/patches/patch-ab'
X--- init.c	Sat Jul 25 23:16:42 1998
X+++ /home/andy/tmp/wrk/init.c	Mon Aug  3 18:05:11 1998
X@@ -57,7 +57,7 @@
X GLfloat stars[NUMSTARS][4];
X double days,timefactor=1/(24.0*60.0); /* iterarion = 1 minute */
X int SLICES=12,STACKS=12;
X-char texturepath[100]=".";
X+char texturepath[100]=DATADIR;
X static void InitSun(void),InitMercury(void),InitVenus(void),InitEarth(void),
X 	InitMars(void),InitJupiter(void),InitSaturn(void),InitUranus(void),
X 	InitNeptune(void),InitPluto(void),InitStars(void);
END-of-ssystem-1.3/patches/patch-ab
echo x - ssystem-1.3/patches/patch-aa
sed 's/^X//' >ssystem-1.3/patches/patch-aa << 'END-of-ssystem-1.3/patches/patch-aa'
X--- Makefile	Sat Jul 25 23:16:42 1998
X+++ /home/andy/tmp/wrk/Makefile	Mon Aug  3 18:05:04 1998
X@@ -4,15 +4,18 @@
X #	Remove -DLINUXJOY if your linux kernel doesn't support joysticks or
X #	you're running other OS
X 
X-CC= gcc
X+#CC= gcc
X 
X # Your Mesa base directory
X-MESADIR=/root/Mesa-3.0
X+MESADIR=${X11BASE}
X 
X-CFLAGS = -Wall -O6 -I$(MESADIR)/include -ffast-math -fPIC -fomit-frame-pointer \
X-         -mpentium -funroll-all-loops -DLINUXJOY
X+# Data directory
X+PREFIX?=${X11BASE}
X+DATADIR=${PREFIX}/share/ssystem
X 
X-LDFLAGS= -lX11 -L/usr/X11R6/lib -L$(MESADIR)/lib \
X+CFLAGS+= -I$(MESADIR)/include -I/usr/local/include -DDATADIR=\"${DATADIR}\"
X+
X+LDFLAGS= -lX11 -L${X11BASE}/lib -L$(MESADIR)/lib -L/usr/local/lib \
X 	  -ljpeg -lm -lXmu -lXi -lXext -lMesaGL -lMesaGLU -lglut
X 
X OBJ = ssystem.o init.o positions.o joystick.o
END-of-ssystem-1.3/patches/patch-aa
echo c - ssystem-1.3/pkg
mkdir -p ssystem-1.3/pkg > /dev/null 2>&1
echo x - ssystem-1.3/pkg/PLIST
sed 's/^X//' >ssystem-1.3/pkg/PLIST << 'END-of-ssystem-1.3/pkg/PLIST'
Xbin/ssystem
Xshare/doc/ssystem/CHANGES
Xshare/doc/ssystem/LEEME
Xshare/doc/ssystem/LICENSE
Xshare/doc/ssystem/README
Xshare/doc/ssystem/TODO
Xshare/ssystem/Stars.dat
Xshare/ssystem/callisto.jpg
Xshare/ssystem/charon.jpg
Xshare/ssystem/dione.jpg
Xshare/ssystem/earth.jpg
Xshare/ssystem/europa.jpg
Xshare/ssystem/ganymede.jpg
Xshare/ssystem/io.jpg
Xshare/ssystem/jupiter.jpg
Xshare/ssystem/mars.jpg
Xshare/ssystem/mercury.jpg
Xshare/ssystem/moon.jpg
Xshare/ssystem/neptune.jpg
Xshare/ssystem/pluto.jpg
Xshare/ssystem/rhea.jpg
Xshare/ssystem/satrings.jpg
Xshare/ssystem/saturn.jpg
Xshare/ssystem/sun.jpg
Xshare/ssystem/tethys.jpg
Xshare/ssystem/titan.jpg
Xshare/ssystem/triton.jpg
Xshare/ssystem/uranus.jpg
Xshare/ssystem/venus.jpg
X@dirrm share/doc/ssystem
X@dirrm share/ssystem
END-of-ssystem-1.3/pkg/PLIST
echo x - ssystem-1.3/pkg/COMMENT
sed 's/^X//' >ssystem-1.3/pkg/COMMENT << 'END-of-ssystem-1.3/pkg/COMMENT'
XOpenGL Solar System simulator for X Window System.
END-of-ssystem-1.3/pkg/COMMENT
echo x - ssystem-1.3/pkg/DESCR
sed 's/^X//' >ssystem-1.3/pkg/DESCR << 'END-of-ssystem-1.3/pkg/DESCR'
Xssystem is an OpenGL Solar System simulator. Only the Sun , the nine
Xplanets and a few major satellites are included. Background stars are
Xalso included.
X
Xhttp://www1.las.es/~amil/ssystem
END-of-ssystem-1.3/pkg/DESCR
exit


>How-To-Repeat:

>Fix:

   Please, check and commit this port.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mph 
State-Changed-When: Thu Aug 6 13:58:03 EDT 1998 
State-Changed-Why:  
Imported with minor changes: 

- graphics/Mesa is now graphics/Mesa2 or Mesa3.  I changed the 
LIB_DEPENDS to allow either, and build Mesa3 if necessary. 

- Removed x11 from CATEGORIES line; it only needs to be there if 
the port would logically fit into /usr/ports/x11 (which is being 
split up, anyway).  As of yesterday or so, USE_X11=yes is the 
way to say a port needs X libraries. 

- patch-aa had a literal /usr/local, changed to $(LOCALBASE). 

Thanks!  This program makes me wish I had a 3dfx card. 


Responsible-Changed-From-To: freebsd-ports->mph 
Responsible-Changed-By: mph 
Responsible-Changed-When: Thu Aug 6 13:58:03 EDT 1998 
Responsible-Changed-Why:  
>Unformatted:
