blob: 01635618aef09759f0aea5ff7d72e9679c96d3ff (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils flag-o-matic
MY_P=Coin3D-simage-3bd369da8f08
DESCRIPTION="Image and video texturing library"
HOMEPAGE="https://bitbucket.org/Coin3D/simage"
SRC_URI="https://dev.gentoo.org/~reavertm/${MY_P}.tar.bz2"
LICENSE="public-domain mpeg2enc"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86"
SLOT="0"
IUSE="debug gif jpeg jpeg2k png qt5 sndfile tiff vorbis"
RDEPEND="
gif? ( media-libs/giflib )
jpeg? ( virtual/jpeg:0= )
jpeg2k? ( media-libs/jasper )
png? ( media-libs/libpng:0= )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
)
sndfile? ( media-libs/libsndfile )
tiff? ( media-libs/tiff:0= )
vorbis? (
media-libs/libogg
media-libs/libvorbis
)
"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}/${PN}-1.7.1-cmake-automagic-deps.patch"
)
DOCS=(AUTHORS ChangeLog NEWS README)
src_configure() {
use debug && append-cppflags -DSIMAGE_DEBUG=1
local mycmakeargs=(
-DSIMAGE_AVIENC_SUPPORT=OFF # Windows only
-DSIMAGE_BUILD_SHARED_LIBS=ON
-DSIMAGE_CGIMAGE_SUPPORT=OFF # OS X only
-DSIMAGE_EPS_SUPPORT=ON
-DSIMAGE_GDIPLUS_SUPPORT=OFF # Windows only
-DSIMAGE_GIF_SUPPORT=$(usex gif)
-DSIMAGE_JASPER_SUPPORT=$(usex jpeg2k)
-DSIMAGE_JPEG_SUPPORT=$(usex jpeg)
-DSIMAGE_LIBSNDFILE_SUPPORT=$(usex sndfile)
-DSIMAGE_MPEG2ENC_SUPPORT=ON
-DSIMAGE_OGGVORBIS_SUPPORT=$(usex vorbis)
-DSIMAGE_PIC_SUPPORT=ON
-DSIMAGE_PNG_SUPPORT=$(usex png)
-DSIMAGE_QIMAGE_SUPPORT=$(usex qt5)
-DSIMAGE_QUICKTIME_SUPPORT=OFF # OS X only
-DSIMAGE_TIFF_SUPPORT=$(usex tiff)
-DUSE_QT5=ON
-DSIMAGE_RGB_SUPPORT=ON
-DSIMAGE_TGA_SUPPORT=ON
-DSIMAGE_XWD_SUPPORT=ON
)
cmake-utils_src_configure
}
|