# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/pngcrush/pngcrush-1.6.10.ebuild,v 1.4 2008/11/30 21:32:05 dertobi123 Exp $ inherit eutils toolchain-funcs DESCRIPTION="Portable Network Graphics (PNG) optimizing utility" HOMEPAGE="http://pmt.sourceforge.net/pngcrush" SRC_URI="mirror://sourceforge/pmt/${P}-nolib.tar.bz2" LICENSE="as-is" SLOT="0" KEYWORDS="~alpha amd64 ppc x86" IUSE="" DEPEND=">=media-libs/libpng-1.2.31" S=${WORKDIR}/${P}-nolib src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-makefile_and_missing_definitions.patch } src_compile() { tc-export CC emake || die "emake failed." } src_install() { dobin ${PN} || die "dobin failed." dodoc *.txt }