# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils flag-o-matic libtool MY_P="${P/sdl-/SDL_}" DESCRIPTION="Stretch and blit routines for SDL surfaces" HOMEPAGE="http://${PN}.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="media-libs/libsdl" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-invalid-lvalue-in-increment.patch || die "" eautoreconf elibtoolize } src_compile() { econf --disable-dependency-tracking || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dohtml -r doc/* }