From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-sports/torcs/Manifest | 12 +++ .../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 +++ .../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 | 67 +++++++++++++++ games-sports/torcs/torcs-1.3.6.ebuild | 64 +++++++++++++++ 10 files changed, 345 insertions(+) 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-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 create mode 100644 games-sports/torcs/torcs-1.3.6.ebuild (limited to 'games-sports/torcs') diff --git a/games-sports/torcs/Manifest b/games-sports/torcs/Manifest new file mode 100644 index 000000000000..c9e0c378b5dd --- /dev/null +++ b/games-sports/torcs/Manifest @@ -0,0 +1,12 @@ +AUX torcs-1.3.6-as-needed.patch 4112 SHA256 368285ea3efdc5118730e3e09b47f06796e77e6a65007fbf032356de91901c2b SHA512 8df4f57b470100c123de5868edc471e4233bf7c8e3d23f759a822536ab28e74403375ecdbcbc404ed442d6820260db97d6c76be7d4fabdef7015722600148b2c WHIRLPOOL a345f4ba17c104e38261fe7bf4cd3044c1e5289a2319c153774fc8f7ce273fd1e64b43cc8c6f6d155c00ac0dae536f6c2a42c7e197a241c8920ad61d9da64db2 +AUX torcs-1.3.6-flags.patch 412 SHA256 2cc81e8fe19a88c367fdb2918d32cbcd3f62d7a1a77442057caeaad277555fcb SHA512 875ee57815c11b7c12617b6ee7eec08c7759df5d50bf13f52fdc29ffc9d4cec3689368f5eecfd3ae6739dfe1b4031d1335b9dbcf1c5df0472c36f061d031759e WHIRLPOOL 045e75a4f2a05965952167a6f2d25b29a30f8e852296b96e12e7c600416e42c52b62b0dbfc30dcf429a8c45335e8a6999c55b356180fdadd21f78f9591cf4897 +AUX torcs-1.3.6-format.patch 1012 SHA256 baf4b26749de1a806030fb3e3e9a56e808997d6dda050d266cdec54d9f94a534 SHA512 6368ab1df79005f5dede537b45db7ccc1943c2c53e0c696ff6b743680f2d48508e29b5ad56b10a373beddf28c82d5f123998d9e794b66ce49e0ea2226f2332aa WHIRLPOOL d01f6be34d41387965f544024d8f50d1ec361ab94dbf16ee590e54705b0d9c65666e65f701d753d41da91a7df6c17c14c6c8c9348f97fd67a0c7d05aa87cbb89 +AUX torcs-1.3.6-gcc6.patch 215 SHA256 27338dfe88c568f0fc23885bf5c85b0ad7b1c9d6d898ea159414977c19141a03 SHA512 9c29c78c4a2f6d2ea187f80c4c10337556ec13cf7dbe4380af37bccd0fa09a67a6209caff319a50c65f9e831b7d07c1af2c1ba8c33d9a3addc55713988fc3e46 WHIRLPOOL a3499d7dd457fac26cbdff143b7056f2ec8017d3eb3f51cc0929b4923928139152c2b2eae7f49b7bf3afbf2f2d3e2bacfd17d439920f4135962d621be4215142 +AUX torcs-1.3.6-no-automake.patch 597 SHA256 9c3ac2cb678fb56110c264ae656f387d9fdf7f729a1d8c5a2b6ff58208f7b224 SHA512 ba450b2e4ed438af241d81fdd0e522f960d2e46b81ce1339a08b0238e7000ccd304b8f74e6906e1742839b754963c9bbb7efae959f4bd7ac1bf9b32d9a94d4e1 WHIRLPOOL 5cec185e2bcba3f9d5c49f7ea5bd203b97bd1240614b55813b5945fc601d9267e73ff65ca8263be3a176d38cf8eadfa05c8172eee7698cfc242358616ea82230 +AUX torcs-1.3.6-noXmuXt.patch 2107 SHA256 6ec2637c53255a7b4f0b69ed8737ba874f5b5aaf6047dd7720f706545a4ea568 SHA512 573e63f49039b40172517bd876a68b0f35ce1abca9f35b1ae68d579c5f758d1466fcc9f59c85c72aabd4672934d0df006fd9ed5a8b626067c76be1034e8d1ddb WHIRLPOOL 4d6fd623fbdf40fa2428955521922b6b0a02a4c7e73aab4a088d348f1a8a990f3bb4af2ffc867b3301165101540fd61e9dacc5d746d0e05d7a4d2406d3f82949 +DIST torcs-1.3.6.tar.bz2 477954437 SHA256 193cb1820170eb18335dffeaa345499229a4b7972a78acbfaca197597a3075af SHA512 4116c920b92ecbf5dcd3f14a137e86685651167f68725f2ad4549b2d3d20e3dc54569685925e08ffff6e7e19e532ecb1a95ec77dfe22a542a26c9e006b0c8c0d WHIRLPOOL 41579dc91f3df9950a9808d7c858f736b0218a781bf8565914097edca4ba2918ea6f5434335f5f6fae488d391bbce2f7c68be613fbd95825575497d093124f10 +EBUILD torcs-1.3.6-r1.ebuild 1398 SHA256 622d8d2b3689d043ca6b639e6f1360ebafcf06cd043d6362eef4d001dfaabc8c SHA512 1bcbd9fb1c5dae0aacf3da8575f8a56b8c835937a4b8994e8a17f94299cdc48293b5931a14dd3f0e0e12f8570ec98d9eb38b7d03d8d081f6c051089fa68c8a6e WHIRLPOOL 947c5296880e8e165ec6b2bf3b13fc263555a362497baa44cfe5862a38b06bba9487f02005710260bee72fc1fd6a82405d56136381ab71f2418029f740acd8ab +EBUILD torcs-1.3.6.ebuild 1439 SHA256 02682fade5b7ebccce1dddd7ceb916eb2860ca469191900235ebb30573a0ef90 SHA512 b9fe5dbcaa8bc3f3f3fee8e326912f24def1b2035d270123c38ff9943ce8905e49ec4bc168c601b4c181b57f8cbe6e17204b8c09eefe2569809db1c9582b8695 WHIRLPOOL 9e1044d35900f72674406be6274acd4999312364e4374f932ab801c93c54e3efad021dadd90c9289d5c312af49dbcf7be5b270145df2f323fcb7a6f8b8ae499e +MISC ChangeLog 3071 SHA256 f945f26d653814c61bc2f060fcf15ecd345157e2973c9d6ae8697c306ab3b04c SHA512 cc9f67405ce7cd11903e710b1eae618cc23b6b6ce3c52b22f5e7b725b40fd9c769805d7ead4a2d0b47116438b1bf9181fa1dfafc287715e89a07752a53dd4402 WHIRLPOOL b49bf40d94d26bb1ca91a83e85f26b508ccc6f95ac71d1dfd0dd27c24122168ad68501a6de4e2247a3c003c8b15250e61e887bdef223adeba0eb5312fcd9f6fa +MISC ChangeLog-2015 7147 SHA256 826021976994b3fd6213ee4981bfc28ca472ecacd000a47728e0b6ba7cb579ed SHA512 8934861146ab71d3a880bda35bd4a72d053949d08a650c94b877e259b9842b331c0bebc9a0074caeb10deaa28782f1b8f787b699fc3f8e3e60a6962ab5487f36 WHIRLPOOL 3db0ff3d80b4454981c2b54b848a97030b85c9e2c962cd21ad7c79305a44da90e82243bf3011afd43a823d25596daca4c8931d7e08873081b3a114d11b30e77c +MISC metadata.xml 328 SHA256 86f3c1c00b86d711e84415cf7e02e5be3db2250d38163cd387d558d3057cf0e2 SHA512 f146cbabfd1d356485e94c0811bcdaa29b027bf054e319f6c49d8c9c50f3cb235f34f684dab42f5534ab4bfcffb440c9c8b8a2dc9f7d97316b28656d3ad1c91d WHIRLPOOL 1dba41facce40bc4289c979432978c7da38884c7b0a07ed249b5850f9ea75dc5b4a810edff2048fafe236f3468466f7aa9573b558c327b58547fc46bb39ed344 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-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..c92083f6cbc0 --- /dev/null +++ b/games-sports/torcs/torcs-1.3.6-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 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-proto/xf86vidmodeproto" + +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 +) + +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/torcs/torcs-1.3.6.ebuild b/games-sports/torcs/torcs-1.3.6.ebuild new file mode 100644 index 000000000000..c37169833555 --- /dev/null +++ b/games-sports/torcs/torcs-1.3.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils multilib games + +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-proto/xf86vidmodeproto" + +src_prepare() { + epatch \ + "${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 + eautoreconf + ecvs_clean +} + +src_configure() { + addpredict $(echo /dev/snd/controlC? | sed 's/ /:/g') + [[ -e /dev/dsp ]] && addpredict /dev/dsp + egamesconf \ + --datadir="${GAMES_DATADIR_BASE}" \ + --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 + dohtml -r doc/faq/faq.html doc/tutorials doc/userman + prepgamesdirs +} -- cgit v1.2.3