summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/foobillard/Makefile36
-rw-r--r--games/foobillard/distinfo1
-rw-r--r--games/foobillard/files/patch-Makefile.in27
-rw-r--r--games/foobillard/files/patch-sys_stuff.c11
-rw-r--r--games/foobillard/pkg-comment1
-rw-r--r--games/foobillard/pkg-descr6
-rw-r--r--games/foobillard/pkg-plist25
8 files changed, 108 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 66cce4a73891..4e42087f6aeb 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -83,6 +83,7 @@
SUBDIR += fkiss
SUBDIR += flightgear
SUBDIR += flying
+ SUBDIR += foobillard
SUBDIR += frabs
SUBDIR += freecell-solver
SUBDIR += freeciv
diff --git a/games/foobillard/Makefile b/games/foobillard/Makefile
new file mode 100644
index 000000000000..0710d949ce07
--- /dev/null
+++ b/games/foobillard/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: foobillard
+# Date created: 26 October 2002
+# Whom: Thomas Vogt <thomas.vogt@bsdunix.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= foobillard
+PORTVERSION= 1.8
+CATEGORIES= games
+MASTER_SITES= http://foobillard.sunsite.dk/dnl/
+
+MAINTAINER= thomas.vogt@bsdunix.ch
+
+LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \
+ png.5:${PORTSDIR}/graphics/png \
+ freetype.9:${PORTSDIR}/print/freetype2
+
+SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
+USE_MESA= yes
+USE_GMAKE= yes
+MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+USE_REINPLACE= yes
+
+HAS_CONFIGURE= yes
+
+CONFIGURE_ARGS= --enable-SDL --prefix=${PREFIX} \
+ --includedir="${X11BASE}/include"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ ${WRKSRC}/src/Makefile.in
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
+ ${WRKSRC}/src/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/games/foobillard/distinfo b/games/foobillard/distinfo
new file mode 100644
index 000000000000..4ec1e3a991f9
--- /dev/null
+++ b/games/foobillard/distinfo
@@ -0,0 +1 @@
+MD5 (foobillard-1.8.tar.gz) = 14038a77187316f378e95ab6ef9ce6fc
diff --git a/games/foobillard/files/patch-Makefile.in b/games/foobillard/files/patch-Makefile.in
new file mode 100644
index 000000000000..b88793647eaa
--- /dev/null
+++ b/games/foobillard/files/patch-Makefile.in
@@ -0,0 +1,27 @@
+--- src/Makefile.in.orig Sat Oct 26 22:01:08 2002
++++ src/Makefile.in Sat Oct 26 22:01:40 2002
+@@ -1,4 +1,4 @@
+-# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
++# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
+
+ # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
+ # This Makefile.in is free software; the Free Software Foundation
+@@ -72,14 +72,14 @@
+ #INCDIR = /usr/X11R6/include
+
+-CC = gcc
++CC ?= gcc
+-@USE_SDL_TRUE@SDL_CFLAGS = `sdl-config --cflags` -DUSE_SDL
++@USE_SDL_TRUE@SDL_CFLAGS = `$(SDL_CONFIG) --cflags` -DUSE_SDL
+ @USE_SDL_FALSE@SDL_CFLAGS =
+-@USE_SDL_TRUE@SDL_LIBS = `sdl-config --libs`
++@USE_SDL_TRUE@SDL_LIBS = `$(SDL_CONFIG) --libs`
+ @USE_SDL_FALSE@SDL_LIBS =
+ @USE_SDL_TRUE@GLUT_LIBS =
+ @USE_SDL_FALSE@GLUT_LIBS = -lglut
+
+-CFLAGS = -Wall -O3 `freetype-config --cflags` ${SDL_CFLAGS}
++CFLAGS += -Wall `freetype-config --cflags` ${SDL_CFLAGS} -I%%X11BASE%%/include -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/SDL11
+
+ #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz
+ #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz
diff --git a/games/foobillard/files/patch-sys_stuff.c b/games/foobillard/files/patch-sys_stuff.c
new file mode 100644
index 000000000000..19039f0ba66f
--- /dev/null
+++ b/games/foobillard/files/patch-sys_stuff.c
@@ -0,0 +1,11 @@
+--- src/sys_stuff.c.orig Sat Oct 26 20:47:23 2002
++++ src/sys_stuff.c Sat Oct 26 20:47:32 2002
+@@ -5,7 +5,7 @@
+ #ifndef USE_SDL
+ #include <GL/glut.h>
+ #else
+-#include <SDL/SDL.h>
++#include <SDL11/SDL.h>
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+ #endif
diff --git a/games/foobillard/pkg-comment b/games/foobillard/pkg-comment
new file mode 100644
index 000000000000..b850b16731a3
--- /dev/null
+++ b/games/foobillard/pkg-comment
@@ -0,0 +1 @@
+A free OpenGL-billard game
diff --git a/games/foobillard/pkg-descr b/games/foobillard/pkg-descr
new file mode 100644
index 000000000000..cef5fd980921
--- /dev/null
+++ b/games/foobillard/pkg-descr
@@ -0,0 +1,6 @@
+Foobillard is a free OpenGL-billard game for Unix with realistic physics,
+AI-player and many gametypes like pool carambol or snooker.
+
+WWW: http://foobillard.sunsite.dk/
+
+- Thomas Vogt <thomas.vogt@bsdunix.ch>
diff --git a/games/foobillard/pkg-plist b/games/foobillard/pkg-plist
new file mode 100644
index 000000000000..1fd68bc20c97
--- /dev/null
+++ b/games/foobillard/pkg-plist
@@ -0,0 +1,25 @@
+bin/foobillard
+share/foobillard/blende.png
+share/foobillard/bluebold.ttf
+share/foobillard/cue_shadow.png
+share/foobillard/foobillard.gif
+share/foobillard/foobillard.png
+share/foobillard/full_symbol.png
+share/foobillard/fullhalf_symbol.png
+share/foobillard/half_symbol.png
+share/foobillard/iomanoid.ttf
+share/foobillard/lightflare.png
+share/foobillard/place_cue_ball.png
+share/foobillard/queue.png
+share/foobillard/queue_shadow.png
+share/foobillard/shadow2.png
+share/foobillard/shadow3.png
+share/foobillard/shadow_alpha.png
+share/foobillard/sphere_map_128x128.png
+share/foobillard/sphere_map_128x128_light.png
+share/foobillard/sphere_map_64x64.png
+share/foobillard/table-frame.png
+share/foobillard/tabletex_fB_128x128.png
+share/foobillard/tabletex_fB_256x256.png
+share/foobillard/youregon.ttf
+@dirrm share/foobillard