diff options
Diffstat (limited to 'media-gfx/pngquant/pngquant-1.8.2.ebuild')
-rw-r--r-- | media-gfx/pngquant/pngquant-1.8.2.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-gfx/pngquant/pngquant-1.8.2.ebuild b/media-gfx/pngquant/pngquant-1.8.2.ebuild new file mode 100644 index 000000000000..2db4db147667 --- /dev/null +++ b/media-gfx/pngquant/pngquant-1.8.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/pngquant/pngquant-1.8.2.ebuild,v 1.1 2013/02/20 18:36:24 ssuominen Exp $ + +EAPI=5 +inherit toolchain-funcs + +DESCRIPTION="a command-line utility for converting 24/32-bit PNG images to paletted (8-bit) PNGs" +HOMEPAGE="http://pngquant.org/" +SRC_URI="http://pngquant.org/${P}-src.tar.bz2" + +LICENSE=pngquant +SLOT=0 +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-libs/libpng:0= + sys-libs/zlib:=" +DEPEND=${RDEPEND} + +src_prepare() { + # Failure in upstream logic. Otherwise we lose the -I and -L flags + # from Makefile. + sed -i \ + -e 's:CFLAGS ?=:CFLAGS +=:' \ + -e 's:LDFLAGS ?=:LDFLAGS +=:' \ + Makefile || die +} + +src_compile() { + tc-export CC + emake CFLAGSOPT='' +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + dodoc CHANGELOG README.md +} |