diff options
Diffstat (limited to 'media-gfx/optipng/optipng-0.7.ebuild')
-rw-r--r-- | media-gfx/optipng/optipng-0.7.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/media-gfx/optipng/optipng-0.7.ebuild b/media-gfx/optipng/optipng-0.7.ebuild new file mode 100644 index 000000000000..626388da83a0 --- /dev/null +++ b/media-gfx/optipng/optipng-0.7.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.7.ebuild,v 1.1 2012/03/02 12:17:54 sping 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:0" +DEPEND="${RDEPEND} + sys-apps/findutils" + +src_prepare() { + rm -R src/{libpng,zlib} || die + find . -type d -name build -exec rm -R {} + || die +} + +src_configure() { + ./configure \ + -with-system-libpng \ + -with-system-zlib \ + || die "configure failed" +} + +src_compile() { + emake \ + -C src/optipng \ + CC="$(tc-getCC)" \ + GENTOO_CFLAGS="${CFLAGS}" \ + GENTOO_LDFLAGS="${LDFLAGS}" \ + || die "emake failed" +} + +src_install() { + dodoc README.txt doc/*.txt || die + dohtml doc/*.html || die + doman src/optipng/man/optipng.1 || die + + dobin src/optipng/optipng || die "dobin failed" +} |