summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/torcs/ChangeLog12
-rw-r--r--games-sports/torcs/Manifest20
-rw-r--r--games-sports/torcs/files/torcs-1.3.4-noXmuXt.patch4
-rw-r--r--games-sports/torcs/files/torcs-1.3.6-as-needed.patch96
-rw-r--r--games-sports/torcs/files/torcs-1.3.6-flags.patch14
-rw-r--r--games-sports/torcs/files/torcs-1.3.6-no-automake.patch21
-rw-r--r--games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch15
-rw-r--r--games-sports/torcs/torcs-1.3.6.ebuild63
8 files changed, 230 insertions, 15 deletions
diff --git a/games-sports/torcs/ChangeLog b/games-sports/torcs/ChangeLog
index e03fe809cee0..7d55e966c896 100644
--- a/games-sports/torcs/ChangeLog
+++ b/games-sports/torcs/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for games-sports/torcs
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/ChangeLog,v 1.40 2014/07/19 13:55:10 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/ChangeLog,v 1.41 2014/09/02 00:53:59 mr_bones_ Exp $
+
+*torcs-1.3.6 (02 Sep 2014)
+
+ 02 Sep 2014; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/torcs-1.3.6-as-needed.patch, +files/torcs-1.3.6-flags.patch,
+ +files/torcs-1.3.6-no-automake.patch, +files/torcs-1.3.6-noXmuXt.patch,
+ +torcs-1.3.6.ebuild, files/torcs-1.3.4-as-needed.patch,
+ files/torcs-1.3.4-flags.patch, files/torcs-1.3.4-no-automake.patch,
+ files/torcs-1.3.4-noXmuXt.patch:
+ version bump
19 Jul 2014; Tupone Alfredo <tupone@gentoo.org> torcs-1.3.4.ebuild,
+files/torcs-1.3.4-noXmuXt.patch:
diff --git a/games-sports/torcs/Manifest b/games-sports/torcs/Manifest
index db8ff37d88ed..bb9cd0576e9e 100644
--- a/games-sports/torcs/Manifest
+++ b/games-sports/torcs/Manifest
@@ -1,18 +1,14 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX torcs-1.3.4-as-needed.patch 4503 SHA256 47874c2562e3ae2a7f11fed9d19acf08a2da18a1af1a5489cb4d81a0bbc043a8 SHA512 4a165120028160a2fc2032a155266c41c3386bb1132b9158badfe13d9f26ee5d3ead91a14922950610ec5c57041dd52fb42c2a4e58dd384b555f439c7da8e6dc WHIRLPOOL 999999c7d37ee14476ace14911f17ca16c8f5ff90c89751270cdd1ebca7a86f4f9b55cfea867558e191f8808c1676124c2605ff8d20e8e0b47de88da98577ae4
AUX torcs-1.3.4-flags.patch 412 SHA256 4509cda9a445b116c976cd731fce19226f9e90c0e9d8b208d823c0e66a8324b8 SHA512 9eb4f15f32fc76bcbfb019c56ddc4132b835a258f1167476426c1141f6f00717aba296f05ae6434661f9ead7aed28edebe6fe5b84d410c8dc48966c92ef10db8 WHIRLPOOL b4d6919c454a2b8b5f18b8212fb01184db1741d131a4dcc1e4023818ed53a004be80a423c6bbd454dc384fba633191b8a2436567788a0a0a36a9ea0419959c16
AUX torcs-1.3.4-no-automake.patch 592 SHA256 91be55dab0355e14a9ce2a64280a2711d0d87d8c46fd9df7bdf04fc6dd8230e9 SHA512 be70370176675c0cc15a13caf2eb3344611b354085537b9fbbd27be587a598e1512521036302c116a319f7d34e9eae0ca6ef0c992a327ee59d9edfe6952518ec WHIRLPOOL 3e2bbe840f0bf0dddbb99ec9485d5d23878e3e4a19b76cb80c72c2ca002c394ee3b13ad96f1ed5dbfab70ea898569578f3e927a6e10c62d2a6151bb3c794ec81
-AUX torcs-1.3.4-noXmuXt.patch 2179 SHA256 69165947a7db8890686c95c06c5af8f992800fcf0b08a26fa68ef3d3e927e949 SHA512 86d1f92e57ab48488530d93e15e3348657bd57b2b60732c590dc0eaf9dbf1541a4e78bb7f55ffebc6519155be0b474f388bab768caa50ef70da45d201e94e134 WHIRLPOOL 419e948390e6676006d3a12376a68ee6bf9c7b8224cd21d3627042138eb7d96df505e6b1123fbbdb9bcad004518ca211f1819b3c9e0f4c2ec2bfd819346ac9bc
+AUX torcs-1.3.4-noXmuXt.patch 2107 SHA256 f94fb230b4a0bf3782f400e7472b71a1a3168b2619a44c86268dd59931bffccd SHA512 cf11c1ee53cb79c5d2c30c309cd6e05f3c6def481d20284fd4cc26f872abe98ad577cba1186d8fce07b67aa84a5370adb1c393afb97ce15aa8189c9514b5b87f WHIRLPOOL ea42fddc6c976e5c4508b0a36d9bea6017105a92d6b01d2d3fbd8eeaae9dc4d349bb8d2cfd966d9ccab102bf7f4aeb5dfce5af41d2e5836cf242d0bd78e563c9
+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-no-automake.patch 597 SHA256 9c3ac2cb678fb56110c264ae656f387d9fdf7f729a1d8c5a2b6ff58208f7b224 SHA512 ba450b2e4ed438af241d81fdd0e522f960d2e46b81ce1339a08b0238e7000ccd304b8f74e6906e1742839b754963c9bbb7efae959f4bd7ac1bf9b32d9a94d4e1 WHIRLPOOL 5cec185e2bcba3f9d5c49f7ea5bd203b97bd1240614b55813b5945fc601d9267e73ff65ca8263be3a176d38cf8eadfa05c8172eee7698cfc242358616ea82230
+AUX torcs-1.3.6-noXmuXt.patch 2107 SHA256 f94fb230b4a0bf3782f400e7472b71a1a3168b2619a44c86268dd59931bffccd SHA512 cf11c1ee53cb79c5d2c30c309cd6e05f3c6def481d20284fd4cc26f872abe98ad577cba1186d8fce07b67aa84a5370adb1c393afb97ce15aa8189c9514b5b87f WHIRLPOOL ea42fddc6c976e5c4508b0a36d9bea6017105a92d6b01d2d3fbd8eeaae9dc4d349bb8d2cfd966d9ccab102bf7f4aeb5dfce5af41d2e5836cf242d0bd78e563c9
DIST torcs-1.3.4.tar.bz2 414704098 SHA256 be50a42e4a32b322411a786ce4ab2fed44a1a2431511aef9925017858168e485 SHA512 8998ebaa92cb9d6c45cef5743b0cf6da04d88bb3eea18c863c4b3542eaff4b4c09cf47755dd47f5103fe4c0701125c8492cf6220bec97f1825e8cc549aa8270e WHIRLPOOL a73f3b8c4334d0d6795e1053d6131de84d2179cfc2451abf27bff05f57fdc5281deffae4a1f4c48333846e4aaaee7a5a1f6965cc353ba3b718327e494dae757a
+DIST torcs-1.3.6.tar.bz2 477954437 SHA256 193cb1820170eb18335dffeaa345499229a4b7972a78acbfaca197597a3075af SHA512 4116c920b92ecbf5dcd3f14a137e86685651167f68725f2ad4549b2d3d20e3dc54569685925e08ffff6e7e19e532ecb1a95ec77dfe22a542a26c9e006b0c8c0d WHIRLPOOL 41579dc91f3df9950a9808d7c858f736b0218a781bf8565914097edca4ba2918ea6f5434335f5f6fae488d391bbce2f7c68be613fbd95825575497d093124f10
EBUILD torcs-1.3.4.ebuild 1445 SHA256 9f3b1734187a650a48f5c503de89accadae8f5edd4d79813a73fe2026501583d SHA512 1477e364e1211a601a28dc496c190956ed1d56665d36451f5be117c66b6f982e625fc8f8ebbe587b77f0f5a5057fc679c869f4322acf59db7ff4798f27e3e9cd WHIRLPOOL 7f25e516846efd7e8c7588ae578d879657144e0249cea1317cbc8b6da78e506157b84ffd0d366faec7752b46fae9abcf2d2d7ed565eca9ac3c47387ff1b3fce5
-MISC ChangeLog 6299 SHA256 49b020b0f1e348336c3883d26441ff1a5174797617458f4799d3eaba8f0a0478 SHA512 b3417eaeb33803e62745cc7ad6b7456af9e84ed54f73b2b17bdba82057b99fcdaace872b916991d1f18121a39a8dae83f628866089cbc2d504ebe0387a0feaac WHIRLPOOL cbdb1db3d48de2183c5236ce63dbd01f5a4094044f7587502ac40953596e047dd43618a3f47aa9571531b2d1319a98620e5a2202daaaa1c3b07211f244287faa
+EBUILD torcs-1.3.6.ebuild 1486 SHA256 625b1b58953cb51f966f61d501a0cee80b6f572d0bbf96f1ac995d2bd21b80f0 SHA512 922be50d285ae2b6ecf4a109c1b1f76cda6146efeca95dbeef5a5fd088ffbc12695398c1f7e7fb8a570783bd99ec59b07475f75509eed2c726f4e38e9cfb9359 WHIRLPOOL d386f7a7bbcf91c3289e0879bdccd4af7ecf793564bee0bd024f5ab891f0c5f8cac90524dae79a8025045a722c13d85cdafce22ae197d0a0dfd39541d5ac11e9
+MISC ChangeLog 6708 SHA256 9f099f99f30f4c5c4fb2092de7fb5234d1bf89b59befd16d2c09e0a8d4e92983 SHA512 db1ea11865be3ca44e1266270babccc62ec133adf52f76e50f13328450a9c5e8828ed744a4c7463546bbb14c84ab2a701a37690d1cfbc9fb342759788e3067ab WHIRLPOOL b50de78850c9f4a97113a79517c12f4130f3d25806089be50f6f136581ddb3b5d0c04306927278c7852555f31e4c945ccaf74af5638095973cd53189504a4e48
MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2
-
-iEYEAREIAAYFAlPKeMQACgkQIY77eQFFFC02XgCfUBdSK3NzdOXcVnw5OISw/v6x
-yBYAni/xPcqhMZ6pTThDOJquOe6QLrck
-=/MiZ
------END PGP SIGNATURE-----
diff --git a/games-sports/torcs/files/torcs-1.3.4-noXmuXt.patch b/games-sports/torcs/files/torcs-1.3.4-noXmuXt.patch
index 200c6522c9c0..6f4a2e406223 100644
--- a/games-sports/torcs/files/torcs-1.3.4-noXmuXt.patch
+++ b/games-sports/torcs/files/torcs-1.3.4-noXmuXt.patch
@@ -1,5 +1,5 @@
---- configure.in.old 2014-07-19 15:43:50.480681694 +0200
-+++ configure.in 2014-07-19 15:44:12.487294592 +0200
+--- configure.in.old
++++ 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:
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-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..6f4a2e406223
--- /dev/null
+++ b/games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch
@@ -0,0 +1,15 @@
+--- configure.in.old
++++ 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/torcs-1.3.6.ebuild b/games-sports/torcs/torcs-1.3.6.ebuild
new file mode 100644
index 000000000000..d91138140fcb
--- /dev/null
+++ b/games-sports/torcs/torcs-1.3.6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/torcs-1.3.6.ebuild,v 1.1 2014/09/02 00:53:59 mr_bones_ Exp $
+
+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}-noXmuXt.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
+}