Gentoo Archives: gentoo-commits

From: "Luca Barbato (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/blender: ChangeLog blender-2.44-r1.ebuild
Date: Wed, 19 Sep 2007 07:40:11
Message-Id: E1IXu2n-00064O-Qo@stork.gentoo.org
1 lu_zero 07/09/19 07:32:21
2
3 Modified: ChangeLog
4 Added: blender-2.44-r1.ebuild
5 Log:
6 complete the fix for ffmpeg
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.121 media-gfx/blender/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.121&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?rev=1.121&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/ChangeLog?r1=1.120&r2=1.121
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v
19 retrieving revision 1.120
20 retrieving revision 1.121
21 diff -u -r1.120 -r1.121
22 --- ChangeLog 30 Aug 2007 16:58:53 -0000 1.120
23 +++ ChangeLog 19 Sep 2007 07:32:21 -0000 1.121
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-gfx/blender
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.120 2007/08/30 16:58:53 voyageur Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.121 2007/09/19 07:32:21 lu_zero Exp $
29 +
30 +*blender-2.44-r1 (19 Sep 2007)
31 +
32 + 19 Sep 2007; Luca Barbato <lu_zero@g.o>
33 + files/blender-2.44-swscale.patch, +blender-2.44-r1.ebuild:
34 + Patch update and ebuild fixes by Martin Capitanio <gentoo-bug@×××××××××.org>
35
36 30 Aug 2007; Bernard Cafarelli <voyageur@g.o> blender-2.44.ebuild:
37 Compilation fix for python versions other than 2.4, closes bug #152700
38
39
40
41 1.1 media-gfx/blender/blender-2.44-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.44-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/blender/blender-2.44-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: blender-2.44-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.44-r1.ebuild,v 1.1 2007/09/19 07:32:21 lu_zero Exp $
51
52 inherit multilib flag-o-matic eutils python
53
54 #IUSE="jpeg mozilla png sdl static truetype"
55 IUSE="blender-game ffmpeg jpeg nls openal openexr png sdl verse"
56 FFMPEG_SNAP="0.4.9-p20070330"
57 DESCRIPTION="3D Creation/Animation/Publishing System"
58 HOMEPAGE="http://www.blender.org/"
59 SRC_URI="http://download.blender.org/source/${P}.tar.gz"
60
61 SLOT="0"
62 LICENSE="|| ( GPL-2 BL )"
63 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
64
65 RDEPEND=">=dev-libs/openssl-0.9.6
66 ffmpeg? ( >=media-video/ffmpeg-${FFMPEG_SNAP/-/_}
67 >=media-libs/x264-svn-20061014 )
68 jpeg? ( media-libs/jpeg )
69 media-libs/tiff
70 >=dev-lang/python-2.4
71 nls? ( >=media-libs/freetype-2.0
72 virtual/libintl
73 >=media-libs/ftgl-2.1 )
74 openal? ( media-libs/openal
75 media-libs/freealut )
76 openexr? ( media-libs/openexr )
77 png? ( media-libs/libpng )
78 sdl? ( >=media-libs/libsdl-1.2 )
79 virtual/opengl"
80
81 DEPEND="dev-util/scons
82 x11-libs/libXt
83 ${RDEPEND}"
84
85 blend_with() {
86 local UWORD="$2"
87 if [ -z "${UWORD}" ]; then
88 UWORD="$1"
89 fi
90 if useq $1; then
91 echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
92 >> ${S}/user-config.py
93 else
94 echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
95 >> ${S}/user-config.py
96 fi
97 }
98
99 src_unpack() {
100 unpack ${A}
101 cd ${S}/release/plugins
102 chmod 755 bmake
103 cp -pPR ${S}/source/blender/blenpluginapi include
104
105 cd ${S}
106 epatch ${FILESDIR}/blender-2.37-dirs.patch
107 epatch ${FILESDIR}/blender-2.44-scriptsdir.patch
108 epatch ${FILESDIR}/blender-2.44-swscale.patch
109
110 if use ffmpeg ; then
111 cd ${S}/extern
112 rm -rf ffmpeg
113 fi
114 # pass compiler flags to the scons build system
115 # and set python version to current version in use
116 python_version
117 cat <<- EOF >> ${S}/user-config.py
118 CFLAGS += '${CFLAGS}'
119 BF_PYTHON_VERSION="${PYVER}"
120 BF_PYTHON_INC="/usr/include/python${PYVER}"
121 BF_PYTHON_BINARY="/usr/bin/python${PYVER}"
122 BF_PYTHON_LIB="python${PYVER}"
123 EOF
124
125 }
126
127 src_compile() {
128 for arg in 'openal' \
129 'openexr' \
130 'jpeg' \
131 'ffmpeg' \
132 'png' \
133 'verse' \
134 'nls international' \
135 'blender-game gameengine'; do
136 blend_with ${arg}
137 done
138
139 # scons uses -l differently -> remove it
140 scons ${MAKEOPTS/-l[0-9]} -h > scons.config
141 scons ${MAKEOPTS/-l[0-9]} || die \
142 "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
143
144 cd ${S}/release/plugins
145 emake || die
146 }
147
148 src_install() {
149 exeinto /usr/bin/
150 doexe ${WORKDIR}/install/linux2/blender
151
152 dodir /usr/share/${PN}
153
154 exeinto /usr/$(get_libdir)/${PN}/textures
155 doexe ${S}/release/plugins/texture/*.so
156 exeinto /usr/$(get_libdir)/${PN}/sequences
157 doexe ${S}/release/plugins/sequence/*.so
158 insinto /usr/include/${PN}
159 doins ${S}/release/plugins/include/*.h
160
161 if use nls ; then
162 mv ${WORKDIR}/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
163 ${D}/usr/share/${PN}
164 mv ${WORKDIR}/install/linux2/.blender/locale \
165 ${D}/usr/share/locale
166 fi
167
168 mv ${WORKDIR}/install/linux2/.blender/scripts ${D}/usr/share/${PN}
169
170 insinto /usr/share/pixmaps
171 doins ${FILESDIR}/${PN}.png
172 insinto /usr/share/applications
173 doins ${FILESDIR}/${PN}.desktop
174
175 dodoc COPYING INSTALL README
176 }
177
178 pkg_preinst(){
179 if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
180 then
181 rm -f ${ROOT}/usr/$(get_libdir)/blender/plugins/include
182 fi
183 }
184
185
186
187 --
188 gentoo-commits@g.o mailing list