# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="Converts Mac OSX .icns files to .png files" HOMEPAGE="http://www.eisbox.net/dev/icns2png/" SRC_URI="http://www.eisbox.net/software/${P}.src.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="sys-libs/zlib media-libs/libpng" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd "${S}" sed -i -r -e '/^CFLAGS/d; /^LDFLAGS/d; /^CC=/d ' \ Makefile } src_compile() { emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS} -lpng12 -lz -lm" CFLAGS="${CFLAGS}"||die } src_install() { dodir /usr/bin emake prefix="${D}/usr/" install || die "emake install failed" dodoc README AUTHORS } src_test() { make test }