Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/openscenegraph/
Date: Sun, 04 Dec 2016 00:55:46
Message-Id: 1480812932.413993ebefdabea5fd6aba0342c92e5bcd254217.monsieurp@gentoo
1 commit: 413993ebefdabea5fd6aba0342c92e5bcd254217
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 28 00:06:03 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 4 00:55:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=413993eb
7
8 dev-games/openscenegraph: Drop old.
9
10 Package-Manager: portage-2.3.0
11 Closes: https://github.com/gentoo/gentoo/pull/2681
12
13 .../openscenegraph/openscenegraph-3.5.1.ebuild | 166 ---------------------
14 1 file changed, 166 deletions(-)
15
16 diff --git a/dev-games/openscenegraph/openscenegraph-3.5.1.ebuild b/dev-games/openscenegraph/openscenegraph-3.5.1.ebuild
17 deleted file mode 100644
18 index 8d1d761..00000000
19 --- a/dev-games/openscenegraph/openscenegraph-3.5.1.ebuild
20 +++ /dev/null
21 @@ -1,166 +0,0 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=5
27 -WX_GTK_VER="3.0"
28 -
29 -inherit eutils cmake-utils flag-o-matic wxwidgets
30 -
31 -MY_PN="OpenSceneGraph"
32 -MY_P=${MY_PN}-${PV}
33 -
34 -DESCRIPTION="Open source high performance 3D graphics toolkit"
35 -HOMEPAGE="http://www.openscenegraph.org/projects/osg/"
36 -SRC_URI="http://trac.openscenegraph.org/downloads/developer_releases/${MY_P}.zip"
37 -
38 -LICENSE="wxWinLL-3 LGPL-2.1"
39 -SLOT="0/34" # Subslot consists of major + minor version number
40 -KEYWORDS="~amd64 ~x86"
41 -IUSE="asio curl debug doc examples ffmpeg fltk fox gdal gif glut gstreamer gtk jpeg
42 -jpeg2k las lua openexr openinventor osgapps pdf png qt4 qt5 sdl sdl2 svg tiff truetype
43 -vnc wxwidgets xine xrandr zlib"
44 -
45 -REQUIRED_USE="
46 - qt4? ( !qt5 )
47 - qt5? ( !qt4 )
48 - sdl2? ( sdl )
49 -"
50 -
51 -# TODO: COLLADA, FBX, GTA, ITK, OpenVRML, Performer, DCMTK
52 -RDEPEND="
53 - x11-libs/libSM
54 - x11-libs/libXext
55 - virtual/glu
56 - virtual/opengl
57 - asio? ( dev-cpp/asio )
58 - curl? ( net-misc/curl )
59 - examples? (
60 - fltk? ( x11-libs/fltk:1[opengl] )
61 - fox? ( x11-libs/fox:1.6[opengl] )
62 - glut? ( media-libs/freeglut )
63 - gtk? ( x11-libs/gtkglext )
64 - sdl2? ( media-libs/libsdl2 )
65 - wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] )
66 - )
67 - ffmpeg? ( virtual/ffmpeg )
68 - gdal? ( sci-libs/gdal )
69 - gif? ( media-libs/giflib:= )
70 - gstreamer? (
71 - media-libs/gstreamer:1.0
72 - media-libs/gst-plugins-base:1.0
73 - )
74 - jpeg? ( virtual/jpeg:0 )
75 - jpeg2k? ( media-libs/jasper:= )
76 - las? ( >=sci-geosciences/liblas-1.8.0 )
77 - lua? ( >=dev-lang/lua-5.1.5:* )
78 - openexr? (
79 - media-libs/ilmbase
80 - media-libs/openexr
81 - )
82 - openinventor? ( media-libs/coin )
83 - pdf? ( app-text/poppler[cairo] )
84 - png? ( media-libs/libpng:0= )
85 - qt4? (
86 - dev-qt/qtcore:4
87 - dev-qt/qtgui:4
88 - dev-qt/qtopengl:4
89 - )
90 - qt5? (
91 - dev-qt/qtcore:5
92 - dev-qt/qtgui:5
93 - dev-qt/qtopengl:5
94 - dev-qt/qtwidgets:5
95 - )
96 - sdl? ( media-libs/libsdl )
97 - svg? (
98 - gnome-base/librsvg
99 - x11-libs/cairo
100 - )
101 - tiff? ( media-libs/tiff:0 )
102 - truetype? ( media-libs/freetype:2 )
103 - vnc? ( net-libs/libvncserver )
104 - xine? ( media-libs/xine-lib )
105 - xrandr? ( x11-libs/libXrandr )
106 - zlib? ( sys-libs/zlib )
107 -"
108 -DEPEND="${RDEPEND}
109 - app-arch/unzip
110 - virtual/pkgconfig
111 - x11-proto/xextproto
112 - doc? ( app-doc/doxygen )
113 - xrandr? ( x11-proto/randrproto )
114 -"
115 -
116 -S=${WORKDIR}/${MY_P}
117 -
118 -DOCS=(AUTHORS.txt ChangeLog NEWS.txt)
119 -
120 -PATCHES=(
121 - "${FILESDIR}"/${PN}-3.4.0-cmake.patch
122 -)
123 -
124 -src_configure() {
125 - if use examples && use wxwidgets; then
126 - need-wxwidgets unicode
127 - fi
128 -
129 - # Needed by FFmpeg
130 - append-cppflags -D__STDC_CONSTANT_MACROS
131 -
132 - mycmakeargs=(
133 - -DDYNAMIC_OPENSCENEGRAPH=ON
134 - -DWITH_ITK=OFF
135 - -DGENTOO_DOCDIR="/usr/share/doc/${PF}"
136 - -DOPENGL_PROFILE=GL2 #GL1 GL2 GL3 GLES1 GLES3 GLES3
137 - -DOSG_PROVIDE_READFILE=ON
138 - -DOSG_USE_LOCAL_LUA_SOURCE=OFF
139 - -DWITH_Lua51=OFF # We use CMake-version FindLua.cmake instead
140 - -DWITH_Lua52=OFF
141 - $(cmake-utils_use_with asio)
142 - $(cmake-utils_use_with curl)
143 - $(cmake-utils_use_build doc DOCUMENTATION)
144 - $(cmake-utils_use_build osgapps OSG_APPLICATIONS)
145 - $(cmake-utils_use_build examples OSG_EXAMPLES)
146 - $(cmake-utils_use_with ffmpeg FFmpeg)
147 - $(cmake-utils_use_with fltk)
148 - $(cmake-utils_use_with fox)
149 - $(cmake-utils_use_with gdal)
150 - $(cmake-utils_use_with gif GIFLIB)
151 - $(cmake-utils_use_with glut)
152 - $(cmake-utils_use_with gstreamer GStreamer)
153 - $(cmake-utils_use_with gstreamer GLIB)
154 - $(cmake-utils_use_with gtk GtkGl)
155 - $(cmake-utils_use_with jpeg)
156 - $(cmake-utils_use_with jpeg2k Jasper)
157 - $(cmake-utils_use_with las LIBLAS)
158 - $(cmake-utils_use_with lua)
159 - $(cmake-utils_use_with openexr OpenEXR)
160 - $(cmake-utils_use_with openinventor Inventor)
161 - $(cmake-utils_use_with pdf Poppler-glib)
162 - $(cmake-utils_use_with png)
163 - $(cmake-utils_use_with sdl)
164 - $(cmake-utils_use_with sdl2)
165 - $(cmake-utils_use_with svg rsvg)
166 - $(cmake-utils_use_with tiff)
167 - $(cmake-utils_use_with truetype Freetype)
168 - $(cmake-utils_use_with vnc LibVNCServer)
169 - $(cmake-utils_use_with wxwidgets wxWidgets)
170 - $(cmake-utils_use_with xine)
171 - $(cmake-utils_use xrandr OSGVIEWER_USE_XRANDR)
172 - $(cmake-utils_use_with zlib)
173 - )
174 - if use qt4; then
175 - mycmakeargs+=( -DOSG_USE_QT=ON -DDESIRED_QT_VERSION=4 )
176 - elif use qt5; then
177 - mycmakeargs+=( -DOSG_USE_QT=ON -DDESIRED_QT_VERSION=5 )
178 - else
179 - mycmakeargs+=( -DOSG_USE_QT=OFF )
180 - fi
181 - cmake-utils_src_configure
182 -}
183 -
184 -src_compile() {
185 - cmake-utils_src_compile
186 - use doc && cmake-utils_src_compile doc_openscenegraph doc_openthreads
187 -}