From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-sports/Manifest.gz | Bin 2604 -> 2730 bytes games-sports/billardgl-1.75-r2 | 12 --- games-sports/billardgl/Manifest | 4 + games-sports/billardgl/billardgl-1.75-r2.ebuild | 55 ++++++++++ games-sports/billardgl/metadata.xml | 11 ++ games-sports/bygfoot-2.3.2-r1 | 12 --- games-sports/bygfoot/Manifest | 3 + games-sports/bygfoot/bygfoot-2.3.2-r1.ebuild | 45 ++++++++ games-sports/bygfoot/metadata.xml | 11 ++ games-sports/dustrac-1.11.0-r1 | 12 --- games-sports/dustrac/Manifest | 4 + games-sports/dustrac/dustrac-1.11.0-r1.ebuild | 68 ++++++++++++ .../dustrac/files/dustrac-1.11.0-cmake.patch | 23 ++++ games-sports/dustrac/metadata.xml | 18 ++++ games-sports/foobillard-3.0a-r1 | 13 --- games-sports/foobillard/Manifest | 8 ++ .../files/foobillard-3.0a-as-needed.patch | 10 ++ .../foobillard/files/foobillard-3.0a-fbsd.patch | 29 +++++ .../files/foobillard-3.0a-freetype_pkgconfig.patch | 35 ++++++ .../files/foobillard-3.0a-gl-clamp.patch | 14 +++ .../files/foobillard-3.0a-no_nvidia.patch | 18 ++++ games-sports/foobillard/foobillard-3.0a-r1.ebuild | 56 ++++++++++ games-sports/foobillard/metadata.xml | 11 ++ games-sports/gracer-0.1.5-r1 | 12 --- games-sports/gracer/Manifest | 11 ++ games-sports/gracer/files/0.1.5-gldefs.patch | 33 ++++++ .../gracer/files/gracer-0.1.5-as-needed.patch | 11 ++ games-sports/gracer/files/gracer-0.1.5-gcc41.patch | 11 ++ .../gracer/files/gracer-0.1.5-giflib.patch | 14 +++ .../gracer/files/gracer-0.1.5-libpng14.patch | 13 +++ games-sports/gracer/files/gracer-0.1.5-png15.patch | 11 ++ .../gracer/files/gracer-0.1.5-warnings.patch | 21 ++++ games-sports/gracer/files/gracer-gcc-3.4.patch | 120 +++++++++++++++++++++ games-sports/gracer/gracer-0.1.5-r1.ebuild | 49 +++++++++ games-sports/gracer/metadata.xml | 11 ++ games-sports/metadata.xml | 32 ++++++ games-sports/miniracer-1.04 | 12 --- games-sports/miniracer/Manifest | 5 + .../miniracer/files/miniracer-1.04-ldflags.patch | 48 +++++++++ .../files/miniracer-1.04-nosharedelf.patch | 23 ++++ games-sports/miniracer/metadata.xml | 11 ++ games-sports/miniracer/miniracer-1.04.ebuild | 39 +++++++ games-sports/ski-6.9-r1 | 14 --- games-sports/ski/Manifest | 3 + games-sports/ski/metadata.xml | 8 ++ games-sports/ski/ski-6.9-r1.ebuild | 30 ++++++ games-sports/speed-dreams-1.4.0-r1 | 13 --- games-sports/speed-dreams/Manifest | 7 ++ .../files/speed-dreams-1.4.0-asneeded.patch | 110 +++++++++++++++++++ .../files/speed-dreams-1.4.0-automake.patch | 35 ++++++ .../files/speed-dreams-1.4.0-libpng15.patch | 20 ++++ .../files/speed-dreams-1.4.0-math-hack.patch | 25 +++++ games-sports/speed-dreams/metadata.xml | 14 +++ .../speed-dreams/speed-dreams-1.4.0-r1.ebuild | 84 +++++++++++++++ games-sports/stormbaancoureur-2.1.6-r1 | 12 --- games-sports/stormbaancoureur/Manifest | 4 + .../files/stormbaancoureur-2.1.6-gentoo.patch | 110 +++++++++++++++++++ games-sports/stormbaancoureur/metadata.xml | 8 ++ .../stormbaancoureur-2.1.6-r1.ebuild | 43 ++++++++ games-sports/torcs-1.3.6-r1 | 12 --- games-sports/torcs/Manifest | 10 ++ .../torcs/files/torcs-1.3.6-as-needed.patch | 96 +++++++++++++++++ games-sports/torcs/files/torcs-1.3.6-flags.patch | 14 +++ games-sports/torcs/files/torcs-1.3.6-format.patch | 34 ++++++ games-sports/torcs/files/torcs-1.3.6-gcc6.patch | 11 ++ games-sports/torcs/files/torcs-1.3.6-gcc7.patch | 11 ++ .../torcs/files/torcs-1.3.6-no-automake.patch | 21 ++++ games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch | 15 +++ games-sports/torcs/metadata.xml | 11 ++ games-sports/torcs/torcs-1.3.6-r1.ebuild | 68 ++++++++++++ games-sports/trigger-0.6.1-r1 | 12 --- games-sports/trigger/Manifest | 4 + .../trigger/files/trigger-0.6.1-gcc6.patch | 39 +++++++ games-sports/trigger/metadata.xml | 11 ++ games-sports/trigger/trigger-0.6.1-r1.ebuild | 61 +++++++++++ games-sports/trophy-2.0.3-r1 | 12 --- games-sports/trophy/Manifest | 3 + games-sports/trophy/metadata.xml | 11 ++ games-sports/trophy/trophy-2.0.3-r1.ebuild | 30 ++++++ games-sports/ultimatestunts-0.7.7-r1 | 13 --- games-sports/ultimatestunts/Manifest | 5 + .../files/ultimatestunts-0.7.7-gcc-4.7.patch | 16 +++ .../files/ultimatestunts-0.7.7-paths.patch | 19 ++++ games-sports/ultimatestunts/metadata.xml | 11 ++ .../ultimatestunts/ultimatestunts-0.7.7-r1.ebuild | 59 ++++++++++ games-sports/vdrift-20120722 | 12 --- games-sports/vdrift/Manifest | 6 ++ .../vdrift/files/vdrift-20120722-build.patch | 28 +++++ .../vdrift/files/vdrift-20120722-bullet.patch | 100 +++++++++++++++++ games-sports/vdrift/metadata.xml | 11 ++ games-sports/vdrift/vdrift-20120722.ebuild | 70 ++++++++++++ games-sports/xmoto-0.5.11-r2 | 13 --- games-sports/xmoto/Manifest | 5 + games-sports/xmoto/metadata.xml | 12 +++ games-sports/xmoto/xmoto-0.5.11-r2.ebuild | 96 +++++++++++++++++ 95 files changed, 2275 insertions(+), 186 deletions(-) delete mode 100644 games-sports/billardgl-1.75-r2 create mode 100644 games-sports/billardgl/Manifest create mode 100644 games-sports/billardgl/billardgl-1.75-r2.ebuild create mode 100644 games-sports/billardgl/metadata.xml delete mode 100644 games-sports/bygfoot-2.3.2-r1 create mode 100644 games-sports/bygfoot/Manifest create mode 100644 games-sports/bygfoot/bygfoot-2.3.2-r1.ebuild create mode 100644 games-sports/bygfoot/metadata.xml delete mode 100644 games-sports/dustrac-1.11.0-r1 create mode 100644 games-sports/dustrac/Manifest create mode 100644 games-sports/dustrac/dustrac-1.11.0-r1.ebuild create mode 100644 games-sports/dustrac/files/dustrac-1.11.0-cmake.patch create mode 100644 games-sports/dustrac/metadata.xml delete mode 100644 games-sports/foobillard-3.0a-r1 create mode 100644 games-sports/foobillard/Manifest create mode 100644 games-sports/foobillard/files/foobillard-3.0a-as-needed.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-fbsd.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-gl-clamp.patch create mode 100644 games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch create mode 100644 games-sports/foobillard/foobillard-3.0a-r1.ebuild create mode 100644 games-sports/foobillard/metadata.xml delete mode 100644 games-sports/gracer-0.1.5-r1 create mode 100644 games-sports/gracer/Manifest create mode 100644 games-sports/gracer/files/0.1.5-gldefs.patch create mode 100644 games-sports/gracer/files/gracer-0.1.5-as-needed.patch create mode 100644 games-sports/gracer/files/gracer-0.1.5-gcc41.patch create mode 100644 games-sports/gracer/files/gracer-0.1.5-giflib.patch create mode 100644 games-sports/gracer/files/gracer-0.1.5-libpng14.patch create mode 100644 games-sports/gracer/files/gracer-0.1.5-png15.patch create mode 100644 games-sports/gracer/files/gracer-0.1.5-warnings.patch create mode 100644 games-sports/gracer/files/gracer-gcc-3.4.patch create mode 100644 games-sports/gracer/gracer-0.1.5-r1.ebuild create mode 100644 games-sports/gracer/metadata.xml create mode 100644 games-sports/metadata.xml delete mode 100644 games-sports/miniracer-1.04 create mode 100644 games-sports/miniracer/Manifest create mode 100644 games-sports/miniracer/files/miniracer-1.04-ldflags.patch create mode 100644 games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch create mode 100644 games-sports/miniracer/metadata.xml create mode 100644 games-sports/miniracer/miniracer-1.04.ebuild delete mode 100644 games-sports/ski-6.9-r1 create mode 100644 games-sports/ski/Manifest create mode 100644 games-sports/ski/metadata.xml create mode 100644 games-sports/ski/ski-6.9-r1.ebuild delete mode 100644 games-sports/speed-dreams-1.4.0-r1 create mode 100644 games-sports/speed-dreams/Manifest create mode 100644 games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch create mode 100644 games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch create mode 100644 games-sports/speed-dreams/files/speed-dreams-1.4.0-libpng15.patch create mode 100644 games-sports/speed-dreams/files/speed-dreams-1.4.0-math-hack.patch create mode 100644 games-sports/speed-dreams/metadata.xml create mode 100644 games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild delete mode 100644 games-sports/stormbaancoureur-2.1.6-r1 create mode 100644 games-sports/stormbaancoureur/Manifest create mode 100644 games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch create mode 100644 games-sports/stormbaancoureur/metadata.xml create mode 100644 games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild delete mode 100644 games-sports/torcs-1.3.6-r1 create mode 100644 games-sports/torcs/Manifest create mode 100644 games-sports/torcs/files/torcs-1.3.6-as-needed.patch create mode 100644 games-sports/torcs/files/torcs-1.3.6-flags.patch create mode 100644 games-sports/torcs/files/torcs-1.3.6-format.patch create mode 100644 games-sports/torcs/files/torcs-1.3.6-gcc6.patch create mode 100644 games-sports/torcs/files/torcs-1.3.6-gcc7.patch create mode 100644 games-sports/torcs/files/torcs-1.3.6-no-automake.patch create mode 100644 games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch create mode 100644 games-sports/torcs/metadata.xml create mode 100644 games-sports/torcs/torcs-1.3.6-r1.ebuild delete mode 100644 games-sports/trigger-0.6.1-r1 create mode 100644 games-sports/trigger/Manifest create mode 100644 games-sports/trigger/files/trigger-0.6.1-gcc6.patch create mode 100644 games-sports/trigger/metadata.xml create mode 100644 games-sports/trigger/trigger-0.6.1-r1.ebuild delete mode 100644 games-sports/trophy-2.0.3-r1 create mode 100644 games-sports/trophy/Manifest create mode 100644 games-sports/trophy/metadata.xml create mode 100644 games-sports/trophy/trophy-2.0.3-r1.ebuild delete mode 100644 games-sports/ultimatestunts-0.7.7-r1 create mode 100644 games-sports/ultimatestunts/Manifest create mode 100644 games-sports/ultimatestunts/files/ultimatestunts-0.7.7-gcc-4.7.patch create mode 100644 games-sports/ultimatestunts/files/ultimatestunts-0.7.7-paths.patch create mode 100644 games-sports/ultimatestunts/metadata.xml create mode 100644 games-sports/ultimatestunts/ultimatestunts-0.7.7-r1.ebuild delete mode 100644 games-sports/vdrift-20120722 create mode 100644 games-sports/vdrift/Manifest create mode 100644 games-sports/vdrift/files/vdrift-20120722-build.patch create mode 100644 games-sports/vdrift/files/vdrift-20120722-bullet.patch create mode 100644 games-sports/vdrift/metadata.xml create mode 100644 games-sports/vdrift/vdrift-20120722.ebuild delete mode 100644 games-sports/xmoto-0.5.11-r2 create mode 100644 games-sports/xmoto/Manifest create mode 100644 games-sports/xmoto/metadata.xml create mode 100644 games-sports/xmoto/xmoto-0.5.11-r2.ebuild (limited to 'games-sports') diff --git a/games-sports/Manifest.gz b/games-sports/Manifest.gz index 9e3f3374a01c..6ded426e1106 100644 Binary files a/games-sports/Manifest.gz and b/games-sports/Manifest.gz differ diff --git a/games-sports/billardgl-1.75-r2 b/games-sports/billardgl-1.75-r2 deleted file mode 100644 index 5cdc8c11189a..000000000000 --- a/games-sports/billardgl-1.75-r2 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=install prepare -DEPEND=media-libs/freeglut x11-libs/libXi x11-libs/libXmu virtual/opengl virtual/glu -DESCRIPTION=an OpenGL billards game -EAPI=6 -HOMEPAGE=http://www.billardgl.de/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=media-libs/freeglut x11-libs/libXi x11-libs/libXmu virtual/opengl virtual/glu -SLOT=0 -SRC_URI=mirror://sourceforge/billardgl/BillardGL-1.75.tar.gz mirror://gentoo/billardgl.png -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=c0220795734a95b7f31d58ea214c0281 diff --git a/games-sports/billardgl/Manifest b/games-sports/billardgl/Manifest new file mode 100644 index 000000000000..c55bf4c2d64b --- /dev/null +++ b/games-sports/billardgl/Manifest @@ -0,0 +1,4 @@ +DIST BillardGL-1.75.tar.gz 736295 BLAKE2B 0330d5120b0f49f3a6ddc862cb474e2b8af19bf8218c45986360d3ecace0ff307db214739c2d29929fbe04a27a16cbc75c65761829e3f0fd41fceb91d11f146c SHA512 a81d50aa44f97f06fcafd32c3436709c302f86d37f915b2d63acd9c5d48eef22259858064ff56366c7c1cdff40e4a16ad84abe1b91a0daa408cb05ba728d1e88 +DIST billardgl.png 3212 BLAKE2B 0e3fe631ecae6288a50ec4f7dcc0d28ceac87ef23949e8113c74f49db06a5d2cbdcc814d7198937101aafc354341ae66164f61ac81eab86a2c324ba395e4d3c0 SHA512 d9606d8c6e6f9e2ce820a135aa32a8d3604b619a6ce6626fe742424074e48e71703919c5a1923d1ee6b38670ee70c757c328123d3f3c7f595a3c2fc704bd6f74 +EBUILD billardgl-1.75-r2.ebuild 1164 BLAKE2B 71b3e7adf8429564e3804f65b9d74d8639565f0bc2dc1a42ace39e41e4a5b9fcbb86729c8bab25ac8204e52253e9b0931c789ed0862a7593c83e8fbcfa76932a SHA512 63437aad99cda7b7f1b7d3e0f43afdc908f5627ffefa9494714ed36ad39f16fe9c2ca297a92cfb0fcda75de9d24eef82c685dff7365517657bf70c6054249738 +MISC metadata.xml 332 BLAKE2B 42ee526d8719377927e6d434e744883f5e3087bd6cbd4ddf872c1546ac8e983eda9cd584f587a1fb35827fff6e6ebed5d944733b66f0cdee7c59d14f95a77451 SHA512 332e3ee7d7aef28c4cc13d9e0504c1f93f97b50f7a6e8fd1ba93ff0ecdd4cfe07bf2acca4a5599418af61bfeda824fdfb641715ceeb7aa5aa48ee991263cc921 diff --git a/games-sports/billardgl/billardgl-1.75-r2.ebuild b/games-sports/billardgl/billardgl-1.75-r2.ebuild new file mode 100644 index 000000000000..e71f5aa777d3 --- /dev/null +++ b/games-sports/billardgl/billardgl-1.75-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="an OpenGL billards game" +HOMEPAGE="http://www.billardgl.de/" +SRC_URI="mirror://sourceforge/${PN}/BillardGL-${PV}.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + media-libs/freeglut + x11-libs/libXi + x11-libs/libXmu + virtual/opengl + virtual/glu" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/BillardGL-${PV}/src + +src_prepare() { + default + sed -i \ + -e "s:/usr/share/BillardGL/:/usr/share/${PN}/:" \ + Namen.h \ + || die "sed Namen.h failed" + sed -i \ + -e '/^LINK/s:g++:$(CXX):' \ + -e '/^CXX[[:space:]]/d' \ + -e '/^CC[[:space:]]/d' \ + -e '/^CXXFLAGS/s:=.*\(-D.*\)-.*:+=\1:' \ + -e "/^LFLAGS/s:=:=${LDFLAGS}:" \ + Makefile \ + || die "sed Makefile failed" + sed -i \ + -e 's:::' \ + -e 's::\nusing namespace std;:' \ + bmp.cpp \ + || die "sed bmp.cpp failed" +} + +src_install() { + newbin BillardGL ${PN} + insinto /usr/share/${PN} + doins -r lang Texturen + dodoc README + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} BillardGL +} diff --git a/games-sports/billardgl/metadata.xml b/games-sports/billardgl/metadata.xml new file mode 100644 index 000000000000..d755f0671516 --- /dev/null +++ b/games-sports/billardgl/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + billardgl + + diff --git a/games-sports/bygfoot-2.3.2-r1 b/games-sports/bygfoot-2.3.2-r1 deleted file mode 100644 index ef195b4fd233..000000000000 --- a/games-sports/bygfoot-2.3.2-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=configure install prepare -DEPEND=app-arch/zip media-libs/freetype:2 x11-libs/gtk+:2 virtual/libintl sys-devel/gettext virtual/pkgconfig -DESCRIPTION=GTK+2 Soccer Management Game -EAPI=6 -HOMEPAGE=http://bygfoot.sourceforge.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=app-arch/zip media-libs/freetype:2 x11-libs/gtk+:2 virtual/libintl -SLOT=0 -SRC_URI=mirror://sourceforge/bygfoot/bygfoot-2.3.2.tar.bz2 -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=6a29c9b1e4f6f26b50f865ec241e48e2 diff --git a/games-sports/bygfoot/Manifest b/games-sports/bygfoot/Manifest new file mode 100644 index 000000000000..5022abcf7918 --- /dev/null +++ b/games-sports/bygfoot/Manifest @@ -0,0 +1,3 @@ +DIST bygfoot-2.3.2.tar.bz2 1585550 BLAKE2B c0c874209c4e7d5a291380857bf020542a427ffbac8bdcbda23dd1c33e3087a40aecdb210c96b630ddfbb388c650d6eb939ed83c6d0141b64c68c01f6916553e SHA512 ce93333f50de6696538a494794d469d6768b93332f8cca1c96725259d23a78f64b94fcfff1e6227ddce52e75ae2d1e55ed78f2e94603bf1c06c6fc808f0b9626 +EBUILD bygfoot-2.3.2-r1.ebuild 949 BLAKE2B 001c34c03fb5c895da233c6c1a47ad2c1b7372d9446c7bf861aa857d4d930b0b0fcf87996d6c6fb17b3f77d7de83185fb2623916eb3783c72b96271465451616 SHA512 a3a8ec2b6fc61b9e67bbd3a395bcfb18664d9f40c2ac9c9d311312b66ca72ff176b77f4cba4518c2eb95032478e8fe4dfe88cabc28806325f815243a863fe215 +MISC metadata.xml 330 BLAKE2B a5f84d7f11f3c81bd543e66046fd4fbb6efa723f094ec15747fab5d0430b4b16397a5fac9e9e73f72abfcd718494a5516e27ac1d69d4ea53b4e5074bcc0c4578 SHA512 ab2de414d15e699ff5c054e0684847b55bc8a30915652b69b02a7b38f2da2cc960b5b92ca8da199a2fdb3187e5d47d0472be5c85012bf76925b79bc01e20575d diff --git a/games-sports/bygfoot/bygfoot-2.3.2-r1.ebuild b/games-sports/bygfoot/bygfoot-2.3.2-r1.ebuild new file mode 100644 index 000000000000..ea344fe4a073 --- /dev/null +++ b/games-sports/bygfoot/bygfoot-2.3.2-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="GTK+2 Soccer Management Game" +HOMEPAGE="http://bygfoot.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + app-arch/zip + media-libs/freetype:2 + x11-libs/gtk+:2 + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig" + +src_prepare() { + default + + sed -i \ + -e 's:$(gnulocaledir):/usr/share/locale:' \ + -e '/PACKAGE_LOCALE_DIR/s:\$(prefix)/\$(DATADIRNAME):/usr/share:' \ + -e '/bygfoot_LDADD/s/$/ -lm/' \ + po/Makefile.in.in src/Makefile.in || die +} + +src_configure() { + econf --disable-gstreamer +} + +src_install() { + emake DESTDIR="${D}" install + esvn_clean "${D}" + dodoc AUTHORS ChangeLog README TODO UPDATE + newicon support_files/pixmaps/bygfoot_icon.png ${PN}.png + make_desktop_entry ${PN} Bygfoot +} diff --git a/games-sports/bygfoot/metadata.xml b/games-sports/bygfoot/metadata.xml new file mode 100644 index 000000000000..bd5aa766b504 --- /dev/null +++ b/games-sports/bygfoot/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + bygfoot + + diff --git a/games-sports/dustrac-1.11.0-r1 b/games-sports/dustrac-1.11.0-r1 deleted file mode 100644 index 3fd86f39aac1..000000000000 --- a/games-sports/dustrac-1.11.0-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=compile configure install postinst postrm preinst prepare test -DEPEND=dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtopengl:5 dev-qt/qtxml:5 media-libs/libvorbis media-libs/openal virtual/opengl dev-qt/linguist-tools:5 dev-qt/qttest:5 virtual/pkgconfig >=sys-apps/sed-4 sys-devel/make >=dev-util/cmake-3.9.6 -DESCRIPTION=Tile-based, cross-platform 2D racing game -EAPI=6 -HOMEPAGE=http://dustrac.sourceforge.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-3+ CC-BY-SA-3.0 -RDEPEND=dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtopengl:5 dev-qt/qtxml:5 media-libs/libvorbis media-libs/openal virtual/opengl -SLOT=0 -SRC_URI=mirror://sourceforge/dustrac/dustrac-1.11.0.tar.gz -_eclasses_=cmake-utils 57384a259cf0c7985ce651b2c0865405 desktop 1b286a7e7143d8c4ec89cd0d2743a097 eapi7-ver d97a56a62c7df8614afddcb25f5ff00f epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 gnome2-utils 29bb8f7881c95139e532a2d5e47ff834 ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing cac3169468f893670dac3e7cb940e045 ninja-utils d2e7e7d290428bb25c56dcf2502badc1 preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf xdg-utils f2c8335407f0b935b0a96d4adf23ef25 -_md5_=69034f35ee4ee01729a8cc112fa811bf diff --git a/games-sports/dustrac/Manifest b/games-sports/dustrac/Manifest new file mode 100644 index 000000000000..bfe897b9cf26 --- /dev/null +++ b/games-sports/dustrac/Manifest @@ -0,0 +1,4 @@ +AUX dustrac-1.11.0-cmake.patch 1194 BLAKE2B d908401bbd0f89ad8dff63628b386642bb27f498fc89f97059c82848de88bda12b98b1e65048d35c0667f46f756b614d65d31aeed47ee18abcc57394a96ae6d4 SHA512 e614de1c2e0fdd8880876831ec39d525c5cd8c9bcc7bb90b95313aa8c394abd1120c139bb3a73691aa168d5e4ac537511227660b5e6b28515aa3a52e36377aba +DIST dustrac-1.11.0.tar.gz 27505282 BLAKE2B a42de406e388e13f1829e10248899f47cf98333a972eb4ce978116a706d9786840c4c6ec9107403aad25bd538453a7595c35cab33b0643968133710db2a3c66c SHA512 af67b76a815543d41cf8e5681ede11bfd63a2d6be7e4a21986d495d77b2673f5a145bb1c9cd5237d2caf64a4e77f221ae48b97a38a883dcd4e5bb0ef8c55f839 +EBUILD dustrac-1.11.0-r1.ebuild 1406 BLAKE2B af911883ecba1c1aa2d895a1f0e354d5494442feab0c32e53633f918bb83fb0efb48e26603329e125422e5ecfa071dee9ad8c8692a2685a5ede2351b58bd0a4d SHA512 4540337bd03354350b50199ebc4a784f328f1e7dc749f722c886b017fbfeffda0b6a2adc45df23f0a293ee2e657d9098b77464c03dea0cad1f1522241fba99d6 +MISC metadata.xml 682 BLAKE2B 08391e9c66de45fa14889b85c2d52008d7012ddbb2a1685baf6057be4c8faa4cadf863d110826b97745164869556d123544bbfe5391d42fc190cd2406c9d8bca SHA512 355e91033f2e318fbb9163cd6e2eca8babe47ce495aca9c9e0b533284e38cbe51331b194d9a905ee6b056bcdf7ba38bcb6d1b968b8ba801832253f216d41b7de diff --git a/games-sports/dustrac/dustrac-1.11.0-r1.ebuild b/games-sports/dustrac/dustrac-1.11.0-r1.ebuild new file mode 100644 index 000000000000..550cbced1e66 --- /dev/null +++ b/games-sports/dustrac/dustrac-1.11.0-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils gnome2-utils cmake-utils + +DESCRIPTION="Tile-based, cross-platform 2D racing game" +HOMEPAGE="http://dustrac.sourceforge.net/" +SRC_URI="mirror://sourceforge/dustrac/${P}.tar.gz" + +LICENSE="GPL-3+ CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtxml:5 + media-libs/libvorbis + media-libs/openal + virtual/opengl" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + dev-qt/qttest:5 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-cmake.patch +) + +src_configure() { + # -DGLES=ON didn't build for me but maybe just need use flags on some QT package? + # Maybe add a local gles use flag + local mycmakeargs=( + -DReleaseBuild=ON + -DDATA_PATH="/usr/share/${PN}" + -DBIN_PATH="/usr/bin" + -DDOC_PATH=/usr/share/doc/${PF} + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + # FIXME: where should these come from? + dosym /usr/share/fonts/ubuntu-font-family/UbuntuMono-B.ttf "/usr/share/${PN}/fonts/UbuntuMono-B.ttf" + dosym /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf "/usr/share/${PN}/fonts/UbuntuMono-R.ttf" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-sports/dustrac/files/dustrac-1.11.0-cmake.patch b/games-sports/dustrac/files/dustrac-1.11.0-cmake.patch new file mode 100644 index 000000000000..6f497e4969ef --- /dev/null +++ b/games-sports/dustrac/files/dustrac-1.11.0-cmake.patch @@ -0,0 +1,23 @@ +--- dustrac-1.11.0.orig/CMakeLists.txt ++++ dustrac-1.11.0/CMakeLists.txt +@@ -68,8 +68,7 @@ + endif() + + if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +- add_compile_options(-std=c++11 -W -Wall -O3 -pedantic) +- add_compile_options(-fomit-frame-pointer -finline-functions -ffast-math) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -W -Wall -fomit-frame-pointer -finline-functions") + elseif(MSVC) + add_definitions(-DNOMINMAX) + endif() +--- dustrac-1.11.0.orig/InstallLinux.cmake ++++ dustrac-1.11.0/InstallLinux.cmake +@@ -58,7 +58,7 @@ + install(FILES data/fonts.conf DESTINATION ${DATA_PATH}) + install(FILES data/meshes.conf DESTINATION ${DATA_PATH}) + install(FILES data/surfaces.conf DESTINATION ${DATA_PATH}) +- install(FILES AUTHORS CHANGELOG COPYING README DESTINATION ${DOC_PATH}) ++ install(FILES AUTHORS CHANGELOG README DESTINATION ${DOC_PATH}) + install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.jpg") + install(DIRECTORY data/images DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.png") + install(DIRECTORY data/levels DESTINATION ${DATA_PATH} FILES_MATCHING PATTERN "*.trk") diff --git a/games-sports/dustrac/metadata.xml b/games-sports/dustrac/metadata.xml new file mode 100644 index 000000000000..065d1cf194d5 --- /dev/null +++ b/games-sports/dustrac/metadata.xml @@ -0,0 +1,18 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + Dust Racing (Dustrac) is a tile-based, cross-platform 2D racing + game written in Qt (C++) and OpenGL. Dust Racing comes with a + Qt-based level editor for easy level creation. A custom engine, + MiniCore, is used for physics modeling. Dust Racing 2D is + inspired by Super Cars and Slicks’n Slide. + + + dustrac + + diff --git a/games-sports/foobillard-3.0a-r1 b/games-sports/foobillard-3.0a-r1 deleted file mode 100644 index 1c3d558399e5..000000000000 --- a/games-sports/foobillard-3.0a-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=configure install prepare -DEPEND=x11-libs/libXaw x11-libs/libXi virtual/opengl virtual/glu >=media-libs/freetype-2.0.9:2 media-libs/libpng:0= sdl? ( media-libs/libsdl[video] ) !sdl? ( media-libs/freeglut ) virtual/pkgconfig >=app-portage/elt-patches-20170422 !=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 -DESCRIPTION=8ball, 9ball, snooker and carambol game -EAPI=6 -HOMEPAGE=http://foobillard.sourceforge.net/ -IUSE=sdl video_cards_nvidia -KEYWORDS=~amd64 ~x86 ~x86-fbsd -LICENSE=GPL-2 -RDEPEND=x11-libs/libXaw x11-libs/libXi virtual/opengl virtual/glu >=media-libs/freetype-2.0.9:2 media-libs/libpng:0= sdl? ( media-libs/libsdl[video] ) !sdl? ( media-libs/freeglut ) -SLOT=0 -SRC_URI=mirror://gentoo/foobillard-3.0a.tar.gz -_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=07e8d46b8a1869813987fa8f799cdf00 diff --git a/games-sports/foobillard/Manifest b/games-sports/foobillard/Manifest new file mode 100644 index 000000000000..5d4851f8fc76 --- /dev/null +++ b/games-sports/foobillard/Manifest @@ -0,0 +1,8 @@ +AUX foobillard-3.0a-as-needed.patch 809 BLAKE2B 413b55b273f0f52ff877b926a2e92952559e9ad10bdbac84baef63f957873a5ba007a1429c21a60b0df5117761a931a9b2ecb8b608b47a2a35d51b9fc9b1cbc7 SHA512 331c225bccac11daa57deafee373b3b44ab0ce5dfb3299be331c287ebf04bdcda99be1a72103cac2c65610d0dc8371a3b081bcb3ec0ad95ab146fb2ea5ad30cd +AUX foobillard-3.0a-fbsd.patch 908 BLAKE2B 59c80d913f6e37c586a6f9d3fc88e60d286c92e208243d39d5d94c0b80c8652e15c02893afa0eaf01e6b69872999569df5c63d4db18471091cbcaa5d9fe852af SHA512 30c96452301ce60b9c42e8816a153724b05edb099e682a3ebaec776accd2e998bc059c2f6993c65a70972aa309b11b73121ff1fe10fe22229b934b21063ae835 +AUX foobillard-3.0a-freetype_pkgconfig.patch 1525 BLAKE2B 9922d7d44e8cd11c46e5007fbf8a85e3ca648699f9410173bf90bd808bc59108053da445bc6f14e86548d0bf66481c2884382c11713b900fbff9ae832eb6fb1a SHA512 6d310cc911e7729a1b0b4a575c83be91924eec994dc254d75cfad764549a47479ed8abb56131543deace6d7f440d210f036dc5263b1b8e8d9dbbb98f6a1cc594 +AUX foobillard-3.0a-gl-clamp.patch 841 BLAKE2B a5a8715e41dbd5426253f2ce2b60724ac7700c6617ad821354ce4821ef7af0d2ce6efd75f34aa7960dd4af5ba9ee5108776329a0eb23074952d710ead194ee45 SHA512 3be3c896f9e789d35236b630e7a587d53112abbfc70e0b5cb32bad1f2b5f0692ed804e14ed7d1f84db89cdb8c34eaccc09801fd5a450efee9d741eb59bd3a3e1 +AUX foobillard-3.0a-no_nvidia.patch 774 BLAKE2B 26cee332da6fefab8dd44cdd74fc392bac04fab70415bfa0b529f5f6e86abea7273aec6be9ba1bed9720d6069a77b12f36f40808a447d547dcfaf4105960890b SHA512 d24dd67aff4b69f9776613ac06289c75feded056f7aadc40b47a25dbaf6518d0e6a1d2d38e33004cea6c3f57ffb6716631ce3d1ead28a40b4de1791f18adc023 +DIST foobillard-3.0a.tar.gz 1138477 BLAKE2B 8abb068ec9deacff9748e199782699fe3df70a4e787ece2e8247086ed35f6260b6389fb8fb3f17ebf815f167b7c3a672740de889537e025160614a67bc734c87 SHA512 6ff85255384a83cb147a9682beefa021658ba34ad00ed7879bf7887fff248d41aeb34d2dbe39148ee10bffc53091ea5f168b4afeddac9b50d577bad7799d59b2 +EBUILD foobillard-3.0a-r1.ebuild 1282 BLAKE2B 125999fc2a626644909d9cba1bb313d71d874ff45f15a17ab25cda6b55c217dfd2a600274ba13c44d4a0c8af36c1f65afb8f8fcea97e80636ad5544d99c3119d SHA512 7f50aafc8d71d5721cd9af80f30c897f9c247ade556a2cee553e7945e5b26034fdc9a7518f86041e86f665541a3e89241a1ebd6206b9ee0833f59abf9d7f3541 +MISC metadata.xml 333 BLAKE2B 0734c0d7cb2cc15deca03ad77aa234c2ede6c95baddca35dd5c07adb2fdf0229f526e664a7b22036257ed16fd86669ab65e6fca819a839f16a698dac90a3739b SHA512 0dd5f539d8dbd30c937ca6a8b67ad9c2d2b62627a0629dffb04b95673635f44f54b99773b0f938ba24b3aec19aa858c5458e9abb121230d9fa7e3652318a9689 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..272f9c711778 --- /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} `pkg-config --libs freetype2` ${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} `pkg-config --libs freetype2` ${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..3b7fc953a4de --- /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) ++AC_CHECK_HEADERS(limits.h unistd.h math.h stdlib.h stdio.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 + #include + #include ++#ifdef HAVE_ENDIAN_H + #include ++#elif defined(HAVE_SYS_ENDIAN_H) ++#include ++#endif + + #ifndef USE_SDL + #include diff --git a/games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch b/games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch new file mode 100644 index 000000000000..b01c53ecbc8b --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-freetype_pkgconfig.patch @@ -0,0 +1,35 @@ +--- foobillard-3.0a/configure.in ++++ foobillard-3.0a/configure.in +@@ -13,7 +13,7 @@ + + 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) + + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST +--- foobillard-3.0a/src/Makefile.am ++++ foobillard-3.0a/src/Makefile.am +@@ -50,7 +50,7 @@ + #CC = gcc + #CXXFLAGS = -O6 -s + #CFLAGS = -DXMESA -Wall -O3 -I$(INCDIR) +-#CFLAGS = -Wall -O3 -I$(INCDIR) `freetype-config --cflags` ++#CFLAGS = -Wall -O3 -I$(INCDIR) `pkg-config --cflags freetype2` + if USE_SDL + SDL_CFLAGS = `sdl-config --cflags` -DUSE_SDL + SDL_LIBS = `sdl-config --libs` +@@ -79,10 +79,10 @@ + SOUND_CFLAGS = + endif + +-AM_CFLAGS = -Wall `freetype-config --cflags` ${SDL_CFLAGS} ${NVIDIA_CFLAGS} ${SOUND_CFLAGS} ${DEBUG_CFLAGS} ++AM_CFLAGS = -Wall `pkg-config --cflags freetype2` ${SDL_CFLAGS} ${NVIDIA_CFLAGS} ${SOUND_CFLAGS} ${DEBUG_CFLAGS} + + #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} ++AM_LDFLAGS = ${all_libraries} `pkg-config --libs freetype2` ${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 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..8a9a33c43ea4 --- /dev/null +++ b/games-sports/foobillard/files/foobillard-3.0a-no_nvidia.patch @@ -0,0 +1,18 @@ +--- a/src/ball.c.orig 2004-06-02 07:00:57.000000000 -0400 ++++ b/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-r1.ebuild b/games-sports/foobillard/foobillard-3.0a-r1.ebuild new file mode 100644 index 000000000000..4847f1d1ffcd --- /dev/null +++ b/games-sports/foobillard/foobillard-3.0a-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools desktop flag-o-matic toolchain-funcs + +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" + +RDEPEND="x11-libs/libXaw + x11-libs/libXi + virtual/opengl + virtual/glu + >=media-libs/freetype-2.0.9:2 + media-libs/libpng:0= + sdl? ( media-libs/libsdl[video] ) + !sdl? ( media-libs/freeglut ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + default + eapply \ + "${FILESDIR}"/${P}-no_nvidia.patch \ + "${FILESDIR}"/${P}-freetype_pkgconfig.patch \ + "${FILESDIR}"/${P}-fbsd.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-gl-clamp.patch + mv configure.{in,ac} || die + rm aclocal.m4 + + eautoreconf +} + +src_configure() { + use video_cards_nvidia && append-ldflags -L/usr/$(get_libdir)/opengl/nvidia/lib + econf \ + --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 +} 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 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + foobillard + + diff --git a/games-sports/gracer-0.1.5-r1 b/games-sports/gracer-0.1.5-r1 deleted file mode 100644 index 92779a4c7066..000000000000 --- a/games-sports/gracer-0.1.5-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=configure -DEPEND=dev-lang/tcl:0 media-libs/freeglut media-libs/giflib media-libs/libpng:0 media-libs/plib x11-libs/libXi x11-libs/libXmu virtual/glu virtual/jpeg:0 virtual/opengl -DESCRIPTION=3D motor sports simulator -EAPI=6 -HOMEPAGE=http://gracer.sourceforge.net/ -IUSE=joystick -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=dev-lang/tcl:0 media-libs/freeglut media-libs/giflib media-libs/libpng:0 media-libs/plib x11-libs/libXi x11-libs/libXmu virtual/glu virtual/jpeg:0 virtual/opengl -SLOT=0 -SRC_URI=mirror://sourceforge/gracer/gracer-0.1.5.tar.gz -_md5_=fef1fffd7c2900c6db1d021fc423d2e2 diff --git a/games-sports/gracer/Manifest b/games-sports/gracer/Manifest new file mode 100644 index 000000000000..24f299335bc1 --- /dev/null +++ b/games-sports/gracer/Manifest @@ -0,0 +1,11 @@ +AUX 0.1.5-gldefs.patch 1066 BLAKE2B 9fe3b38e03a65311d9867d5f68083452112c8000c97a1a130ed4ef176287a2407368374a7c47e3968181cdd7b78718a0e37dd4b9b71c6ba3d9d8fc91ff7135bd SHA512 817bfa44ccdc07366177e1048b47c822313d1509c90c4f7569ec4c6dd423d75053e45e95b52c8986ec23b1300b49be4e8dae3f875c47b168c438996d6fff9e5f +AUX gracer-0.1.5-as-needed.patch 1134 BLAKE2B 7f1163ceec6c90d3b5d1aa704b75909a74884c44f8be506ae1f71d2a36071da9f32a0928050380043416537683d476a8dfb0509cf4b617d2c7214c43289a0274 SHA512 dc7738a289d8ca9df8548cdf3011e523814ddd8071df0cc73f1ff0a2ce52e679b821608bd91978585f0c3c658e3b9091204ccad58100c190524b6c0326236b85 +AUX gracer-0.1.5-gcc41.patch 414 BLAKE2B 2a26e687f8491568849ffde604447cb24d5e60425f47916d1ef0533af6a2d7dd8dbe14bfece2a6a11b89991890f665037ffd8f8f389ba616c5968d0bd779f866 SHA512 b732fcb3f0dc990f32ea55cddc35e44eb57994989a5f3b1c38b1d89a9e4e1e4c77ffa0244c0eb1b5b1259e396a7d8718289a32cf314ae7b8b2738a3ec0acc8ac +AUX gracer-0.1.5-giflib.patch 331 BLAKE2B a71d7b71fafeea69ac2728bc7b87d7c8af293975d0cc23095cc9c7dc1b233fc28dd3ac02cf625daf5e8d2a42603de1280775553ab0538bb2c07be2d0b2c0c953 SHA512 56ced23de71bdaeb577b5b006fd2f139f70d681584d4de7b96e33e5199f2f3c6e2a31ece79b9c32eb61ffdac1848a504bc8a1ed9f1bad2a90f41bb2fbeb51b57 +AUX gracer-0.1.5-libpng14.patch 389 BLAKE2B 29b82dd813bb53ab2e24d18eb51962d53e07b03dc05c2a8f838a7bf594bd01062f5ad5de2823107adad591758fe24d1a0aecc26eedf4aa24dc09b2aae672c26f SHA512 8074b990613e2c1957e41e7091289291275dcb5aaf54e89553cdcc333cfc0c226d4ae9af71809f847b541280667f26912711d3eb868ae746952b8dccdaf6519f +AUX gracer-0.1.5-png15.patch 314 BLAKE2B eee2f0362eeb2d8495b1389324c98b79f520a840c0e180f1678be0ef9c847329b65d5660a2605ea511159de5f19acf06add7425c7d3d4fa9db25684cb0fe6321 SHA512 aa7e16d49084e96ed59068e765103f9f8a73e94a4c457ffa4a5813a4e6fd794bc64385cf81978d399eeac43426c8975d35900eca38c0b5c6613c76dc8e917fc9 +AUX gracer-0.1.5-warnings.patch 433 BLAKE2B 477908392007a988c8d251c5671984fb1115425f902bc06523042fcb7c55657c73e62dfd4fb1b95c2a7b4d2067d5895f0f8c22c0b3b59b1637cbe59255bb49a5 SHA512 a8a1c2ac8b6d38355b48bfb61980f6eee15b0404dd4d8d8a17debe3d69a319f1b9f48aa40e0d00857af8051f1d93d864e6970d2d051791e8e21ffedbb09b2d31 +AUX gracer-gcc-3.4.patch 1755 BLAKE2B 28f5493bad092f9894cda84ff875824ee7d8490a921a74414277f95195949d2b8cdcc1c8d26a0666fb84f767266910c50fe6778fda581baf0045750f0913c44e SHA512 544bb200bb49bf40b798c32f30f24795204c6e3f67a971ad9254f040e7f30a063e17974a6256de54d4550cb347392a4e71fb8aa29fc46f1fbcf92b1cf0ad015c +DIST gracer-0.1.5.tar.gz 520599 BLAKE2B 1e52fffb3eb609f413e5e8afece0a28ec501f82be0941a8da4ab0bc726f0394b18d676696fe2b02f176c55892f780f9e3786d219c487533d9b4270f43ac8200a SHA512 eb812c517087a955d4b421e5d0e4bc841428162ed3f76dcac1a7a36b67e6ac14e8a6c231cca2a8ba9c60a4a25c79d532983a13dc4e9b9e4b7dfad3e78f1284bc +EBUILD gracer-0.1.5-r1.ebuild 996 BLAKE2B 7da74c04fd3f6b09bebf9a7684b91ff4939f184b77b1366e154d5e4fa265d88da9bd026a0cc3d587f752767eac56ac9d5f5a6cfc4ba3739e1230350d2e3cb01e SHA512 f7817438fcd36264d1e047161f5ee5fb491d3016530c8864e320563835c5d14ee3d80fe12ed8e575e629f3a0852abe1db9c6a37f9b6430cebed7c89653c02bf1 +MISC metadata.xml 329 BLAKE2B a18bab81346e7fcc2a257edf21cbc4707bdc2fa2133c2274967dd17e7ae052b327a1fdc116b2f008e9705def4300915b1c42e3f40383abf2627d662f32aee4e3 SHA512 c2f7b825c898da8e7ff14e83350c02a880eb2338607f562c42cd7dabd25ddaa938f4202aff742091302b0e609f02d2c4abf5c3b34e24b29262530934ffd2139d diff --git a/games-sports/gracer/files/0.1.5-gldefs.patch b/games-sports/gracer/files/0.1.5-gldefs.patch new file mode 100644 index 000000000000..43fe7385dc6e --- /dev/null +++ b/games-sports/gracer/files/0.1.5-gldefs.patch @@ -0,0 +1,33 @@ +--- a/src/glbind.c 2003-07-30 00:18:37.000000000 -0400 ++++ b/src/glbind.c 2003-07-30 00:19:32.000000000 -0400 +@@ -22,6 +22,8 @@ + #include + #include + #include ++#undef GL_EXT_texture_object ++#include + #include + #include + #include +--- a/src/glhash.h 2003-07-30 00:20:32.000000000 -0400 ++++ b/src/glhash.h 2003-07-30 00:20:58.000000000 -0400 +@@ -1,4 +1,5 @@ + /* this file is generated automaticaly from GL/gl.h */ ++#undef GL_EXT_paletted_texture + #include + + glWordList glwordlist[] = { +@@ -632,13 +632,11 @@ + + #ifdef GL_SGIS_multitexture + {"selected_texture_sgis", GL_SELECTED_TEXTURE_SGIS}, +- {"selected_texture_coord_set_sgis", GL_SELECTED_TEXTURE_COORD_SET_SGIS}, + {"max_textures_sgis", GL_MAX_TEXTURES_SGIS}, + {"texture0_sgis", GL_TEXTURE0_SGIS}, + {"texture1_sgis", GL_TEXTURE1_SGIS}, + {"texture2_sgis", GL_TEXTURE2_SGIS}, + {"texture3_sgis", GL_TEXTURE3_SGIS}, +- {"texture_coord_set_source_sgis", GL_TEXTURE_COORD_SET_SOURCE_SGIS}, + #endif + + #ifdef GL_EXT_multitexture diff --git a/games-sports/gracer/files/gracer-0.1.5-as-needed.patch b/games-sports/gracer/files/gracer-0.1.5-as-needed.patch new file mode 100644 index 000000000000..1b8b21f1a186 --- /dev/null +++ b/games-sports/gracer/files/gracer-0.1.5-as-needed.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.in 2009-02-11 14:31:56.000000000 +0100 ++++ b/src/Makefile.in 2009-02-11 14:32:29.000000000 +0100 +@@ -109,7 +109,7 @@ + INCLUDES = -I$(top_srcdir) @X_CFLAGS@ @GL_CFLAGS@ @GLUT_CFLAGS@ @TCL_CFLAGS@ @GIF_CFLAGS@ @JPEG_CFLAGS@ @PNG_CFLAGS@ @PLIB_CFLAGS@ + + +-gracer_LDADD = @PLIB_LDFLAGS@ @GIF_LDFLAGS@ @JPEG_LDFLAGS@ @PNG_LDFLAGS@ @GL_LDFLAGS@ @GLUT_LDFLAGS@ @X_LDFLAGS@ @TCL_LDFLAGS@ @TCL_LIBS@ @X_LIBS@ @GL_LIBS@ @GLUT_LIBS@ @GIF_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @SOUND_LIBS@ $(top_builddir)/common/libcommon.a ++gracer_LDADD = $(top_builddir)/common/libcommon.a @PLIB_LDFLAGS@ @GIF_LDFLAGS@ @JPEG_LDFLAGS@ @PNG_LDFLAGS@ @GL_LDFLAGS@ @GLUT_LDFLAGS@ @X_LDFLAGS@ @TCL_LDFLAGS@ @TCL_LIBS@ @X_LIBS@ @GL_LIBS@ @GLUT_LIBS@ @GIF_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @SOUND_LIBS@ + + + gracer_SOURCES = control.h glbind.c glbind.h glutwidgets.c glutwidgets.h gluttclwidgets.c gluttclwidgets.h glutgame.c glutgame.h gr_world.c gr_world.h glhash.h gluthash.h vehicle.c vehicle.h lap.c lap.h joystick.c joystick.h tcldefs.h sound.h sound.cxx main.cxx diff --git a/games-sports/gracer/files/gracer-0.1.5-gcc41.patch b/games-sports/gracer/files/gracer-0.1.5-gcc41.patch new file mode 100644 index 000000000000..3877e76e577e --- /dev/null +++ b/games-sports/gracer/files/gracer-0.1.5-gcc41.patch @@ -0,0 +1,11 @@ +--- a/common/gr_memory.h 2006-05-23 09:16:21.000000000 +0200 ++++ b/common/gr_memory.h 2006-05-23 09:16:40.000000000 +0200 +@@ -64,7 +64,7 @@ + void gr_dlist_free (GrDList *list); + + #define gr_FOREACH(l,p) \ +- for (; (l) != NULL && ((void *)(p) = (l)->data, 1); (l) = (l)->next) ++ for (; (l) != NULL && (p = (l)->data, 1); (l) = (l)->next) + + void gr_ref_incr (GrRef *ref); + void gr_ref_decr (GrRef *ref); diff --git a/games-sports/gracer/files/gracer-0.1.5-giflib.patch b/games-sports/gracer/files/gracer-0.1.5-giflib.patch new file mode 100644 index 000000000000..a5ce023f5734 --- /dev/null +++ b/games-sports/gracer/files/gracer-0.1.5-giflib.patch @@ -0,0 +1,14 @@ +--- gracer-0.1.5/common/gr_texture.c ++++ gracer-0.1.5/common/gr_texture.c +@@ -274,7 +274,11 @@ + int index; + int width, height; + ++#if (GIFLIB_MAJOR >= 5&& !(GIFLIB_MAJOR == 5 && GIFLIB_MINOR == 0)) ++ file = DGifOpenFileName (filename, &i); ++#else + file = DGifOpenFileName (filename); ++#endif + if (!file) + return -1; + diff --git a/games-sports/gracer/files/gracer-0.1.5-libpng14.patch b/games-sports/gracer/files/gracer-0.1.5-libpng14.patch new file mode 100644 index 000000000000..618c987a3152 --- /dev/null +++ b/games-sports/gracer/files/gracer-0.1.5-libpng14.patch @@ -0,0 +1,13 @@ +http://bugs.gentoo.org/show_bug.cgi?id=308885 + +--- a/common/gr_texture.c ++++ b/common/gr_texture.c +@@ -419,7 +419,7 @@ read_png_file (GrTexture *texture, char + if (fread (header, 1, PNG_BYTES_TO_CHECK, file) != PNG_BYTES_TO_CHECK) { + goto ERROR; + } +- if (!png_check_sig (header, PNG_BYTES_TO_CHECK)) { ++ if (png_sig_cmp (header, 0, PNG_BYTES_TO_CHECK)) { + goto ERROR; + } + diff --git a/games-sports/gracer/files/gracer-0.1.5-png15.patch b/games-sports/gracer/files/gracer-0.1.5-png15.patch new file mode 100644 index 000000000000..d606c14cd4e2 --- /dev/null +++ b/games-sports/gracer/files/gracer-0.1.5-png15.patch @@ -0,0 +1,11 @@ +--- a/common/gr_texture.c 2011-09-14 14:23:46.820207882 +0200 ++++ b/common/gr_texture.c 2011-09-14 14:24:22.861203604 +0200 +@@ -431,7 +431,7 @@ + if (!info_ptr) { + goto ERROR; + } +- if (setjmp (png_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(png_ptr))) { + goto ERROR; + } + png_init_io (png_ptr, file); diff --git a/games-sports/gracer/files/gracer-0.1.5-warnings.patch b/games-sports/gracer/files/gracer-0.1.5-warnings.patch new file mode 100644 index 000000000000..b5ede40e1492 --- /dev/null +++ b/games-sports/gracer/files/gracer-0.1.5-warnings.patch @@ -0,0 +1,21 @@ +--- gracer-0.1.5/src/glbind.c ++++ gracer-0.1.5/src/glbind.c +@@ -142,7 +142,7 @@ + return NULL; + + entry = Tcl_FindHashEntry (&cache_hash, key); +- if (&entry) ++ if (!entry) + return NULL; + + return Tcl_GetHashValue (entry); +--- gracer-0.1.5/src/joystick.c ++++ gracer-0.1.5/src/joystick.c +@@ -20,6 +20,7 @@ + */ + + #include ++#include + #include + #include + #include diff --git a/games-sports/gracer/files/gracer-gcc-3.4.patch b/games-sports/gracer/files/gracer-gcc-3.4.patch new file mode 100644 index 000000000000..c12cb9a1f0cf --- /dev/null +++ b/games-sports/gracer/files/gracer-gcc-3.4.patch @@ -0,0 +1,120 @@ +--- a/src/glbind.c 2004-11-05 01:15:07.141221016 +0000 ++++ b/src/glbind.c 2004-11-05 01:15:32.808319024 +0000 +@@ -2150,6 +2150,7 @@ + return 3; + + default: ++ ; + } + + ERROR: +@@ -2889,6 +2890,7 @@ + return 6; + + default: ++ ; + } + + ERROR: +@@ -3081,6 +3083,7 @@ + return 4; + + default: ++ ; + } + + ERROR: +--- a/src/glutwidgets.c 2004-11-05 01:17:17.941336376 +0000 ++++ b/src/glutwidgets.c 2004-11-05 01:18:42.059548464 +0000 +@@ -255,6 +255,7 @@ + widget->width += (width - screen_width); + break; + default: ++ ; + } + switch (widget->anchor & GR_VERTICAL_MASK) { + case GR_BOTTOM: +@@ -268,6 +269,7 @@ + widget->height += (width - screen_height); + break; + default: ++ ; + } + glut_widget_calc_bbox (widget); + } +@@ -327,6 +329,7 @@ + break; + + default: ++ ; + } + } + +@@ -504,6 +507,7 @@ + break; + + default: ++ ; + } + } + +@@ -1299,6 +1303,7 @@ + break; + + default: ++ ; + } + } + +@@ -1571,6 +1576,7 @@ + break; + + default: ++ ; + } + + glColor4fv (widget->fg_color[GR_STATE_NORMAL]); +--- a/src/gr_world.c 2004-11-05 01:19:30.766143936 +0000 ++++ b/src/gr_world.c 2004-11-05 01:19:07.717647840 +0000 +@@ -169,6 +169,7 @@ + break; + + default: ++ ; + } + + tlist = entry->triggers; +--- a/ac2scene/ac2scene.c 2004-11-05 01:13:55.845059680 +0000 ++++ b/ac2scene/ac2scene.c 2004-11-05 01:14:32.526483256 +0000 +@@ -162,6 +162,7 @@ + break; + + default: ++ ; + } + + return 0; +@@ -234,6 +235,7 @@ + break; + + default: ++ ; + } + + return 0; +@@ -316,6 +318,7 @@ + } + break; + default: ++ ; + } + + return 0; +@@ -399,6 +402,7 @@ + break; + + default: ++ ; + } + } + diff --git a/games-sports/gracer/gracer-0.1.5-r1.ebuild b/games-sports/gracer/gracer-0.1.5-r1.ebuild new file mode 100644 index 000000000000..c604168f2c6c --- /dev/null +++ b/games-sports/gracer/gracer-0.1.5-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="3D motor sports simulator" +HOMEPAGE="http://gracer.sourceforge.net/" +SRC_URI="mirror://sourceforge/gracer/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="joystick" + +DEPEND=" + dev-lang/tcl:0 + media-libs/freeglut + media-libs/giflib + media-libs/libpng:0 + media-libs/plib + x11-libs/libXi + x11-libs/libXmu + virtual/glu + virtual/jpeg:0 + virtual/opengl" + +RDEPEND=${DEPEND} + +PATCHES=( + "${FILESDIR}"/${PV}-gldefs.patch + "${FILESDIR}"/${PN}-gcc-3.4.patch + "${FILESDIR}/${P}"-gcc41.patch + "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-libpng14.patch + "${FILESDIR}"/${P}-png15.patch + "${FILESDIR}"/${P}-giflib.patch + "${FILESDIR}"/${P}-warnings.patch +) + +src_configure() { + econf \ + --enable-gif \ + --enable-jpeg \ + --enable-png \ + $(use_enable joystick) + sed -i \ + -e 's:-lplibsl:-lplibsl -lplibul:' \ + $(find -name Makefile) || die +} diff --git a/games-sports/gracer/metadata.xml b/games-sports/gracer/metadata.xml new file mode 100644 index 000000000000..f8270e9a0c3b --- /dev/null +++ b/games-sports/gracer/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + gracer + + diff --git a/games-sports/metadata.xml b/games-sports/metadata.xml new file mode 100644 index 000000000000..370d356069e1 --- /dev/null +++ b/games-sports/metadata.xml @@ -0,0 +1,32 @@ + + + + + The games-sports category contains sports games. + + + Die Kategorie games-sports enthält Sportspiele. + + + La categoría games-sports contiene juegos de deporte. + + + games-sportsカテゴリーにはスポーツ・ゲームが含まれています。 + + + De games-sports categorie bevat sportspellen. + + + Nhóm games-sports chứa các trò chơi thể thao. + + + La categoria games-sports contiene giochi sportivi. + + + A categoria games-sports contém jogos de esportes. + + + Kategoria games-sports zawiera gry sportowe. + + + diff --git a/games-sports/miniracer-1.04 b/games-sports/miniracer-1.04 deleted file mode 100644 index cd5908eca6be..000000000000 --- a/games-sports/miniracer-1.04 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=compile configure install postinst preinst prepare setup unpack -DEPEND=virtual/opengl x11-libs/libX11 x11-libs/libXext x11-libs/libXxf86dga x11-libs/libXxf86vm media-libs/libsdl media-libs/sdl-mixer x11-base/xorg-proto -DESCRIPTION=an OpenGL car racing game, based on ID's famous Quake engine -EAPI=5 -HOMEPAGE=http://miniracer.sourceforge.net/ -KEYWORDS=~x86 -LICENSE=GPL-2 -RDEPEND=virtual/opengl x11-libs/libX11 x11-libs/libXext x11-libs/libXxf86dga x11-libs/libXxf86vm media-libs/libsdl media-libs/sdl-mixer games-misc/games-envd -SLOT=0 -SRC_URI=mirror://sourceforge/miniracer/miniracer-1.04.tar.gz -_eclasses_=base 983774947da124fb7d542ce25a218bb1 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc games 2bb3ede665927a68ffdb7c41eec7efde ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=02cc98e4b41b2b8031416bb5c134a8e2 diff --git a/games-sports/miniracer/Manifest b/games-sports/miniracer/Manifest new file mode 100644 index 000000000000..789cbc6c339e --- /dev/null +++ b/games-sports/miniracer/Manifest @@ -0,0 +1,5 @@ +AUX miniracer-1.04-ldflags.patch 1988 BLAKE2B 7b45068bf8aacb9d83b171a4412afa6cd93c0c50e0020076f5ad923e0de8c88b326a01c08bf75a9af16c141de2ced9048b290457c7c09494478a8a8b340f6215 SHA512 d2fd6d9ad5afa5d9269b161892c9b83fc76879fb7ca9f90dc4210c84dc14c99e0a810c6eb9bbef531574e3888563ce561bb588529e3294f181d836c98c6f3237 +AUX miniracer-1.04-nosharedelf.patch 542 BLAKE2B b63eee29f79e0bbedf81c5e47427cfd1c3aa6a49d7c0a53f8f14ec3dff182e3906761fcf133519098626cb428ec2c7f4a529815a2049bd9f088dae56153431e2 SHA512 34b5cfb83287650f2a621c5996cc988d905ad01a703b2f33d6bbcbb0cfb94fe319fda4d0ff00d23959e5c5276f685fc497f31e06844d0cecd4a4f7c8d86e15ac +DIST miniracer-1.04.tar.gz 5315353 BLAKE2B 8f5081ef4ab323e97e4cdc35a6bf713534c8680b7949a8d47e3b8ef32427c333448d520d8b9cfa75f45819c2b805106f1e98a88704069288aa98b9f2776682d5 SHA512 6dc34371b6ea2d67c4a7d86b1200c9e7c7d56ef6b91af5ec4b0648da11dcfe6e125f6dc401a85e4c5bd3af2980d5a54b322c5466f96b7e21683e85ec4a7b0d6c +EBUILD miniracer-1.04.ebuild 851 BLAKE2B d919aaa2b4def83c3089a834daa7c68d77f3330fc4f6c5b401db57afae64a69aeaf935f9db5b31cb3631e2bcfc7e748d53057d4716631149d7aae6fe68182303 SHA512 ebcaf43a946f4e86b6866c4fe2d2ab847ab51eff9bc8aa7c210a6bfb0a3730faf4f1ccd30f711a2a10b2c5b0702f3d1d61b5348c697a4729578f4f5661087e1b +MISC metadata.xml 332 BLAKE2B e5ef5e591415cf1513d3c980e11733f4fb464d605c9fb442ea4ae9b4fa3b95086c6e803d198b18df5e50eee116c6dc2d77e18ee14d6c8788708d24e20d337aae SHA512 ade0aa3bd8cf05a614c929da53b540fa7bdbd1d39c3b5459b6f795ba04f72544bfe5e87918ca605a36ba7941e119b7ba73bb7adf68f95446f243ab3e1a02996a diff --git a/games-sports/miniracer/files/miniracer-1.04-ldflags.patch b/games-sports/miniracer/files/miniracer-1.04-ldflags.patch new file mode 100644 index 000000000000..4c37dc9e1aa3 --- /dev/null +++ b/games-sports/miniracer/files/miniracer-1.04-ldflags.patch @@ -0,0 +1,48 @@ +--- Makefile.old 2010-10-13 12:41:01.000000000 +0200 ++++ Makefile 2010-10-13 12:56:04.000000000 +0200 +@@ -10,13 +10,12 @@ + + BUILDDIR=obj + +-CC=gcc + DEFS=-DVIDMODEXT_GAMMA_RAMP -DSOUND +-INCLUDES= -I. -I/usr/X11R6/include -I/usr/include/SDL +-CFLAGS=$(DEFS) $(INCLUDES) -O3 -march=i486 -ffast-math -fexpensive-optimizations ++INCLUDES= -I. -I/usr/X11R6/include $(shell sdl-config --cflags) ++CFLAGS=$(DEFS) $(INCLUDES) @CFLAGS@ + + GL_LDFLAGS=-L/usr/X11R6/lib -lGL -lXxf86dga -lXxf86vm -lX11 -lXext -lm +-LDFLAGS=$(GL_LDFLAGS) -ldl -lSDL -lSDL_mixer -lpthread ++LDLIBS=$(GL_LDFLAGS) -ldl -lSDL_mixer $(shell sdl-config --libs) + + ############################################################################# + # SETUP AND BUILD +@@ -43,15 +42,16 @@ + build_release: engine.glx + + install: +- install -d $(DESTDIR)/usr/bin ++ install -d $(DESTDIR)@GAMES_BINDIR@ + install -d $(DESTDIR)/usr/share/man/man6 + install -d $(DESTDIR)/usr/share/games/MiniRacer + install -d $(DESTDIR)/usr/share/games/MiniRacer/data + install -d $(DESTDIR)/usr/share/games/MiniRacer/data/maps +- install -m 755 engine.glx $(DESTDIR)/usr/share/games/MiniRacer ++ install -d $(DESTDIR)@GAMES_LIBDIR@ ++ install -m 755 engine.glx $(DESTDIR)@GAMES_LIBDIR@ + install -m 644 data/pak0.pak $(DESTDIR)/usr/share/games/MiniRacer/data + install -m 644 data/config.cfg $(DESTDIR)/usr/share/games/MiniRacer/data +- install -m 755 miniracer $(DESTDIR)/usr/bin/miniracer ++ install -m 755 miniracer $(DESTDIR)@GAMES_BINDIR@/miniracer + install -m 644 miniracer.6 $(DESTDIR)/usr/share/man/man6 + install -m 644 data/maps/*.bsp $(DESTDIR)/usr/share/games/MiniRacer/data/maps + install -m 644 data/maps/maps1.lst $(DESTDIR)/usr/share/games/MiniRacer/data/maps +@@ -145,7 +145,7 @@ + $(CC) $(CFLAGS) $(GLCFLAGS) -o $@ -c $< + + engine.glx : $(GLMR_OBJS) +- $(CC) $(CFLAGS) -o $@ $(GLMR_OBJS) $(LDFLAGS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(GLMR_OBJS) $(LDLIBS) + + ############################################################################# + # MISC diff --git a/games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch b/games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch new file mode 100644 index 000000000000..0bb0b5da846e --- /dev/null +++ b/games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch @@ -0,0 +1,23 @@ +--- miniracer.old 2010-02-27 21:05:11.000000000 +0100 ++++ miniracer 2010-02-27 21:10:34.000000000 +0100 +@@ -12,10 +12,6 @@ + fi + + #checks for files +-if ! [ -f $HOME/.MiniRacer/engine.glx ]; then +- ln -s $MINIRACERDIR/engine.glx $HOME/.MiniRacer +-fi +- + if ! [ -f $HOME/.MiniRacer/data/pak0.pak ]; then + ln -s $MINIRACERDIR/data/pak0.pak $HOME/.MiniRacer/data + fi +@@ -35,7 +31,4 @@ + + # change directory and start MiniRacer + cd $HOME/.MiniRacer +-./engine.glx $* +- +-exit 0 +- +\ No newline at end of file ++exec @GAMES_LIBDIR@/engine.glx $* diff --git a/games-sports/miniracer/metadata.xml b/games-sports/miniracer/metadata.xml new file mode 100644 index 000000000000..b948d3db5863 --- /dev/null +++ b/games-sports/miniracer/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + miniracer + + diff --git a/games-sports/miniracer/miniracer-1.04.ebuild b/games-sports/miniracer/miniracer-1.04.ebuild new file mode 100644 index 000000000000..9b4490f7ca13 --- /dev/null +++ b/games-sports/miniracer/miniracer-1.04.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="an OpenGL car racing game, based on ID's famous Quake engine" +HOMEPAGE="http://miniracer.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="virtual/opengl + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXxf86dga + x11-libs/libXxf86vm + media-libs/libsdl + media-libs/sdl-mixer" +DEPEND="${RDEPEND} + x11-base/xorg-proto" + +src_prepare() { + epatch "${FILESDIR}"/${P}-nosharedelf.patch \ + "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e "s:@CFLAGS@:${CFLAGS}:" \ + -e "s:@GAMES_LIBDIR@:$(games_get_libdir)/${PN}:" \ + -e "s:@GAMES_BINDIR@:${GAMES_BINDIR}:" \ + miniracer Makefile || die +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-sports/ski-6.9-r1 b/games-sports/ski-6.9-r1 deleted file mode 100644 index 40eff5bb1c92..000000000000 --- a/games-sports/ski-6.9-r1 +++ /dev/null @@ -1,14 +0,0 @@ -DEFINED_PHASES=install setup -DEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),python_single_target_python2_7(+)] -DESCRIPTION=A simple text-mode skiing game -EAPI=6 -HOMEPAGE=http://www.catb.org/~esr/ski/ -IUSE=python_targets_python2_7 -KEYWORDS=~amd64 ~x86 -LICENSE=BSD -RDEPEND=python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),python_single_target_python2_7(+)] -REQUIRED_USE=python_targets_python2_7 -SLOT=0 -SRC_URI=http://www.catb.org/~esr/ski/ski-6.9.tar.gz -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 python-single-r1 26fdbe5e685d53f67303a3a43d9e4848 python-utils-r1 7db901256449fef43c3aaa4d486c1c63 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=79aeb9df0d35a75cdf6ae641620ae8d7 diff --git a/games-sports/ski/Manifest b/games-sports/ski/Manifest new file mode 100644 index 000000000000..495ecd072708 --- /dev/null +++ b/games-sports/ski/Manifest @@ -0,0 +1,3 @@ +DIST ski-6.9.tar.gz 17543 BLAKE2B aedc697ba636f12a3e180d351d2e0c409debcca2aba1eaa8bd5ecf93503b3903845424f9ed99ea83e26b311841b8287702a3c71730c60dbb3fa8e47eea05ead4 SHA512 bdcd9a267153b23bc1e4b99f0073d9d26ff8a8d670d70ec06cc27b91cd4a3bdaf821507671d73a359b3447261d52e596c61cbf9596eead7191102d1a089178b6 +EBUILD ski-6.9-r1.ebuild 588 BLAKE2B a8eec00145692023794f26f928f73c462e88eb2a86482d357cf0bfb609ba692bea092e6535a07081849020262454f0d401d6149d2fa9e428f9c14edebe10d050 SHA512 37247f23ce3412bba5f93bac1a6e30efaab45fa5b50e0cd077986e8f6025bf52edfd6c4d70f82d5d857503df2d79d647cbea6cde3ab02b6e4690b1aeb6530510 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-sports/ski/metadata.xml b/games-sports/ski/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-sports/ski/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-sports/ski/ski-6.9-r1.ebuild b/games-sports/ski/ski-6.9-r1.ebuild new file mode 100644 index 000000000000..e817d5cc3607 --- /dev/null +++ b/games-sports/ski/ski-6.9-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="A simple text-mode skiing game" +HOMEPAGE="http://www.catb.org/~esr/ski/" +SRC_URI="http://www.catb.org/~esr/ski/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +src_install() { + dobin ski + dodoc NEWS README + doman ski.6 + domenu ski.desktop + doicon ski.png + python_fix_shebang "${ED}/usr/bin" +} diff --git a/games-sports/speed-dreams-1.4.0-r1 b/games-sports/speed-dreams-1.4.0-r1 deleted file mode 100644 index 53ec2b740a3d..000000000000 --- a/games-sports/speed-dreams-1.4.0-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=configure install prepare -DEPEND=virtual/opengl virtual/glu media-libs/freealut media-libs/freeglut >=media-libs/libpng-1.2.40:0 media-libs/openal sys-libs/zlib x11-libs/libX11 x11-libs/libXxf86vm xrandr? ( x11-libs/libXrandr ) >=media-libs/plib-1.8.3 x11-libs/libICE x11-libs/libSM x11-libs/libXext x11-libs/libXi x11-libs/libXt x11-libs/libXmu x11-libs/libXrender x11-base/xorg-proto >=app-portage/elt-patches-20170422 !=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 -DESCRIPTION=A fork of the famous open racing car simulator TORCS -EAPI=6 -HOMEPAGE=http://speed-dreams.sourceforge.net/ -IUSE=xrandr -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=virtual/opengl virtual/glu media-libs/freealut media-libs/freeglut >=media-libs/libpng-1.2.40:0 media-libs/openal sys-libs/zlib x11-libs/libX11 x11-libs/libXxf86vm xrandr? ( x11-libs/libXrandr ) -SLOT=0 -SRC_URI=mirror://sourceforge/speed-dreams/speed-dreams-1.4.0-r2307-src.tar.bz2 -_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 26ca8a8bd95d6a74122c08ba98a4ee72 -_md5_=ce88c46751301f60abacef4f3ce88149 diff --git a/games-sports/speed-dreams/Manifest b/games-sports/speed-dreams/Manifest new file mode 100644 index 000000000000..1505e710e39d --- /dev/null +++ b/games-sports/speed-dreams/Manifest @@ -0,0 +1,7 @@ +AUX speed-dreams-1.4.0-asneeded.patch 4214 BLAKE2B e0cf81e4bc04dd0a41ca813e2fbd66145bda4ad81b0137d9e09ef8cb0be5c458b7328be75605a3795f7a63f00104a85ebfe4bb34bc5437d58dee709edabb556f SHA512 908ca897a843c5bc1e1a1260adea227f445a2d7a3e09cc2cf7deb1cc85d4163fd89046db95679b8ed1288e2c104585322380765abdd65f2edd10b6027b7b4bab +AUX speed-dreams-1.4.0-automake.patch 995 BLAKE2B 04280a67277a420108db5ae2675e99d6cdb3461120e9c04313cc6be4f910572cb87b6703d65444cb199d4b5ef2018239a843e1b64cdcb0820e4efdbdb30b0c38 SHA512 2300dd95087d0b7f0aada40041eea70976046085a9d9dc467c86691cf21058855941e642547a7eda26786b5a756d5930867616fb62534a0a2da1301dab3af8f0 +AUX speed-dreams-1.4.0-libpng15.patch 516 BLAKE2B 0464b8a006cc8a35442345d024bb301b0e3a1b4fb16110098aa27422cea35bbb67ccbd2fd689e8cc93b811ca37a4426799c9bd180e4bcca5ae3c20c76462f5b7 SHA512 f945622e791d15020370a1e31d328bc1329e08163a3c4f66fd63987e2dd357e2708338402fcfb5b2e994d4339a3d8d6df7f908b2ecbdff5cb6bd865259d40fa9 +AUX speed-dreams-1.4.0-math-hack.patch 1426 BLAKE2B 9457a89d48dc5fe1e5879ae1ee036ce87fdf51f7042fe7bb0c2213dad2e14d6009d21effc7b7a6a8832a269d0a8ed7c8e6b7e957815a24991fcf01d0a42e64ee SHA512 6187e0948b4b9b29f9934d4a760fb9bfdd81bd083d9f01a119f023fcacfe3f6163f8950934241cde24678ec4e4e081eafe6183263bc09c5f9f4db00c5f90259d +DIST speed-dreams-1.4.0-r2307-src.tar.bz2 332667666 BLAKE2B 17455c6fc6bbe0cb4b5e00d4217eb49e0f6e39a8aa389f304771e32429c48e2e6bc834d8d0c7a01927376c5b37ae8e7b27399da88784b5f46b9549d46d01222f SHA512 6ae88691f52480351825c20c8bfb3ff54783b84bfbbc385ae2c0578991fa9025b16dcdc4ce136b85246a2a479452f2b209ecbec2be0a7ae85818929ea5fa1195 +EBUILD speed-dreams-1.4.0-r1.ebuild 1778 BLAKE2B 0a178e5f2494b6d4db6e4da48a9a0e8df850bad73020a8af85e881a3f3aff083173fe3b1cf5c803f940df0ef01ea318a0a6e846d20727da0438369c36d7e4460 SHA512 f0ab5162b7396f85cd737b8b4cae8599fa729771e69b708678733706b108481ccec9a94dc844ca71c0945187a23c3c6d3cbdbefc59b74e396f4232d461a17e01 +MISC metadata.xml 435 BLAKE2B d5cf15023cbbcfdb115d16b462337e9545185bd6e827e226965f8fe470c8a9825872fccfbdbdf8c208e2902f4adc4afdb1ff0f880fb0954aa8897115b9d47669 SHA512 d7b7bcb0acec23ac1f3b45f794a99597318194ab58d9b488c21766a8a6c32572b3d62540090a0c06e06a7f90d4330d3f7eb730e4c4a56a0a7a7c2bc94d77ed2f diff --git a/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch b/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch new file mode 100644 index 000000000000..779119d995b1 --- /dev/null +++ b/games-sports/speed-dreams/files/speed-dreams-1.4.0-asneeded.patch @@ -0,0 +1,110 @@ +--- a/configure.in ++++ b/configure.in +@@ -123,8 +123,7 @@ + AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to speed-dreams-users@lists.sourceforge.net with the subject \"Speed Dreams compilation problem\"])) + AC_CHECK_LIB(openal, alEnable,, AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/])) + AC_CHECK_LIB(alut, alutLoadWAVFile, +- LDFLAGS="$LDFLAGS -lalut", +- LDFLAGS="$LDFLAGS") ++ LIBS="$LIBS -lalut", ) + + AC_CHECK_LIB(dl, dlopen) + AC_CHECK_FUNC(dlopen,,AC_MSG_ERROR([Can't find dlopen function. Please check config.log and if you can't solve the problem send the file to speed-dreams-users@lists.sourceforge.net with the subject \"Speed Dreams compilation problem\"])) +@@ -141,7 +140,7 @@ + AC_CHECK_LIB(glut, glutSwapBuffers,,AC_MSG_ERROR([Can't find libglut. freeglut can be found on http://freeglut.sourceforge.net/])) + + dnl Checks for plib libraries. +-LDFLAGS="$LDFLAGS -lplibjs" ++AC_CHECK_LIB(plibjs, main,,AC_MSG_ERROR([Can't find libplibjs. PLIB can be found on http://plib.sourceforge.net/])) + AC_CHECK_LIB(plibul, main,,AC_MSG_ERROR([Can't find libplibul. PLIB can be found on http://plib.sourceforge.net/])) + AC_CHECK_LIB(plibsg, main,,AC_MSG_ERROR([Can't find libplibsg. PLIB can be found on http://plib.sourceforge.net/])) + AC_CHECK_LIB(plibsl, main,,AC_MSG_ERROR([Can't find libplibsl. PLIB can be found on http://plib.sourceforge.net/])) +--- a/Make-default.mk ++++ b/Make-default.mk +@@ -402,7 +402,7 @@ + ifdef PROGRAM + + ${PROGRAM}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) +- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${SOLIBS} ${EXT_LIBS} -o $@ ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + + installprogram: ${PROGRAM} + @ createdir="${INSTLIBBASE}" ; \ +@@ -420,14 +420,14 @@ + ifdef LOCALTOOLS + + ${LOCALTOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) +- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@ ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + + endif + + ifdef TOOLS + + ${TOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) +- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@ ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + + installtools: ${TOOLS} + @createdir="${INSTBINBASE}/${TOOLSDIR}" ; \ +@@ -478,7 +478,7 @@ + ifdef SOLIBRARY + + ${SOLIBRARY}: ${OBJECTS} +- ${CXX} -shared -o ${SOLIBRARY} ${OBJECTS} ${LDFLAGS} ${LIBSPATH} ${LIBS} ${DEBUG_LIBS} ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${SOLIBRARY} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + @D=`pwd` ; \ + createdir="${EXPORTBASE}/lib" ; \ + $(mkinstalldirs) $$createdir ; \ +@@ -509,7 +509,7 @@ + ifdef MODULE + + ${MODULE}: ${OBJECTS} +- ${CXX} -shared -o ${MODULE} ${OBJECTS} ${LDFLAGS} ${LIBSPATH} ${LIBS} ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${MODULE} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + @D=`pwd` ; \ + createdir="${EXPORTBASE}/${MODULEDIR}" ; \ + $(mkinstalldirs) $$createdir ; \ +--- a/src/libs/client/Makefile ++++ b/src/libs/client/Makefile +@@ -23,6 +23,8 @@ + SOURCES = entry.cpp mainmenu.cpp splash.cpp exitmenu.cpp \ + optionmenu.cpp + ++SOLIBS = -lconfscreens -lraceengine ++ + LIBS = -lplibssg -lplibsg -lplibul + + EXPDIR = include +--- a/src/libs/Makefile ++++ b/src/libs/Makefile +@@ -23,7 +23,7 @@ + + TOOLSUBDIRS = txml + +-SUBDIRS = confscreens racescreens robottools txml tgf tgfclient client raceengineclient learning \ ++SUBDIRS = confscreens racescreens robottools txml tgf tgfclient raceengineclient client learning \ + portability math + + PKGSUBDIRS = $(SUBDIRS) +--- a/src/libs/raceengineclient/Makefile ++++ b/src/libs/raceengineclient/Makefile +@@ -23,6 +23,8 @@ + SOURCES = singleplayer.cpp raceinit.cpp racemain.cpp racemanmenu.cpp racestate.cpp racegl.cpp \ + raceengine.cpp raceresults.cpp + ++SOLIBS = -lconfscreens -lrobottools -lracescreens ++ + EXPDIR = include + + EXPORTS = singleplayer.h raceinit.h +--- a/src/libs/tgf/Makefile ++++ b/src/libs/tgf/Makefile +@@ -29,6 +29,7 @@ + profiler.cpp \ + hash.cpp + ++SOLIBS = -ltxml + + EXPDIR = include + diff --git a/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch b/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch new file mode 100644 index 000000000000..72c755af9ebd --- /dev/null +++ b/games-sports/speed-dreams/files/speed-dreams-1.4.0-automake.patch @@ -0,0 +1,35 @@ +--- a/configure.in 2012-03-13 08:15:34.891163505 +0100 ++++ b/configure.in 2012-03-13 08:18:40.154092687 +0100 +@@ -14,9 +14,10 @@ + # + ############################################################################## + +-AC_INIT(Make-config.in) ++AC_INIT([speed-dreams], [1.4.0-r2307]) ++AC_CONFIG_SRCDIR([Make-config.in]) + AC_CONFIG_HEADERS(config.h) +-AM_INIT_AUTOMAKE(speed-dreams, 1.4.0-r2307) ++AC_DEFINE(VERSION, ["1.4.0-r2307"], [Version]) + + dnl Checks for programs. + AC_PROG_CC +--- a/Makefile 2012-03-13 10:43:30.563720337 +0100 ++++ b/Makefile 2012-03-13 10:44:26.339794119 +0100 +@@ -88,17 +88,7 @@ + -include ${MAKE_DEFAULT} + + Make-config: configure Make-config.in +- rm -f config.status config.log config.cache + ./configure +- rm -f config.status config.log config.cache +- +-configure: configure.in config.h.in aclocal.m4 +- rm -f config.status config.log config.cache +- autoheader +- autoconf +- +-aclocal.m4: acinclude.m4 +- aclocal + + distclean: clean + rm -f config.status config.log config.cache diff --git a/games-sports/speed-dreams/files/speed-dreams-1.4.0-libpng15.patch b/games-sports/speed-dreams/files/speed-dreams-1.4.0-libpng15.patch new file mode 100644 index 000000000000..6b09ce2a41c8 --- /dev/null +++ b/games-sports/speed-dreams/files/speed-dreams-1.4.0-libpng15.patch @@ -0,0 +1,20 @@ +--- a/src/libs/tgfclient/img.cpp ++++ b/src/libs/tgfclient/img.cpp +@@ -98,7 +98,7 @@ + return (unsigned char *)NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + /* Free all of the memory associated with the png_ptr and info_ptr */ + png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); +@@ -229,7 +229,7 @@ + return -1; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + png_destroy_write_struct(&png_ptr, &info_ptr); + fclose(fp); + return -1; diff --git a/games-sports/speed-dreams/files/speed-dreams-1.4.0-math-hack.patch b/games-sports/speed-dreams/files/speed-dreams-1.4.0-math-hack.patch new file mode 100644 index 000000000000..32b4f85a2000 --- /dev/null +++ b/games-sports/speed-dreams/files/speed-dreams-1.4.0-math-hack.patch @@ -0,0 +1,25 @@ +https://sourceforge.net/p/speed-dreams/tickets/952/ +https://bugs.gentoo.org/580054 + +--- a/src/modules/simu/simuv2/simu.cpp ++++ b/src/modules/simu/simuv2/simu.cpp +@@ -61,7 +61,7 @@ + if (isnan(car->ctrl->brakeCmd) || isinf(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0; + if (isnan(car->ctrl->clutchCmd) || isinf(car->ctrl->clutchCmd)) car->ctrl->clutchCmd = 0; + if (isnan(car->ctrl->steer) || isinf(car->ctrl->steer)) car->ctrl->steer = 0; +- if (isnan(car->ctrl->gear) || isinf(car->ctrl->gear)) car->ctrl->gear = 0; ++ if (isnan((float)car->ctrl->gear) || isinf((float)car->ctrl->gear)) car->ctrl->gear = 0; + #else + if (isnan(car->ctrl->accelCmd)) car->ctrl->accelCmd = 0; + if (isnan(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0; +--- a/src/modules/simu/simuv3/simu.cpp ++++ b/src/modules/simu/simuv3/simu.cpp +@@ -61,7 +61,7 @@ + if (isnan(car->ctrl->brakeCmd) || isinf(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0; + if (isnan(car->ctrl->clutchCmd) || isinf(car->ctrl->clutchCmd)) car->ctrl->clutchCmd = 0; + if (isnan(car->ctrl->steer) || isinf(car->ctrl->steer)) car->ctrl->steer = 0; +- if (isnan(car->ctrl->gear) || isinf(car->ctrl->gear)) car->ctrl->gear = 0; ++ if (isnan((float)car->ctrl->gear) || isinf((float)car->ctrl->gear)) car->ctrl->gear = 0; + #else + if (isnan(car->ctrl->accelCmd)) car->ctrl->accelCmd = 0; + if (isnan(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0; diff --git a/games-sports/speed-dreams/metadata.xml b/games-sports/speed-dreams/metadata.xml new file mode 100644 index 000000000000..7585d6ad4181 --- /dev/null +++ b/games-sports/speed-dreams/metadata.xml @@ -0,0 +1,14 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + Enable support for the X xrandr extension + + + speed-dreams + + diff --git a/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild b/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild new file mode 100644 index 000000000000..b8c182a4a903 --- /dev/null +++ b/games-sports/speed-dreams/speed-dreams-1.4.0-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils versionator + +DESCRIPTION="A fork of the famous open racing car simulator TORCS" +HOMEPAGE="http://speed-dreams.sourceforge.net/" +SRC_URI="mirror://sourceforge/speed-dreams/${P}-r2307-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="xrandr" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/freealut + media-libs/freeglut + >=media-libs/libpng-1.2.40:0 + media-libs/openal + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXxf86vm + xrandr? ( x11-libs/libXrandr )" +DEPEND="${RDEPEND} + >=media-libs/plib-1.8.3 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXext + x11-libs/libXi + x11-libs/libXt + x11-libs/libXmu + x11-libs/libXrender + x11-base/xorg-proto" + +S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)-src + +PATCHES=( + "${FILESDIR}"/${P}-asneeded.patch + "${FILESDIR}"/${P}-automake.patch + "${FILESDIR}"/${P}-libpng15.patch + "${FILESDIR}"/${P}-math-hack.patch +) + +src_prepare() { + default + + # https://sourceforge.net/apps/trac/speed-dreams/ticket/111 + MAKEOPTS="${MAKEOPTS} -j1" + + sed -i \ + -e '/ADDCFLAGS/s: -O2::' \ + configure.in || die + sed -i \ + -e '/COPYING/s:=.*:= \\:' \ + Makefile || die + sed -i \ + -e '/LDFLAGS/s:-L/usr/lib::' \ + -e "/^datadir/s:=.*:= /usr/share/games/${PN}:" \ + Make-config.in || die + + eautoreconf +} + +src_configure() { + addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g') + [[ -e /dev/dsp ]] && addpredict /dev/dsp + econf \ + --prefix=/usr \ + --bindir=/usr/bin \ + $(use_enable xrandr) +} + +src_install() { + emake DESTDIR="${D}" install datainstall + + find "${D}" -name Makefile -exec rm -f {} + + + dodoc CHANGES README TODO + + newicon icon.svg ${PN}.svg + make_desktop_entry ${PN} "Speed Dreams" +} diff --git a/games-sports/stormbaancoureur-2.1.6-r1 b/games-sports/stormbaancoureur-2.1.6-r1 deleted file mode 100644 index 15300b6e9ad1..000000000000 --- a/games-sports/stormbaancoureur-2.1.6-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=install prepare -DEPEND=>=dev-games/ode-0.8 media-libs/alsa-lib media-libs/freeglut >=media-libs/plib-1.8.4 virtual/glu virtual/opengl -DESCRIPTION=Simulated obstacle course for automobiles -EAPI=6 -HOMEPAGE=http://www.stolk.org/stormbaancoureur/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-3 -RDEPEND=>=dev-games/ode-0.8 media-libs/alsa-lib media-libs/freeglut >=media-libs/plib-1.8.4 virtual/glu virtual/opengl -SLOT=0 -SRC_URI=http://www.stolk.org/stormbaancoureur/download/stormbaancoureur-2.1.6.tar.gz -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=af0b3beed4c941de35e0ebd6902b5fab diff --git a/games-sports/stormbaancoureur/Manifest b/games-sports/stormbaancoureur/Manifest new file mode 100644 index 000000000000..63017daa4aad --- /dev/null +++ b/games-sports/stormbaancoureur/Manifest @@ -0,0 +1,4 @@ +AUX stormbaancoureur-2.1.6-gentoo.patch 3705 BLAKE2B 292965ef5bd4492a59bb3a02e7bc22e4cdec90f2e92a703cb63bacd854d140e68139c6236357443d69429e2355adefc8307f2d4baddfb3cdfb26d5941c40e5ef SHA512 a879e05a420cf98760f245c66f60f985e0444bda1be5bde1ec509954d5d3fc184c11d96fb3a199122f6f3a9789ca2ad557e85a7d0380a2ce2e0ca410f820680b +DIST stormbaancoureur-2.1.6.tar.gz 3976459 BLAKE2B 3dafe0777db4dfec0ec9daf8a41c6cb1aa52ceb60f037fee64af77a7f991ed500234a33a1f5c9cd237a85f464cb5e65709f6d9d4e9417b955c24ea3be8dc0f6b SHA512 af949efc966aa088e75aadae27cd6b7e4e342d3fa00563a756ce6fb90b0ea64071f2e85087644fb6472db81c6a92584b485c5dcc71653cc54d90231e60bafd08 +EBUILD stormbaancoureur-2.1.6-r1.ebuild 846 BLAKE2B 64dfeecefedabb4745edc53f4d9b177c0536427d1f469e7fa4eb56e4eb88cd726f66924a18086c1044588e129234ad6b14d75e56bd24a25684678973ba9555e8 SHA512 50271f9b08e8c4d5912ecf11f4bf28536cf890b3b73352edc5c71f87d4702b26ebcc938500926ad4bc9547debca8a830ba0c5a0735a4780b80e1d76da0fbec69 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch b/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch new file mode 100644 index 000000000000..4523d677e9f8 --- /dev/null +++ b/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch @@ -0,0 +1,110 @@ +--- src-stormbaancoureur/Makefile ++++ src-stormbaancoureur/Makefile +@@ -5,21 +5,21 @@ + GLPREFIX=/usr + PLIBPREFIX=/usr + ODEPREFIX=/usr +-CXX=g++ + LIBDIRNAME=lib + + # END OF CUSTOM SETTINGS + +-CXXFLAGS=\ ++LCXXFLAGS:=\ + -I$(GLPREFIX)/include \ + -I$(ODEPREFIX)/include \ + -I$(PLIBPREFIX)/include \ + -I../src-common \ + -I. \ + -DGAMEVERSION=$(VERSION) \ +- -O2 -g -Wall ++ $(shell ode-config --cflags) \ ++ $(CXXFLAGS) + +-LFLAGS=\ ++LFLAGS= $(LDFLAGS) \ + -L$(PLIBPREFIX)/$(LIBDIRNAME) \ + -L/usr/X11R6/$(LIBDIRNAME) + +@@ -39,7 +38,7 @@ + + + LIBS=\ +- $(ODEPREFIX)/$(LIBDIRNAME)/libode.a \ ++ -lode \ + -lplibssgaux -lplibssg -lplibsg -lplibpu -lplibfnt -lplibul \ + -lglut -lGLU -lGL -lasound + +@@ -47,41 +46,41 @@ + all: stormbaancoureur + + +-stormbaancoureur: $(OBJS) $(ODEPREFIX)/$(LIBDIRNAME)/libode.a ++stormbaancoureur: $(OBJS) + $(CXX) -o stormbaancoureur $(OBJS) $(LFLAGS) $(LIBS) + + staticworldobject.o: ../src-common/staticworldobject.cxx ../src-common/staticworldobject.h ../src-common/worldobject.h +- $(CXX) -c $(CXXFLAGS) ../src-common/staticworldobject.cxx ++ $(CXX) -c $(LCXXFLAGS) ../src-common/staticworldobject.cxx + + dynamicobject.o: ../src-common/dynamicobject.cxx ../src-common/dynamicobject.h ../src-common/worldobject.h +- $(CXX) -c $(CXXFLAGS) ../src-common/dynamicobject.cxx ++ $(CXX) -c $(LCXXFLAGS) ../src-common/dynamicobject.cxx + + carobject.o: carobject.cxx carobject.h +- $(CXX) -c $(CXXFLAGS) carobject.cxx ++ $(CXX) -c $(LCXXFLAGS) carobject.cxx + + controllerpad.o: controllerpad.cxx controller.h ../src-common/joydb.h +- $(CXX) -c $(CXXFLAGS) controllerpad.cxx ++ $(CXX) -c $(LCXXFLAGS) controllerpad.cxx + + controllerkey.o: controllerkey.cxx +- $(CXX) -c $(CXXFLAGS) controllerkey.cxx ++ $(CXX) -c $(LCXXFLAGS) controllerkey.cxx + + intro.o: intro.cxx intro.h +- $(CXX) -c $(CXXFLAGS) intro.cxx ++ $(CXX) -c $(LCXXFLAGS) intro.cxx + + vectortext.o: ../src-common/vectortext.cxx ../src-common/vectortext.h +- $(CXX) -c $(CXXFLAGS) ../src-common/vectortext.cxx ++ $(CXX) -c $(LCXXFLAGS) ../src-common/vectortext.cxx + + postscore.o: postscore.cxx postscore.h +- $(CXX) -c $(CXXFLAGS) postscore.cxx ++ $(CXX) -c $(LCXXFLAGS) postscore.cxx + + soundenginealsa.o: ../src-common/soundenginealsa.cxx ../src-common/soundenginealsa.h ../src-common/soundfeed.h ../src-common/soundclip.h +- $(CXX) -c $(CXXFLAGS) ../src-common/soundenginealsa.cxx ++ $(CXX) -c $(LCXXFLAGS) ../src-common/soundenginealsa.cxx + + ogl.o: ../src-common/ogl.cxx +- $(CXX) -c $(CXXFLAGS) ../src-common/ogl.cxx ++ $(CXX) -c $(LCXXFLAGS) ../src-common/ogl.cxx + + main.o: main.cxx ../src-common/usercam.h ../src-common/trackingcam.h ../src-common/soundenginealsa.h cratewall.h controller.h intro.h plodegui.h doorstand.h carpettrack.h spikejump.h ferriswheel.h turntable.h sturmbahn.h ../src-common/modelmap.h starsky.h carobject.h respawnpoint.h +- $(CXX) -c $(CXXFLAGS) main.cxx ++ $(CXX) -c $(LCXXFLAGS) main.cxx + + debugrun: stormbaancoureur + PLODE_DATADIR=`pwd` gdb ./stormbaancoureur +--- src-stormbaancoureur/main.cxx ++++ src-stormbaancoureur/main.cxx +@@ -836,15 +836,7 @@ + fprintf(stderr,"plib is (c) by Steve Baker\n"); + fprintf(stderr,"OpenDE is (c) by Russel L. Smith\n"); + +- char *bindirname = dirname(argv[0]); +- if (!strcmp(bindirname,".")) +- dirprefix="/usr/share/games/stormbaancoureur"; +- else +- { +- dirprefix = dirname(bindirname) + std::string("/share/games/stormbaancoureur"); +- } +- if (getenv("PLODE_DATADIR")) +- dirprefix = getenv("PLODE_DATADIR"); ++ dirprefix="GENTOODIR"; + if (getenv("PLODE_DISPLAYMODE")) + displaymode = getenv("PLODE_DISPLAYMODE"); + assert(displaymode == "monoscopic" || displaymode == "quadbufferstereoscopic" || displaymode == "passivestereoscopic"); diff --git a/games-sports/stormbaancoureur/metadata.xml b/games-sports/stormbaancoureur/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-sports/stormbaancoureur/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild b/games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild new file mode 100644 index 000000000000..fd84d6d9c602 --- /dev/null +++ b/games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="Simulated obstacle course for automobiles" +HOMEPAGE="http://www.stolk.org/stormbaancoureur/" +SRC_URI="http://www.stolk.org/stormbaancoureur/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + >=dev-games/ode-0.8 + media-libs/alsa-lib + media-libs/freeglut + >=media-libs/plib-1.8.4 + virtual/glu + virtual/opengl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${P}/src-${PN} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch +) + +src_prepare() { + default + + sed -ie "s:GENTOODIR:/usr/share/${PN}:" main.cxx || die +} + +src_install() { + dobin ${PN} + insinto /usr/share/${PN} + doins -r images/ models/ sounds/ shaders/ + dodoc JOYSTICKS README TODO + make_desktop_entry ${PN} "Stormbaan Coureur" +} diff --git a/games-sports/torcs-1.3.6-r1 b/games-sports/torcs-1.3.6-r1 deleted file mode 100644 index d0e87b5e3a72..000000000000 --- a/games-sports/torcs-1.3.6-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=compile configure install prepare -DEPEND=media-libs/freealut media-libs/freeglut media-libs/libpng:0 media-libs/libvorbis:= media-libs/openal >=media-libs/plib-1.8.5 sys-libs/zlib:0= virtual/opengl virtual/glu x11-libs/libX11 x11-libs/libXrandr x11-base/xorg-proto >=app-portage/elt-patches-20170422 !=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 -DESCRIPTION=The Open Racing Car Simulator -EAPI=6 -HOMEPAGE=http://torcs.sourceforge.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 FreeArt -RDEPEND=media-libs/freealut media-libs/freeglut media-libs/libpng:0 media-libs/libvorbis:= media-libs/openal >=media-libs/plib-1.8.5 sys-libs/zlib:0= virtual/opengl virtual/glu x11-libs/libX11 x11-libs/libXrandr -SLOT=0 -SRC_URI=mirror://sourceforge/torcs/torcs-1.3.6.tar.bz2 -_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=2de540d5ffde3f614d142ce0015108ad diff --git a/games-sports/torcs/Manifest b/games-sports/torcs/Manifest new file mode 100644 index 000000000000..240b415007d2 --- /dev/null +++ b/games-sports/torcs/Manifest @@ -0,0 +1,10 @@ +AUX torcs-1.3.6-as-needed.patch 4112 BLAKE2B 376469d3cce24429483abb1a363ee35fd160687659492392019a03001f2f57eaaa91177cf0903ee46249aa716e607a9638cc77d027e1dc21e9a14a5c7ce8118b SHA512 8df4f57b470100c123de5868edc471e4233bf7c8e3d23f759a822536ab28e74403375ecdbcbc404ed442d6820260db97d6c76be7d4fabdef7015722600148b2c +AUX torcs-1.3.6-flags.patch 412 BLAKE2B 40a9336f08209c1bdb7191db05c1e716a337b70573a1f2452b7f037920a19b06481d850ae301b8f9dd8738fb55553d0a1d20b21301b5e517a7b2162e070a7930 SHA512 875ee57815c11b7c12617b6ee7eec08c7759df5d50bf13f52fdc29ffc9d4cec3689368f5eecfd3ae6739dfe1b4031d1335b9dbcf1c5df0472c36f061d031759e +AUX torcs-1.3.6-format.patch 1012 BLAKE2B 4ae32d78675c84db3a1d53c407cf0d2b6df7986e83aa2aa8281171c9e5b1b2ad4d3be684492840dba5871e13b8c1ebbfa06f5e1285de71f24fe937d4b39352a9 SHA512 6368ab1df79005f5dede537b45db7ccc1943c2c53e0c696ff6b743680f2d48508e29b5ad56b10a373beddf28c82d5f123998d9e794b66ce49e0ea2226f2332aa +AUX torcs-1.3.6-gcc6.patch 215 BLAKE2B fd9b8158919590038e4b0503a98938ad7bea6b62a4103c18217c27f0bbf158ff27bc4057dfc62d6bc2c2cae079eb4abbad602f3fa391aa6b3f014fc398a8631d SHA512 9c29c78c4a2f6d2ea187f80c4c10337556ec13cf7dbe4380af37bccd0fa09a67a6209caff319a50c65f9e831b7d07c1af2c1ba8c33d9a3addc55713988fc3e46 +AUX torcs-1.3.6-gcc7.patch 338 BLAKE2B 6d77dfc0d2fa18fa453fc6300a522b87587b1cc5ea7f7fb52e82f109cec5e398a8c67a7266b8294ac013f6050381c97035e85bf1e2d4c9637036bc0487c88860 SHA512 f7627973023cc8ade584858d85e698f1d390ec03d0220cdf45b961c6bbb2cda6bd212e7d6118bbf9167a08f143a3151b09e0453ccc17dd4f2b249016baff99e7 +AUX torcs-1.3.6-no-automake.patch 597 BLAKE2B 452100175b2ee325db488149458d911f13cb073785fae3be1cdfb2ecf2835d387485b0a656f5441212a95b75931c7c9a76d000d2ace13216b31bd0ee236c0549 SHA512 ba450b2e4ed438af241d81fdd0e522f960d2e46b81ce1339a08b0238e7000ccd304b8f74e6906e1742839b754963c9bbb7efae959f4bd7ac1bf9b32d9a94d4e1 +AUX torcs-1.3.6-noXmuXt.patch 2107 BLAKE2B cac50b99f6f1400e86daee84c8aa9ea280f3dd20b4febf18e44b53afefb985499d68bc1f0bf046d227ad280d34e42bc715071061045a86ba9d75d460acb34263 SHA512 573e63f49039b40172517bd876a68b0f35ce1abca9f35b1ae68d579c5f758d1466fcc9f59c85c72aabd4672934d0df006fd9ed5a8b626067c76be1034e8d1ddb +DIST torcs-1.3.6.tar.bz2 477954437 BLAKE2B 294e2775f9d7a88b1781139793fedf1f5e79238ed46ffcda22188bdf9f991180b161ab1057fcfe72205033db43b7a134b9568055e62f2152462de4436b454726 SHA512 4116c920b92ecbf5dcd3f14a137e86685651167f68725f2ad4549b2d3d20e3dc54569685925e08ffff6e7e19e532ecb1a95ec77dfe22a542a26c9e006b0c8c0d +EBUILD torcs-1.3.6-r1.ebuild 1422 BLAKE2B bc7e2c60c9ef05ff8f6e0dfd631fae5d990b1a894197e7043293d83b2299d8e03c9c1e069fa37ba31062665c6f8921c9273ccceb29ca78a9117206aeeb5d7cf5 SHA512 d6f1d346e4b00843889ce517085d8957b27e02a20c8add3cfd0f67c2023abaaced743cd58cd621444b76b2efabecfcb47570733583f7444b7e633747dd32aad8 +MISC metadata.xml 328 BLAKE2B 1831ecefa86b7037ab920bcb5fec61a126efcf0004ba461c8f1a3fa35f7e3104fcc3c85c5834acf761aaff8d719e23c410a56ea36fc145f8731e884de5e96826 SHA512 f146cbabfd1d356485e94c0811bcdaa29b027bf054e319f6c49d8c9c50f3cb235f34f684dab42f5534ab4bfcffb440c9c8b8a2dc9f7d97316b28656d3ad1c91d diff --git a/games-sports/torcs/files/torcs-1.3.6-as-needed.patch b/games-sports/torcs/files/torcs-1.3.6-as-needed.patch new file mode 100644 index 000000000000..d848538c07ea --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-as-needed.patch @@ -0,0 +1,96 @@ +--- torcs-1.3.6.orig/Make-default.mk ++++ torcs-1.3.6/Make-default.mk +@@ -402,7 +402,7 @@ + ifdef PROGRAM + + ${PROGRAM}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) +- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${SOLIBS} ${EXT_LIBS} -o $@ ++ ${CXX} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + + installprogram: ${PROGRAM} + @ createdir="${INSTLIBBASE}" ; \ +@@ -420,14 +420,14 @@ + ifdef LOCALTOOLS + + ${LOCALTOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) +- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@ ++ ${CXX} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + + endif + + ifdef TOOLS + + ${TOOLS}: ${OBJECTS} $(subst -l,${EXPORTBASE}/lib/lib, ${LIBS:=.a}) +- ${CXX} ${OBJECTS} ${LDFLAGS} ${LIBS} ${EXT_LIBS} ${SOLIBS} -o $@ ++ ${CXX} ${LDFLAGS} -o $@ ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + + installtools: ${TOOLS} + @createdir="${INSTBINBASE}/${TOOLSDIR}" ; \ +@@ -478,7 +478,7 @@ + ifdef SOLIBRARY + + ${SOLIBRARY}: ${OBJECTS} +- ${CXX} -shared -o ${SOLIBRARY} ${OBJECTS} ${SOLIBS} ${LDFLAGS} ${LIBSPATH} ${LIBS} ${DEBUG_LIBS} ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${SOLIBRARY} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + @D=`pwd` ; \ + createdir="${EXPORTBASE}/lib" ; \ + $(mkinstalldirs) $$createdir ; \ +@@ -509,7 +509,7 @@ + ifdef MODULE + + ${MODULE}: ${OBJECTS} +- ${CXX} -shared -o ${MODULE} ${OBJECTS} ${LDFLAGS} ${LIBSPATH} ${LIBS} ++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -o ${MODULE} ${OBJECTS} ${SOLIBS} ${LIBS} ${EXT_LIBS} + @D=`pwd` ; \ + createdir="${EXPORTBASE}/${MODULEDIR}" ; \ + $(mkinstalldirs) $$createdir ; \ +--- torcs-1.3.6.orig/configure.in ++++ torcs-1.3.6/configure.in +@@ -123,11 +123,11 @@ + AC_CHECK_LIB(Xxf86vm, XF86VidModeSetViewPort,,AC_MSG_ERROR([Can't find libXxf86vm. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + AC_CHECK_LIB(Xrender, XRenderSetSubpixelOrder,,AC_MSG_ERROR([Can't find libXrender. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) +-AC_CHECK_LIB(openal, alEnable, LDFLAGS="$LDFLAGS -lopenal", AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/])) ++AC_CHECK_LIB(openal, alEnable, LIBS="$LIBS -lopenal", AC_MSG_ERROR([Can't find AL/al.h. OpenAL can be found on http://www.openal.org/])) + AC_CHECK_LIB(alut, alutLoadWAVFile, +- LDFLAGS="$LDFLAGS -lalut", +- LDFLAGS="$LDFLAGS") +-AC_CHECK_LIB(vorbisfile, ov_fopen, LDFLAGS="$LDFLAGS -lvorbisfile", AC_MSG_ERROR([Can't find libvorbis.])) ++ LIBS="$LIBS -lalut", ) ++AC_CHECK_LIB(vorbisfile, ov_fopen, LIBS="$LIBS -lvorbisfile", AC_MSG_ERROR([Can't find libvorbis.])) ++ + + AC_CHECK_LIB(dl, dlopen) + AC_CHECK_FUNC(dlopen,,AC_MSG_ERROR([Can't find dlopen function. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) +--- torcs-1.3.6.orig/src/libs/Makefile ++++ torcs-1.3.6/src/libs/Makefile +@@ -23,7 +23,7 @@ + + TOOLSUBDIRS = txml + +-SUBDIRS = confscreens racescreens robottools txml tgf tgfclient client raceengineclient learning \ ++SUBDIRS = confscreens racescreens robottools txml tgf tgfclient raceengineclient client learning \ + portability math musicplayer + + PKGSUBDIRS = $(SUBDIRS) +--- torcs-1.3.6.orig/src/libs/client/Makefile ++++ torcs-1.3.6/src/libs/client/Makefile +@@ -23,6 +23,8 @@ + SOURCES = entry.cpp mainmenu.cpp splash.cpp exitmenu.cpp \ + optionmenu.cpp + ++SOLIBS = -lconfscreens -lraceengine ++ + LIBS = -lplibssg -lplibsg -lplibul + + EXPDIR = include +--- torcs-1.3.6.orig/src/libs/tgf/Makefile ++++ torcs-1.3.6/src/libs/tgf/Makefile +@@ -29,6 +29,7 @@ + profiler.cpp \ + hash.cpp + ++SOLIBS = -ltxml + + EXPDIR = include + diff --git a/games-sports/torcs/files/torcs-1.3.6-flags.patch b/games-sports/torcs/files/torcs-1.3.6-flags.patch new file mode 100644 index 000000000000..5f11fd270ef1 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-flags.patch @@ -0,0 +1,14 @@ +respect cflags + +--- torcs-1.3.6/configure.in ++++ torcs-1.3.6/configure.in +@@ -50,8 +50,7 @@ + ADDCFLAGS="-Wall -fPIC -fno-strict-aliasing" + AC_ARG_ENABLE(debug, + [ --enable-debug set the debug mode], +- ADDCFLAGS="$ADDCFLAGS -g -DDEBUG -DDEBUG_OUT", +- ADDCFLAGS="$ADDCFLAGS -O2") ++ ADDCFLAGS="$ADDCFLAGS -g -DDEBUG -DDEBUG_OUT") + + AC_ARG_ENABLE(xrandr, + [ --disable-xrandr reset the XRANDR mode], diff --git a/games-sports/torcs/files/torcs-1.3.6-format.patch b/games-sports/torcs/files/torcs-1.3.6-format.patch new file mode 100644 index 000000000000..da59c4da4fa0 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-format.patch @@ -0,0 +1,34 @@ +--- a/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:24.874102363 +0100 ++++ b/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100 +@@ -103,7 +103,7 @@ + { + int i, j; + +- printf(title); ++ printf("%s", title); + for (j = 0; j < 4; j ++){ + for (i = 0; i < 4; i ++) { + printf("%.6f ", m[i][j]); +--- a/src/tools/trackgen/objects.cpp 2015-12-23 20:59:49.671287196 +0100 ++++ b/src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100 +@@ -234,9 +234,9 @@ + + ssgLeaf *vt = (ssgLeaf *)ent; + if (vt->getCullFace() == TRUE) { +- surf = "SURF 0x10\n"; ++ surf = "0x10"; + } else { +- surf = "SURF 0x30\n"; ++ surf = "0x30"; + } + + int num_verts = vt->getNumVertices(); +@@ -304,7 +304,7 @@ + fprintf (save_fd, "numsurf %d\n", num_tris); + + for (i = 0; i < num_tris; i++) { +- fprintf (save_fd, surf); ++ fprintf (save_fd, "SURF %s\n", surf); + fprintf (save_fd, "mat 0\n"); + fprintf (save_fd, "refs 3\n"); + fprintf (save_fd, "%d %g %g\n", diff --git a/games-sports/torcs/files/torcs-1.3.6-gcc6.patch b/games-sports/torcs/files/torcs-1.3.6-gcc6.patch new file mode 100644 index 000000000000..6daf22a81b11 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-gcc6.patch @@ -0,0 +1,11 @@ +--- a/src/drivers/olethros/geometry.cpp ++++ b/src/drivers/olethros/geometry.cpp +@@ -27,6 +27,8 @@ + #ifdef WIN32 + #include + #define isnan _isnan ++#elif __cplusplus >= 201103L ++using std::isnan; + #endif + + diff --git a/games-sports/torcs/files/torcs-1.3.6-gcc7.patch b/games-sports/torcs/files/torcs-1.3.6-gcc7.patch new file mode 100644 index 000000000000..af139ad509de --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-gcc7.patch @@ -0,0 +1,11 @@ +--- a/src/libs/musicplayer/OpenALMusicPlayer.cpp ++++ b/src/libs/musicplayer/OpenALMusicPlayer.cpp +@@ -161,7 +161,7 @@ + { + char pcm[BUFFERSIZE]; + int size = 0; +- const char* error = '\0'; ++ const char* error = ""; + + if (!stream->read(pcm, BUFFERSIZE, &size, &error)) { + GfError("OpenALMusicPlayer: Stream read error: %s\n", error); diff --git a/games-sports/torcs/files/torcs-1.3.6-no-automake.patch b/games-sports/torcs/files/torcs-1.3.6-no-automake.patch new file mode 100644 index 000000000000..9b47bfb9a64c --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-no-automake.patch @@ -0,0 +1,21 @@ +torcs doesn't use automake, so it shouldn't be calling the macro + +http://bugs.gentoo.org/408473 + +--- torcs-1.3.6.orig/configure.in ++++ torcs-1.3.6/configure.in +@@ -15,9 +15,12 @@ + # + ############################################################################## + +-AC_INIT(Make-config.in) ++AC_INIT(torcs, 1.3.6) + AC_CONFIG_HEADERS(config.h) +-AM_INIT_AUTOMAKE(torcs, 1.3.6) ++dnl Workaround code using old VERSION instead of new PACKAGE_VERSION ++VERSION=$PACKAGE_VERSION ++AC_DEFINE_UNQUOTED([VERSION], "$VERSION", [old VERSION workaround]) ++AC_SUBST(VERSION) + + dnl Checks for programs. + AC_PROG_CC diff --git a/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch b/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch new file mode 100644 index 000000000000..f87fb750d199 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch @@ -0,0 +1,15 @@ +--- a/configure.in ++++ b/configure.in +@@ -116,12 +116,8 @@ + AC_CHECK_LIB(ICE, IceSetIOErrorHandler,,AC_MSG_ERROR([Can't find libICE. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + dnl Replace `main' with a function in -lSM: + AC_CHECK_LIB(SM, SmsSetErrorHandler,,AC_MSG_ERROR([Can't find libSM. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) +-dnl Replace `main' with a function in -lXt: +-AC_CHECK_LIB(Xt, XtDisplay,,AC_MSG_ERROR([Can't find libXt. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + dnl Replace `main' with a function in -lXi: + AC_CHECK_LIB(Xi, XOpenDevice,,AC_MSG_ERROR([Can't find libXi. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) +-dnl Replace `main' with a function in -lXmu: +-AC_CHECK_LIB(Xmu, XmuSimpleErrorHandler,,AC_MSG_ERROR([Can't find libXmu. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + AC_CHECK_LIB(Xxf86vm, XF86VidModeSetViewPort,,AC_MSG_ERROR([Can't find libXxf86vm. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + AC_CHECK_LIB(Xrender, XRenderSetSubpixelOrder,,AC_MSG_ERROR([Can't find libXrender. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) + AC_CHECK_LIB(Xrandr, XRRQueryVersion,,AC_MSG_ERROR([Can't find libXrandr. Please check config.log and if you can't solve the problem send the file to torcs-users@lists.sourceforge.net with the subject \"torcs compilation problem\"])) diff --git a/games-sports/torcs/metadata.xml b/games-sports/torcs/metadata.xml new file mode 100644 index 000000000000..dd8247bbc427 --- /dev/null +++ b/games-sports/torcs/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + torcs + + diff --git a/games-sports/torcs/torcs-1.3.6-r1.ebuild b/games-sports/torcs/torcs-1.3.6-r1.ebuild new file mode 100644 index 000000000000..77612fb8eaa9 --- /dev/null +++ b/games-sports/torcs/torcs-1.3.6-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils multilib + +DESCRIPTION="The Open Racing Car Simulator" +HOMEPAGE="http://torcs.sourceforge.net/" +SRC_URI="mirror://sourceforge/torcs/${P}.tar.bz2" + +LICENSE="GPL-2 FreeArt" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-libs/freealut + media-libs/freeglut + media-libs/libpng:0 + media-libs/libvorbis:= + media-libs/openal + >=media-libs/plib-1.8.5 + sys-libs/zlib:0= + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXrandr" +DEPEND="${RDEPEND} + x11-base/xorg-proto" + +PATCHES=( + "${FILESDIR}"/${P}-no-automake.patch + "${FILESDIR}"/${P}-as-needed.patch + "${FILESDIR}"/${P}-flags.patch + "${FILESDIR}"/${P}-format.patch + "${FILESDIR}"/${P}-noXmuXt.patch + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${P}-gcc7.patch +) + +src_prepare() { + default + + eautoreconf + ecvs_clean +} + +src_configure() { + addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g') + [[ -e /dev/dsp ]] && addpredict /dev/dsp + econf \ + --datadir=/usr/share \ + --x-libraries=/usr/$(get_libdir) \ + --enable-xrandr +} + +src_compile() { + # So ugly... patches welcome. + emake -j1 +} + +src_install() { + emake -j1 DESTDIR="${D}" install datainstall + newicon Ticon.png ${PN}.png + make_desktop_entry ${PN} TORCS + dodoc README doc/history/history.txt + doman doc/man/*.6 + dodoc -r doc/faq/faq.html doc/tutorials doc/userman +} diff --git a/games-sports/trigger-0.6.1-r1 b/games-sports/trigger-0.6.1-r1 deleted file mode 100644 index 0d0a2af35fd9..000000000000 --- a/games-sports/trigger-0.6.1-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=compile configure install postinst setup -DEPEND=dev-games/physfs media-libs/freealut media-libs/libsdl media-libs/openal media-libs/sdl-image[jpeg,png] media-libs/sdl-mixer virtual/glu virtual/opengl dev-util/ftjam -DESCRIPTION=Free OpenGL rally car racing game -EAPI=6 -HOMEPAGE=http://trigger-rally.sourceforge.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=dev-games/physfs media-libs/freealut media-libs/libsdl media-libs/openal media-libs/sdl-image[jpeg,png] media-libs/sdl-mixer virtual/glu virtual/opengl -SLOT=0 -SRC_URI=mirror://sourceforge/trigger-rally/trigger-rally-0.6.1.tar.bz2 -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=a7c26d8681e366dde151be86688aa28f diff --git a/games-sports/trigger/Manifest b/games-sports/trigger/Manifest new file mode 100644 index 000000000000..7d5be34b9946 --- /dev/null +++ b/games-sports/trigger/Manifest @@ -0,0 +1,4 @@ +AUX trigger-0.6.1-gcc6.patch 814 BLAKE2B c2fa05b4a3cf8be96a2c581b893c6b05d5e01374e6cf60ed361222d0f50f8d50baeddb5a046a7c15bb1930a57e7c5dad7db6c5f9eb1925183c7c34cdce7191ac SHA512 32e2979f09363010e252f436b04b888c7dc127e7b6817ea53ac400a1859c6d900990c284169a965bcd18388a972c9ed2c7a8e7f1c928147adbfb0007f7f50aa3 +DIST trigger-rally-0.6.1.tar.bz2 61083932 BLAKE2B cc5a291b2177ceba73e2cfdfdf1c3c68fb4704eda3334550740714232229241d1bc0e8573d2786076193513b70ab8e305a8e879e51ee4dc0597654a2f99eac1f SHA512 9f7e57758ffa61002efff6c7ac4d69f53ef4769651bdfdd21b6a8d101f8fd06ba7dc5998a8877146f50e6124896300e3595b4b5fff4decd53b6555e622de85bf +EBUILD trigger-0.6.1-r1.ebuild 1193 BLAKE2B 7821479ad2bcfbf077e5d7e6cd3b9f632a5baa933106e277147d0cddbf374a883f15df3957d7f44060e053c0024fed679b4afe156e398b1f5d812941110ef2bd SHA512 eb36f809f45f1b446f7c55451a8ed1289a4dab2bffc73f214ba37a11bc83bd599c30434cec762975abccdee01f4d2f6d4302f682bb149310dd7844ff3c41f95b +MISC metadata.xml 336 BLAKE2B 2d2b4a4ff3f0204a6fd213f3b639cbee3472232c69afe80dd74825bea88b6ac676e1ef2449b06b4dd164dbce45a73b18e0bb72b4f7688e21ee38a89ebac20e14 SHA512 9eb1580903ba730dbe8dd12cd1be749e0dcfbb577c8d2eb7de8e0999c5348f7baa8b5fa13664893b8b3365e6bd0603596097c43821aa40af534fba4818778305 diff --git a/games-sports/trigger/files/trigger-0.6.1-gcc6.patch b/games-sports/trigger/files/trigger-0.6.1-gcc6.patch new file mode 100644 index 000000000000..38822287c61d --- /dev/null +++ b/games-sports/trigger/files/trigger-0.6.1-gcc6.patch @@ -0,0 +1,39 @@ +Bug: https://bugs.gentoo.org/617886 + +--- a/src/pengine/tinyxmlparser.cpp ++++ b/src/pengine/tinyxmlparser.cpp +@@ -326,14 +326,14 @@ + if ( !p || !*p ) + { + SetError( TIXML_ERROR_DOCUMENT_EMPTY ); +- return false; ++ return NULL; + } + + p = SkipWhiteSpace( p ); + if ( !p ) + { + SetError( TIXML_ERROR_DOCUMENT_EMPTY ); +- return false; ++ return NULL; + } + + while ( p && *p ) +@@ -541,7 +541,7 @@ + if ( !p || !*p || *p != '<' ) + { + if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT ); +- return false; ++ return NULL; + } + + p = SkipWhiteSpace( p+1 ); +@@ -551,7 +551,7 @@ + if ( !p || !*p ) + { + if ( document ) document->SetError( TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME ); +- return false; ++ return NULL; + } + + TIXML_STRING endTag (" + + + + games@gentoo.org + Gentoo Games Project + + + trigger-rally + + diff --git a/games-sports/trigger/trigger-0.6.1-r1.ebuild b/games-sports/trigger/trigger-0.6.1-r1.ebuild new file mode 100644 index 000000000000..0b6083919971 --- /dev/null +++ b/games-sports/trigger/trigger-0.6.1-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +MY_PN=${PN}-rally +MY_P=${MY_PN}-${PV} +DESCRIPTION="Free OpenGL rally car racing game" +HOMEPAGE="http://trigger-rally.sourceforge.net/" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-games/physfs + media-libs/freealut + media-libs/libsdl + media-libs/openal + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer + virtual/glu + virtual/opengl" +DEPEND="${RDEPEND} + dev-util/ftjam" + +S=${WORKDIR}/${MY_P} + +PATCHES=( "${FILESDIR}"/${P}-gcc6.patch ) + +pkg_setup() { + # Otherwise build fails with: + # ...skipped trigger for lack of libpengine.a... + tc-export AR +} + +src_configure() { + econf --datadir=/usr/share/games/${PN} +} + +src_compile() { + AR="${AR} cru" jam -dx -qa || die + +} + +src_install() { + dobin ${PN} + insinto /usr/share/games/${PN} + doins -r data/* + newicon data/textures/life_helmet.png ${PN}.png + make_desktop_entry ${PN} Trigger + dodoc doc/*.txt +} + +pkg_postinst() { + elog "After running ${PN} for the first time, a config file is" + elog "available in ~/.trigger/trigger.config" +} diff --git a/games-sports/trophy-2.0.3-r1 b/games-sports/trophy-2.0.3-r1 deleted file mode 100644 index e3f43c4eae79..000000000000 --- a/games-sports/trophy-2.0.3-r1 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=postinst postrm preinst -DEPEND=dev-games/clanlib:0.8[opengl] virtual/pkgconfig >=sys-apps/sed-4 -DESCRIPTION=2D Racing Game -EAPI=6 -HOMEPAGE=http://trophy.sourceforge.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=dev-games/clanlib:0.8[opengl] -SLOT=0 -SRC_URI=mirror://sourceforge/trophy/trophy-2.0.3.tar.gz -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc gnome2-utils 29bb8f7881c95139e532a2d5e47ff834 ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf xdg-utils f2c8335407f0b935b0a96d4adf23ef25 -_md5_=681f23b2bac3ec41c974ba585179f673 diff --git a/games-sports/trophy/Manifest b/games-sports/trophy/Manifest new file mode 100644 index 000000000000..f830b93f5365 --- /dev/null +++ b/games-sports/trophy/Manifest @@ -0,0 +1,3 @@ +DIST trophy-2.0.3.tar.gz 14780127 BLAKE2B cb61ea3c5e264f8d0435e64a9076c403543dfec4c8e914d6192bbeef91d7db12e430e151df7ab10c367ddbac8f924da931376b1f06f70f55e222580301b28aa6 SHA512 40376c2a27f205421189d5fea3dc154492fae8977b62d1150c986be6fe823d0f718b61a51a2febad851fc96cf4e1b408ab9318ab32e32d685966228f51327b06 +EBUILD trophy-2.0.3-r1.ebuild 532 BLAKE2B aff6ba69fe9fd7d9ab5208d54e5daa137fd8213c59de1b0a8e271e6f0ec81e0a89305dcd1eaa83ac7bb10ca82a580e5de2ba48f7c4635855959ff53b8bc4efd7 SHA512 f088ba3fccbc3c70f4679de5b1705034941d666310d603120852fe15d9ee723a2bfaeb93efed59357948ba52463e1e834cc314001605f3b95faac340fb3a0f29 +MISC metadata.xml 329 BLAKE2B fe1d6e27dea7312a3449f6bc468a9a4eaa39db2176a4a386e2e2dad7b721c7834decfe30d1b796f4ec51b3431c68eb09dd989b32ceba805f697bb7d8c565021f SHA512 2812231691e421c29bae3f29d934cfac14f611190985b785cbecb628091a6a9d774699685cef482d1be47879a4d9938f9e773188178395ca7d68ce9a0e8ac7fa diff --git a/games-sports/trophy/metadata.xml b/games-sports/trophy/metadata.xml new file mode 100644 index 000000000000..f3c03da7ef8e --- /dev/null +++ b/games-sports/trophy/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + trophy + + diff --git a/games-sports/trophy/trophy-2.0.3-r1.ebuild b/games-sports/trophy/trophy-2.0.3-r1.ebuild new file mode 100644 index 000000000000..e038f16088bf --- /dev/null +++ b/games-sports/trophy/trophy-2.0.3-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils gnome2-utils + +DESCRIPTION="2D Racing Game" +HOMEPAGE="http://trophy.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-games/clanlib:0.8[opengl]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-sports/ultimatestunts-0.7.7-r1 b/games-sports/ultimatestunts-0.7.7-r1 deleted file mode 100644 index 053d4b95b624..000000000000 --- a/games-sports/ultimatestunts-0.7.7-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=compile configure install prepare -DEPEND=media-libs/freealut media-libs/libsdl[joystick,opengl,video] media-libs/libvorbis >=media-libs/openal-1 media-libs/sdl-image virtual/opengl virtual/glu nls? ( virtual/libintl ) sys-devel/gettext -DESCRIPTION=Remake of the famous Stunts game -EAPI=6 -HOMEPAGE=http://www.ultimatestunts.nl/ -IUSE=nls -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2+ -RDEPEND=media-libs/freealut media-libs/libsdl[joystick,opengl,video] media-libs/libvorbis >=media-libs/openal-1 media-libs/sdl-image virtual/opengl virtual/glu nls? ( virtual/libintl ) -SLOT=0 -SRC_URI=mirror://sourceforge/ultimatestunts/ultimatestunts-srcdata-0771.tar.gz -_eclasses_=desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 26ca8a8bd95d6a74122c08ba98a4ee72 -_md5_=2468d71908f4ae952a64105f8daea29c diff --git a/games-sports/ultimatestunts/Manifest b/games-sports/ultimatestunts/Manifest new file mode 100644 index 000000000000..3fe9b3729506 --- /dev/null +++ b/games-sports/ultimatestunts/Manifest @@ -0,0 +1,5 @@ +AUX ultimatestunts-0.7.7-gcc-4.7.patch 457 BLAKE2B 0491753a7462b51ff03ffed3e2174638ff2229440eea9a4cb770e8ddcc5305d4700fe03ddc7b290496db4edcfd25c2954deb6076197e27d1712580c3da8c9bb6 SHA512 19fe87b1c4fde66803b299e5db5d8ac6112ba07ea334720cadee59ce5f238564b37af7f863bb4bab7b9ca780169e293ca2ab2defad3ce79f3123c8b956cb6c32 +AUX ultimatestunts-0.7.7-paths.patch 764 BLAKE2B 3f96f5593078269886bcd4a7528803ee55f4969f9c0843645a88bc436548d046e35adab028bc1b279ae2ec2bf54e45dedf96bca8e5f0e361aa9c8247b0243763 SHA512 da896527c8a76fad854270b38219b646689016c03c4800f89800b36f419ca210d8e5d524ef9a95beb9eef342c22edab7f70e0f28e6f14e4cf4b38ef23771080f +DIST ultimatestunts-srcdata-0771.tar.gz 47449346 BLAKE2B 7d2a82b525eed254424e14e5ab0bffb560f16980f9abf569138f4cba576fc4a823e1e3ca62791acd57b55822d06b0969e5be1d8bfcd7ecc779b5f53150649827 SHA512 c532d1434570775da8e0b8156659f96dcfbdf82890f07aebbe398bdcf2039a11c832ead8106c8522af1a4a847f685727dc6f7739443a99858621995452ce4741 +EBUILD ultimatestunts-0.7.7-r1.ebuild 1088 BLAKE2B 81ff42efb970ac124fcfc663b8082c1b139c6e90a840c149a73a4ed88a006035906b28c8948d22eaafd7f6ba67f4e649d6ee18ea020cc7e6e8079bb85ea4b373 SHA512 8ce6f8df02ff60cc0400aa6d8e84fd929cc16ee516c5c01633423fd8506169ac9f3bb291e931465860684668a592103e6c9ac176aeac590450c993580be4ac7e +MISC metadata.xml 337 BLAKE2B a22a22cddf032db212de94b79ddcedd11577ca18d0f511b2d78dbfb76e2c9a675fed1fef2cb702b877ad3e257431f0ac00b582afd2537835ae3f5542f42b9642 SHA512 cb7883dede9a55d0894a6a1bd9a944d5458047cff524fdc03ae1a3c6d771fcd77bc82151ff2a9bbf2f47772ee5a46c104c82e694a2649e60d1ed4e46e615f25b diff --git a/games-sports/ultimatestunts/files/ultimatestunts-0.7.7-gcc-4.7.patch b/games-sports/ultimatestunts/files/ultimatestunts-0.7.7-gcc-4.7.patch new file mode 100644 index 000000000000..f323bce22aa5 --- /dev/null +++ b/games-sports/ultimatestunts/files/ultimatestunts-0.7.7-gcc-4.7.patch @@ -0,0 +1,16 @@ +From: Julian Ospald +Date: Sat Jul 14 20:55:35 UTC 2012 +Subject: fix compilation on gcc-4.7 + +https://bugs.gentoo.org/show_bug.cgi?id=426612 + +--- a/simulation/metaserver.cpp ++++ b/simulation/metaserver.cpp +@@ -16,6 +16,7 @@ + ***************************************************************************/ + #include + #include ++#include + #include + #include + #include diff --git a/games-sports/ultimatestunts/files/ultimatestunts-0.7.7-paths.patch b/games-sports/ultimatestunts/files/ultimatestunts-0.7.7-paths.patch new file mode 100644 index 000000000000..c9fd879b1887 --- /dev/null +++ b/games-sports/ultimatestunts/files/ultimatestunts-0.7.7-paths.patch @@ -0,0 +1,19 @@ +--- ultimatestunts-srcdata-0771.orig/data/Makefile.in ++++ ultimatestunts-srcdata-0771/data/Makefile.in +@@ -358,11 +358,11 @@ + + + install: +- $(mkinstalldirs) ${usdatadir} +- cp -r cars environment lang misc music textures textures.dat tiles tracks ${usdatadir} +- chmod 644 ${usdatadir}/*.* +- chmod 644 ${usdatadir}/*/*.* +- chmod 644 ${usdatadir}/*/*/*.* ++ $(mkinstalldirs) $(DESTDIR)${usdatadir} ++ cp -r cars environment lang misc music textures textures.dat tiles tracks $(DESTDIR)${usdatadir} ++ chmod 644 $(DESTDIR)${usdatadir}/*.* ++ chmod 644 $(DESTDIR)${usdatadir}/*/*.* ++ chmod 644 $(DESTDIR)${usdatadir}/*/*/*.* + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/games-sports/ultimatestunts/metadata.xml b/games-sports/ultimatestunts/metadata.xml new file mode 100644 index 000000000000..ad38b6a0fe1b --- /dev/null +++ b/games-sports/ultimatestunts/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + ultimatestunts + + diff --git a/games-sports/ultimatestunts/ultimatestunts-0.7.7-r1.ebuild b/games-sports/ultimatestunts/ultimatestunts-0.7.7-r1.ebuild new file mode 100644 index 000000000000..53a8f0c1a688 --- /dev/null +++ b/games-sports/ultimatestunts/ultimatestunts-0.7.7-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic versionator + +MY_P=${PN}-srcdata-$(replace_all_version_separators)1 +DESCRIPTION="Remake of the famous Stunts game" +HOMEPAGE="http://www.ultimatestunts.nl/" +SRC_URI="mirror://sourceforge/ultimatestunts/${MY_P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND=" + media-libs/freealut + media-libs/libsdl[joystick,opengl,video] + media-libs/libvorbis + >=media-libs/openal-1 + media-libs/sdl-image + virtual/opengl + virtual/glu + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + sys-devel/gettext" + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}"/${P}-paths.patch + "${FILESDIR}"/${P}-gcc-4.7.patch +) + +src_prepare() { + default + + esvn_clean + append-cppflags $(sdl-config --cflags) +} + +src_configure() { + econf \ + --with-openal \ + $(use_enable nls) +} + +src_compile() { + emake -C trackedit libtrackedit.a + emake +} + +src_install() { + default + + newicon data/cars/diablo/steer.png ${PN}.png + make_desktop_entry ustunts "Ultimate Stunts" +} diff --git a/games-sports/vdrift-20120722 b/games-sports/vdrift-20120722 deleted file mode 100644 index 0a987b4e8bd5..000000000000 --- a/games-sports/vdrift-20120722 +++ /dev/null @@ -1,12 +0,0 @@ -DEFINED_PHASES=compile configure install postinst preinst prepare setup unpack -DEPEND=app-arch/libarchive media-libs/glew media-libs/libsdl[opengl,video] media-libs/sdl-gfx media-libs/sdl-image[png] media-libs/libvorbis net-misc/curl sci-physics/bullet[-double-precision] virtual/opengl virtual/glu dev-cpp/asio dev-libs/boost virtual/pkgconfig dev-util/scons[python_targets_python2_7] -DESCRIPTION=A driving simulation made with drift racing in mind -EAPI=5 -HOMEPAGE=http://vdrift.net/ -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-3 ZLIB LGPL-2.1+ -RDEPEND=app-arch/libarchive media-libs/glew media-libs/libsdl[opengl,video] media-libs/sdl-gfx media-libs/sdl-image[png] media-libs/libvorbis net-misc/curl sci-physics/bullet[-double-precision] virtual/opengl virtual/glu games-misc/games-envd -SLOT=0 -SRC_URI=mirror://sourceforge/vdrift/vdrift-2012-07-22.tar.bz2 mirror://sourceforge/vdrift/vdrift-2012-07-22c_patch.diff -_eclasses_=base 983774947da124fb7d542ce25a218bb1 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc games 2bb3ede665927a68ffdb7c41eec7efde ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e multiprocessing cac3169468f893670dac3e7cb940e045 preserve-libs ef207dc62baddfddfd39a164d9797648 scons-utils abbc7625ff457854eae0edaa1fd55cc7 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 user 8bc2845510e2109af75e3eeac607ec81 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=e6038213dfb8ff5feea4c4fd3015815d diff --git a/games-sports/vdrift/Manifest b/games-sports/vdrift/Manifest new file mode 100644 index 000000000000..36c2d970f703 --- /dev/null +++ b/games-sports/vdrift/Manifest @@ -0,0 +1,6 @@ +AUX vdrift-20120722-build.patch 1199 BLAKE2B 1731b61cdfb74c83e77e7b1fedd4ca970b6e73cf0223c818a79e35ac7869b89862d460066d6ac7608541dbe9bfe735fcfc29786f657bbbb98348fd3cb122a3f4 SHA512 4a12d2c3120d641668263dd7d8a2fb8b455e7f39ca33fabe85945fe6b7439f54d7cd2cf0b1752c7aae29d0b88c727f84f4e7092d3233bf5532c4db278b0eae39 +AUX vdrift-20120722-bullet.patch 3406 BLAKE2B 048d0f47b360bc63d6fc9d1d250b702ae3d452f46c64119076aa3fbcb3ea89af8d18af58215a1919c989203e5194412f94cd6f79bb37b0bd43d113e1b3029806 SHA512 aab973d586ae876b1f8fd528cdff80f97d5082954e616296604bd334694116fd4ce980698219e8a2c9662f50da9c5daf9ca9cc70ddd2a2f6795f0aa9673c7a71 +DIST vdrift-2012-07-22.tar.bz2 589288618 BLAKE2B ccdd6358f7d753a87eb8d9d0603001ab3ca6f5c8572348c300a75961f58eb624f4cd7df18b6d892554e0f6e96982de5d5d8aca4f59d8db7e95926d772a6d963f SHA512 eb6f243fd28e5fe46e856c37cb528c8ec903bdec91b6aa86681add79a333077a3a8874f694255913ae8492b965884f02057a95a98e37027ff67c082a8ca5527e +DIST vdrift-2012-07-22c_patch.diff 21689 BLAKE2B de7575df09d434f41a4dd02554dd39f7b6ae13d676ae33c692c7aabc49764c25805efdf5cb89e0b5fb016e02b5e33b93977d588df87ff0923421b57cf2796026 SHA512 7b82ba53f3c19ccd01de9ea64e0b7e15224219c0c614a6505b2a3f552ce78565fdedf7781a198c58606d3e9b94e594dee79097d46687e7d4fc763868204b761d +EBUILD vdrift-20120722.ebuild 1513 BLAKE2B 1d117dc7bd51f5c117533be62ffc40c7dd3defff50a085db0c9df5f7154b7aba26ab429e86f7d75077e9fb1a4208ae1ea10007dae40cae19fb0b27bab5c1cf41 SHA512 bb4b69538e274d9608fa705e5fa7f4e4add537f41e032275c9ec883a87905769fa6805a6eb0bd2509ea59340ea096f57aff19b56b3dc56b192f5531226e8503b +MISC metadata.xml 329 BLAKE2B a2a266c4cff85fa8d76897b4b13687aa44b8f119aca3814b2646f62bc887acf6af3b18048006119ed374be304dfb8825c95d08852558545d36e44343cdff37f5 SHA512 c669371ccb3d0aee737982574fa3cbadba74d6e559fede3bfbac99d7f4f8c1e8e632a2659460008938c307b0e52dd66af357a3f65752c88d8735cf036046fcc0 diff --git a/games-sports/vdrift/files/vdrift-20120722-build.patch b/games-sports/vdrift/files/vdrift-20120722-build.patch new file mode 100644 index 000000000000..16b6fe4c9ba1 --- /dev/null +++ b/games-sports/vdrift/files/vdrift-20120722-build.patch @@ -0,0 +1,28 @@ +--- VDrift.orig/SConstruct ++++ VDrift/SConstruct +@@ -44,6 +44,7 @@ + LIBPATH = ['.', '#lib', LOCALBASE + '/lib'], + LINKFLAGS = ['-pthread','-lintl'], + options = opts) ++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + check_headers = ['GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h', 'bullet/btBulletCollisionCommon.h'] + check_libs = [] + if 'CC' in os.environ: +@@ -380,7 +381,7 @@ + if env['release']: + # release build, debugging off, optimizations on + if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'freebsd9') and (sys.platform != 'win32') and (sys.platform != 'cygwin'): +- env.Append(CCFLAGS = ['-O1', '-pipe']) ++ env.Append(CCFLAGS = ['-pipe']) + else: + # debug build, lots of debugging, no optimizations + env.Append(CCFLAGS = ['-g3']) +@@ -399,7 +400,6 @@ + env.Append(CCFLAGS = ['-pg']) + env.Append(LINKFLAGS = ['-pg']) + env.Append(CCFLAGS = ['-g3']) +- env.Append(CCFLAGS = ['-O1']) + + #------------------------------------# + # compile-time efficiency assessment # + diff --git a/games-sports/vdrift/files/vdrift-20120722-bullet.patch b/games-sports/vdrift/files/vdrift-20120722-bullet.patch new file mode 100644 index 000000000000..907433417ee6 --- /dev/null +++ b/games-sports/vdrift/files/vdrift-20120722-bullet.patch @@ -0,0 +1,100 @@ +--- src/cardynamics.cpp Mon Jan 19 23:26:36 1970 ++++ src/cardynamics.cpp Mon Jan 19 23:26:36 1970 +@@ -1791,23 +1791,29 @@ + + bool CARDYNAMICS::WheelContactCallback( + btManifoldPoint& cp, +- const btCollisionObject* colObj0, +- int partId0, ++ const btCollisionObjectWrapper* col0, ++ int part0, + int index0, +- const btCollisionObject* colObj1, +- int partId1, ++ const btCollisionObjectWrapper* col1, ++ int part1, + int index1) + { +- // cars are fracture bodies, wheel is a cylinder shape +- const btCollisionShape* shape = colObj0->getCollisionShape(); +- if ((colObj0->getInternalType() & CO_FRACTURE_TYPE) && ++#if (BT_BULLET_VERSION < 281) ++ const btCollisionObject* obj = col0; ++ const btCollisionShape* shape = obj->getCollisionShape(); ++ const btCollisionShape* rootshape = obj->getRootCollisionShape(); ++#else ++ const btCollisionObject* obj = col0->getCollisionObject(); ++ const btCollisionShape* shape = col0->getCollisionShape(); ++ const btCollisionShape* rootshape = obj->getCollisionShape(); ++#endif ++ if ((obj->getInternalType() & CO_FRACTURE_TYPE) && + (shape->getShapeType() == CYLINDER_SHAPE_PROXYTYPE)) + { +- // is contact within contact patch? +- const btCompoundShape* car = static_cast(colObj0->getRootCollisionShape()); +- const btCylinderShapeX* wheel = static_cast(shape); +- btVector3 contactPoint = cp.m_localPointA - car->getChildTransform(cp.m_index0).getOrigin(); +- if (-direction::up.dot(contactPoint) > 0.5 * wheel->getRadius()) ++ const btCompoundShape* carshape = static_cast(rootshape); ++ const btCylinderShapeX* wheelshape = static_cast(shape); ++ btVector3 contactPoint = cp.m_localPointA - carshape->getChildTransform(cp.m_index0).getOrigin(); ++ if (-direction::up.dot(contactPoint) > 0.5 * wheelshape->getRadius()) + { + // break contact (hack) + cp.m_normalWorldOnB = btVector3(0, 0, 0); +--- src/cardynamics.h Mon Jan 19 23:26:36 1970 ++++ src/cardynamics.h Mon Jan 19 23:26:36 1970 +@@ -25,6 +25,12 @@ + class FractureBody; + class PTree; + ++#if (BT_BULLET_VERSION < 281) ++#define btCollisionObjectWrapper btCollisionObject ++#else ++struct btCollisionObjectWrapper; ++#endif ++ + class CARDYNAMICS : public btActionInterface + { + friend class PERFORMANCE_TESTING; +@@ -151,11 +157,11 @@ + + static bool WheelContactCallback( + btManifoldPoint& cp, +- const btCollisionObject* colObj0, +- int partId0, ++ const btCollisionObjectWrapper* col0, ++ int part0, + int index0, +- const btCollisionObject* colObj1, +- int partId1, ++ const btCollisionObjectWrapper* col1, ++ int part1, + int index1); + + protected: +--- src/dynamicsworld.cpp Mon Jan 19 23:26:36 1970 ++++ src/dynamicsworld.cpp Mon Jan 19 23:26:36 1970 +@@ -105,7 +105,7 @@ + int patch_id = -1; + const BEZIER * b = 0; + const TRACKSURFACE * s = TRACKSURFACE::None(); +- btCollisionObject * c = 0; ++ const btCollisionObject * c = 0; + + MyRayResultCallback ray(origin, p, caster); + rayTest(origin, p, ray); +@@ -221,6 +221,7 @@ + + void DynamicsWorld::fractureCallback() + { ++#if (BT_BULLET_VERSION < 281) + m_activeConnections.resize(0); + + int numManifolds = getDispatcher()->getNumManifolds(); +@@ -268,4 +269,5 @@ + btRigidBody* child = body->updateConnection(con_id); + if (child) addRigidBody(child); + } ++#endif + } \ No newline at end of file diff --git a/games-sports/vdrift/metadata.xml b/games-sports/vdrift/metadata.xml new file mode 100644 index 000000000000..873fcd84214e --- /dev/null +++ b/games-sports/vdrift/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + vdrift + + diff --git a/games-sports/vdrift/vdrift-20120722.ebuild b/games-sports/vdrift/vdrift-20120722.ebuild new file mode 100644 index 000000000000..c863bdfbb2ca --- /dev/null +++ b/games-sports/vdrift/vdrift-20120722.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils scons-utils games + +MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6:2} +DESCRIPTION="A driving simulation made with drift racing in mind" +HOMEPAGE="http://vdrift.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2 + mirror://sourceforge/${PN}/${MY_P}c_patch.diff" + +LICENSE="GPL-3 ZLIB LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="app-arch/libarchive + media-libs/glew + media-libs/libsdl[opengl,video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/libvorbis + net-misc/curl + sci-physics/bullet[-double-precision] + virtual/opengl + virtual/glu" +DEPEND="${RDEPEND} + dev-cpp/asio + dev-libs/boost + virtual/pkgconfig" + +S=${WORKDIR}/VDrift + +src_unpack() { + unpack ${MY_P}.tar.bz2 +} + +src_prepare() { + epatch \ + "${DISTDIR}"/${MY_P}c_patch.diff \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-bullet.patch +} + +src_compile() { + escons \ + force_feedback=1 \ + destdir="${D}" \ + bindir="${GAMES_BINDIR}" \ + datadir="${GAMES_DATADIR}"/${PN} \ + prefix= \ + use_binreloc=0 \ + release=1 \ + os_cc=1 \ + os_cxx=1 \ + os_cxxflags=1 \ + || die +} + +src_install() { + dogamesbin build/vdrift + insinto "${GAMES_DATADIR}/${PN}" + doins -r data/* + newicon data/textures/icons/vdrift-64x64.png ${PN}.png + make_desktop_entry ${PN} VDrift + find "${D}" -name "SCon*" -exec rm \{\} + + keepdir "${GAMES_DATADIR}"/${PN}/{music,settings/replays,settings/screenshots} + prepgamesdirs +} diff --git a/games-sports/xmoto-0.5.11-r2 b/games-sports/xmoto-0.5.11-r2 deleted file mode 100644 index adf031c4c747..000000000000 --- a/games-sports/xmoto-0.5.11-r2 +++ /dev/null @@ -1,13 +0,0 @@ -DEFINED_PHASES=configure install postinst prepare -DEPEND=app-arch/bzip2 dev-db/sqlite:3 dev-games/ode[double-precision=] dev-lang/lua:0[deprecated] dev-libs/libxdg-basedir dev-libs/libxml2 media-fonts/dejavu media-libs/libpng:0 media-libs/libsdl[joystick,opengl] media-libs/sdl-mixer[vorbis] media-libs/sdl-net media-libs/sdl-ttf net-misc/curl virtual/jpeg:0 virtual/opengl virtual/glu nls? ( virtual/libintl ) app-arch/xz-utils nls? ( sys-devel/gettext ) >=app-portage/elt-patches-20170422 !=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 -DESCRIPTION=A challenging 2D motocross platform game -EAPI=6 -HOMEPAGE=http://xmoto.tuxfamily.org -IUSE=double-precision editor nls -KEYWORDS=~amd64 ~x86 -LICENSE=GPL-2 -RDEPEND=app-arch/bzip2 dev-db/sqlite:3 dev-games/ode[double-precision=] dev-lang/lua:0[deprecated] dev-libs/libxdg-basedir dev-libs/libxml2 media-fonts/dejavu media-libs/libpng:0 media-libs/libsdl[joystick,opengl] media-libs/sdl-mixer[vorbis] media-libs/sdl-net media-libs/sdl-ttf net-misc/curl virtual/jpeg:0 virtual/opengl virtual/glu nls? ( virtual/libintl ) editor? ( media-gfx/inkscape ) -SLOT=0 -SRC_URI=http://download.tuxfamily.org/xmoto/xmoto/0.5.11/xmoto-0.5.11-src.tar.gz mirror://debian/pool/main/x/xmoto/xmoto_0.5.11+dfsg-7.debian.tar.xz editor? ( http://download.tuxfamily.org/xmoto/svg2lvl/0.7.0/inksmoto-0.7.0.tar.gz ) -_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multilib 97f470f374f2e94ccab04a2fb21d811e preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf -_md5_=a1ff0eaf1835e75ff71c9a385e6e5290 diff --git a/games-sports/xmoto/Manifest b/games-sports/xmoto/Manifest new file mode 100644 index 000000000000..0f92b75b1172 --- /dev/null +++ b/games-sports/xmoto/Manifest @@ -0,0 +1,5 @@ +DIST inksmoto-0.7.0.tar.gz 2628941 BLAKE2B b8469739e6368f7b36b9a5b766522c295de43c001fba00975fb3c761ba6df34bf97e684ddf51aa83a6a41a1b800d64d6d6fe77358cf1244f193d3aad4746c6b5 SHA512 af0ae49ea160a2274f6835abd82ccaa00dc9ff81875b7d4ea29789388c131b519cb77e6da42efeaf51d52b97090c67320af38145204a1d5418781c99cb23a704 +DIST xmoto-0.5.11-src.tar.gz 40785573 BLAKE2B a1c19656ec5b206417ebdf5ac80e134ce7f29258d8a76f47bad4084ce4d2cdaeeecde1cf6cef1254a0832f21c50a49049947c1896681fe2dd8f3531ba22e7627 SHA512 7046745e8f7a045fa2ce1deb3fd75b73b233dc1092f5ecd6dd4e42938f70269a93a3a623a39a1f0520c90643a42dc1ce93c43ad07bf225ff6c50741cc02511f6 +DIST xmoto_0.5.11+dfsg-7.debian.tar.xz 25708 BLAKE2B e4029d9c66b176c6eebbf68c973cb726ef7b2522c6245ce626c7a61c13492f2e599c5a7deff4f2c853bc58d21afb4e53072a0ddc25a4e7bdb8b89b93fd44159a SHA512 d430fa37fdde90ac68e8ff4b7d2707ea5fc73fa8fab241f7a97b27e803a88321f0ea01b094a5f77ac7e43b2202113842b4f69a745e9212eead7ce4a0a5cd220c +EBUILD xmoto-0.5.11-r2.ebuild 2539 BLAKE2B 2934f3ebb257ef84288d5dd6393c17bf7129b19bdb24302d545208f269e91977febe06ae14d22d3e9a154a80efa67d5442aca6741d1a121a528c1fa425a40414 SHA512 369d36e52803e3a2566710ec863e11cb02c1c8c254300d07690fee90a3deeab89185023ff450b2b2f43f28b805c7200cce356d74017d29ee3e19264ab5dfe70d +MISC metadata.xml 460 BLAKE2B 785042b620610aec6eebea61013723069e30dc1fd29cd64a74a59c721c55d6590131fd2c99094768b36917bded227c63f7560518e40367e0b295bb4c563956db SHA512 fa39571c69e439d293450292417de087a4f7da52a291b0d105e6c08af0c380b5d0bce20ac29851f837716d92152e77155c41fae58c38d31b941b0700ad0df2f8 diff --git a/games-sports/xmoto/metadata.xml b/games-sports/xmoto/metadata.xml new file mode 100644 index 000000000000..5b72e0102ede --- /dev/null +++ b/games-sports/xmoto/metadata.xml @@ -0,0 +1,12 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + more precise calculations at the expense of speed + Depend on inkscape, scripts to convert svg to level (svg2lvl) + + diff --git a/games-sports/xmoto/xmoto-0.5.11-r2.ebuild b/games-sports/xmoto/xmoto-0.5.11-r2.ebuild new file mode 100644 index 000000000000..4b906f8726a4 --- /dev/null +++ b/games-sports/xmoto/xmoto-0.5.11-r2.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils flag-o-matic + +LVL_PV="0.7.0" #they unfortunately don't release both at the same time, why ~ as separator :( +LVL="inksmoto-${LVL_PV}" +DEB_PV=7 +DESCRIPTION="A challenging 2D motocross platform game" +HOMEPAGE="http://xmoto.tuxfamily.org" +SRC_URI="http://download.tuxfamily.org/xmoto/xmoto/${PV}/${P}-src.tar.gz + mirror://debian/pool/main/x/${PN}/${PN}_${PV}+dfsg-${DEB_PV}.debian.tar.xz + editor? ( http://download.tuxfamily.org/xmoto/svg2lvl/${LVL_PV}/${LVL}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="double-precision editor nls" + +RDEPEND=" + app-arch/bzip2 + dev-db/sqlite:3 + dev-games/ode[double-precision=] + dev-lang/lua:0[deprecated] + dev-libs/libxdg-basedir + dev-libs/libxml2 + media-fonts/dejavu + media-libs/libpng:0 + media-libs/libsdl[joystick,opengl] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + net-misc/curl + virtual/jpeg:0 + virtual/opengl + virtual/glu + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + app-arch/xz-utils + nls? ( sys-devel/gettext )" +RDEPEND="${RDEPEND} + editor? ( media-gfx/inkscape )" + +src_prepare() { + default + + EPATCH_SOURCE="${WORKDIR}/debian/patches" \ + epatch $(cat ${WORKDIR}/debian/patches/series) + use editor && rm -vf "${WORKDIR}"/extensions/{bezmisc,inkex}.py + sed -i \ + -e '/^gettextsrcdir/s:=.*:= @localedir@/gettext/po:' \ + po/Makefile.in.in || die + mv configure.{in,ac} || die + eautoreconf + + rm -r "${S}"/src/ode || die +} + +src_configure() { + # bug 653404 + # due to ICU 59 requiring C++11 now + append-cxxflags -std=c++11 + + econf \ + --enable-threads=posix \ + $(use_enable nls) \ + --localedir=/usr/share/locale \ + --with-localesdir=/usr/share/locale \ + --with-renderer-sdlGfx=0 \ + --with-renderer-openGl=1 +} + +src_install() { + default + + rm -f "${D}/usr/share/xmoto"/Textures/Fonts/DejaVu*.ttf + dosym ../../../fonts/dejavu/DejaVuSans.ttf /usr/share/xmoto/Textures/Fonts/DejaVuSans.ttf + dosym ../../../fonts/dejavu/DejaVuSansMono.ttf /usr/share/xmoto/Textures/Fonts/DejaVuSansMono.ttf + doicon extra/xmoto.xpm + make_desktop_entry xmoto Xmoto + + if use editor; then + insinto /usr/share/inkscape/ + doins -r "${WORKDIR}"/extensions/ + fi +} + +pkg_postinst() { + if use editor; then + elog "If you want to know how to create Xmoto levels" + elog "have a look at this Tutorial:" + elog " http://wiki.xmoto.tuxfamily.org/index.php?title=Inksmoto-${LVL_PV}" + elog "You can share your levels on the Xmoto homepage." + fi +} -- cgit v1.2.3