Gentoo Archives: gentoo-commits

From: "Markus Meier (maekke)" <maekke@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/blender: ChangeLog metadata.xml blender-2.47-r1.ebuild blender-2.47.ebuild
Date: Sun, 07 Sep 2008 13:34:35
Message-Id: E1KcKPQ-0004o1-T5@stork.gentoo.org
1 maekke 08/09/07 13:34:32
2
3 Modified: ChangeLog metadata.xml
4 Added: blender-2.47-r1.ebuild blender-2.47.ebuild
5 Log:
6 bump to 2.47, bug #235776
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc5 i686)
8
9 Revision Changes Path
10 1.147 media-gfx/blender/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.147&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.147&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.146&r2=1.147
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v
19 retrieving revision 1.146
20 retrieving revision 1.147
21 diff -u -r1.146 -r1.147
22 --- ChangeLog 22 Aug 2008 21:24:13 -0000 1.146
23 +++ ChangeLog 7 Sep 2008 13:34:32 -0000 1.147
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-gfx/blender
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.146 2008/08/22 21:24:13 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.147 2008/09/07 13:34:32 maekke Exp $
29 +
30 +*blender-2.47-r1 (07 Sep 2008)
31 +*blender-2.47 (07 Sep 2008)
32 +
33 + 07 Sep 2008; Markus Meier <maekke@g.o> +blender-2.47.ebuild,
34 + +blender-2.47-r1.ebuild:
35 + bump to 2.47, bug #235776
36
37 22 Aug 2008; Markus Meier <maekke@g.o> metadata.xml:
38 add GLEP 56 USE flag desc from use.local.desc
39
40
41
42 1.6 media-gfx/blender/metadata.xml
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/metadata.xml?rev=1.6&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/metadata.xml?rev=1.6&content-type=text/plain
46 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/metadata.xml?r1=1.5&r2=1.6
47
48 Index: metadata.xml
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/metadata.xml,v
51 retrieving revision 1.5
52 retrieving revision 1.6
53 diff -u -r1.5 -r1.6
54 --- metadata.xml 22 Aug 2008 21:24:13 -0000 1.5
55 +++ metadata.xml 7 Sep 2008 13:34:32 -0000 1.6
56 @@ -16,6 +16,15 @@
57 <flag name='blender-game'>
58 Adds game engine support to blender
59 </flag>
60 + <flag name='bullet'>
61 + Enable Bullet (Physics Engine)
62 + </flag>
63 + <flag name='openmp'>
64 + build support for the OpenMP (support parallel computing), requires sys-devel/gcc-4.3 built with USE="openmp"
65 + </flag>
66 + <flag name='player'>
67 + Enable blender player
68 + </flag>
69 <flag name='verse'>
70 Adds verse clustering features to blender
71 </flag>
72
73
74
75 1.1 media-gfx/blender/blender-2.47-r1.ebuild
76
77 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.47-r1.ebuild?rev=1.1&view=markup
78 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.47-r1.ebuild?rev=1.1&content-type=text/plain
79
80 Index: blender-2.47-r1.ebuild
81 ===================================================================
82 # Copyright 1999-2008 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.47-r1.ebuild,v 1.1 2008/09/07 13:34:32 maekke Exp $
85
86 inherit multilib flag-o-matic eutils python
87
88 #IUSE="jpeg mozilla png sdl static truetype"
89 IUSE="blender-game bullet ffmpeg jpeg nls openal openexr openmp
90 player png quicktime verse"
91 DESCRIPTION="3D Creation/Animation/Publishing System"
92 HOMEPAGE="http://www.blender.org/"
93 SRC_URI="http://download.blender.org/source/${P}.tar.gz"
94
95 SLOT="0"
96 LICENSE="|| ( GPL-2 BL )"
97 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
98
99 RDEPEND=">=dev-libs/openssl-0.9.6
100 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 )
101 jpeg? ( media-libs/jpeg )
102 media-libs/tiff
103 >=dev-lang/python-2.4
104 nls? ( >=media-libs/freetype-2.0
105 virtual/libintl
106 >=media-libs/ftgl-2.1 )
107 openal? ( media-libs/openal
108 media-libs/freealut )
109 openexr? ( media-libs/openexr )
110 png? ( media-libs/libpng )
111 quicktime? ( media-libs/libquicktime )
112 >=media-libs/libsdl-1.2
113 virtual/opengl"
114
115 DEPEND=">=dev-util/scons-0.98
116 x11-libs/libXt
117 x11-proto/inputproto
118 ${RDEPEND}"
119
120 blend_with() {
121 local UWORD="$2"
122 if [ -z "${UWORD}" ]; then
123 UWORD="$1"
124 fi
125 if useq $1; then
126 echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
127 >> "${S}"/user-config.py
128 else
129 echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
130 >> "${S}"/user-config.py
131 fi
132 }
133
134 src_unpack() {
135 unpack ${A}
136
137 cd "${S}"
138 epatch "${FILESDIR}"/blender-2.37-dirs.patch
139 epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch
140 epatch "${FILESDIR}"/blender-2.46-ffmpeg.patch
141 epatch "${FILESDIR}"/blender-2.46-cve-2008-1103-1.patch
142
143 if use ffmpeg ; then
144 cd "${S}"/extern
145 # rm -rf ffmpeg libmp3lame x264
146 cat <<- EOF >> "${S}"/user-config.py
147 BF_FFMPEG="/usr"
148 BF_FFMPEG_LIB="avformat avcodec swscale avutil"
149 EOF
150 fi
151 # pass compiler flags to the scons build system
152 # and set python version to current version in use
153 python_version
154 cat <<- EOF >> "${S}"/user-config.py
155 CFLAGS += '${CFLAGS}'
156 BF_PYTHON_VERSION="${PYVER}"
157 BF_PYTHON_INC="/usr/include/python${PYVER}"
158 BF_PYTHON_BINARY="/usr/bin/python${PYVER}"
159 BF_PYTHON_LIB="python${PYVER}"
160 EOF
161
162 }
163
164 src_compile() {
165 for arg in \
166 'blender-game gameengine' \
167 'bullet' \
168 'nls international' \
169 'openal' \
170 'openexr' \
171 'openmp' \
172 'player' \
173 'verse' ; do
174 blend_with ${arg}
175 done
176
177 # scons uses -l differently -> remove it
178 scons ${MAKEOPTS/-l[0-9]} || die \
179 "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
180
181 cd "${WORKDIR}"/install/linux2/plugins
182 chmod 755 bmake
183 emake || die
184 }
185
186 src_install() {
187 exeinto /usr/bin/
188 doexe "${WORKDIR}"/install/linux2/blender
189
190 dodir /usr/share/${PN}
191
192 exeinto /usr/$(get_libdir)/${PN}/textures
193 doexe "${WORKDIR}"/install/linux2/plugins/texture/*.so
194 exeinto /usr/$(get_libdir)/${PN}/sequences
195 doexe "${WORKDIR}"/install/linux2/plugins/sequence/*.so
196 insinto /usr/include/${PN}
197 doins "${WORKDIR}"/install/linux2/plugins/include/*.h
198
199 if use nls ; then
200 mv "${WORKDIR}"/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
201 "${D}"/usr/share/${PN}
202 mv "${WORKDIR}"/install/linux2/.blender/locale \
203 "${D}"/usr/share/locale
204 fi
205
206 mv "${WORKDIR}"/install/linux2/.blender/scripts "${D}"/usr/share/${PN}
207
208 insinto /usr/share/pixmaps
209 doins "${FILESDIR}"/${PN}.png
210 insinto /usr/share/applications
211 doins "${FILESDIR}"/${PN}.desktop
212
213 dodoc INSTALL README
214 dodoc "${WORKDIR}"/install/linux2/BlenderQuickStart.pdf
215 }
216
217 pkg_preinst(){
218 if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
219 then
220 rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include
221 fi
222 }
223
224
225
226 1.1 media-gfx/blender/blender-2.47.ebuild
227
228 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.47.ebuild?rev=1.1&view=markup
229 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.47.ebuild?rev=1.1&content-type=text/plain
230
231 Index: blender-2.47.ebuild
232 ===================================================================
233 # Copyright 1999-2008 Gentoo Foundation
234 # Distributed under the terms of the GNU General Public License v2
235 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.47.ebuild,v 1.1 2008/09/07 13:34:32 maekke Exp $
236
237 inherit multilib flag-o-matic eutils python
238
239 #IUSE="jpeg mozilla png sdl static truetype"
240 IUSE="blender-game bullet ffmpeg jpeg nls openal openexr openmp
241 player png quicktime verse"
242 DESCRIPTION="3D Creation/Animation/Publishing System"
243 HOMEPAGE="http://www.blender.org/"
244 SRC_URI="http://download.blender.org/source/${P}.tar.gz"
245
246 SLOT="0"
247 LICENSE="|| ( GPL-2 BL )"
248 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
249
250 RDEPEND=">=dev-libs/openssl-0.9.6
251 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20070616-r1
252 media-libs/x264 )
253 jpeg? ( media-libs/jpeg )
254 media-libs/tiff
255 >=dev-lang/python-2.4
256 nls? ( >=media-libs/freetype-2.0
257 virtual/libintl
258 >=media-libs/ftgl-2.1 )
259 openal? ( media-libs/openal
260 media-libs/freealut )
261 openexr? ( media-libs/openexr )
262 png? ( media-libs/libpng )
263 quicktime? ( media-libs/libquicktime )
264 >=media-libs/libsdl-1.2
265 virtual/opengl"
266
267 DEPEND=">=dev-util/scons-0.98
268 x11-libs/libXt
269 x11-proto/inputproto
270 ${RDEPEND}"
271
272 blend_with() {
273 local UWORD="$2"
274 if [ -z "${UWORD}" ]; then
275 UWORD="$1"
276 fi
277 if useq $1; then
278 echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
279 >> "${S}"/user-config.py
280 else
281 echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
282 >> "${S}"/user-config.py
283 fi
284 }
285
286 src_unpack() {
287 unpack ${A}
288
289 cd "${S}"
290 epatch "${FILESDIR}"/blender-2.37-dirs.patch
291 epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch
292 epatch "${FILESDIR}"/blender-2.46-cve-2008-1103-1.patch
293
294 if use ffmpeg ; then
295 cd "${S}"/extern
296 # rm -rf ffmpeg libmp3lame x264
297 cat <<- EOF >> "${S}"/user-config.py
298 BF_FFMPEG="/usr"
299 BF_FFMPEG_LIB="avformat avcodec swscale avutil"
300 EOF
301 fi
302 # pass compiler flags to the scons build system
303 # and set python version to current version in use
304 python_version
305 cat <<- EOF >> "${S}"/user-config.py
306 CFLAGS += '${CFLAGS}'
307 BF_PYTHON_VERSION="${PYVER}"
308 BF_PYTHON_INC="/usr/include/python${PYVER}"
309 BF_PYTHON_BINARY="/usr/bin/python${PYVER}"
310 BF_PYTHON_LIB="python${PYVER}"
311 EOF
312
313 }
314
315 src_compile() {
316 for arg in \
317 'blender-game gameengine' \
318 'bullet' \
319 'nls international' \
320 'openal' \
321 'openexr' \
322 'openmp' \
323 'player' \
324 'verse' ; do
325 blend_with ${arg}
326 done
327
328 # scons uses -l differently -> remove it
329 scons ${MAKEOPTS/-l[0-9]} || die \
330 "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
331
332 cd "${WORKDIR}"/install/linux2/plugins
333 chmod 755 bmake
334 emake || die
335 }
336
337 src_install() {
338 exeinto /usr/bin/
339 doexe "${WORKDIR}"/install/linux2/blender
340
341 dodir /usr/share/${PN}
342
343 exeinto /usr/$(get_libdir)/${PN}/textures
344 doexe "${WORKDIR}"/install/linux2/plugins/texture/*.so
345 exeinto /usr/$(get_libdir)/${PN}/sequences
346 doexe "${WORKDIR}"/install/linux2/plugins/sequence/*.so
347 insinto /usr/include/${PN}
348 doins "${WORKDIR}"/install/linux2/plugins/include/*.h
349
350 if use nls ; then
351 mv "${WORKDIR}"/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
352 "${D}"/usr/share/${PN}
353 mv "${WORKDIR}"/install/linux2/.blender/locale \
354 "${D}"/usr/share/locale
355 fi
356
357 mv "${WORKDIR}"/install/linux2/.blender/scripts "${D}"/usr/share/${PN}
358
359 insinto /usr/share/pixmaps
360 doins "${FILESDIR}"/${PN}.png
361 insinto /usr/share/applications
362 doins "${FILESDIR}"/${PN}.desktop
363
364 dodoc INSTALL README
365 dodoc "${WORKDIR}"/install/linux2/BlenderQuickStart.pdf
366 }
367
368 pkg_preinst(){
369 if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
370 then
371 rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include
372 fi
373 }