diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-sports/foobillard |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-sports/foobillard')
-rw-r--r-- | games-sports/foobillard/Manifest | 9 | ||||
-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 | 11 |
7 files changed, 144 insertions, 0 deletions
diff --git a/games-sports/foobillard/Manifest b/games-sports/foobillard/Manifest new file mode 100644 index 000000000000..b861be05db9f --- /dev/null +++ b/games-sports/foobillard/Manifest @@ -0,0 +1,9 @@ +AUX foobillard-3.0a-as-needed.patch 799 SHA256 185041c56dc00ac0ea553fe68833dc6524282a647baceab3db2eb98e2c833b27 SHA512 91f003cbc8c6f3ce61b4eff79a7d70200374f17aa8a0c45a8f5fecdd56a4f7b58170ca28c92bf729625dcf819c413fe854f0550eef516339d5c712b4bf5bbe3c WHIRLPOOL 46f8546d6d885d3827a0eb0c80e637fe2ca73162d9a13a70addcc71a28524f887ab1423eb7bae6b28dbde8359c25ac7cde96692d965a9c53cfa5abb97480c86e +AUX foobillard-3.0a-fbsd.patch 930 SHA256 c08aa1e217408fee5729e3e4cc407bf183f5232096ffe0092a3949e9ea6bcffa SHA512 c0fb2ace1c5e89be8642b0ece28eacf1ace516c59c52f6bd4dfc68701528f71f1830facc9889a50444eb4c799bd57dcbcc6345932c35070aee037453f36b0943 WHIRLPOOL 4ebd762f3d15b367d4d916a7e7116c19f6de2b076682c8d7137afe085d4c0fbd8962e7102e72925a29493391c1140ca98464f7641c02cb1712b0ebf1e7424ef7 +AUX foobillard-3.0a-gl-clamp.patch 841 SHA256 a34d83cee0dc0896942353fb8b2ded11226b02b4338d4d82d7181d98e990f9a1 SHA512 3be3c896f9e789d35236b630e7a587d53112abbfc70e0b5cb32bad1f2b5f0692ed804e14ed7d1f84db89cdb8c34eaccc09801fd5a450efee9d741eb59bd3a3e1 WHIRLPOOL 9366716a4c1c8ef98e6d335bbaabe6c14b4bdc53e644c2455423a9758a85a32826adc28bc958aa9dac8cb05ba143a730879cc56a56ca1ce65c00e38da42ae8af +AUX foobillard-3.0a-no_nvidia.patch 770 SHA256 d94d36c24b8a7d8629bf028a8fba28ed5cf542c5ec2ccdcbf782373b7b9a928b SHA512 77530c4080cbf56c34d4bed20b2b95fd0aaac25e6e640f09aec83ef3eafbbac828c3b801159537b0980aeec1edc4f53d94de431eb4c053f76d5c5c4eb3296f69 WHIRLPOOL db5e1a564efaf3b8f557ea319d0b0fb66642bda9b5fdcd9b5f246f8c8040dd46868949052dd2aeb844d58baf7df5c27313ba372dc0fa0e27ba270989c06c0f58 +DIST foobillard-3.0a.tar.gz 1138477 SHA256 d05807077bdba32c4ca1d369344ac983675dc859cb7b192fca4196f23b89b137 SHA512 6ff85255384a83cb147a9682beefa021658ba34ad00ed7879bf7887fff248d41aeb34d2dbe39148ee10bffc53091ea5f168b4afeddac9b50d577bad7799d59b2 WHIRLPOOL 97e4ce788721c5327d7b1e7f42cb507c61af6b8e0e00208a728b107d8eb3bd89216810a607fab1e950c7045c9774d0aa4ce3ef95b31def953de0ce615bf590aa +EBUILD foobillard-3.0a.ebuild 1215 SHA256 337fd5f61b7fe1b028269d389175f12d251a54c37b0bf764b6b9d98a009f8734 SHA512 15364983ff114038ac707e295562ed57eea705400cd8775791a780598d41aa1dd30a74a694923daa73992ac093549a046232d242433ac2d32f4909d768587c0e WHIRLPOOL c35e1be23f59d4715296a4ad296d68982f5a15be6ab0b72310f35e820f9afebe283840916f1438e3a1be1d17d5c7b53ffd246a2f43e57943dbd4bd961555e484 +MISC ChangeLog 3317 SHA256 4df09c59d3a33b45cfb1e11034bea0efa0fdcc50449099bde2e244c6770a569d SHA512 83e73688e23179a8e08bcbca22f05c7b81d52284a5e6dc2ed247f202501e9363f2ebe045ec8a6494763b03f28ccd21564d140eac31153237e4a4039a27d16a68 WHIRLPOOL 90ecbe37722cf58645a54b03b80fc5eb2c8404e30d3445b719ce0839da278a0d98440f00110893b290a96e49fa84457a7b6b0a755016ed6bb8cfc310b8a80f49 +MISC ChangeLog-2015 3758 SHA256 d82f528c8326864f24dd8e9d75d8ff1e18e26fae33f55a9cf755b7e2c52f4a30 SHA512 59483793837cc39cd229405e6feecfbaab429b82fbdbd7512b8b1fbe80bfda9e15255bd84e5a9761c6578254119aa512426e4c9dfcbb1639d46c0b47e92f0b00 WHIRLPOOL ada60c8a78a449aa46829942a4ad418487b48cf73d2b57118a0721d7c673344eec1d5c4818c456c74e7dd2747f06383888f6008ec4ce2f01f4c23cc0a24035f8 +MISC metadata.xml 333 SHA256 3e77939931904556e5faf406cb0b6fcb2d57bfeeec945dcb75ecddfba4694572 SHA512 0dd5f539d8dbd30c937ca6a8b67ad9c2d2b62627a0629dffb04b95673635f44f54b99773b0f938ba24b3aec19aa858c5458e9abb121230d9fa7e3652318a9689 WHIRLPOOL a63648aa1b8e8f1a76778234f5440beae2dcee4a635267bf0756c80c92b95fcdc146dce2356d0355c0ba44971989bc0e1c49829c720cf500dd17c9be0d980896 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..b3da787d3868 --- /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 + +EAPI=5 +inherit eutils flag-o-matic autotools toolchain-funcs 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 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:0 + sdl? ( media-libs/libsdl[video] ) + !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() { + use video_cards_nvidia && append-ldflags -L/usr/$(get_libdir)/opengl/nvidia/lib + 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..9a3afbb16c8e --- /dev/null +++ b/games-sports/foobillard/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">foobillard</remote-id> + </upstream> +</pkgmetadata> |