# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="convert windows icon files to png format" HOMEPAGE="http://www.mox.net/" SRC_URI="http://www.mox.net/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=media-libs/gd-2.0.0" src_compile() { # clean up the binaries shipped with the tarball rm icoconvert icoconvert.static # change the Makefile to also use the CFLAGS sed -ie 's#^FLAGS=.*$#FLAGS=\$(CFLAGS) -Wall#' Makefile || die "couldn't patch Makefile" # build it! emake || die "emake failed" } src_install() { dubin icoconvert dodoc README }