diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2014-09-02 00:53:59 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2014-09-02 00:53:59 +0000 |
commit | f85379e072116b66be5c343401619e847791e837 (patch) | |
tree | bc96f17230d1e089b99d7e6e2168c0b278db7d59 /games-sports | |
parent | Version bump. Cleanup old. (diff) | |
download | gentoo-2-f85379e072116b66be5c343401619e847791e837.tar.gz gentoo-2-f85379e072116b66be5c343401619e847791e837.tar.bz2 gentoo-2-f85379e072116b66be5c343401619e847791e837.zip |
version bump
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-sports')
-rw-r--r-- | games-sports/torcs/ChangeLog | 12 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.4-noXmuXt.patch | 4 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.6-as-needed.patch | 96 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.6-flags.patch | 14 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.6-no-automake.patch | 21 | ||||
-rw-r--r-- | games-sports/torcs/files/torcs-1.3.6-noXmuXt.patch | 15 | ||||
-rw-r--r-- | games-sports/torcs/torcs-1.3.6.ebuild | 63 |
7 files changed, 222 insertions, 3 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/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 +} |