blob: 4fa4f8f3ee27b993dfd5ebe62e2376b739a8bf3d (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils versionator cmake-utils
MY_PN="OpenSceneGraph"
MY_P=${MY_PN}-${PV}
MY_P_MAJOR=${MY_PN}-$(get_version_component_range 1-2)
DESCRIPTION="Open source high performance 3D graphics toolkit"
HOMEPAGE="http://www.openscenegraph.org/projects/osg/"
SRC_URI="http://www.openscenegraph.org/downloads/developer_releases/${MY_P}.zip"
LICENSE="wxWinLL-3 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="curl gif jpeg jpeg2k osgapps pdf png svg tiff truetype video_cards_radeon xine xrandr"
RDEPEND="virtual/opengl
virtual/glu
png? ( media-libs/libpng )
jpeg? ( media-libs/jpeg )
gif? ( media-libs/giflib )
tiff? ( media-libs/tiff )
truetype? ( media-libs/freetype:2 )
x11-libs/libSM
x11-libs/libXext
xrandr? ( x11-libs/libXrandr )
curl? ( net-misc/curl )
svg? ( gnome-base/librsvg )
jpeg2k? ( media-libs/jasper )
xine? ( media-libs/xine-lib )
pdf? ( >=app-text/poppler-0.12.3-r3[cairo] )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
app-arch/unzip"
S="${WORKDIR}"/${MY_P}
DOCS="AUTHORS.txt ChangeLog NEWS.txt"
src_prepare() {
epatch "${FILESDIR}"/${PN}-magicoff.patch
if use video_cards_radeon; then
( epatch "${FILESDIR}"/${PN}-mipmapping.patch )
fi
}
src_configure() {
mycmakeargs=(
$(cmake-utils_use_build osgapps OSG_APPLICATIONS)
-DENABLE_XUL=OFF
$(cmake-utils_use_enable pdf PDF)
$(cmake-utils_use_enable xine XINE)
$(cmake-utils_use_enable jpeg2k JPEG2K)
$(cmake-utils_use_enable svg SVG)
$(cmake-utils_use_enable truetype FREETYPE)
$(cmake-utils_use_enable curl CURL)
$(cmake-utils_use_enable gif GIF)
$(cmake-utils_use_enable png PNG)
$(cmake-utils_use_enable jpeg JPEG)
$(cmake-utils_use_enable tiff TIFF)
$(cmake-utils_use_enable xrandr XRANDR)
)
cmake-utils_src_configure
}
|