summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-01-02 21:33:26 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-01-02 21:33:26 +0000
commit12126dd0d7e9469e27608e79966f9272aa1786ab (patch)
treee9e1307f3d744c9ed8794e98de42f343a8de47eb /games
parentAdd zope-annotations, a generic way to add information to arbitrary Zope obje... (diff)
Shaaft is an OpenGL 3D falling block game similar to Blockout.
Notes
Notes: svn path=/head/; revision=97113
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/shaaft/Makefile31
-rw-r--r--games/shaaft/distinfo1
-rw-r--r--games/shaaft/files/patch-configure58
-rw-r--r--games/shaaft/files/patch-game::main.cpp20
-rw-r--r--games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp11
-rw-r--r--games/shaaft/files/patch-utilsgl::GLTexture.hpp11
-rw-r--r--games/shaaft/files/patch-utilssdl::PNG.hpp11
-rw-r--r--games/shaaft/pkg-descr3
-rw-r--r--games/shaaft/pkg-plist4
10 files changed, 151 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 875103456e76..3117d7526f12 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -355,6 +355,7 @@
SUBDIR += senken
SUBDIR += senso
SUBDIR += sex
+ SUBDIR += shaaft
SUBDIR += sl
SUBDIR += slashem-tty
SUBDIR += smacx
diff --git a/games/shaaft/Makefile b/games/shaaft/Makefile
new file mode 100644
index 000000000000..0029619ef22d
--- /dev/null
+++ b/games/shaaft/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: shaaft
+# Date created: 02 Jan 2004
+# Whom: krion@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= shaaft
+PORTVERSION= 0.5.0
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= sourceforge/criticalmass
+DISTNAME= Shaaft-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Shaaft is an OpenGL 3D falling block game similar to Blockout
+
+LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
+ SDL_image.10:${PORTSDIR}/graphics/sdl_image
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+USE_SDL= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+MAN6= ${PORTNAME}.6
+
+.include <bsd.port.mk>
diff --git a/games/shaaft/distinfo b/games/shaaft/distinfo
new file mode 100644
index 000000000000..723fa0e66abe
--- /dev/null
+++ b/games/shaaft/distinfo
@@ -0,0 +1 @@
+MD5 (Shaaft-0.5.0.tar.bz2) = c86524f286c60e3fd45b10d023a92db2
diff --git a/games/shaaft/files/patch-configure b/games/shaaft/files/patch-configure
new file mode 100644
index 000000000000..f5c82073dca7
--- /dev/null
+++ b/games/shaaft/files/patch-configure
@@ -0,0 +1,58 @@
+--- configure.orig Fri Jan 2 00:19:59 2004
++++ configure Fri Jan 2 18:15:32 2004
+@@ -1424,7 +1424,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lSDL `sdl-config --libs` $LIBS"
++LIBS="-lSDL-1.1 `sdl11-config --libs` $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1430 "configure"
+ #include "confdefs.h"
+@@ -1448,9 +1448,9 @@
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- LIBS="$LIBS `sdl-config --libs`" ; \
+- CFLAGS="$CFLAGS `sdl-config --cflags`" ; \
+- CXXFLAGS="$CXXFLAGS `sdl-config --cflags`" ; \
++ LIBS="$LIBS `sdl11-config --libs`" ; \
++ CFLAGS="$CFLAGS `sdl11-config --cflags`" ; \
++ CXXFLAGS="$CXXFLAGS `sdl11-config --cflags`" ; \
+ HAVE_SDL=1
+ else
+ echo "$ac_t""no" 1>&6
+@@ -1588,14 +1588,14 @@
+ LIBS="-L/usr/local/lib -L/usr/X11R6/lib $LIBS"
+ CFLAGS="$CFLAGS -I/usr/X11R6/include" ; \
+ CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include"
+- echo $ac_n "checking for main in -lpng12""... $ac_c" 1>&6
+-echo "configure:1593: checking for main in -lpng12" >&5
++ echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
++echo "configure:1593: checking for main in -lpng" >&5
+ ac_lib_var=`echo png12'_'main | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lpng12 $LIBS"
++LIBS="-lpng $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1601 "configure"
+ #include "confdefs.h"
+@@ -1619,13 +1619,13 @@
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo png12 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+ EOF
+
+- LIBS="-lpng12 $LIBS"
++ LIBS="-lpng $LIBS"
+
+ else
+ echo "$ac_t""no" 1>&6
diff --git a/games/shaaft/files/patch-game::main.cpp b/games/shaaft/files/patch-game::main.cpp
new file mode 100644
index 000000000000..89f87d0fcd19
--- /dev/null
+++ b/games/shaaft/files/patch-game::main.cpp
@@ -0,0 +1,20 @@
+--- game/main.cpp.orig Fri Jan 2 18:26:21 2004
++++ game/main.cpp Fri Jan 2 18:26:37 2004
+@@ -12,7 +12,7 @@
+ // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
+ //
+-#include "SDL.h" //needed for SDL_main
++#include <SDL11/SDL.h> //needed for SDL_main
+
+ #include <Trace.hpp>
+ #include <Constants.hpp>
+@@ -46,7 +46,7 @@
+ }
+
+ #include <png.h>
+-#include <SDL/SDL_mixer.h>
++#include <SDL11/SDL_mixer.h>
+ void showVersions( void)
+ {
+ const SDL_version *vsdl = SDL_Linked_Version();
diff --git a/games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp b/games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp
new file mode 100644
index 000000000000..0b5bbb2bff71
--- /dev/null
+++ b/games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp
@@ -0,0 +1,11 @@
+--- utilsgl/GLBitmapCollection.cpp.orig Fri Jan 2 18:19:34 2004
++++ utilsgl/GLBitmapCollection.cpp Fri Jan 2 18:19:49 2004
+@@ -16,7 +16,7 @@
+ //
+ #include <iostream>
+
+-#include <SDL/SDL_image.h>
++#include <SDL11/SDL_image.h>
+ #include <zrwops.hpp>
+
+ #include <Trace.hpp>
diff --git a/games/shaaft/files/patch-utilsgl::GLTexture.hpp b/games/shaaft/files/patch-utilsgl::GLTexture.hpp
new file mode 100644
index 000000000000..40cc7f58b834
--- /dev/null
+++ b/games/shaaft/files/patch-utilsgl::GLTexture.hpp
@@ -0,0 +1,11 @@
+--- utilsgl/GLTexture.hpp.orig Fri Jan 2 18:21:50 2004
++++ utilsgl/GLTexture.hpp Fri Jan 2 18:22:19 2004
+@@ -16,7 +16,7 @@
+ #define _GLTexture_hpp_
+
+ #include <gl++.hpp>
+-#include <SDL/SDL_image.h>
++#include <SDL11/SDL_image.h>
+
+ class GLTexture
+ {
diff --git a/games/shaaft/files/patch-utilssdl::PNG.hpp b/games/shaaft/files/patch-utilssdl::PNG.hpp
new file mode 100644
index 000000000000..7130b50f7228
--- /dev/null
+++ b/games/shaaft/files/patch-utilssdl::PNG.hpp
@@ -0,0 +1,11 @@
+--- utilssdl/PNG.hpp.orig Fri Jan 2 18:17:09 2004
++++ utilssdl/PNG.hpp Fri Jan 2 18:17:33 2004
+@@ -14,7 +14,7 @@
+ //
+ #include <string>
+ #include <png.h>
+-#include "SDL/SDL.h"
++#include <SDL11/SDL.h>
+
+ using std::string;
+
diff --git a/games/shaaft/pkg-descr b/games/shaaft/pkg-descr
new file mode 100644
index 000000000000..0d726240ad07
--- /dev/null
+++ b/games/shaaft/pkg-descr
@@ -0,0 +1,3 @@
+Shaaft is an OpenGL 3D falling block game similar to Blockout.
+
+WWW: http://criticalmass.sourceforge.net/shaaft.php
diff --git a/games/shaaft/pkg-plist b/games/shaaft/pkg-plist
new file mode 100644
index 000000000000..5cb0a5b817a2
--- /dev/null
+++ b/games/shaaft/pkg-plist
@@ -0,0 +1,4 @@
+bin/Packer
+bin/shaaft
+share/Shaaft/resource.dat
+@dirrm share/Shaaft