diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-sports/foobillard | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-sports/foobillard')
-rw-r--r-- | games-sports/foobillard/Manifest | 1 | ||||
-rw-r--r-- | games-sports/foobillard/files/foobillard-3.0a-as-needed.patch | 10 | ||||
-rw-r--r-- | games-sports/foobillard/files/foobillard-3.0a-fbsd.patch | 29 | ||||
-rw-r--r-- | games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch | 14 | ||||
-rw-r--r-- | games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch | 18 | ||||
-rw-r--r-- | games-sports/foobillard/foobillard-3.0a.ebuild | 53 | ||||
-rw-r--r-- | games-sports/foobillard/metadata.xml | 5 |
7 files changed, 130 insertions, 0 deletions
diff --git a/games-sports/foobillard/Manifest b/games-sports/foobillard/Manifest new file mode 100644 index 000000000000..5619a33f0b8f --- /dev/null +++ b/games-sports/foobillard/Manifest @@ -0,0 +1 @@ +DIST foobillard-3.0a.tar.gz 1138477 SHA256 d05807077bdba32c4ca1d369344ac983675dc859cb7b192fca4196f23b89b137 SHA512 6ff85255384a83cb147a9682beefa021658ba34ad00ed7879bf7887fff248d41aeb34d2dbe39148ee10bffc53091ea5f168b4afeddac9b50d577bad7799d59b2 WHIRLPOOL 97e4ce788721c5327d7b1e7f42cb507c61af6b8e0e00208a728b107d8eb3bd89216810a607fab1e950c7045c9774d0aa4ce3ef95b31def953de0ce615bf590aa diff --git a/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch b/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch new file mode 100644 index 000000000000..1d9ddbd8b729 --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-as-needed.patch @@ -0,0 +1,10 @@ +--- foobillard-3.0a.old/src/Makefile.am 2004-02-25 07:23:56.000000000 +0100 ++++ foobillard-3.0a/src/Makefile.am 2008-12-06 21:57:03.000000000 +0100 +@@ -83,6 +83,5 @@ AM_CFLAGS = -Wall `freetype-config --cfl + + #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz + #LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz +-AM_LDFLAGS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} + #LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz -L/home/floh/nvsdk/OpenGL/lib/ -lnvparse +-LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz ++LIBS = ${all_libraries} `freetype-config --libs` ${SDL_LIBS} ${GLUT_LIBS} ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lXaw -lm -lXi -lpng -lz diff --git a/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch b/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch new file mode 100644 index 000000000000..301260cb8360 --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-fbsd.patch @@ -0,0 +1,29 @@ +Index: foobillard-3.0a/configure.in +=================================================================== +--- foobillard-3.0a.orig/configure.in ++++ foobillard-3.0a/configure.in +@@ -13,7 +13,7 @@ dnl Checks for libraries. + + dnl Checks for header files. + AC_HEADER_STDC +-AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h) ++AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.h ft2build.h endian.h sys/endian.h) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST +Index: foobillard-3.0a/src/billard3d.c +=================================================================== +--- foobillard-3.0a.orig/src/billard3d.c ++++ foobillard-3.0a/src/billard3d.c +@@ -24,7 +24,11 @@ + #include <string.h> + #include <math.h> + #include <unistd.h> ++#ifdef HAVE_ENDIAN_H + #include <endian.h> ++#elif defined(HAVE_SYS_ENDIAN_H) ++#include <sys/endian.h> ++#endif + + #ifndef USE_SDL + #include <GL/glut.h> diff --git a/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch b/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch new file mode 100644 index 000000000000..972d14cabb0a --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch @@ -0,0 +1,14 @@ +diff -ur foobillard-3.0a/src/table.c foobillard-3.0a-glclamp/src/table.c +--- foobillard-3.0a/src/table.c 2004-01-11 21:53:02.000000000 +0000 ++++ foobillard-3.0a-glclamp/src/table.c 2011-02-21 09:14:36.000000000 +0000 +@@ -1214,8 +1214,8 @@ + GL_UNSIGNED_BYTE, tabletexdata); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, options_tex_min_filter); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, options_tex_mag_filter); +- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); +- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); ++ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); ++ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + free( tabletexdata ); + } else { + tabletexbind=0; diff --git a/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch new file mode 100644 index 000000000000..b43707bc403b --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch @@ -0,0 +1,18 @@ +--- src/ball.c.orig 2004-06-02 07:00:57.000000000 -0400 ++++ src/ball.c 2004-06-02 07:03:52.000000000 -0400 +@@ -1821,6 +1821,7 @@ + } else if( options_cuberef && cuberef_binds!=0 ){ + glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, cuberef_binds[i]); + #ifdef GL_VERTEX_PROGRAM_NV ++#ifdef USE_BALL_FRESNEL + { + myvec cam_pos2; + // cam_pos2=vec_scale(vec_unit(vec_diff(cam_pos,balls.ball[i].r)),BALL_D/2.5); +@@ -1829,6 +1830,7 @@ + BALL_D/2.0,BALL_D/2.5,0,0 ); + } + #endif ++#endif + draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,0); + }else{ + draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,0); diff --git a/games-sports/foobillard/foobillard-3.0a.ebuild b/games-sports/foobillard/foobillard-3.0a.ebuild new file mode 100644 index 000000000000..babc1d84dc38 --- /dev/null +++ b/games-sports/foobillard/foobillard-3.0a.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="8ball, 9ball, snooker and carambol game" +HOMEPAGE="http://foobillard.sourceforge.net/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="sdl video_cards_nvidia" + +DEPEND="x11-libs/libXaw + x11-libs/libXi + virtual/opengl + virtual/glu + >=media-libs/freetype-2.0.9 + media-libs/libpng + sdl? ( media-libs/libsdl ) + !sdl? ( media-libs/freeglut )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-no_nvidia.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-gl-clamp.patch + mv configure.{in,ac} + rm aclocal.m4 + + eautoreconf +} + +src_configure() { + egamesconf \ + --enable-sound \ + $(use_enable sdl SDL) \ + $(use_enable !sdl glut) \ + $(use_enable video_cards_nvidia nvidia) +} + +src_install() { + default + doman foobillard.6 + newicon data/full_symbol.png foobillard.png + make_desktop_entry foobillard Foobillard + prepgamesdirs +} diff --git a/games-sports/foobillard/metadata.xml b/games-sports/foobillard/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-sports/foobillard/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> |