summaryrefslogtreecommitdiff
path: root/games/pinball
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2002-11-24 23:05:18 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2002-11-24 23:05:18 +0000
commitd160c9a8010680f4c17aebc93741c66663b5686a (patch)
tree51ed660701076ab1eff467e36d209e0493483673 /games/pinball
parentFix for build with new autoconf support. (diff)
Add pinball, a OpenGL/Allegro pinball game
PR: 41693 Submitted by: Thierry Thomas <thierry@pompo.net>
Notes
Notes: svn path=/head/; revision=71048
Diffstat (limited to 'games/pinball')
-rw-r--r--games/pinball/Makefile56
-rw-r--r--games/pinball/distinfo1
-rw-r--r--games/pinball/files/patch-base_TextureUtil.cpp11
-rw-r--r--games/pinball/files/patch-configure48
-rw-r--r--games/pinball/pkg-comment1
-rw-r--r--games/pinball/pkg-descr6
-rw-r--r--games/pinball/pkg-message8
-rw-r--r--games/pinball/pkg-plist47
8 files changed, 178 insertions, 0 deletions
diff --git a/games/pinball/Makefile b/games/pinball/Makefile
new file mode 100644
index 000000000000..982f9cacbf06
--- /dev/null
+++ b/games/pinball/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: pinball
+# Date created: Tue 13 aug 2002 22:46:02 CEST
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= pinball
+PORTVERSION= 0.1.2
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= thierry@pompo.net
+
+.if !defined(WITH_ALLEGRO)
+BUILD_DEPENDS= ${SDL_CONFIG}:${PORTSDIR}/devel/sdl12
+LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image \
+ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+.else
+BUILD_DEPENDS= ${ALLEGRO_CONFIG}:${PORTSDIR}/devel/allegro
+LIB_DEPENDS= alleg.41:${PORTSDIR}/devel/allegro
+.endif
+
+USE_X_PREFIX= yes
+HAS_CONFIGURE= yes
+USE_GMAKE= yes
+USE_MESA= yes
+USE_LIBTOOL= yes
+INSTALLS_SHLIB= yes
+
+CONFIGURE_ARGS= --prefix=${PREFIX}
+.if defined(WITH_ALLEGRO)
+CONFIGURE_ARGS+= --with-allegro
+.endif
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib" \
+ SDL_CONFIG="${SDL_CONFIG}"
+SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
+ALLEGRO_CONFIG= ${LOCALBASE}/bin/allegro-config
+
+DOCS= README
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>
diff --git a/games/pinball/distinfo b/games/pinball/distinfo
new file mode 100644
index 000000000000..e94aca9c1003
--- /dev/null
+++ b/games/pinball/distinfo
@@ -0,0 +1 @@
+MD5 (pinball-0.1.2.tar.gz) = 8c40d8b8be8352c1c476d6d86438336d
diff --git a/games/pinball/files/patch-base_TextureUtil.cpp b/games/pinball/files/patch-base_TextureUtil.cpp
new file mode 100644
index 000000000000..7cf753859d14
--- /dev/null
+++ b/games/pinball/files/patch-base_TextureUtil.cpp
@@ -0,0 +1,11 @@
+--- ./base/TextureUtil.cpp.orig Fri Nov 1 14:49:57 2002
++++ ./base/TextureUtil.cpp Mon Nov 11 01:27:54 2002
+@@ -18,7 +18,7 @@
+ #if EM_DEBUG
+ #include <GL/glu.h>
+ #endif
+-#include <SDL/SDL.h>
++#include <SDL.h>
+ #include <SDL_image.h>
+
+ extern "C" {
diff --git a/games/pinball/files/patch-configure b/games/pinball/files/patch-configure
new file mode 100644
index 000000000000..706ad7313a1a
--- /dev/null
+++ b/games/pinball/files/patch-configure
@@ -0,0 +1,48 @@
+--- configure.orig Wed Nov 6 12:03:53 2002
++++ configure Mon Nov 11 00:39:54 2002
+@@ -713,8 +713,8 @@
+
+
+
+-CFLAGS="-g -W -Wall -O2"
+-CXXFLAGS="-g -W -Wall -O2"
++#CFLAGS="-g -W -Wall -O2"
++#CXXFLAGS="-g -W -Wall -O2"
+
+ SDL_VERSION=1.2.0
+ ALLEGRO_VERSION=4.0.0
+@@ -5599,7 +5599,7 @@
+ fi
+
+
+-if test x"$use_allegro" == "xno"; then
++if test x"$use_allegro" = xno; then
+
+ cat >> confdefs.h <<\EOF
+ #define EM_USE_SDL 1
+@@ -6997,7 +6997,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include "allegro.h"
++#include <allegro.h>
+
+ char*
+ my_strdup (char *str)
+@@ -7092,7 +7092,7 @@
+ #include "confdefs.h"
+
+ #include <stdio.h>
+-#include "ALLEGRO.h"
++#include <allegro.h>
+
+ int main(int argc, char *argv[])
+ { return 0; }
+@@ -7225,6 +7225,7 @@
+ int main () { int i; for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+ exit (0); }
++END_OF_MAIN();
+
+ EOF
+ if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
diff --git a/games/pinball/pkg-comment b/games/pinball/pkg-comment
new file mode 100644
index 000000000000..71a94c16d93d
--- /dev/null
+++ b/games/pinball/pkg-comment
@@ -0,0 +1 @@
+Emilia Pinball is a free pinball game
diff --git a/games/pinball/pkg-descr b/games/pinball/pkg-descr
new file mode 100644
index 000000000000..cf4b5bac9406
--- /dev/null
+++ b/games/pinball/pkg-descr
@@ -0,0 +1,6 @@
+Emilia Pinball is a free pinball game.
+
+It requires OpenGL, if your hardware supports it; else, it is possible
+to build it with allegro (make -DWITH_ALLEGRO).
+
+WWW: http://pinball.sourceforge.net/
diff --git a/games/pinball/pkg-message b/games/pinball/pkg-message
new file mode 100644
index 000000000000..2f65e3fc4d78
--- /dev/null
+++ b/games/pinball/pkg-message
@@ -0,0 +1,8 @@
+*****************************************************************************
+
+ pinball has been installed in %%PREFIX%%/bin.
+
+ Remark: if run under KDE/artsd, launch it as
+ `artsdsp pinball' (else you'll get /dev/dsp is busy!).
+
+*****************************************************************************
diff --git a/games/pinball/pkg-plist b/games/pinball/pkg-plist
new file mode 100644
index 000000000000..e63852f64db1
--- /dev/null
+++ b/games/pinball/pkg-plist
@@ -0,0 +1,47 @@
+bin/pinball
+%%PORTDOCS%%share/doc/pinball/README
+share/pinball/font_34.png
+share/pinball/font_35.pcx
+share/pinball/libmodule_test.a
+share/pinball/libmodule_test.la
+share/pinball/libmodule_test.so
+share/pinball/libmodule_test.so.0
+share/pinball/pinball.xpm
+share/pinball/professor/floor.png
+share/pinball/professor/floor.png.pcx
+share/pinball/professor/libmodule_professor.a
+share/pinball/professor/libmodule_professor.la
+share/pinball/professor/libmodule_professor.so
+share/pinball/professor/libmodule_professor.so.0
+share/pinball/professor/pinball.pbl
+share/pinball/professor/professor.mid
+share/pinball/tux/bump.wav
+share/pinball/tux/bumphard.wav
+share/pinball/tux/bumpsoft.wav
+share/pinball/tux/face.png
+share/pinball/tux/face.png.pcx
+share/pinball/tux/flip.wav
+share/pinball/tux/floor.pbl
+share/pinball/tux/floor2.png
+share/pinball/tux/floor2.png.pcx
+share/pinball/tux/game.mid
+share/pinball/tux/gameover.wav
+share/pinball/tux/intro.mid
+share/pinball/tux/libmodule_tux.a
+share/pinball/tux/libmodule_tux.la
+share/pinball/tux/libmodule_tux.so
+share/pinball/tux/libmodule_tux.so.0
+share/pinball/tux/locklock.wav
+share/pinball/tux/loop.wav
+share/pinball/tux/multiball.mid
+share/pinball/tux/nudge.wav
+share/pinball/tux/opentux.wav
+share/pinball/tux/pinball.pbl
+share/pinball/tux/shoot.wav
+share/pinball/tux/tiles.png
+share/pinball/tux/tiles.png.pcx
+share/pinball/tux/up.wav
+%%PORTDOCS%%@dirrm share/doc/pinball
+@dirrm share/pinball/professor
+@dirrm share/pinball/tux
+@dirrm share/pinball