diff options
Diffstat (limited to 'media-libs/freeimage/freeimage-3.11.0.ebuild')
-rw-r--r-- | media-libs/freeimage/freeimage-3.11.0.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/media-libs/freeimage/freeimage-3.11.0.ebuild b/media-libs/freeimage/freeimage-3.11.0.ebuild new file mode 100644 index 000000000000..27e85875f19b --- /dev/null +++ b/media-libs/freeimage/freeimage-3.11.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freeimage/freeimage-3.11.0.ebuild,v 1.1 2008/09/02 00:12:06 nyhm Exp $ + +inherit toolchain-funcs multilib + +MY_PN=FreeImage +MY_P=${MY_PN}${PV//.} +DESCRIPTION="Image library supporting many formats" +HOMEPAGE="http://freeimage.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip + doc? ( mirror://sourceforge/${PN}/${MY_P}.pdf )" + +LICENSE="|| ( GPL-2 FIPL-1.0 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S=${WORKDIR}/${MY_PN} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e "/^CC =/s:gcc:$(tc-getCC) ${CFLAGS} -Wall:" \ + -e "/^CXX =/s:g++:$(tc-getCXX) ${CXXFLAGS} -Wall:" \ + -e "/^AR = /s:ar:$(tc-getAR):" \ + -e "/^INCDIR = /s:/usr/include:${D}/usr/include:" \ + -e "/^INSTALLDIR = /s:/usr/lib:${D}/usr/$(get_libdir):" \ + -e '/^COMPILERFLAGS =/s:-O3::' \ + -e "/\$(CC) -s /s: -s : ${LDFLAGS} :" \ + Makefile.gnu \ + || die "sed failed" +} + +src_install() { + dodir /usr/include /usr/$(get_libdir) + emake install || die "emake install failed" + dodoc README.linux Whatsnew.txt + use doc && dodoc "${DISTDIR}"/${MY_P}.pdf +} |