1 |
lu_zero 09/07/02 18:37:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: blender-2.49a.ebuild |
5 |
Log: |
6 |
New version with many improvements thanks to Michael Buss <michael.buss@×××××××.net>, Hans Nieser <h.nieser@××××××.nl> and the many others that contributed in the bug #272861 |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.174 media-gfx/blender/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.174&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.174&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.173&r2=1.174 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v |
19 |
retrieving revision 1.173 |
20 |
retrieving revision 1.174 |
21 |
diff -u -r1.173 -r1.174 |
22 |
--- ChangeLog 29 Apr 2009 12:25:13 -0000 1.173 |
23 |
+++ ChangeLog 2 Jul 2009 18:37:16 -0000 1.174 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for media-gfx/blender |
26 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.173 2009/04/29 12:25:13 ssuominen Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.174 2009/07/02 18:37:16 lu_zero Exp $ |
29 |
+ |
30 |
+*blender-2.49a (02 Jul 2009) |
31 |
+ |
32 |
+ 02 Jul 2009; Luca Barbato <lu_zero@g.o> |
33 |
+ +files/blender-2.49a-sys-openjpeg.patch, +blender-2.49a.ebuild: |
34 |
+ New version with many improvements thanks to Michael Buss |
35 |
+ <michael.buss@×××××××.net>, Hans Nieser <h.nieser@××××××.nl> and the many |
36 |
+ others that contributed in the bug #272861 |
37 |
|
38 |
15 Apr 2009; Markus Meier <maekke@g.o> blender-2.48a-r3.ebuild: |
39 |
make sure that libsdl is built with joystick with USE=blender-game by R Stephan |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-gfx/blender/blender-2.49a.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.49a.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.49a.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: blender-2.49a.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.49a.ebuild,v 1.1 2009/07/02 18:37:16 lu_zero Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
inherit multilib eutils python |
57 |
|
58 |
IUSE="blender-game ffmpeg nls ogg openmp verse openal" |
59 |
|
60 |
DESCRIPTION="3D Creation/Animation/Publishing System" |
61 |
HOMEPAGE="http://www.blender.org/" |
62 |
SRC_URI="http://download.blender.org/source/${P}.tar.gz" |
63 |
|
64 |
SLOT="0" |
65 |
LICENSE="|| ( GPL-2 BL BSD )" |
66 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
|
68 |
RDEPEND="ffmpeg? ( >=media-video/ffmpeg-0.5 ) |
69 |
media-libs/jpeg |
70 |
media-libs/openjpeg |
71 |
media-libs/tiff |
72 |
>=dev-lang/python-2.5 |
73 |
nls? ( >=media-libs/freetype-2.0 |
74 |
virtual/libintl |
75 |
>=media-libs/ftgl-2.1 ) |
76 |
openal? ( >=media-libs/openal-1.6.372 ) |
77 |
>=media-libs/freealut-1.1.0-r1 |
78 |
media-libs/openexr |
79 |
media-libs/libpng |
80 |
blender-game? ( >=media-libs/libsdl-1.2[joystick] ) |
81 |
>=media-libs/libsdl-1.2 |
82 |
ogg? ( media-libs/libogg ) |
83 |
virtual/opengl" |
84 |
|
85 |
DEPEND=">=dev-util/scons-0.98 |
86 |
sys-devel/gcc[openmp?] |
87 |
x11-base/xorg-server |
88 |
${RDEPEND}" |
89 |
|
90 |
blend_with() { |
91 |
local UWORD="$2" |
92 |
if [ -z "${UWORD}" ]; then |
93 |
UWORD="$1" |
94 |
fi |
95 |
if useq $1; then |
96 |
echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \ |
97 |
>> "${S}"/user-config.py |
98 |
else |
99 |
echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \ |
100 |
>> "${S}"/user-config.py |
101 |
fi |
102 |
} |
103 |
|
104 |
src_prepare() { |
105 |
epatch "${FILESDIR}"/blender-2.48a-CVE-2008-4863.patch |
106 |
epatch "${FILESDIR}"/${PN}-2.37-dirs.patch |
107 |
epatch "${FILESDIR}"/${PN}-2.44-scriptsdir.patch |
108 |
epatch "${FILESDIR}"/${PN}-2.49a-sys-openjpeg.patch |
109 |
rm -f "${S}/release/scripts/bpymodules/"*.pyc |
110 |
} |
111 |
|
112 |
src_configure() { |
113 |
|
114 |
# add ffmpeg info to the scons build info |
115 |
cat <<- EOF >> "${S}"/user-config.py |
116 |
BF_FFMPEG="/usr" |
117 |
BF_FFMPEG_LIB="avdevice avformat avcodec swscale avutil" |
118 |
EOF |
119 |
|
120 |
# set python version to current version in use |
121 |
python_version |
122 |
cat <<- EOF >> "${S}"/user-config.py |
123 |
BF_PYTHON_VERSION="${PYVER}" |
124 |
BF_PYTHON_INC="/usr/include/python${PYVER}" |
125 |
BF_PYTHON_BINARY="/usr/bin/python${PYVER}" |
126 |
BF_PYTHON_LIB="python${PYVER}" |
127 |
EOF |
128 |
|
129 |
# add system openjpeg into scons build. |
130 |
cat <<- EOF >> "${S}"/user-config.py |
131 |
BF_OPENJPEG = "/usr" |
132 |
BF_OPENJPEG_INC = "/usr/include" |
133 |
BF_OPENJPEG_LIB = "openjpeg" |
134 |
EOF |
135 |
|
136 |
|
137 |
#set CFLAGS used in /etc/make.conf correctly |
138 |
|
139 |
echo "CFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ |
140 |
| sed -e "s:,]: ]:" >> "${S}"/user-config.py |
141 |
|
142 |
echo "CXXFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`]" \ |
143 |
| sed -e "s:,]: ]:" >> "${S}"/user-config.py |
144 |
|
145 |
|
146 |
# check for blender-game USE flag. |
147 |
# blender-game will merge with blenderplayer. |
148 |
|
149 |
for arg in \ |
150 |
'openal'\ |
151 |
'ffmpeg' \ |
152 |
'blender-game player' \ |
153 |
'blender-game gameengine' \ |
154 |
'nls international' \ |
155 |
'ogg' \ |
156 |
'openmp' \ |
157 |
'verse' ; do |
158 |
blend_with ${arg} |
159 |
done |
160 |
} |
161 |
|
162 |
src_compile() { |
163 |
# scons uses -l differently -> remove it |
164 |
scons ${MAKEOPTS/-l[0-9]} || die \ |
165 |
'!!! Please add "${S}/scons.config" when filing bugs reports \ |
166 |
to bugs.gentoo.org' |
167 |
|
168 |
cd "${WORKDIR}"/install/linux2/plugins |
169 |
chmod 755 bmake |
170 |
emake || die |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
exeinto /usr/bin/ |
175 |
doexe "${WORKDIR}"/install/linux2/blender |
176 |
use blender-game && doexe "${WORKDIR}"/install/linux2/blenderplayer |
177 |
|
178 |
dodir /usr/share/${PN} |
179 |
|
180 |
exeinto /usr/$(get_libdir)/${PN}/textures |
181 |
doexe "${WORKDIR}"/install/linux2/plugins/texture/*.so |
182 |
exeinto /usr/$(get_libdir)/${PN}/sequences |
183 |
doexe "${WORKDIR}"/install/linux2/plugins/sequence/*.so |
184 |
insinto /usr/include/${PN} |
185 |
doins "${WORKDIR}"/install/linux2/plugins/include/*.h |
186 |
|
187 |
if use nls ; then |
188 |
mv "${WORKDIR}"/install/linux2/.blender/{.Blanguages,.bfont.ttf} \ |
189 |
"${D}"/usr/share/${PN} |
190 |
mv "${WORKDIR}"/install/linux2/.blender/locale \ |
191 |
"${D}"/usr/share/locale |
192 |
fi |
193 |
|
194 |
mv "${WORKDIR}"/install/linux2/.blender/scripts "${D}"/usr/share/${PN} |
195 |
|
196 |
insinto /usr/share/pixmaps |
197 |
doins "${WORKDIR}"/install/linux2/icons/scalable/blender.svg |
198 |
insinto /usr/share/applications |
199 |
doins "${FILESDIR}"/${PN}.desktop |
200 |
|
201 |
dodoc INSTALL README |
202 |
dodoc "${WORKDIR}"/install/linux2/BlenderQuickStart.pdf |
203 |
|
204 |
} |
205 |
|
206 |
pkg_preinst(){ |
207 |
if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; |
208 |
then |
209 |
rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include |
210 |
fi |
211 |
} |
212 |
|
213 |
pkg_postinst(){ |
214 |
elog "blender uses python integration. As such, may have some" |
215 |
elog "inherit risks with running unknown python scripting." |
216 |
elog " " |
217 |
elog "CVE-2008-1103-1.patch has been removed as it interferes" |
218 |
elog "with autosave undo features. Up stream blender coders" |
219 |
elog "have not addressed the CVE issue as the status is still" |
220 |
elog "a CANDIDATE and not CONFIRMED." |
221 |
elog " " |
222 |
elog "It is recommended to change your blender temp directory" |
223 |
elog "from /tmp to ~tmp or another tmp file under your home" |
224 |
elog "directory. This can be done by starting blender, then" |
225 |
elog "dragging the main menu down do display all paths." |
226 |
} |