summaryrefslogtreecommitdiffstats
path: root/games/ssc
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-01-18 09:32:17 +0000
committerkrion <krion@FreeBSD.org>2004-01-18 09:32:17 +0000
commite1f7eed5725e8f3b4404e372c4f33a48689beeaf (patch)
tree9e1105b16f2246f945e5d1bac85b0293478c895a /games/ssc
parent386a6b44535c08f7e8cb3e4ee5313bfe5ebecdbd (diff)
downloadFreeBSD-ports-e1f7eed5725e8f3b4404e372c4f33a48689beeaf.zip
FreeBSD-ports-e1f7eed5725e8f3b4404e372c4f33a48689beeaf.tar.gz
Add games/ssc-0.8,
SSC is a 2D space shoot-em-up featuring interesting physics and alife. Destroy all enemies on screen to proceed to the next level. Inherits a lot of ideas from the game Koules. PR: 61507 Submitted by: Igor Pokrovsky <tiamat@comset.net>
Diffstat (limited to 'games/ssc')
-rw-r--r--games/ssc/Makefile41
-rw-r--r--games/ssc/distinfo1
-rw-r--r--games/ssc/files/patch-configure177
-rw-r--r--games/ssc/files/patch-src-Makefile.in25
-rw-r--r--games/ssc/files/patch-src-asteroid.cc13
-rw-r--r--games/ssc/files/patch-src-coord.h11
-rw-r--r--games/ssc/files/patch-src-damage.cc11
-rw-r--r--games/ssc/files/patch-src-font.cc10
-rw-r--r--games/ssc/files/patch-src-nnwork.cc10
-rw-r--r--games/ssc/files/patch-support-Makefile.in19
-rw-r--r--games/ssc/files/patch-support-ode-0.039-configurator.c15
-rw-r--r--games/ssc/pkg-descr8
-rw-r--r--games/ssc/pkg-plist14
13 files changed, 355 insertions, 0 deletions
diff --git a/games/ssc/Makefile b/games/ssc/Makefile
new file mode 100644
index 0000000..65714a6
--- /dev/null
+++ b/games/ssc/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: ssc
+# Date created: 17 Jan 2004
+# Whom: Igor Pokrovsky <tiamat@comset.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ssc
+PORTVERSION= 0.8
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}x
+
+MAINTAINER= tiamat@comset.net
+COMMENT= An OpenGL arcade space shoot-em-up with interesting physics
+
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
+ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GL= yes
+USE_SDL= yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${X11BASE}/include" \
+ LDFLAGS=-L${X11BASE}/lib
+ONLY_FOR_ARCHS= i386
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|SDL\/||g; s|/usr/local|${PREFIX}|g" \
+ ${WRKSRC}/src/*.h ${WRKSRC}/src/*.cc
+
+.ifndef (NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/ssc/distinfo b/games/ssc/distinfo
new file mode 100644
index 0000000..584435b
--- /dev/null
+++ b/games/ssc/distinfo
@@ -0,0 +1 @@
+MD5 (ssc-0.8.tar.bz2) = d6a5eb545adf9d93663c719ad89f23bf
diff --git a/games/ssc/files/patch-configure b/games/ssc/files/patch-configure
new file mode 100644
index 0000000..9bb91b9
--- /dev/null
+++ b/games/ssc/files/patch-configure
@@ -0,0 +1,177 @@
+--- configure.orig Fri Oct 10 17:07:07 2003
++++ configure Sat Jan 17 16:57:07 2004
+@@ -4196,163 +4196,6 @@
+
+
+
+-CPU_NAME="unknown"
+-CPU_TYPE="unknown"
+-if test -e "/proc/cpuinfo" ; then
+- intel[30]="-march=i386"
+- intel[32]="-march=i386"
+- intel[34]="-march=i386"
+- intel[40]="-march=i486"
+- intel[41]="-march=i486"
+- intel[42]="-march=i486"
+- intel[43]="-march=i486"
+- intel[44]="-march=i486"
+- intel[45]="-march=i486"
+- intel[47]="-march=i486"
+- intel[48]="-march=i486"
+- intel[51]="-march=pentium"
+- intel[52]="-march=pentium"
+- intel[54]="-march=pentium-mmx"
+- intel[61]="-march=pentiumpro"
+- intel[63]="-march=pentium2"
+- intel[65]="-march=pentium2"
+- intel[66]="-march=pentium2"
+- intel[67]="-march=pentium3"
+- intel[68]="-march=pentium3"
+- intel[610]="-march=pentium3"
+- intel[611]="-march=pentium3"
+- intel[150]="-march=pentium4"
+- intel[151]="-march=pentium4"
+- intel[152]="-march=pentium4"
+- amd[50]="-march=i586"
+- amd[51]="-march=i586"
+- amd[52]="-march=i586"
+- amd[53]="-march=i586"
+- amd[56]="-march=k6"
+- amd[57]="-march=k6"
+- amd[58]="-march=k6-2"
+- amd[59]="-march=k6-3"
+- amd[61]="-march=athlon"
+- amd[62]="-march=athlon"
+- amd[63]="-march=athlon"
+- amd[64]="-march=athlon"
+- amd[66]="-march=athlon-xp"
+- amd[67]="-march=athlon"
+- amd[68]="-march=athlon"
+- CPU_TYPE="known"
+- CPU_FAMILY=`cat /proc/cpuinfo | grep "cpu family"`
+- CPU_MODEL=`cat /proc/cpuinfo | grep model[^\ ]`
+- CPU_NAME=`cat /proc/cpuinfo | grep "model name"`
+- CPU_FLAGS=`cat /proc/cpuinfo | grep "flags"`
+- CPU_VENDOR=`cat /proc/cpuinfo | grep "vendor_id"`
+- CPU_FAMILY=${CPU_FAMILY#'cpu family : '}
+- CPU_MODEL=${CPU_MODEL#'model : '}
+- CPU_NAME=${CPU_NAME#'model name : '}
+- CPU_FLAGS=${CPU_FLAGS#'flags : '}
+- CPU_VENDOR=${CPU_VENDOR#'vendor_id : '}
+- if test "x${CPU_VENDOR}" = "xGenuineIntel" ; then
+- CPU_OPTIONS=${intel[$CPU_FAMILY$CPU_MODEL]}
+- fi
+- if test "x${CPU_VENDOR}" = "xAuthenticAMD" ; then
+- CPU_OPTIONS=${amd[$CPU_FAMILY$CPU_MODEL]}
+- fi
+- if test "x${CPU_OPTIONS}" = "x" ; then
+- CPU_TYPE="unknown"
+- fi
+- CPU_EXT=""
+- for i in $CPU_FLAGS ; do
+- case $i in
+- fpu)
+- CPU_FPU="-mfpmath=387"
+- ;;
+- mmx)
+- CPU_EXT="$CPU_EXT -mmmx"
+- ;;
+- sse)
+- CPU_FPU="-mfpmath=sse -msse"
+- ;;
+- sse2)
+- CPU_FPU="-mfpmath=sse -msse2"
+- ;;
+- 3dnow)
+- CPU_EXT="$CPU_EXT -m3dnow"
+- ;;
+- esac
+- done
+- CPU_OPTIONS="$CPU_OPTIONS $CPU_FPU $CPU_EXT"
+-fi
+-if test "x${CPU_TYPE}" = "xunknown"; then
+- CPU_TYPE=`( uname -p ) 2>&1`
+- case $CPU_TYPE in
+- i386)
+- CPU_OPTIONS="-march=i386"
+- ;;
+- i486)
+- CPU_OPTIONS="-march=i486"
+- ;;
+- athlon)
+- CPU_OPTIONS="-march=athlon-xp"
+- ;;
+- Pentium2)
+- CPU_OPTIONS="-march=pentium2"
+- ;;
+- Pentiumpro)
+- CPU_OPTIONS="-march=pentiumpro"
+- ;;
+- Pentium*)
+- CPU_OPTIONS="-march=pentium"
+- ;;
+- k6)
+- CPU_OPTIONS="-march=k6"
+- ;;
+- k6-2)
+- CPU_OPTIONS="-march=k6-2"
+- ;;
+- k6-3)
+- CPU_OPTIONS="-march=k6-3"
+- ;;
+- *)
+- CPU_OPTIONS=""
+- CPU_TYPE="unknown"
+- ;;
+- esac
+- if test "x${CPU_TYPE}" = "xunknown"; then
+- CPU_TYPE=`( uname -m ) 2>&1`
+- case $CPU_TYPE in
+- i386)
+- CPU_OPTIONS="-march=i386"
+- ;;
+- i486)
+- CPU_OPTIONS="-march=i486"
+- ;;
+- i586)
+- CPU_OPTIONS="-march=i586"
+- ;;
+- i686)
+- CPU_OPTIONS="-march=i686"
+- ;;
+- Pentium2)
+- CPU_OPTIONS="-march=pentium2"
+- ;;
+- Pentiumpro)
+- CPU_OPTIONS="-march=pentiumpro"
+- ;;
+- k6)
+- CPU_OPTIONS="-march=k6"
+- ;;
+- k6-2)
+- CPU_OPTIONS="-march=k6-2"
+- ;;
+- k6-3)
+- CPU_OPTIONS="-march=k6-3"
+- ;;
+- *)
+- CPU_OPTIONS=""
+- ;;
+- esac
+- fi
+-fi
+-echo "Detected CPU:`echo $CPU_NAME | sed -e 's/.*://'`"
+ COMPILER=$CXX
+ for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
+ test "$I" && break
+@@ -4375,8 +4218,8 @@
+
+
+ DBG_CXXFLAGS="$UNAME_DEFS -g -Wall -Werror"
+-OPT_CXXFLAGS="$UNAME_DEFS -O3 -pipe -finline-functions -falign-functions=4 -ffast-math -fno-rtti -fno-exceptions -mfancy-math-387 -fomit-frame-pointer $CPU_OPTIONS -Wall -Werror"
+-PRF_CXXFLAGS="$UNAME_DEFS -O3 -pipe -finline-functions -falign-functions=4 -mfancy-math-387 -pg $CPU_OPTIONS -Wall -Werror"
++OPT_CXXFLAGS="$UNAME_DEFS -O3 -pipe -finline-functions -ffast-math -fno-rtti -fno-exceptions -mfancy-math-387 -fomit-frame-pointer -Wall -Werror"
++PRF_CXXFLAGS="$UNAME_DEFS -O3 -pipe -finline-functions -mfancy-math-387 -pg -Wall -Werror"
+
+ CXXFLAGS=$OPT_CXXFLAGS
+
diff --git a/games/ssc/files/patch-src-Makefile.in b/games/ssc/files/patch-src-Makefile.in
new file mode 100644
index 0000000..6c8dec6
--- /dev/null
+++ b/games/ssc/files/patch-src-Makefile.in
@@ -0,0 +1,25 @@
+--- src/Makefile.in.orig Sat Jan 17 16:40:15 2004
++++ src/Makefile.in Sat Jan 17 16:41:53 2004
+@@ -68,9 +68,9 @@
+
+ LIBS = \
+ ../support/ode/lib/libode.a \
+- `freetype-config --libs` \
++ `${LOCALBASE}/bin/freetype-config --libs` \
+ -lGLU -lGL -lSDL_mixer \
+- `sdl-config --libs` \
++ `${SDL_CONFIG} --libs` \
+ -lpng -lz
+
+ LTLIBOBJS = @LTLIBOBJS@
+@@ -118,8 +118,8 @@
+ target_alias = @target_alias@
+ INCLUDES = \
+ -I../support/ode/include \
+- `freetype-config --cflags` \
+- `sdl-config --cflags`
++ `${LOCALBASE}/bin/freetype-config --cflags` \
++ `${SDL_CONFIG} --cflags`
+
+
+ bin_PROGRAMS = ssc
diff --git a/games/ssc/files/patch-src-asteroid.cc b/games/ssc/files/patch-src-asteroid.cc
new file mode 100644
index 0000000..e3ff565
--- /dev/null
+++ b/games/ssc/files/patch-src-asteroid.cc
@@ -0,0 +1,13 @@
+--- src/asteroid.cc.orig Sat Jan 17 17:27:37 2004
++++ src/asteroid.cc Sat Jan 17 17:27:56 2004
+@@ -84,8 +84,8 @@
+
+ mp = (p0 + p1) / 2;
+
+- float r = (distance(p0, bc) + distance(p1, bc)) / 2; // radius
+- float l = distance(p0, p1); // edge length
++ float r = (dist(p0, bc) + dist(p1, bc)) / 2; // radius
++ float l = dist(p0, p1); // edge length
+ l *= strength;
+ srand48(seed + p0.hash() + p1.hash());
+ float d = drand48() - 0.5;
diff --git a/games/ssc/files/patch-src-coord.h b/games/ssc/files/patch-src-coord.h
new file mode 100644
index 0000000..84ea990
--- /dev/null
+++ b/games/ssc/files/patch-src-coord.h
@@ -0,0 +1,11 @@
+--- src/coord.h.orig Sat Jan 17 17:26:46 2004
++++ src/coord.h Sat Jan 17 17:26:59 2004
+@@ -319,7 +319,7 @@
+ };
+
+
+-inline double distance(Coord3<double> &a, Coord3<double> &b)
++inline double dist(Coord3<double> &a, Coord3<double> &b)
+ {
+ Coord3<double> tmp;
+ tmp = a - b;
diff --git a/games/ssc/files/patch-src-damage.cc b/games/ssc/files/patch-src-damage.cc
new file mode 100644
index 0000000..4ad5d51
--- /dev/null
+++ b/games/ssc/files/patch-src-damage.cc
@@ -0,0 +1,11 @@
+--- src/damage.cc.orig Sat Jan 17 17:31:55 2004
++++ src/damage.cc Sat Jan 17 17:32:04 2004
+@@ -44,7 +44,7 @@
+ {
+ if (obj.mFlocking)
+ {
+- double d = distance(mPosition, obj.mPosition);
++ double d = dist(mPosition, obj.mPosition);
+ if (d > 0 && d < 50) interact(obj);
+ }
+
diff --git a/games/ssc/files/patch-src-font.cc b/games/ssc/files/patch-src-font.cc
new file mode 100644
index 0000000..9d28e27
--- /dev/null
+++ b/games/ssc/files/patch-src-font.cc
@@ -0,0 +1,10 @@
+--- src/font.cc.orig Sat Jan 17 17:00:00 2004
++++ src/font.cc Sat Jan 17 17:00:22 2004
+@@ -22,6 +22,7 @@
+
+ #include <iostream>
+ #include <iomanip>
++#include <math.h>
+ #include "font.h"
+
+ namespace OGLFT {
diff --git a/games/ssc/files/patch-src-nnwork.cc b/games/ssc/files/patch-src-nnwork.cc
new file mode 100644
index 0000000..f0a7f01
--- /dev/null
+++ b/games/ssc/files/patch-src-nnwork.cc
@@ -0,0 +1,10 @@
+--- src/nnwork.cc.orig Sat Jan 17 17:30:41 2004
++++ src/nnwork.cc Sat Jan 17 17:31:00 2004
+@@ -29,6 +29,7 @@
+ #include <fstream>
+ #include <cassert>
+ #include <cstring>
++#include <stdio.h>
+
+ // This class implements a simple three-layer backpropagation network.
+
diff --git a/games/ssc/files/patch-support-Makefile.in b/games/ssc/files/patch-support-Makefile.in
new file mode 100644
index 0000000..91c411b
--- /dev/null
+++ b/games/ssc/files/patch-support-Makefile.in
@@ -0,0 +1,19 @@
+--- support/Makefile.in.orig Sat Jan 17 16:24:05 2004
++++ support/Makefile.in Sat Jan 17 16:24:25 2004
+@@ -264,13 +264,13 @@
+ # Targets
+
+ all: ode
+- (cd ode && make configure ode-lib)
++ (cd ode && ${MAKE} configure ode-lib)
+
+ clean: ode
+- (cd ode && make clean)
++ (cd ode && ${MAKE} clean)
+
+ distclean: ode
+- (cd ode && make clean)
++ (cd ode && ${MAKE} clean)
+
+ dist-hook: clean
+ for dir in $(ODE_CLEAN); do $(RM) -rf $(ODE_DIR)/$$dir; done
diff --git a/games/ssc/files/patch-support-ode-0.039-configurator.c b/games/ssc/files/patch-support-ode-0.039-configurator.c
new file mode 100644
index 0000000..a2079c5
--- /dev/null
+++ b/games/ssc/files/patch-support-ode-0.039-configurator.c
@@ -0,0 +1,15 @@
+--- support/ode-0.039/configurator.c.orig Sat Jan 17 16:34:29 2004
++++ support/ode-0.039/configurator.c Sat Jan 17 16:35:46 2004
+@@ -249,7 +249,11 @@
+ #define NUM_HEADERS 8
+ char *header_files[NUM_HEADERS] = {
+ "stdio.h", "stdlib.h", "math.h", "string.h",
+- "stdarg.h", "malloc.h", "alloca.h",
++ "stdarg.h",
++#ifndef __FreeBSD__
++ "malloc.h",
++#endif
++ "alloca.h",
+ "ieeefp.h" // Solaris needs this apparently
+ };
+ int header_used[NUM_HEADERS];
diff --git a/games/ssc/pkg-descr b/games/ssc/pkg-descr
new file mode 100644
index 0000000..64ffcae
--- /dev/null
+++ b/games/ssc/pkg-descr
@@ -0,0 +1,8 @@
+SSC is a 2D space shoot-em-up featuring interesting physics and
+alife. Destroy all enemies on screen to proceed to the next level.
+Inherits a lot of ideas from the game Koules.
+
+WWW: http://sscx.sourceforge.net/
+
+- Igor Pokrovsky
+tiamat@comset.net
diff --git a/games/ssc/pkg-plist b/games/ssc/pkg-plist
new file mode 100644
index 0000000..b0ef5c7
--- /dev/null
+++ b/games/ssc/pkg-plist
@@ -0,0 +1,14 @@
+bin/ssc
+%%DATADIR%%/ssc.conf
+%%DATADIR%%/ast.png
+%%DATADIR%%/astr.png
+%%DATADIR%%/Vera.ttf
+%%DATADIR%%/boom.wav
+%%DATADIR%%/exploBig.wav
+%%DATADIR%%/exploPop.wav
+%%DATADIR%%/life_lose.wav
+%%DATADIR%%/power.wav
+%%DATADIR%%/trance.wav
+@dirrm %%DATADIR%%
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud