1 |
sping 11/05/07 00:02:09 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: blender-2.57.ebuild |
5 |
Log: |
6 |
media-gfx/blender: Bump to 2.57 (bugs #312593, #364291) |
7 |
|
8 |
(Portage version: 2.1.9.46/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.192 media-gfx/blender/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.192&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.192&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.191&r2=1.192 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v |
20 |
retrieving revision 1.191 |
21 |
retrieving revision 1.192 |
22 |
diff -u -r1.191 -r1.192 |
23 |
--- ChangeLog 4 May 2011 22:06:26 -0000 1.191 |
24 |
+++ ChangeLog 7 May 2011 00:02:09 -0000 1.192 |
25 |
@@ -1,6 +1,16 @@ |
26 |
# ChangeLog for media-gfx/blender |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.191 2011/05/04 22:06:26 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.192 2011/05/07 00:02:09 sping Exp $ |
30 |
+ |
31 |
+*blender-2.57 (06 May 2011) |
32 |
+ |
33 |
+ 06 May 2011; Sebastian Pipping <sping@g.o> +blender-2.57.ebuild, |
34 |
+ +files/blender-2.57-CVE-2009-3850-v1.patch, +files/blender-2.57-bmake.patch, |
35 |
+ +files/blender-2.57-desktop.patch, +files/blender-2.57-doxygen.patch, |
36 |
+ +files/blender-2.57-eigen.patch, +files/blender-2.57-glew.patch, |
37 |
+ +files/blender-2.57-libav-0.7.patch, metadata.xml: |
38 |
+ Bump to version 2.57, main work by lu_zero (bug #312593) |
39 |
+ Includes patch for CVE-2009-3850 (bug #364291) |
40 |
|
41 |
04 May 2011; Thomas Kahle <tomka@g.o> blender-2.49b-r2.ebuild: |
42 |
x86 stable per bug 349847 |
43 |
|
44 |
|
45 |
|
46 |
1.10 media-gfx/blender/metadata.xml |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/metadata.xml?rev=1.10&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/metadata.xml?rev=1.10&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/metadata.xml?r1=1.9&r2=1.10 |
51 |
|
52 |
Index: metadata.xml |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/metadata.xml,v |
55 |
retrieving revision 1.9 |
56 |
retrieving revision 1.10 |
57 |
diff -u -r1.9 -r1.10 |
58 |
--- metadata.xml 17 Oct 2008 18:37:46 -0000 1.9 |
59 |
+++ metadata.xml 7 May 2011 00:02:09 -0000 1.10 |
60 |
@@ -5,22 +5,55 @@ |
61 |
|
62 |
<herd>graphics</herd> |
63 |
|
64 |
- |
65 |
<maintainer> |
66 |
<email>lu_zero@g.o</email> |
67 |
<name>Luca Barbato</name> |
68 |
</maintainer> |
69 |
|
70 |
- <longdescription>Blender, the open source software for 3D modeling, animation, rendering, post-production, interactive creation and playback. Available for Windows, Linux, Irix, Sun Solaris, FreeBSD or Mac OS X.</longdescription> |
71 |
+ <longdescription> |
72 |
+ Blender, the open source software for 3D modeling, animation, |
73 |
+ rendering, post-production, interactive creation and playback. |
74 |
+ Available for Windows, Linux, Irix, Sun Solaris, FreeBSD or Mac OS X. |
75 |
+ </longdescription> |
76 |
<use> |
77 |
<flag name='blender-game'> |
78 |
- Adds game engine support to blender |
79 |
+ Adds Game Engine support to Blender (2.4* ebuilds). |
80 |
</flag> |
81 |
- <flag name='player'> |
82 |
- Enable blender player |
83 |
+ <flag name='game-engine'> |
84 |
+ Adds Game Engine support to Blender (2.5* ebuilds). |
85 |
+ </flag> |
86 |
+ <flag name='contrib'> |
87 |
+ Install contrib scripts. |
88 |
+ </flag> |
89 |
+ <flag name='collada'> |
90 |
+ Add support for Collada interchange format. |
91 |
</flag> |
92 |
<flag name='verse'> |
93 |
- Adds verse clustering features to blender |
94 |
+ Adds verse clustering features to Blender. |
95 |
+ </flag> |
96 |
+ <flag name='dds'> |
97 |
+ Adds DDS textures support to Blender. |
98 |
+ </flag> |
99 |
+ <flag name='player'> |
100 |
+ Build the Blender Player. |
101 |
+ </flag> |
102 |
+ <flag name='elbeem'> |
103 |
+ Adds surface fluid simulation to Blender using El'Beem library. |
104 |
+ </flag> |
105 |
+ <flag name="apidoc"> |
106 |
+ Build GameEngine/Python/C API documentation directly from the source |
107 |
+ code using tools epydoc (dev-python/epydoc) and doxygen |
108 |
+ (app-doc/doxygen). |
109 |
+ </flag> |
110 |
+ <flag name="tweak-mode"> |
111 |
+ This flag allows you to model without confirming each translation, |
112 |
+ in particular it lets you grab with left mouse button (LMB) and not |
113 |
+ having to confirm by another click. Blender 'Tweak Mode' is similar |
114 |
+ to the 'Tweak Mode' of the Wings modeller (<pkg>media-gfx/wings</pkg>). |
115 |
+ </flag> |
116 |
+ <flag name="redcode"> |
117 |
+ This flag add support for RED CODE camera digital format (5K HD |
118 |
+ images *.r3d) - EXPERIMENTAL. |
119 |
</flag> |
120 |
</use> |
121 |
</pkgmetadata> |
122 |
|
123 |
|
124 |
|
125 |
1.1 media-gfx/blender/blender-2.57.ebuild |
126 |
|
127 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.57.ebuild?rev=1.1&view=markup |
128 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.57.ebuild?rev=1.1&content-type=text/plain |
129 |
|
130 |
Index: blender-2.57.ebuild |
131 |
=================================================================== |
132 |
# Copyright 1999-2011 Gentoo Foundation |
133 |
# Distributed under the terms of the GNU General Public License v2 |
134 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.57.ebuild,v 1.1 2011/05/07 00:02:09 sping Exp $ |
135 |
|
136 |
PYTHON_DEPEND="3:3.2" |
137 |
|
138 |
EAPI=3 |
139 |
|
140 |
if [[ ${PV} == *9999 ]] ; then |
141 |
SCM="subversion" |
142 |
ESVN_REPO_URI="https://svn.blender.org/svnroot/bf-blender/trunk/blender" |
143 |
fi |
144 |
|
145 |
inherit eutils python versionator flag-o-matic toolchain-funcs ${SCM} |
146 |
|
147 |
IUSE="+game-engine player +elbeem +openexr ffmpeg jpeg2k openal openmp \ |
148 |
+dds debug fftw jack apidoc sndfile lcms tweak-mode sdl sse \ |
149 |
redcode +zlib iconv contrib collada verse" |
150 |
|
151 |
# not complete/working features |
152 |
#IUSE="verse collada test" |
153 |
|
154 |
LANGS="en ar bg ca cs de el es fi fr hr it ja ko nl pl pt_BR ro ru sr sv uk zh_CN" |
155 |
for X in ${LANGS} ; do |
156 |
IUSE="${IUSE} linguas_${X}" |
157 |
done |
158 |
|
159 |
DESCRIPTION="3D Creation/Animation/Publishing System" |
160 |
HOMEPAGE="http://www.blender.org" |
161 |
if [[ ${PV} == *9999 ]] ; then |
162 |
SRC_URI="" |
163 |
elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
164 |
SRC_URI="mirror://gentoo/${P}.tar.xz" |
165 |
else # Official release |
166 |
SRC_URI="http://download.blender.org/source/${P}.tar.gz" |
167 |
fi |
168 |
|
169 |
#SLOT="$(get_version_component_range 1-2)" |
170 |
SLOT="2.5" |
171 |
LICENSE="|| ( GPL-2 BL )" |
172 |
KEYWORDS="~amd64 ~x86" |
173 |
|
174 |
RDEPEND="media-libs/jpeg |
175 |
media-libs/libpng |
176 |
x11-libs/libXi |
177 |
x11-libs/libX11 |
178 |
media-libs/tiff |
179 |
media-libs/libsamplerate |
180 |
virtual/opengl |
181 |
>=media-libs/freetype-2.0 |
182 |
virtual/libintl |
183 |
media-libs/glew |
184 |
dev-cpp/eigen:2 |
185 |
>=sci-physics/bullet-2.76 |
186 |
iconv? ( virtual/libiconv ) |
187 |
zlib? ( sys-libs/zlib ) |
188 |
sdl? ( media-libs/libsdl[audio,joystick] ) |
189 |
openexr? ( media-libs/openexr ) |
190 |
ffmpeg? ( |
191 |
virtual/ffmpeg[x264,mp3,encode,theora] |
192 |
jpeg2k? ( virtual/ffmpeg[x264,mp3,encode,theora,jpeg2k] ) |
193 |
) |
194 |
openal? ( >=media-libs/openal-1.6.372 ) |
195 |
fftw? ( sci-libs/fftw:3.0 ) |
196 |
jack? ( media-sound/jack-audio-connection-kit ) |
197 |
sndfile? ( media-libs/libsndfile ) |
198 |
lcms? ( media-libs/lcms )" |
199 |
|
200 |
DEPEND=">=dev-util/scons-0.98 |
201 |
apidoc? ( |
202 |
dev-python/sphinx |
203 |
>=app-doc/doxygen-1.5.7[-nodot] |
204 |
) |
205 |
x11-base/xorg-server |
206 |
${RDEPEND}" |
207 |
|
208 |
# configure internationalization only if LINGUAS have more |
209 |
# languages than 'en', otherwise must be disabled |
210 |
if [[ ${LINGUAS} != "en" && -n ${LINGUAS} ]]; then |
211 |
DEPEND="${DEPEND} |
212 |
sys-devel/gettext" |
213 |
fi |
214 |
|
215 |
blend_with() { |
216 |
local UWORD="$2" |
217 |
[ -z "${UWORD}" ] && UWORD="$1" |
218 |
if useq $1; then |
219 |
echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ |
220 |
>> "${S}"/user-config.py |
221 |
else |
222 |
echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ |
223 |
>> "${S}"/user-config.py |
224 |
fi |
225 |
} |
226 |
|
227 |
src_unpack() { |
228 |
if [[ ${PV} == *9999 ]] ; then |
229 |
subversion_fetch |
230 |
if use contrib; then |
231 |
S="${S}"/release/scripts/addons_contrib subversion_fetch \ |
232 |
"https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/" |
233 |
fi |
234 |
else |
235 |
unpack ${A} |
236 |
fi |
237 |
} |
238 |
|
239 |
pkg_setup() { |
240 |
enable_openmp=0 |
241 |
if use openmp; then |
242 |
if tc-has-openmp; then |
243 |
enable_openmp=1 |
244 |
else |
245 |
ewarn "You are using gcc built without 'openmp' USE." |
246 |
ewarn "Switch CXX to an OpenMP capable compiler." |
247 |
die "Need openmp" |
248 |
fi |
249 |
fi |
250 |
python_set_active_version 3 |
251 |
} |
252 |
|
253 |
src_prepare() { |
254 |
#epatch "${FILESDIR}"/${PN}-${SLOT}-CVE-2008-1103.patch |
255 |
#epatch "${FILESDIR}"/${PN}-${SLOT}-CVE-2008-4863.patch |
256 |
#epatch "${FILESDIR}"/${PN}-2.49a-sys-openjpeg.patch |
257 |
epatch "${FILESDIR}"/${P}-bmake.patch |
258 |
epatch "${FILESDIR}"/${P}-doxygen.patch |
259 |
epatch "${FILESDIR}"/${P}-libav-0.7.patch |
260 |
epatch "${FILESDIR}"/${P}-CVE-2009-3850-v1.patch |
261 |
epatch "${FILESDIR}"/${P}-desktop.patch |
262 |
|
263 |
# OpenJPEG |
264 |
einfo "Removing bundled OpenJPEG ..." |
265 |
rm -r extern/libopenjpeg |
266 |
|
267 |
# Glew |
268 |
einfo "Removing bundled Glew ..." |
269 |
rm -r extern/glew |
270 |
epatch "${FILESDIR}"/${P}-glew.patch |
271 |
|
272 |
# binreloc |
273 |
# einfo "Removing bundled binreloc ..." |
274 |
# rm -r extern/binreloc |
275 |
# epatch "${FILESDIR}"/${PN}-${SLOT}-binreloc.patch |
276 |
|
277 |
# Eigen2 |
278 |
einfo "Removing bundled Eigen2 ..." |
279 |
rm -r extern/Eigen2 |
280 |
epatch "${FILESDIR}"/${P}-eigen.patch |
281 |
|
282 |
# Bullet |
283 |
# einfo "Removing bundled Bullet2 ..." |
284 |
# rm -r extern/bullet2 |
285 |
# epatch "${FILESDIR}"/${PN}-${SLOT}-bullet.patch |
286 |
} |
287 |
|
288 |
src_configure() { |
289 |
# add system openjpeg into Scons build options. |
290 |
cat <<- EOF >> "${S}"/user-config.py |
291 |
BF_OPENJPEG="/usr" |
292 |
BF_OPENJPEG_INC="/usr/include" |
293 |
BF_OPENJPEG_LIB="openjpeg" |
294 |
EOF |
295 |
|
296 |
# FIX: littlecms includes path aren't specified |
297 |
if use lcms; then |
298 |
cat <<- EOF >> "${S}"/user-config.py |
299 |
BF_LCMS_INC="/usr/include/" |
300 |
BF_LCMS_LIB="lcms" |
301 |
BF_LCMS_LIBPATH="/usr/lib/" |
302 |
EOF |
303 |
fi |
304 |
|
305 |
# add system sci-physic/bullet into Scons build options. |
306 |
# cat <<- EOF >> "${S}"/user-config.py |
307 |
# WITH_BF_BULLET=1 |
308 |
# BF_BULLET="/usr/include" |
309 |
# BF_BULLET_INC="/usr/include /usr/include/BulletCollision /usr/include/BulletDynamics /usr/include/LinearMath /usr/include/BulletSoftBody" |
310 |
# BF_BULLET_LIB="BulletSoftBody BulletDynamics BulletCollision LinearMath" |
311 |
# EOF |
312 |
|
313 |
#add iconv into Scons build options. |
314 |
if use !elibc_glibc && use !elibc_uclibc && use iconv; then |
315 |
cat <<- EOF >> "${S}"/user-config.py |
316 |
WITH_BF_ICONV=1 |
317 |
BF_ICONV="/usr" |
318 |
EOF |
319 |
fi |
320 |
|
321 |
# configure internationalization only if LINGUAS have more |
322 |
# languages than 'en', otherwise must be disabled |
323 |
[[ -z ${LINGUAS} ]] || [[ ${LINGUAS} == "en" ]] && echo "WITH_BF_INTERNATIONAL=0" >> "${S}"/user-config.py |
324 |
|
325 |
# configure Elbeem fluid system |
326 |
use elbeem || echo "BF_NO_ELBEEM=1" >> "${S}"/user-config.py |
327 |
|
328 |
# configure Tweak Mode |
329 |
use tweak-mode && echo "BF_TWEAK_MODE=1" >> "${S}"/user-config.py |
330 |
|
331 |
# FIX: Game Engine module needs to be active to build the Blender Player |
332 |
if ! use game-engine && use player; then |
333 |
elog "Forcing Game Engine [+game-engine] as required by Blender Player [+player]" |
334 |
echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py |
335 |
else |
336 |
blend_with game-engine gameengine |
337 |
fi |
338 |
|
339 |
# set CFLAGS used in /etc/make.conf correctly |
340 |
echo "CFLAGS=[`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ |
341 |
| sed -e "s:,]: ]:" >> "${S}"/user-config.py |
342 |
|
343 |
# set CXXFLAGS used in /etc/make.conf correctly |
344 |
local FILTERED_CXXFLAGS="`for i in ${CXXFLAGS[@]}; do printf "%s \'$i"\',; done`" |
345 |
echo "CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py |
346 |
echo "BGE_CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py |
347 |
|
348 |
# reset general options passed to the C/C++ compilers (useless hardcoded flags) |
349 |
# FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu |
350 |
# shadows, see bug #276338 for reference |
351 |
echo "CCFLAGS= ['-funsigned-char', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']" >> "${S}"/user-config.py |
352 |
|
353 |
# set LDFLAGS used in /etc/make.conf correctly |
354 |
local FILTERED_LDFLAGS="`for i in ${LDFLAGS[@]}; do printf "%s \'$i"\',; done`" |
355 |
echo "LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py |
356 |
echo "PLATFORM_LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py |
357 |
|
358 |
# reset REL_* variables (useless hardcoded flags) |
359 |
cat <<- EOF >> "${S}"/user-config.py |
360 |
REL_CFLAGS=[] |
361 |
REL_CXXFLAGS=[] |
362 |
REL_CCFLAGS=[] |
363 |
EOF |
364 |
|
365 |
# reset warning flags (useless for NON blender developers) |
366 |
cat <<- EOF >> "${S}"/user-config.py |
367 |
C_WARN =[ '-w', '-g0' ] |
368 |
CC_WARN =[ '-w', '-g0' ] |
369 |
CXX_WARN=[ '-w', '-g0' ] |
370 |
EOF |
371 |
|
372 |
# detecting -j value from MAKEOPTS |
373 |
local NUMJOBS="$( echo "${MAKEOPTS}" | sed -ne 's,.*-j\([[:digit:]]\+\).*,\1,p' )" |
374 |
[[ -z "${NUMJOBS}" ]] && NUMJOBS=1 # resetting to -j1 for empty MAKEOPTS |
375 |
|
376 |
# generic settings which differ from the defaults from linux2-config.py |
377 |
cat <<- EOF >> "${S}"/user-config.py |
378 |
BF_OPENGL_LIB='GL GLU X11 Xi GLEW' |
379 |
BF_INSTALLDIR="../install" |
380 |
WITHOUT_BF_PYTHON_INSTALL=1 |
381 |
BF_PYTHON="/usr" |
382 |
BF_PYTHON_VERSION="3.2" |
383 |
BF_PYTHON_ABI_FLAGS="" |
384 |
BF_BUILDINFO=0 |
385 |
BF_QUIET=1 |
386 |
BF_NUMJOBS=${NUMJOBS} |
387 |
BF_LINE_OVERWRITE=0 |
388 |
WITH_BF_FHS=1 |
389 |
WITH_BF_BINRELOC=0 |
390 |
WITH_BF_STATICOPENGL=0 |
391 |
WITH_BF_OPENMP=${enable_openmp} |
392 |
EOF |
393 |
|
394 |
# configure WITH_BF* Scons build options |
395 |
for arg in \ |
396 |
'sdl' \ |
397 |
'apidoc docs' \ |
398 |
'lcms' \ |
399 |
'jack' \ |
400 |
'sndfile' \ |
401 |
'openexr' \ |
402 |
'dds' \ |
403 |
'fftw fftw3' \ |
404 |
'jpeg2k openjpeg' \ |
405 |
'openal'\ |
406 |
'ffmpeg' \ |
407 |
'ffmpeg ogg' \ |
408 |
'player' \ |
409 |
'collada' \ |
410 |
'sse rayoptimization' \ |
411 |
'redcode' \ |
412 |
'zlib' \ |
413 |
'verse' ; do |
414 |
blend_with ${arg} |
415 |
done |
416 |
|
417 |
# enable debugging/testing support |
418 |
use debug && echo "BF_DEBUG=1" >> "${S}"/user-config.py |
419 |
use test && echo "BF_UNIT_TEST=1" >> "${S}"/user-config.py |
420 |
} |
421 |
|
422 |
src_compile() { |
423 |
scons || die \ |
424 |
'!!! Please add "${S}/scons.config" when filing bugs reports \ |
425 |
to bugs.gentoo.org' |
426 |
|
427 |
einfo "Building plugins ..." |
428 |
cd "${WORKDIR}"/install/${PV}/plugins/ \ |
429 |
|| die "dir ${WORKDIR}/install/plugins/ do not exist" |
430 |
chmod 755 bmake |
431 |
|
432 |
# FIX: plugins are built without respecting user's LDFLAGS |
433 |
emake \ |
434 |
CFLAGS="${CFLAGS} -fPIC" \ |
435 |
LDFLAGS="$(raw-ldflags) -Bshareable" \ |
436 |
> /dev/null \ |
437 |
|| die "plugins compilation failed" |
438 |
|
439 |
# final cleanup |
440 |
rm -r "${WORKDIR}"/install/{Python-license.txt,icons,GPL-license.txt,copyright.txt} |
441 |
|
442 |
} |
443 |
|
444 |
src_install() { |
445 |
# creating binary wrapper |
446 |
cat <<- EOF >> "${WORKDIR}/install/blender-${SLOT}" |
447 |
#!/bin/sh |
448 |
|
449 |
# stop this script if the local blender path is a symlink |
450 |
if [ -L \${HOME}/.blender ]; then |
451 |
echo "Detected a symbolic link for \${HOME}/.blender" |
452 |
echo "Sorry, to avoid dangerous situations, the Blender binary can" |
453 |
echo "not be started until you have removed the symbolic link:" |
454 |
echo " # rm -i \${HOME}/.blender" |
455 |
exit 1 |
456 |
fi |
457 |
|
458 |
export BLENDER_SYSTEM_SCRIPTS="/usr/share/blender/${SLOT}/scripts" |
459 |
export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${SLOT}/datafiles" |
460 |
exec /usr/bin/blender-bin-${SLOT} \$* |
461 |
EOF |
462 |
|
463 |
# install binaries |
464 |
exeinto /usr/bin/ |
465 |
cp "${WORKDIR}/install/blender" "${WORKDIR}/install/blender-bin-${SLOT}" |
466 |
doexe "${WORKDIR}/install/blender-bin-${SLOT}" |
467 |
doexe "${WORKDIR}/install/blender-${SLOT}" |
468 |
if use player; then |
469 |
cp "${WORKDIR}/install/blenderplayer" \ |
470 |
"${WORKDIR}/install/blenderplayer-${SLOT}" |
471 |
doexe "${WORKDIR}/install/blenderplayer-${SLOT}" |
472 |
fi |
473 |
if use verse; then |
474 |
cp "${WORKDIR}"/install/bin/verse_server \ |
475 |
"${WORKDIR}/install/bin/verse_server-${SLOT}" |
476 |
doexe "${WORKDIR}"/install/bin/verse_server-${SLOT} |
477 |
fi |
478 |
|
479 |
# install plugins |
480 |
exeinto /usr/share/${PN}/${SLOT}/textures |
481 |
doexe "${WORKDIR}"/install/${PV}/plugins/texture/*.so |
482 |
exeinto /usr/share/${PN}/${SLOT}/sequences |
483 |
doexe "${WORKDIR}"/install/${PV}/plugins/sequence/*.so |
484 |
insinto /usr/include/${PN}/${SLOT} |
485 |
doins "${WORKDIR}"/install/${PV}/plugins/include/*.h |
486 |
# rm -r "${WORKDIR}"/install/${PV}/plugins || die |
487 |
|
488 |
# install desktop file |
489 |
insinto /usr/share/pixmaps |
490 |
cp release/freedesktop/icons/scalable/blender.svg \ |
491 |
release/freedesktop/icons/scalable/blender-${SLOT}.svg |
492 |
doins release/freedesktop/icons/scalable/blender-${SLOT}.svg |
493 |
insinto /usr/share/applications |
494 |
cp release/freedesktop/blender.desktop \ |
495 |
release/freedesktop/blender-${SLOT}.desktop |
496 |
doins release/freedesktop/blender-${SLOT}.desktop |
497 |
|
498 |
# install docs |
499 |
# use doc && dodoc release/text/BlenderQuickStart.pdf |
500 |
if use apidoc; then |
501 |
|
502 |
einfo "Generating (BGE) Blender Game Engine API docs ..." |
503 |
docinto "API/BGE_API" |
504 |
dohtml -r "${WORKDIR}"/blender/doc/* |
505 |
# rm -r "${WORKDIR}"/blender/doc |
506 |
|
507 |
# einfo "Generating (BPY) Blender Python API docs ..." |
508 |
# epydoc source/blender/python/doc/*.py -v \ |
509 |
# -o doc/BPY_API \ |
510 |
# --quiet --quiet --quiet \ |
511 |
# --simple-term \ |
512 |
# --inheritance=included \ |
513 |
# --graph=all \ |
514 |
# --dotpath /usr/bin/dot \ |
515 |
# || die "epydoc failed." |
516 |
# docinto "API/python" |
517 |
# dohtml -r doc/BPY_API/* |
518 |
|
519 |
einfo "Generating Blender C/C++ API docs ..." |
520 |
pushd "${WORKDIR}"/blender/doc/doxygen > /dev/null |
521 |
doxygen -u Doxyfile |
522 |
doxygen || die "doxygen failed to build API docs." |
523 |
docinto "API/blender" |
524 |
dohtml -r html/* |
525 |
popd > /dev/null |
526 |
fi |
527 |
|
528 |
# installing blender |
529 |
insinto /usr/share/${PN}/${SLOT} |
530 |
doins -r "${WORKDIR}"/install/${PV}/* |
531 |
# doins -r "${WORKDIR}"/install/${SLOT}/* |
532 |
|
533 |
# FIX: making all python scripts readable only by group 'users', |
534 |
# so nobody can modify scripts apart root user, but python |
535 |
# cache (*.pyc) can be written and shared across the users. |
536 |
# chown root:users -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die |
537 |
# chmod 750 -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die |
538 |
} |
539 |
|
540 |
pkg_preinst() { |
541 |
if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; |
542 |
then |
543 |
rm -r "${ROOT}"/usr/$(get_libdir)/blender/plugins/include |
544 |
fi |
545 |
} |
546 |
|
547 |
pkg_postinst() { |
548 |
echo |
549 |
elog "Blender uses python integration. As such, may have some" |
550 |
elog "inherit risks with running unknown python scripting." |
551 |
elog |
552 |
# elog "CVE-2008-1103-1.patch has been removed as it interferes" |
553 |
# elog "with autosave undo features. Up stream blender coders" |
554 |
# elog "have not addressed the CVE issue as the status is still" |
555 |
# elog "a CANDIDATE and not CONFIRMED." |
556 |
# elog |
557 |
# elog "CVE-2008-4863.patch has been remove as it interferes" |
558 |
# elog "with the load of bpy_ops.py and all the UI python" |
559 |
# elog "scripts." |
560 |
# elog |
561 |
elog "It is recommended to change your blender temp directory" |
562 |
elog "from /tmp to /home/user/tmp or another tmp file under your" |
563 |
elog "home directory. This can be done by starting blender, then" |
564 |
elog "dragging the main menu down do display all paths." |
565 |
elog |
566 |
elog "Blender has its own internal rendering engine but you" |
567 |
elog "can export to external renderers for image computation" |
568 |
elog "like: YafRay[1], sunflow[2], PovRay[3] and luxrender[4]" |
569 |
elog |
570 |
elog "If you need one of them just emerge it:" |
571 |
elog " [1] emerge -av media-gfx/yafray" |
572 |
elog " [2] emerge -av media-gfx/sunflow" |
573 |
elog " [3] emerge -av media-gfx/povray" |
574 |
elog " [4] emerge -av media-gfx/luxrender" |
575 |
elog |
576 |
elog "When setting the Blender paths with the User Preferences" |
577 |
elog "dialog box, remember to NOT declare your home's paths as:" |
578 |
elog "~/.blender, but as: /home/user/.blender; in other words," |
579 |
elog "DO NOT USE the tilde inside the paths, as Blender is not" |
580 |
elog "able to handle it, ignoring your customizations." |
581 |
} |