blob: 936a61ab59e810398f8c4a6d33d933fa36ee9827 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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.2 2007/05/04 16:41:55 mabi 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 ~ppc ~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
}
|