blob: 1a460ef823b4db7b2067a618f8ab1812f980c3f4 (
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
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/simage/simage-1.7.0.ebuild,v 1.5 2011/09/15 18:47:03 ssuominen Exp $
EAPI=2
inherit base
DESCRIPTION="Image and video texturing library"
HOMEPAGE="http://www.coin3d.org/lib/simage/"
SRC_URI="ftp://ftp.coin3d.org/pub/coin/src/all/${P}.tar.gz"
LICENSE="public-domain as-is"
KEYWORDS="~amd64 ppc ~x86"
SLOT="0"
IUSE="debug gif jpeg jpeg2k png sndfile static-libs tiff vorbis zlib"
RDEPEND="
gif? ( media-libs/giflib )
jpeg? ( virtual/jpeg )
jpeg2k? ( media-libs/jasper )
png? ( media-libs/libpng:0 )
sndfile? ( media-libs/libsndfile )
tiff? ( media-libs/tiff:0 )
vorbis? (
media-libs/libogg
media-libs/libvorbis
)
zlib? ( sys-libs/zlib )
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
"
DOCS=(AUTHORS ChangeLog NEWS README)
PATCHES=(
"${FILESDIR}"/${PN}-1.7.0-pkgconfig-partial.patch
"${FILESDIR}"/${PN}-1.7.0-libpng15.patch
)
# --with-pic, two defined (PIC and one for image format, sillyt), no not pass
# --enable-qimage, broken Qt checks, unable to locate FHS-compliant Qt install
# --with-x, not used anywhere
src_configure() {
econf \
--disable-qimage \
--disable-quicktime \
--with-eps \
--with-mpeg2enc \
--with-rgb \
--with-targa \
--with-xwd \
--without-x \
$(use_with gif) \
$(use_enable debug) \
$(use_enable debug symbols) \
$(use_with jpeg) \
$(use_with jpeg2k jasper) \
$(use_with png) \
$(use_with sndfile libsndfile) \
$(use_enable static-libs static) \
$(use_with tiff) \
$(use_with vorbis oggvorbis) \
$(use_with zlib)
}
src_install() {
# Remove simage from Libs.private
sed -e '/Libs.private/s/ -lsimage//' -i simage.pc || die
base_src_install
# Remove libtool files when not needed.
use static-libs || rm -f "${D}"/usr/lib*/*.la
}
|