diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2007-04-22 22:19:21 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2007-04-22 22:19:21 +0000 |
commit | 0e68de16ccbd798e4afba8b299d2619a250693d6 (patch) | |
tree | dccd96c141cc44de1464dd43f8ffadf781a271af /media-libs/freeimage/freeimage-3.9.3-r1.ebuild | |
parent | Fix minor typo in cross-compile check. (diff) | |
download | gentoo-2-0e68de16ccbd798e4afba8b299d2619a250693d6.tar.gz gentoo-2-0e68de16ccbd798e4afba8b299d2619a250693d6.tar.bz2 gentoo-2-0e68de16ccbd798e4afba8b299d2619a250693d6.zip |
Fix jpeg image loading, bug #175467
(Portage version: 2.1.2.4)
Diffstat (limited to 'media-libs/freeimage/freeimage-3.9.3-r1.ebuild')
-rw-r--r-- | media-libs/freeimage/freeimage-3.9.3-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/freeimage/freeimage-3.9.3-r1.ebuild b/media-libs/freeimage/freeimage-3.9.3-r1.ebuild new file mode 100644 index 000000000000..33b774b558f7 --- /dev/null +++ b/media-libs/freeimage/freeimage-3.9.3-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freeimage/freeimage-3.9.3-r1.ebuild,v 1.1 2007/04/22 22:19:21 nyhm Exp $ + +inherit eutils flag-o-matic 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 ~x86" +IUSE="doc" + +RDEPEND="media-libs/jpeg + media-libs/tiff + media-libs/libpng + media-libs/libmng" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${MY_PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-sys-headers.patch + edos2unix gensrclist.sh genfipsrclist.sh + sh ./gensrclist.sh || die "gensrclist failed" + sh ./genfipsrclist.sh || die "genfipsrclist failed" +} + +src_compile() { + tc-export CC CXX AR + append-flags -fno-strict-aliasing + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" LIBDIR=/usr/$(get_libdir) install \ + || die "emake install failed" + dodoc README.linux Whatsnew.txt + use doc && dodoc "${DISTDIR}"/${MY_P}.pdf +} |