# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.6.5.ebuild,v 1.5 2011/10/10 17:25:15 ssuominen Exp $ EAPI=2 inherit eutils toolchain-funcs DESCRIPTION="Compress PNG files without affecting image quality" HOMEPAGE="http://optipng.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="ZLIB" SLOT="0" KEYWORDS="~alpha amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" IUSE="" RDEPEND=">=media-libs/libpng-1.4:0" DEPEND="${RDEPEND}" src_prepare() { sed -i \ -e '/^C/s: -O2.*: $(GENTOO_CFLAGS) -Wall:' \ -e '/^LD/s: -s$: $(GENTOO_LDFLAGS):' \ src/scripts/gcc.mak.in \ lib/pngxtern/scripts/gcc.mak.in \ || die "sed failed" # FIXME if has_version "