# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/torcs/torcs-1.0.0-r1.ebuild,v 1.9 2003/06/30 22:40:13 msterret Exp $ MY_P=TORCS-${PV} S=${WORKDIR}/${MY_P} DESCRIPTION="TORCS car simulator." SRC_URI="mirror://sourceforge/torcs/${MY_P}-all-src.tgz" HOMEPAGE="http://torcs.org" KEYWORDS="x86" SLOT="0" LICENSE="GPL-2" DEPEND=">=media-libs/plib-1.4.2 >=sys-apps/sed-4 virtual/opengl virtual/glut" src_unpack() { unpack ${A} # fix launch script and comment out modprobe lines (ewww) cd ${S}/src/tools/launcher sed -i \ -e "s|DEFAULT_RUNTIME=@prefix@/games/@PACKAGE@|DEFAULT_RUNTIME=/opt/torcs|" torcs.in \ -e "s|modprobe|# modprobe|g" torcs.in || \ die "sed torcs.in failed" } src_compile() { ./configure \ --host=${CHOST} \ --prefix=/opt/torcs \ --datadir=/opt/torcs \ --mandir=/usr/share/man || die "./configure failed" sed -i -e 's:echo:echo #:' Makefile || die "sed Makefile failed" emake || die } src_install () { make DESTDIR=${D} instdir=/opt/torcs install || die dodir /usr/bin dosym /opt/torcs/bin/torcs /usr/bin/torcs }