diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-12-14 22:57:26 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-12-14 22:57:26 +0000 |
commit | 590160aed34a4870a5623402101ffdba1bf194fd (patch) | |
tree | 7a9a9b47cb6d3ab3a7269cbfc0fb674d892eb57e /games-sports | |
parent | Fix ar detection per bug#438160 by Sean McGovern (diff) | |
download | historical-590160aed34a4870a5623402101ffdba1bf194fd.tar.gz historical-590160aed34a4870a5623402101ffdba1bf194fd.tar.bz2 historical-590160aed34a4870a5623402101ffdba1bf194fd.zip |
version bump wrt #415909
Package-Manager: portage-2.2.0_alpha145/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-sports')
-rw-r--r-- | games-sports/torcs/ChangeLog | 9 | ||||
-rw-r--r-- | games-sports/torcs/Manifest | 43 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.4-as-needed.patch | 106 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.4-flags.patch | 14 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.4-no-automake.patch | 21 | ||||
-rw-r--r-- | games-sports/torcs/torcs-1.3.4.ebuild | 62 |
6 files changed, 232 insertions, 23 deletions
diff --git a/games-sports/torcs/ChangeLog b/games-sports/torcs/ChangeLog index acbbd7633584..5e08a8868320 100644 --- a/games-sports/torcs/ChangeLog +++ b/games-sports/torcs/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-sports/torcs # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/ChangeLog,v 1.35 2012/03/22 15:05:44 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/ChangeLog,v 1.36 2012/12/14 22:57:22 hasufell Exp $ + +*torcs-1.3.4 (14 Dec 2012) + + 14 Dec 2012; Julian Ospald <hasufell@gentoo.org> +torcs-1.3.4.ebuild, + +files/torcs-1.3.4-as-needed.patch, +files/torcs-1.3.4-flags.patch, + +files/torcs-1.3.4-no-automake.patch: + version bump wrt #415909 22 Mar 2012; Mike Frysinger <vapier@gentoo.org> torcs-1.3.1.ebuild, files/torcs-1.3.1-libpng15.patch, +files/torcs-1.3.1-no-automake.patch: diff --git a/games-sports/torcs/Manifest b/games-sports/torcs/Manifest index 41b58243b25c..e9192587ef53 100644 --- a/games-sports/torcs/Manifest +++ b/games-sports/torcs/Manifest @@ -1,27 +1,26 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA256 -AUX torcs-1.3.1-as-needed.patch 3479 RMD160 7ead736dc188f4945314ef9acf7712f7c05c1989 SHA1 dd384fc8f8500a7fea1c86e1093052574c6d2dec SHA256 e8a0cae374209cd350d978ba5cbfb1756928db4e659b673b106c859acbcfbb55 -AUX torcs-1.3.1-libpng15.patch 528 RMD160 163d8102326a7bdca778ffd214a27b59365e7703 SHA1 054d6d4ce7ca021df1fb9d3c1b76909d7bdfd842 SHA256 3b8a4ff0c927ca9996477d0a18e44de9ea1c73e07ebbab85023cb2b1cd3b5eb8 -AUX torcs-1.3.1-no-automake.patch 572 RMD160 2e3e59572e63bbf3611b61af54110d56e8c014f3 SHA1 e550a51f0a25ae72ac096fe30928b17d43775d35 SHA256 09ce29d3846a3333be436f1edb39044a443bd5818c930eda51d40d67e1d03c0c -DIST torcs-1.3.1.tar.bz2 211422481 RMD160 4c03e4f3c4a5e5594d0560219ed215aa36b37595 SHA1 90a7cf9e6605d510d75103b4e1f28efc6faf933a SHA256 901b7baddbdc6c0aa343be1b35fe3ef2eb30100279ba9189d8ec8ed4b33d51fd -EBUILD torcs-1.3.1.ebuild 1458 RMD160 6d19e1999c89e8ea2e40465f45a0fa6eb04b5b4b SHA1 ab393d4aa7b0fd222bf2f953ae22ae633b8c4ee9 SHA256 8b3f1a07da6a5c5a774c18b137f50f0e64107c8ff4c1311e39ba6ae1dc67dc3d -MISC ChangeLog 5464 RMD160 260c764a734fb3724c9f94f8f136ebe360ed7a78 SHA1 6891686899ef26cea6b6a3256f79a4bade56b4b0 SHA256 30549093178b1a26cf0db626a7a11f381622d6e494f31da2c2433f4c7484d94d -MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +AUX torcs-1.3.1-as-needed.patch 3479 SHA256 e8a0cae374209cd350d978ba5cbfb1756928db4e659b673b106c859acbcfbb55 SHA512 9a23c5c689e6350e224d03ff1594e3f5498883eefe2dee089fd415f937f91871d8c62d7d07eea94df7002c8f2345829658ffe2c460f102b4a494da97c008b550 WHIRLPOOL b5aec2e8cf06a71f0d3186a960a70de2e329bbe688bcaa6c3db77c15c6983b1388aca6753a8be9d2ab63ea0df4b5163cb048b2dc6990d53cb3d76ea9bb09eb97 +AUX torcs-1.3.1-libpng15.patch 528 SHA256 3b8a4ff0c927ca9996477d0a18e44de9ea1c73e07ebbab85023cb2b1cd3b5eb8 SHA512 318b6d0cd08beda4b355cba590c558a50fadaef0856a6571bca4fcba660f7cca3723ceb2c6ac14bd168ba0b9acbc2fcf6b370b706a15e8759d8820385217302f WHIRLPOOL 2f29169802a8883b8e7b314f1bf20fd61e8ab5a47f74ffdcdc6df2d6ef1ce3aeacac7889ec5b90b02d0809eee4b84b85f9631dd0f36290293ef3f6ab635a0c78 +AUX torcs-1.3.1-no-automake.patch 572 SHA256 09ce29d3846a3333be436f1edb39044a443bd5818c930eda51d40d67e1d03c0c SHA512 5878fe3e7c4013fbbdaeec5bb6f745f03572c51063fb67f044a5cd50abcbfd28ad20f03949d89b06b3adf48f62d6fb0884bbba9149c7bc88d6354d7da88a6723 WHIRLPOOL 00daec801f9497c6411db05ffd24fa13a36b225081f7723c049eb75c35747edf784bd42a191f794ba508b3cf0e2c3b569ea83a350c8385df48b9cc326793b940 +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 +DIST torcs-1.3.1.tar.bz2 211422481 SHA256 901b7baddbdc6c0aa343be1b35fe3ef2eb30100279ba9189d8ec8ed4b33d51fd SHA512 a4192698ac16e0cabb53c11ead9b5098dcfb4e40febb5313946019d2f1ccc7b9647e450691d26fe32f8eced6d307f393b4d73a06dab2398871b079f7f6c0972b WHIRLPOOL be46223cf2a0c2cb2b7eb8aafe5ddc245d3190ba29b16abc1e31b58e87e425b339b4ad60a8793a170ed09f94d775ebf2ea3b7e46f9535821919a35eb2c9629f4 +DIST torcs-1.3.4.tar.bz2 414704098 SHA256 be50a42e4a32b322411a786ce4ab2fed44a1a2431511aef9925017858168e485 SHA512 8998ebaa92cb9d6c45cef5743b0cf6da04d88bb3eea18c863c4b3542eaff4b4c09cf47755dd47f5103fe4c0701125c8492cf6220bec97f1825e8cc549aa8270e WHIRLPOOL a73f3b8c4334d0d6795e1053d6131de84d2179cfc2451abf27bff05f57fdc5281deffae4a1f4c48333846e4aaaee7a5a1f6965cc353ba3b718327e494dae757a +EBUILD torcs-1.3.1.ebuild 1458 SHA256 8b3f1a07da6a5c5a774c18b137f50f0e64107c8ff4c1311e39ba6ae1dc67dc3d SHA512 5c4dc389fc7a5aab6ae3f95f2a36c95450f236b381fdaf5134d1dce29e37298d823250ec87fd83e51205b1ea297877668161e01427b91f15c24c0fe36c2929cf WHIRLPOOL 71aec3b58261ac2021ce749e5f0dbebfb0b5b3be1be7ee9fa3ec134a4b9d7875a46cde540f4771546308a7dac9adb16ca69ebcb314f69d77f2c508a972429d84 +EBUILD torcs-1.3.4.ebuild 1428 SHA256 54da416dc9896aa8021b48bfa0e0236a554265410105571f2616266ef887bd0e SHA512 74e6ad35ec529e57ce2d26eefbea787d62442d16ae3edd4ef4a32eaac7beca8b0a4377e1e4480dad6ee13555baddeed028410138fac54c0f2e7b1d2f4ce9f484 WHIRLPOOL cc36a8ed941ad6633d6a817070e65fe5d77d4bd1570d67ada18553c79615b05bdb28d6fb1c80323983dc91b34b2cdea437bcbe5a995be0fd0ec760373fc66605 +MISC ChangeLog 5704 SHA256 92b446ee90d51032e27bf05cf67f24a822434499c427fcfdab12f309be3b8708 SHA512 182f4784321c483ef54156353fb94d6f74408f66f1aa83e85c90c9a25710e55336e78c0d7f098aec73ebc88156dd5f3384b185865b7951bbef5c616d6a9dbc44 WHIRLPOOL 27b9536ddef0a8814061a874e6dd176ec330e976da09fd2aa1f59cbcbd5ba4695ecfab08182e4925ff1516d42cd1bd1d886b814e22f6e4b62b9aa42279398cbe +MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) +Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBAgAGBQJPaz/OAAoJELEHsLL7fEFWMqoQAMYG/i94f/CStFCMc4C0l3uz -achSbKKFO+YiQoz81MP7EqLZ1DdSFVDeUdF0/DBV46M9JWH/SV0OrBOOeuEH2hU8 -ktT7O4Me/zAKPJS4+Go/tOnvgJ2AtBh+oNkNIfgQpwDgFDyl9gYM909ER2yWrZ8v -YamA7iAzHVC9y4Tfgp3+2p9qwuTBMxg83MwJe55hBheNtUFqRy3vdtopuVIlrkHg -KAPus1ru/Qj+xkyGta03CG2x3Aqd98CPbNG+GmV/9EqoyyB3gu3f7teyoB0OoUOQ -KFn6scG6mraMh7V2YZ9B3dFd8yniwJiUHm780m0RGxGtuxNACaZNb+DeKfK4ACCR -s2id+DoOLvbphTnj38P9RfLbDGeBysAfIH93Tp0LbIBKhET3MMq5N1f5ct9pcRyW -b5T7e1hddruZBai7jeOur/HM+jkxBu3TCdTmxUtcMxjTl6yPEtiGepEOFfr3ct+7 -cLrz0xyY52S7sh3hZkm0DlV65y14wZDMugqqVeMToE4NBane4uLIH1VYjyfLDOkU -h5i88NHMn+2SlIKC8xIgJ4+Cyp2EgmypqLoSJJv4sgLFh1wQx9GeOX69yKRew39U -VU58eFao1EqfSCNglceSEJHk/cM2mg+PIMznjtXVHw/7FZHkPhIgEwu4H4Rwf5tE -L3ArRCCKKWybjWmjQJcr -=7Aew +iQEcBAEBCAAGBQJQy67WAAoJEFpvPKfnPDWzOHwIAIxyQgGvQ3+Lu5Uo+d6jXXQs +RseZL3b/XpeeD9jjL5k73a5OqvZUMTpuvRPpJ9+cCWvqMG28bHhKqdI1EFUQzhDH +wmmKkpH4Dd/ngw9OuM4L92cSAYHluEj5ckFowws0KKeNPXYb/G0xJ+GJaHgQTaGv +SuAKsTS5Hv9QmqbBnqOiCnA6p64WLcEHpRMGLW2oRMkqed04xqqw1andlUtLE033 +4ndFUSiJ926ybCe71YIrHA26Z0XRf61euQcd+xTc0gWRVo/ZwOv4B7ZGtcZ9mIVc +e3npMdoNld4t0AMZiceaFHjE2xkE3QrcTD+bOPKdmdTtATkgkxi7xid+t8KZOEs= +=Q9mJ -----END PGP SIGNATURE----- diff --git a/games-sports/torcs/files/torcs-1.3.4-as-needed.patch b/games-sports/torcs/files/torcs-1.3.4-as-needed.patch new file mode 100644 index 000000000000..d94eb8e061c0 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.4-as-needed.patch @@ -0,0 +1,106 @@ +--- torcs-1.3.4/configure.in ++++ torcs-1.3.4/configure.in +@@ -123,11 +123,10 @@ + 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.4/Make-default.mk ++++ torcs-1.3.4/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 ; \ +--- torcs-1.3.4/src/libs/client/Makefile ++++ torcs-1.3.4/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.4/src/libs/Makefile ++++ torcs-1.3.4/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.4/src/libs/raceengineclient/Makefile ++++ torcs-1.3.4/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 +--- torcs-1.3.4/src/libs/tgf/Makefile ++++ torcs-1.3.4/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.4-flags.patch b/games-sports/torcs/files/torcs-1.3.4-flags.patch new file mode 100644 index 000000000000..170303804da2 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.4-flags.patch @@ -0,0 +1,14 @@ +respect cflags + +--- torcs-1.3.4/configure.in ++++ torcs-1.3.4/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.4-no-automake.patch b/games-sports/torcs/files/torcs-1.3.4-no-automake.patch new file mode 100644 index 000000000000..7f0a921b1760 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.4-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.4/configure.in ++++ torcs-1.3.4/configure.in +@@ -15,9 +15,12 @@ + # + ############################################################################## + +-AC_INIT(Make-config.in) ++AC_INIT(torcs, 1.3.4) + AC_CONFIG_HEADERS(config.h) +-AM_INIT_AUTOMAKE(torcs, 1.3.4) ++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/torcs-1.3.4.ebuild b/games-sports/torcs/torcs-1.3.4.ebuild new file mode 100644 index 000000000000..8e4f1f7bf1e7 --- /dev/null +++ b/games-sports/torcs/torcs-1.3.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-sports/torcs/torcs-1.3.4.ebuild,v 1.1 2012/12/14 22:57:22 hasufell 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.4 + sys-libs/zlib + virtual/opengl + virtual/glu + x11-libs/libX11 + x11-libs/libXrandr + x11-libs/libXt" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-no-automake.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-flags.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() { + 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 +} |