# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/allegttf/allegttf-2.0.ebuild,v 1.10 2005/04/16 21:07:09 mr_bones_ Exp $ DESCRIPTION="Anti-aliased text output and font loading routines for Allegro" HOMEPAGE="http://huizen.dds.nl/~deleveld/allegttf.htm" SRC_URI="http://huizen.dds.nl/~deleveld/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="ppc x86" IUSE="" DEPEND=">=media-libs/allegro-4.0.0" src_unpack() { unpack ${A} sed -i \ -e 's/make/$(MAKE)/' "${S}/Makefile" \ || die "sed failed" } src_compile() { emake || die "emake failed" emake examples || die "emake failed (examples)" } src_install() { cd ${S}/source # hardcoded install paths in makefile sed -i \ -e s/'\/usr\/local'/'${D}\/usr'/ makefile.lnx \ || die "sed failed" cd ${S} dodir /usr/include /usr/lib make install || die "make install failed" dodoc docs/*.txt *.txt || die "dodoc failed" dohtml docs/allegttf.htm || die "dohtml failed" insinto /usr/share/doc/${PF}/examples doins examples/* || die "doins failed" }