summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortnn <tnn>2015-09-27 10:07:52 +0000
committertnn <tnn>2015-09-27 10:07:52 +0000
commit6843d99c2584bb11e8b59898865d85fcfaaf1482 (patch)
tree7c3f4d7e5b509491c54a038f789b2594b5b0cbd3 /games
parent2220c0d01a930e052dd8f42f00c0e8a984c87452 (diff)
downloadpkgsrc-6843d99c2584bb11e8b59898865d85fcfaaf1482.tar.gz
remove games/foobillard (dead homepage and master site) and instead add
games/foobillardplus which is a continuation of the old code by a new maintainer.
Diffstat (limited to 'games')
-rw-r--r--games/Makefile4
-rw-r--r--games/foobillard/Makefile39
-rw-r--r--games/foobillard/PLIST34
-rw-r--r--games/foobillard/distinfo7
-rw-r--r--games/foobillard/patches/patch-aa44
-rw-r--r--games/foobillard/patches/patch-src_ball.c13
-rw-r--r--games/foobillardplus/DESCR (renamed from games/foobillard/DESCR)0
-rw-r--r--games/foobillardplus/Makefile36
-rw-r--r--games/foobillardplus/PLIST202
-rw-r--r--games/foobillardplus/distinfo10
-rw-r--r--games/foobillardplus/patches/patch-src_Makefile.am36
-rw-r--r--games/foobillardplus/patches/patch-src_billard3d.c15
-rw-r--r--games/foobillardplus/patches/patch-src_configure.in23
-rw-r--r--games/foobillardplus/patches/patch-src_sound__stuff.c16
-rw-r--r--games/foobillardplus/patches/patch-src_sys__stuff.c25
15 files changed, 365 insertions, 139 deletions
diff --git a/games/Makefile b/games/Makefile
index 01cd426a0a6..016674d29d3 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.383 2015/09/12 18:55:56 wiz Exp $
+# $NetBSD: Makefile,v 1.384 2015/09/27 10:07:53 tnn Exp $
#
COMMENT= Games
@@ -94,7 +94,7 @@ SUBDIR+= flare-game
SUBDIR+= flightgear
SUBDIR+= flightgear-data
SUBDIR+= fltk-sudoku
-SUBDIR+= foobillard
+SUBDIR+= foobillardplus
SUBDIR+= fortune-strfile
SUBDIR+= fortunes-calvin
SUBDIR+= fortunes-de
diff --git a/games/foobillard/Makefile b/games/foobillard/Makefile
deleted file mode 100644
index a4c6d1b0675..00000000000
--- a/games/foobillard/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-# $NetBSD: Makefile,v 1.28 2015/09/21 14:00:10 tnn Exp $
-#
-
-# This package should be replaced with
-# http://foobillardplus.sourceforge.net/
-
-DISTNAME= foobillard-3.0a
-PKGREVISION= 14
-CATEGORIES= games
-MASTER_SITES= http://foobillard.sunsite.dk/dnl/
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://foobillard.sunsite.dk/
-COMMENT= Free OpenGL-billard game
-
-USE_TOOLS+= gmake
-GNU_CONFIGURE= yes
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux"
-CONFIGURE_ARGS+= --enable-glut
-.include "../../graphics/glut/buildlink3.mk"
-.else
-CONFIGURE_ARGS+= --enable-nvidia=no
-.include "../../devel/SDL/buildlink3.mk"
-.endif
-
-CPPFLAGS+= -DNO_NV_FRESNEL
-
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../graphics/freetype2/buildlink3.mk"
-.include "../../graphics/glu/buildlink3.mk"
-.include "../../graphics/MesaLib/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
-.include "../../x11/libXaw/buildlink3.mk"
-.include "../../x11/libXi/buildlink3.mk"
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/games/foobillard/PLIST b/games/foobillard/PLIST
deleted file mode 100644
index 1a1a1810246..00000000000
--- a/games/foobillard/PLIST
+++ /dev/null
@@ -1,34 +0,0 @@
-@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:56:44 joerg Exp $
-bin/foobillard
-share/foobillard/ball_ball.raw
-share/foobillard/blende.png
-share/foobillard/bluebold.ttf
-share/foobillard/bumpref.png
-share/foobillard/cloth.png
-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/negx.png
-share/foobillard/negy.png
-share/foobillard/negz.png
-share/foobillard/place_cue_ball.png
-share/foobillard/posx.png
-share/foobillard/posy.png
-share/foobillard/posz.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
diff --git a/games/foobillard/distinfo b/games/foobillard/distinfo
deleted file mode 100644
index 6ad0cc6cd7f..00000000000
--- a/games/foobillard/distinfo
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD: distinfo,v 1.7 2015/09/21 14:00:10 tnn Exp $
-
-SHA1 (foobillard-3.0a.tar.gz) = 1caa51a201b55883640b5c5b1e9fde20fc71a095
-RMD160 (foobillard-3.0a.tar.gz) = 9d5a2d271ca270563592c5f6cf23533447c51483
-Size (foobillard-3.0a.tar.gz) = 1138477 bytes
-SHA1 (patch-aa) = 1a2cda246cc6adee230766d932916acebe4e2086
-SHA1 (patch-src_ball.c) = df99e45140e58036701bbe4c24a201dcbbfc8729
diff --git a/games/foobillard/patches/patch-aa b/games/foobillard/patches/patch-aa
deleted file mode 100644
index f4cb8f2d21b..00000000000
--- a/games/foobillard/patches/patch-aa
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2012/03/02 15:44:54 hans Exp $
-
---- src/billard3d.c.orig 2004-04-24 01:20:49.000000000 +0000
-+++ src/billard3d.c
-@@ -24,7 +24,21 @@
- #include <string.h>
- #include <math.h>
- #include <unistd.h>
-+#include <sys/param.h>
-+#if (defined(__FreeBSD__) && __FreeBSD_version >= 500000) || defined(__DragonFly__) || defined(__NetBSD__)
-+#include <sys/endian.h>
-+#elif defined(__sun)
-+#include <sys/byteorder.h>
-+#define LITTLE_ENDIAN 1234
-+#define BIG_ENDIAN 4321
-+#ifdef _BIG_ENDIAN
-+#define BYTE_ORDER BIG_ENDIAN
-+#else
-+#define BYTE_ORDER LITTLE_ENDIAN
-+#endif
-+#else
- #include <endian.h>
-+#endif
-
- #ifndef USE_SDL
- #include <GL/glut.h>
-@@ -5000,7 +5014,7 @@ int main( int argc, char *argv[] )
-
- /* config file */
- load_config( &confv, &confc, argv, argc );
-- while( ( act_option = getopt_long_only(confc, confv, "+", long_options, &option_index) ) >= 0){
-+ while( ( act_option = getopt_long(confc, confv, "+", long_options, &option_index) ) >= 0){
- DPRINTF("processing option %d=%s\n",act_option,optarg);
- process_option(act_option);
- }
-@@ -5098,7 +5112,7 @@ int main( int argc, char *argv[] )
- fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
- fclose(f);
-
--#if __BYTE_ORDER == __BIG_ENDIAN
-+#if _BYTE_ORDER == BIG_ENDIAN
- {
- char *snd=ball_ball_snd.data;
- for(i=0;i<ball_ball_snd.len;i+=2)
diff --git a/games/foobillard/patches/patch-src_ball.c b/games/foobillard/patches/patch-src_ball.c
deleted file mode 100644
index 90a7a2016e2..00000000000
--- a/games/foobillard/patches/patch-src_ball.c
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_ball.c,v 1.1 2015/09/21 14:00:11 tnn Exp $
-
---- src/ball.c.orig 2004-02-23 01:09:01.000000000 +0000
-+++ src/ball.c
-@@ -1820,7 +1820,7 @@ void draw_balls( BallsType balls, myvec
- draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,1);
- } else if( options_cuberef && cuberef_binds!=0 ){
- glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, cuberef_binds[i]);
--#ifdef GL_VERTEX_PROGRAM_NV
-+#if defined(GL_VERTEX_PROGRAM_NV) && defined(USE_BALL_FRESNEL)
- {
- myvec cam_pos2;
- // cam_pos2=vec_scale(vec_unit(vec_diff(cam_pos,balls.ball[i].r)),BALL_D/2.5);
diff --git a/games/foobillard/DESCR b/games/foobillardplus/DESCR
index fa65b00f796..fa65b00f796 100644
--- a/games/foobillard/DESCR
+++ b/games/foobillardplus/DESCR
diff --git a/games/foobillardplus/Makefile b/games/foobillardplus/Makefile
new file mode 100644
index 00000000000..0e4bc0f6d7b
--- /dev/null
+++ b/games/foobillardplus/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+DISTNAME= foobillardplus-3.42beta
+PKGNAME= ${DISTNAME:S/beta/b/}
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=foobillardplus/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://foobillardplus.sourceforge.net/
+COMMENT= Free OpenGL-billard game
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= automake autoconf autoreconf
+
+CONFIGURE_ARGS+= --enable-standard
+CONFIGURE_ARGS+= --disable-fastmath
+
+SUBST_CLASSES+= fix-datadir
+SUBST_STAGE.fix-datadir= pre-configure
+SUBST_MESSAGE.fix-datadir= fixing datadir
+SUBST_FILES.fix-datadir= src/sys_stuff.c
+SUBST_SED.fix-datadir= -e 's,@DATADIR@,${PREFIX}/share/foobillardplus/data,g'
+
+pre-configure:
+ cd ${WRKSRC} && autoreconf -vif
+
+.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../net/SDL_net/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/foobillardplus/PLIST b/games/foobillardplus/PLIST
new file mode 100644
index 00000000000..2f617ce9ca8
--- /dev/null
+++ b/games/foobillardplus/PLIST
@@ -0,0 +1,202 @@
+@comment $NetBSD: PLIST,v 1.1 2015/09/27 10:07:53 tnn Exp $
+bin/foobillardplus
+share/applications/foobillardplus.desktop
+share/applications/foobillardplus.png
+share/applications/foobillardplus.xbm
+share/foobillardplus/AUTHORS
+share/foobillardplus/COPYING
+share/foobillardplus/ChangeLog
+share/foobillardplus/INSTALL
+share/foobillardplus/README
+share/foobillardplus/TODO
+share/foobillardplus/data/DejaVuSans-Bold.ttf
+share/foobillardplus/data/DejaVuSans.ttf
+share/foobillardplus/data/applause.wav
+share/foobillardplus/data/b.png
+share/foobillardplus/data/b1.png
+share/foobillardplus/data/ball_ball.raw
+share/foobillardplus/data/ballinhole.wav
+share/foobillardplus/data/balloutoftable.wav
+share/foobillardplus/data/blende.png
+share/foobillardplus/data/board.png
+share/foobillardplus/data/bomb.wav
+share/foobillardplus/data/browser.sh
+share/foobillardplus/data/bumpref.png
+share/foobillardplus/data/cabinet-back.png
+share/foobillardplus/data/cabinet-frame.png
+share/foobillardplus/data/cabinet-front.png
+share/foobillardplus/data/camin.png
+share/foobillardplus/data/carpet.png
+share/foobillardplus/data/ceiling.png
+share/foobillardplus/data/closewindow.png
+share/foobillardplus/data/cloth-col.png
+share/foobillardplus/data/cloth.png
+share/foobillardplus/data/corr1.png
+share/foobillardplus/data/corr2.png
+share/foobillardplus/data/corr3.png
+share/foobillardplus/data/disc.png
+share/foobillardplus/data/door.png
+share/foobillardplus/data/down.png
+share/foobillardplus/data/e.png
+share/foobillardplus/data/english.png
+share/foobillardplus/data/f.png
+share/foobillardplus/data/floor.png
+share/foobillardplus/data/foobillardplus.ico
+share/foobillardplus/data/foobillardplus.png
+share/foobillardplus/data/foobillardplus.xbm
+share/foobillardplus/data/fov.png
+share/foobillardplus/data/full_symbol.png
+share/foobillardplus/data/fullhalf_symbol.png
+share/foobillardplus/data/graffity1.png
+share/foobillardplus/data/graffity2.png
+share/foobillardplus/data/half_symbol.png
+share/foobillardplus/data/html/history.xml
+share/foobillardplus/data/html/history.xsl
+share/foobillardplus/data/html/images/body-bg.png
+share/foobillardplus/data/html/images/content-bg.png
+share/foobillardplus/data/html/images/feature.jpg
+share/foobillardplus/data/html/images/footer-bg.png
+share/foobillardplus/data/html/images/gradient-shadow.png
+share/foobillardplus/data/html/images/header-bg.jpg
+share/foobillardplus/data/html/images/logo.jpg
+share/foobillardplus/data/html/images/sidebar-h3-bg.jpg
+share/foobillardplus/data/html/styles.css
+share/foobillardplus/data/html/tournament.xml
+share/foobillardplus/data/html/tournament.xsl
+share/foobillardplus/data/icon.bmp
+share/foobillardplus/data/intro.png
+share/foobillardplus/data/intro.wav
+share/foobillardplus/data/kreuz.png
+share/foobillardplus/data/lightflare.png
+share/foobillardplus/data/locale/css/help.css
+share/foobillardplus/data/locale/css/help1.css
+share/foobillardplus/data/locale/de/foobillard.txt
+share/foobillardplus/data/locale/de/index.html
+share/foobillardplus/data/locale/de/index_a.html
+share/foobillardplus/data/locale/de/wetab-foobillard.txt
+share/foobillardplus/data/locale/en/foobillard.txt
+share/foobillardplus/data/locale/en/index.html
+share/foobillardplus/data/locale/en/index_a.html
+share/foobillardplus/data/locale/en/wetab-foobillard.txt
+share/foobillardplus/data/locale/img/0.png
+share/foobillardplus/data/locale/img/1.png
+share/foobillardplus/data/locale/img/2.png
+share/foobillardplus/data/locale/img/3.png
+share/foobillardplus/data/locale/img/4.png
+share/foobillardplus/data/locale/img/5.png
+share/foobillardplus/data/locale/img/6.png
+share/foobillardplus/data/locale/img/7.png
+share/foobillardplus/data/locale/img/8.png
+share/foobillardplus/data/locale/img/8ball.png
+share/foobillardplus/data/locale/img/9.png
+share/foobillardplus/data/locale/img/9ball.png
+share/foobillardplus/data/locale/img/9ball_a.png
+share/foobillardplus/data/locale/img/b.png
+share/foobillardplus/data/locale/img/b1.png
+share/foobillardplus/data/locale/img/back.png
+share/foobillardplus/data/locale/img/birdview.png
+share/foobillardplus/data/locale/img/cue.png
+share/foobillardplus/data/locale/img/document-save.png
+share/foobillardplus/data/locale/img/down.png
+share/foobillardplus/data/locale/img/down1.png
+share/foobillardplus/data/locale/img/e.png
+share/foobillardplus/data/locale/img/e1.png
+share/foobillardplus/data/locale/img/eingabe.png
+share/foobillardplus/data/locale/img/enter.png
+share/foobillardplus/data/locale/img/esc.png
+share/foobillardplus/data/locale/img/f.png
+share/foobillardplus/data/locale/img/f1.png
+share/foobillardplus/data/locale/img/f10.png
+share/foobillardplus/data/locale/img/f2.png
+share/foobillardplus/data/locale/img/f3.png
+share/foobillardplus/data/locale/img/f4.png
+share/foobillardplus/data/locale/img/f5.png
+share/foobillardplus/data/locale/img/f6.png
+share/foobillardplus/data/locale/img/f7.png
+share/foobillardplus/data/locale/img/f8.png
+share/foobillardplus/data/locale/img/f9.png
+share/foobillardplus/data/locale/img/fov.png
+share/foobillardplus/data/locale/img/gpl.txt
+share/foobillardplus/data/locale/img/halb.png
+share/foobillardplus/data/locale/img/jumpshots.png
+share/foobillardplus/data/locale/img/karambol.png
+share/foobillardplus/data/locale/img/l.png
+share/foobillardplus/data/locale/img/left.png
+share/foobillardplus/data/locale/img/logo.png
+share/foobillardplus/data/locale/img/m.png
+share/foobillardplus/data/locale/img/m1.png
+share/foobillardplus/data/locale/img/menue-haupt.png
+share/foobillardplus/data/locale/img/menue.png
+share/foobillardplus/data/locale/img/menue2.png
+share/foobillardplus/data/locale/img/n.png
+share/foobillardplus/data/locale/img/network.png
+share/foobillardplus/data/locale/img/next.png
+share/foobillardplus/data/locale/img/pgdown.png
+share/foobillardplus/data/locale/img/pgup.png
+share/foobillardplus/data/locale/img/r.png
+share/foobillardplus/data/locale/img/right.png
+share/foobillardplus/data/locale/img/s.png
+share/foobillardplus/data/locale/img/s1.png
+share/foobillardplus/data/locale/img/schuss.png
+share/foobillardplus/data/locale/img/screenshot.png
+share/foobillardplus/data/locale/img/shot.png
+share/foobillardplus/data/locale/img/snipping.png
+share/foobillardplus/data/locale/img/snooker.png
+share/foobillardplus/data/locale/img/start.png
+share/foobillardplus/data/locale/img/start_a.png
+share/foobillardplus/data/locale/img/steuerkreuz.png
+share/foobillardplus/data/locale/img/symbol-f.png
+share/foobillardplus/data/locale/img/tab.png
+share/foobillardplus/data/locale/img/u.png
+share/foobillardplus/data/locale/img/up.png
+share/foobillardplus/data/locale/img/up1.png
+share/foobillardplus/data/locale/img/v.png
+share/foobillardplus/data/locale/img/voll.png
+share/foobillardplus/data/locale/img/volume.png
+share/foobillardplus/data/locale/img/weiss.png
+share/foobillardplus/data/logo-blank.png
+share/foobillardplus/data/m.png
+share/foobillardplus/data/mleft.png
+share/foobillardplus/data/mleftnormal.png
+share/foobillardplus/data/mright-wetab.png
+share/foobillardplus/data/mright.png
+share/foobillardplus/data/music/01 Zentriert ins Antlitz - Der Zorn des Lammes.ogg
+share/foobillardplus/data/music/07 E.M.I.T.R - Neptunes Realm.ogg
+share/foobillardplus/data/music/08 Zentriert ins Antlitz - Beyond the Reef.ogg
+share/foobillardplus/data/music/music.txt
+share/foobillardplus/data/n.png
+share/foobillardplus/data/negx.png
+share/foobillardplus/data/negy.png
+share/foobillardplus/data/negz.png
+share/foobillardplus/data/network.png
+share/foobillardplus/data/oneballontable.wav
+share/foobillardplus/data/ooh.wav
+share/foobillardplus/data/place_cue_ball.png
+share/foobillardplus/data/posx.png
+share/foobillardplus/data/posy.png
+share/foobillardplus/data/posz.png
+share/foobillardplus/data/price.png
+share/foobillardplus/data/queue.png
+share/foobillardplus/data/queue2.png
+share/foobillardplus/data/queue3.png
+share/foobillardplus/data/queue_shadow.png
+share/foobillardplus/data/s.png
+share/foobillardplus/data/screenshot.png
+share/foobillardplus/data/shadow2.png
+share/foobillardplus/data/shadow3.png
+share/foobillardplus/data/shot.png
+share/foobillardplus/data/shuffleballs.wav
+share/foobillardplus/data/skyline.png
+share/foobillardplus/data/smack.wav
+share/foobillardplus/data/sofa.png
+share/foobillardplus/data/sphere_ball.png
+share/foobillardplus/data/sphere_map_128x128.png
+share/foobillardplus/data/stone-frame.png
+share/foobillardplus/data/table-frame.png
+share/foobillardplus/data/tabletex_fB_128x128.png
+share/foobillardplus/data/tabletex_fB_256x256.png
+share/foobillardplus/data/tabletex_wetab_128x128.png
+share/foobillardplus/data/tabletex_wetab_256x256.png
+share/foobillardplus/data/up.png
+share/foobillardplus/data/volume.png
+share/foobillardplus/data/window-big1.png
diff --git a/games/foobillardplus/distinfo b/games/foobillardplus/distinfo
new file mode 100644
index 00000000000..d3e73164785
--- /dev/null
+++ b/games/foobillardplus/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+SHA1 (foobillardplus-3.42beta.tar.gz) = 51507efab0f595cfff26149003faf669c0a42f32
+RMD160 (foobillardplus-3.42beta.tar.gz) = 321af661c2f82c6849baf072d25d8bd06a556b86
+Size (foobillardplus-3.42beta.tar.gz) = 37149700 bytes
+SHA1 (patch-src_Makefile.am) = ad4f63946e95759241b46285791e1ca6165e03d6
+SHA1 (patch-src_billard3d.c) = be4d9b415f36e536bdbcc8132ea16ba65c30b5fa
+SHA1 (patch-src_configure.in) = e3489d06d1dea528bbd28012367d4007594c60e5
+SHA1 (patch-src_sound__stuff.c) = e6b95b72dbf290b54db80c128521d4c7abc8ebea
+SHA1 (patch-src_sys__stuff.c) = bddd3f8e76c2b91eb1834768d9c9f63584ac8f0e
diff --git a/games/foobillardplus/patches/patch-src_Makefile.am b/games/foobillardplus/patches/patch-src_Makefile.am
new file mode 100644
index 00000000000..041ea8624ae
--- /dev/null
+++ b/games/foobillardplus/patches/patch-src_Makefile.am
@@ -0,0 +1,36 @@
+$NetBSD: patch-src_Makefile.am,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+DESTDIR support.
+
+--- Makefile.am.orig 2011-09-13 23:33:32.000000000 +0000
++++ Makefile.am
+@@ -27,17 +27,18 @@ dist-hook:
+ cp -p $(srcdir)/foobillardplus.xbm $(distdir)
+
+ install-data-hook:
+- mkdir -p $(datadir)
+- cp -p $(srcdir)/data/* $(datadir) -R
+- cp -p $(srcdir)/AUTHORS $(prefix)
+- cp -p $(srcdir)/COPYING $(prefix)
+- cp -p $(srcdir)/INSTALL $(prefix)
+- cp -p $(srcdir)/README $(prefix)
+- cp -p $(srcdir)/ChangeLog $(prefix)
+- cp -p $(srcdir)/TODO $(prefix)
+- cp -p $(srcdir)/foobillardplus.desktop $(prefix)
+- cp -p $(srcdir)/foobillardplus.png $(prefix)
+- cp -p $(srcdir)/foobillardplus.xbm $(prefix)
++ mkdir -p $(DESTDIR)$(datadir)
++ cp -pR $(srcdir)/data/* $(DESTDIR)$(datadir)
++ cp -p $(srcdir)/AUTHORS $(DESTDIR)$(prefix)/share/foobillardplus
++ cp -p $(srcdir)/COPYING $(DESTDIR)$(prefix)/share/foobillardplus
++ cp -p $(srcdir)/INSTALL $(DESTDIR)$(prefix)/share/foobillardplus
++ cp -p $(srcdir)/README $(DESTDIR)$(prefix)/share/foobillardplus
++ cp -p $(srcdir)/ChangeLog $(DESTDIR)$(prefix)/share/foobillardplus
++ cp -p $(srcdir)/TODO $(DESTDIR)$(prefix)/share/foobillardplus
++ mkdir -p $(DESTDIR)$(prefix)/share/applications
++ cp -p $(srcdir)/foobillardplus.desktop $(DESTDIR)$(prefix)/share/applications
++ cp -p $(srcdir)/foobillardplus.png $(DESTDIR)$(prefix)/share/applications
++ cp -p $(srcdir)/foobillardplus.xbm $(DESTDIR)$(prefix)/share/applications
+
+ uninstall-hook:
+ rm $(prefix) -R
diff --git a/games/foobillardplus/patches/patch-src_billard3d.c b/games/foobillardplus/patches/patch-src_billard3d.c
new file mode 100644
index 00000000000..5a2a5c8412d
--- /dev/null
+++ b/games/foobillardplus/patches/patch-src_billard3d.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_billard3d.c,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+Don't use Linux specific getopt_long_only.
+
+--- src/billard3d.c.orig 2012-01-02 19:23:49.000000000 +0000
++++ src/billard3d.c
+@@ -7597,7 +7597,7 @@ int main( int argc, char *argv[] )
+
+ /* config file */
+ load_config( &confv, &confc, argv, argc );
+- while( ( act_option = getopt_long_only(confc, confv, "+", long_options, &option_index) ) >= 0){
++ while( ( act_option = getopt_long(confc, confv, "+", long_options, &option_index) ) >= 0){
+ //fprintf(stderr,"processing option %d=%s\n",act_option,optarg);
+ process_option(act_option);
+ }
diff --git a/games/foobillardplus/patches/patch-src_configure.in b/games/foobillardplus/patches/patch-src_configure.in
new file mode 100644
index 00000000000..28cb5bfc223
--- /dev/null
+++ b/games/foobillardplus/patches/patch-src_configure.in
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_configure.in,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+Fix paths.
+
+--- configure.in.orig 2011-12-31 00:28:23.000000000 +0000
++++ configure.in
+@@ -61,14 +61,14 @@ AC_PREFIX_DEFAULT(/opt/foobillardplus)
+ if test "x$prefix" = "xNONE" ; then
+ prefix="/opt/foobillardplus"
+ else
+- prefix=$prefix/foobillardplus
++ prefix=$prefix
+ fi
+ if test "x$exec_prefix" = "xNONE" ; then
+ exec_prefix=$prefix
+ fi
+ bindir=$prefix/bin
+ datarootdir=$prefix/data
+-datadir=$prefix/data
++datadir=$prefix/share/foobillardplus/data
+ localedir=$prefix/data/locale
+ docdir=$prefix/data/locale
+ PREFIX=$prefix
diff --git a/games/foobillardplus/patches/patch-src_sound__stuff.c b/games/foobillardplus/patches/patch-src_sound__stuff.c
new file mode 100644
index 00000000000..c90a64154d9
--- /dev/null
+++ b/games/foobillardplus/patches/patch-src_sound__stuff.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_sound__stuff.c,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+Wow. Amazing that this doesn't crash for anyone else.
+Reported upstream in private mail.
+
+--- src/sound_stuff.c.orig 2011-12-26 22:41:48.000000000 +0000
++++ src/sound_stuff.c
+@@ -96,7 +96,7 @@ int strsound ( char s1[] )
+ int i = 0;
+ char s[10];
+ if(strlen(s1) > 4) {
+- strcpy(s,&s[strlen(s)-4]);
++ strcpy(s,&s1[strlen(s1)-4]);
+ while (s[i]) {
+ s[i] = toupper(s[i]);
+ ++i;
diff --git a/games/foobillardplus/patches/patch-src_sys__stuff.c b/games/foobillardplus/patches/patch-src_sys__stuff.c
new file mode 100644
index 00000000000..02839059fde
--- /dev/null
+++ b/games/foobillardplus/patches/patch-src_sys__stuff.c
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_sys__stuff.c,v 1.1 2015/09/27 10:07:53 tnn Exp $
+
+Use pkgsrc's installation prefix instead of /proc vooodoo.
+
+--- src/sys_stuff.c.orig 2012-01-02 19:23:49.000000000 +0000
++++ src/sys_stuff.c
+@@ -760,6 +760,7 @@ static char data_dir[512];
+
+ void enter_data_dir() {
+ int success = 1;
++#if 0
+
+ #ifdef POSIX
+ char proc_exe[20];
+@@ -805,6 +806,10 @@ void enter_data_dir() {
+ success = 1;
+ } while (0);
+
++#endif
++ strncpy(data_dir, "@DATADIR@", sizeof(data_dir));
++ if (chdir(data_dir) < 0)
++ success = 0;
+ if (!success) {
+ fprintf(stderr,
+ "Foobillard++ seems not to be correctly installed\n"