# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/guilib/guilib-1.1.0-r1.ebuild,v 1.12 2006/09/29 17:51:36 hd_brummy Exp $ inherit eutils toolchain-funcs MY_P="GUIlib-${PV}" DESCRIPTION="a simple widget set for SDL" SRC_URI="http://www.libsdl.org/projects/GUIlib/src/${MY_P}.tar.gz" HOMEPAGE="http://www.libsdl.org/projects/GUIlib/" SLOT="0" LICENSE="LGPL-2" KEYWORDS="x86 ppc sparc alpha ~hppa ~amd64" IUSE="" DEPEND=">=media-libs/libsdl-1.0.1" S="${WORKDIR}/${MY_P}" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}.makefile.patch epatch ${FILESDIR}/${P}-gcc-4.1.x-fix.diff } src_compile() { tc-export CC CXX LD econf || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "make install failed" dodoc CHANGES README }