# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/gcompris/gcompris-1.1.0.ebuild,v 1.5 2002/10/20 18:38:56 vapier Exp $ S=${WORKDIR}/${P} DESCRIPTION="GCompris is a simple education game." SRC_URI="mirror://sourceforge/gcompris/${P}.tar.gz" HOMEPAGE="http://ofset.sourceforge.net/gcompris" LICENSE="GPL-2" DEPEND="gnome-libs libxml2 libgnomecanvas gdk-pixbuf gnuchess texi2html libvorbis" SLOT="1" KEYWORDS="x86" src_compile() { #configure have truble to find gnuchess so lets tell it. export GNUCHESS=/usr/games/bin/gnuchess #gcompris don't like higher O then two... export CFLAGS=${CFLAGS/-O?/-O2} export CXXFLAGS=${CXXFLAGS/-O?/-O2} #There is a bug in vorbis that make the vorbistest fail...an workaround. patch -p1 < ${FILESDIR}/gcompris-2.0.0-config-vorbis.patch ./configure --prefix=/usr \ --mandir=/usr/share/man || die emake || die } src_install() { emake DESTDIR=${D} install || die }