summaryrefslogtreecommitdiff
blob: 2dfee1e429ac449af665576669b78deb8ca6eb01 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

DESCRIPTION="A fast, modern and generic image processing library"
HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="agg expat jpeg jpeg2k lcms lua openexr php perl python ruby swig tiff truetype X"

RDEPEND="agg? ( x11-libs/agg[truetype] )
	expat? ( dev-libs/expat )
	jpeg2k? ( media-libs/jasper )
	jpeg? ( media-libs/jpeg )
	lcms? ( media-libs/lcms )
	lua? ( dev-lang/lua )
	openexr? ( media-libs/openexr )
	php? ( dev-lang/php )
	perl? ( sys-devel/libperl )
	python? ( dev-lang/python )
	ruby? ( dev-lang/ruby )
	tiff? ( media-libs/tiff )
	truetype? ( >=media-libs/freetype-2 )
	X? (
		x11-libs/libXext
		x11-libs/libXt
		x11-libs/libICE
		x11-libs/libSM
	)"

DEPEND="${RDEPEND}
	swig? ( dev-lang/swig )"

src_configure() {
	# evas support is disabled since evas is not on main tree. You can find it
	# on enlightenment overlay
	# bardecode is disabled since it is protected by custom licence
	# libungif is disabled as it is not supported anymore
	myconf=" --without-libungif --without-evas \
		--without-bardecode --prefix=/usr
		$(use_with jpeg libjpeg)\
		$(use_with lua) \
		$(use_with php) \
		$(use_with ruby) \
		$(use_with python) \
		$(use_with swig) \
		$(use_with agg libagg) \
		$(use_with lcms) \
		$(use_with tiff libtiff) \
		$(use_with truetype freetype) \
		$(use_with expat) \
		$(use_with openexr) \
		$(use_with jpeg2k jasper) \
		$(use_with X x11)"
	#econf fails
	./configure ${myconf} || die "configure failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc README || die "dodoc failed"
}