# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils DESCRIPTION="SampleICC provides an open source platform independent C++ library for reading, writing, manipulating, and applying ICC profiles along with applications that make use of this library." HOMEPAGE="http://sampleicc.sourceforge.net/" SRC_URI="mirror://sourceforge/sampleicc/SampleICC-${PV}.zip" LICENSE="public-domain" SLOT="0" KEYWORDS="x86" S="${WORKDIR}/SampleICC-${PV}" src_unpack() { unpack ${A} cd "${WORKDIR}" epatch ${FILESDIR}/${P}-fix-makefiles.diff epatch ${FILESDIR}/${P}-fix-configure.ac.diff epatch ${FILESDIR}/${P}-fix-iccv4tompe-sources.diff epatch ${FILESDIR}/${P}-fix-stubs.diff cd "${S}" mv Contrib/ICC_utils/vetters.h Contrib/ICC_utils/Vetters.h # somewhy it is not replaced by eautoreconf rm -f configure eautoreconf } src_compile() { econf || die emake || die "emake failed" } src_install() { emake \ DESTDIR="${D}" \ BINDIR="${D}"/usr/bin \ install || die "make install failed" dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README* }