summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-05-16 14:21:26 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-05-16 14:21:26 +0000
commit151171a786703535fc8b7d701001633312eb6d7b (patch)
tree95a61b54f60a8dd339f832ea65eb1b6780c114a6 /media-gfx/blender
parentFixing package.mask because I'm a dee dee dee. (diff)
downloadgentoo-2-151171a786703535fc8b7d701001633312eb6d7b.tar.gz
gentoo-2-151171a786703535fc8b7d701001633312eb6d7b.tar.bz2
gentoo-2-151171a786703535fc8b7d701001633312eb6d7b.zip
Added new revision of blender to support the split openal/freealut ebuilds.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'media-gfx/blender')
-rw-r--r--media-gfx/blender/ChangeLog8
-rw-r--r--media-gfx/blender/blender-2.41-r1.ebuild140
-rw-r--r--media-gfx/blender/files/digest-blender-2.412
-rw-r--r--media-gfx/blender/files/digest-blender-2.41-r13
4 files changed, 152 insertions, 1 deletions
diff --git a/media-gfx/blender/ChangeLog b/media-gfx/blender/ChangeLog
index 539bc79fb656..1593c9fbeaae 100644
--- a/media-gfx/blender/ChangeLog
+++ b/media-gfx/blender/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/blender
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.77 2006/05/07 20:32:48 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.78 2006/05/16 14:21:26 wolf31o2 Exp $
+
+*blender-2.41-r1 (16 May 2006)
+
+ 16 May 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +blender-2.41-r1.ebuild:
+ Added new revision of blender to support the split openal/freealut ebuilds.
07 May 2006; Markus Rothe <corsair@gentoo.org> blender-2.40.ebuild:
Stable on ppc64
diff --git a/media-gfx/blender/blender-2.41-r1.ebuild b/media-gfx/blender/blender-2.41-r1.ebuild
new file mode 100644
index 000000000000..18bcca0d3503
--- /dev/null
+++ b/media-gfx/blender/blender-2.41-r1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.41-r1.ebuild,v 1.1 2006/05/16 14:21:26 wolf31o2 Exp $
+
+inherit multilib flag-o-matic eutils python
+
+#IUSE="sdl jpeg png mozilla truetype static fmod"
+IUSE="nls" #blender-game" # blender-plugin"
+
+DESCRIPTION="3D Creation/Animation/Publishing System"
+HOMEPAGE="http://www.blender.org/"
+SRC_URI="http://download.blender.org/source/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="|| ( GPL-2 BL )"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="media-libs/libsdl
+ media-libs/jpeg
+ media-libs/libpng
+ media-libs/tiff
+ >=media-libs/freetype-2.0
+ ~media-libs/openal-0.0.8
+ media-libs/freealut
+ >=media-libs/libsdl-1.2
+ >=media-libs/libvorbis-1.0
+ >=dev-libs/openssl-0.9.6
+ >=media-gfx/yafray-0.0.7
+ nls? ( >=media-libs/ftgl-2.1 )"
+
+DEPEND="=dev-util/scons-0.96.1
+ || ( x11-libs/libXt virtual/x11 )
+ ${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/release/plugins
+ chmod 755 bmake
+ rm -fR include
+ cp -pPR ${S}/source/blender/blenpluginapi include
+ cd ${S}
+ epatch ${FILESDIR}/blender-2.37-dirs.patch
+ mkdir -p ${WORKDIR}/build/linux2/{extern,intern,source}
+}
+
+
+src_compile() {
+ local myconf=""
+
+ scons -q
+
+ # SDL Support
+ #use sdl && myconf="${myconf} --with-sdl=/usr"
+ # || myconf="${myconf} --without-sdl"
+
+ # Jpeg support
+ #use jpeg && myconf="${myconf} --with-libjpeg=/usr"
+
+ # PNG Support
+ #use png && myconf="${myconf} --with-libpng=/usr"
+
+ # ./configure points at the wrong mozilla directories and will fail
+ # with this enabled. (A simple patch should take care of this)
+ #use mozilla && myconf="${myconf} --with-mozilla=/usr"
+
+ # TrueType support (For text objects)
+ #use truetype && myconf="${myconf} --with-freetype2=/usr"
+
+ # Build Staticly
+ #use static && myconf="${myconf} --enable-blenderstatic"
+
+ # Build the game engine
+# use blender-game && \
+ einfo "enabling game engine"
+ sed -i -e "s:BUILD_GAMEENGINE.*$:BUILD_GAMEENGINE = 'true':" \
+ config.opts
+
+ if use nls ;
+ then
+ einfo "enabling internationalization"
+ sed -i -e "s:USE_INTERNATIONAL.*$:USE_INTERNATIONAL = 'true':" \
+ -e "s:FTGL_INCLUDE.*$:FTGL_INCLUDE = ['/usr/include/FTGL']:" \
+ -e "s:FTGL_LIBPATH.*$:FTGL_LIBPATH = ['/usr/$(get_libdir)']:" \
+ config.opts
+ fi
+
+ sed -i \
+ -e "s:'openal':'openal','alut':" \
+ config.opts
+
+# use blender-game || \
+# ( einfo "disabling game engine"
+# sed -i -e "s:BUILD_GAMEENGINE = 'true':BUILD_GAMEENGINE = 'false':" \
+# ${S}/config.opts )
+
+ # Build the plugin
+# use blender-plugin && \
+# ( einfo "enabling mozilla plugin"
+# sed -i -e "s:BUILD_BLENDER_PLUGIN.*$:BUILD_BLENDER_PLUGIN = 'true':" \
+# config.opts )
+
+ sed -i -e "s/-O2/${CFLAGS// /\' ,\'}/g" ${S}/SConstruct
+ scons ${MAKEOPTS} || die
+ cd ${S}/release/plugins
+ emake || die
+
+}
+
+src_install() {
+ exeinto /usr/bin/
+ doexe ${S}/blender
+ doexe ${S}/blenderplayer
+
+
+ exeinto /usr/$(get_libdir)/${PN}/textures
+ doexe ${S}/release/plugins/texture/*.so
+ exeinto /usr/$(get_libdir)/${PN}/sequences
+ doexe ${S}/release/plugins/sequence/*.so
+ cp -pPR ${S}/release/{datafile,plugins,scripts} \
+ ${D}/usr/$(get_libdir)/${PN}
+ use nls && \
+ cp -pPR ${S}/bin/.blender/{.Blanguages,.bfont.ttf,locale} \
+ ${D}/usr/$(get_libdir)/${PN}
+ insinto /usr/share/pixmaps
+ doins ${FILESDIR}/${PN}.png
+ insinto /usr/share/applications
+ doins ${FILESDIR}/${PN}.desktop
+
+ dodoc COPYING INSTALL README release_*.txt
+
+}
+
+pkg_preinst(){
+ if [ -h "/usr/$(get_libdir)/blender/plugins/include" ];
+ then
+ rm -f /usr/$(get_libdir)/blender/plugins/include
+ fi
+}
diff --git a/media-gfx/blender/files/digest-blender-2.41 b/media-gfx/blender/files/digest-blender-2.41
index 0b392a38634b..b78e51746ceb 100644
--- a/media-gfx/blender/files/digest-blender-2.41
+++ b/media-gfx/blender/files/digest-blender-2.41
@@ -1 +1,3 @@
MD5 f6b54ff73c37aaca4d3f5babdd156fbf blender-2.41.tar.gz 9464385
+RMD160 7857eac2acda18ee24db4bb147bcf780025e2c12 blender-2.41.tar.gz 9464385
+SHA256 743a78648773619d3153a16c0a5b67f960b2fec026bcb75d0175e52e8e8aadd1 blender-2.41.tar.gz 9464385
diff --git a/media-gfx/blender/files/digest-blender-2.41-r1 b/media-gfx/blender/files/digest-blender-2.41-r1
new file mode 100644
index 000000000000..b78e51746ceb
--- /dev/null
+++ b/media-gfx/blender/files/digest-blender-2.41-r1
@@ -0,0 +1,3 @@
+MD5 f6b54ff73c37aaca4d3f5babdd156fbf blender-2.41.tar.gz 9464385
+RMD160 7857eac2acda18ee24db4bb147bcf780025e2c12 blender-2.41.tar.gz 9464385
+SHA256 743a78648773619d3153a16c0a5b67f960b2fec026bcb75d0175e52e8e8aadd1 blender-2.41.tar.gz 9464385