# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="FreeImage is a library project for developers who would like to support popular graphics image formats." HOMEPAGE="http://sourceforge.net/projects/freeimage" SRC_URI="mirror://sourceforge/openil/FreeImage392.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="plus" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} cd ${WORKDIR}/${PN} epatch ${FILESDIR}/gentoo-make.patch } src_compile() { cd ${WORKDIR}/${PN} make if use plus; then make -f Makefile.fip fi } src_install() { cd ${WORKDIR}/${PN} dodoc README.* Whatsnew.txt if use plus; then dodoc Wrapper/FreeImagePlus/WhatsNew_FIP.txt fi dolib.so Dist/*.so dolib.a Dist/*.a insinto /usr/include doins Dist/*.h }