1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A fast, modern and generic image processing library"
8 HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
9 SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="agg expat jpeg jpeg2k lcms lua openexr php perl python ruby swig tiff truetype X"
16 RDEPEND="agg? ( x11-libs/agg[truetype] )
17 expat? ( dev-libs/expat )
18 jpeg2k? ( media-libs/jasper )
19 jpeg? ( media-libs/jpeg )
20 lcms? ( media-libs/lcms )
22 openexr? ( media-libs/openexr )
24 perl? ( sys-devel/libperl )
25 python? ( dev-lang/python )
26 ruby? ( dev-lang/ruby )
27 tiff? ( media-libs/tiff )
28 truetype? ( >=media-libs/freetype-2 )
37 swig? ( dev-lang/swig )"
40 # evas support is disabled since evas is not on main tree. You can find it
41 # on enlightenment overlay
42 # bardecode is disabled since it is protected by custom licence
43 # libungif is disabled as it is not supported anymore
44 myconf=" --without-libungif --without-evas \
45 --without-bardecode --prefix=/usr
46 $(use_with jpeg libjpeg)\
52 $(use_with agg libagg) \
54 $(use_with tiff libtiff) \
55 $(use_with truetype freetype) \
58 $(use_with jpeg2k jasper) \
61 ./configure ${myconf} || die "configure failed"
65 emake DESTDIR="${D}" install || die "emake install failed"
66 dodoc README || die "dodoc failed"