summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-05-17 06:58:54 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-05-17 06:58:54 +0000
commitdbf6cc42d6bbd2cd0d305a9d1eab74356dfe088f (patch)
treeb204564434a8dbef88ee27abe01b32024994a2df /media-gfx
parentVersion bump, fix old ebuild (diff)
downloadgentoo-2-dbf6cc42d6bbd2cd0d305a9d1eab74356dfe088f.tar.gz
gentoo-2-dbf6cc42d6bbd2cd0d305a9d1eab74356dfe088f.tar.bz2
gentoo-2-dbf6cc42d6bbd2cd0d305a9d1eab74356dfe088f.zip
New version, see bug #178504
(Portage version: 2.1.2.7)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/blender/ChangeLog9
-rw-r--r--media-gfx/blender/blender-2.44.ebuild136
-rw-r--r--media-gfx/blender/files/digest-blender-2.446
3 files changed, 150 insertions, 1 deletions
diff --git a/media-gfx/blender/ChangeLog b/media-gfx/blender/ChangeLog
index ef7b82f9bc78..5fffe9df26e3 100644
--- a/media-gfx/blender/ChangeLog
+++ b/media-gfx/blender/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/blender
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.114 2007/04/17 17:23:27 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.115 2007/05/17 06:58:54 lu_zero Exp $
+
+*blender-2.44 (17 May 2007)
+
+ 17 May 2007; Luca Barbato <lu_zero@gentoo.org> +blender-2.44.ebuild:
+ New ebuild contributed by Cornelius Weig
+ <bitte.keine.werbung.einwerfen@googlemail.com>, Daniel Genrich
+ <daniel.genrich@gmx.net> and mattepiu
17 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org> blender-2.43.ebuild:
ppc stable, bug #168907
diff --git a/media-gfx/blender/blender-2.44.ebuild b/media-gfx/blender/blender-2.44.ebuild
new file mode 100644
index 000000000000..cd71d70499cb
--- /dev/null
+++ b/media-gfx/blender/blender-2.44.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.44.ebuild,v 1.1 2007/05/17 06:58:54 lu_zero Exp $
+
+inherit multilib flag-o-matic eutils python
+
+#IUSE="jpeg mozilla png sdl static truetype"
+IUSE="blender-game ffmpeg jpeg nls openal openexr png sdl"
+FFMPEG_SNAP="0.4.9-p20070330"
+DESCRIPTION="3D Creation/Animation/Publishing System"
+HOMEPAGE="http://www.blender.org/"
+SRC_URI="http://download.blender.org/source/${P}.tar.gz
+ ffmpeg? ( mirror://gentoo/ffmpeg-${FFMPEG_SNAP}.tar.bz2 )"
+
+SLOT="0"
+LICENSE="|| ( GPL-2 BL )"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND=">=dev-libs/openssl-0.9.6
+ ffmpeg? ( >=media-video/ffmpeg-${FFMPEG_SNAP/-/_}
+ >=media-libs/x264-svn-20061014 )
+ jpeg? ( media-libs/jpeg )
+ media-libs/tiff
+ >=dev-lang/python-2.4
+ nls? ( >=media-libs/freetype-2.0
+ virtual/libintl
+ >=media-libs/ftgl-2.1 )
+ openal? ( media-libs/openal
+ media-libs/freealut )
+ openexr? ( media-libs/openexr )
+ png? ( media-libs/libpng )
+ sdl? ( >=media-libs/libsdl-1.2 )
+ virtual/opengl"
+
+DEPEND="dev-util/scons
+ || ( x11-libs/libXt virtual/x11 )
+ ${RDEPEND}"
+
+blend_with() {
+ local UWORD="$2"
+ if [ -z "${UWORD}" ]; then
+ UWORD="$1"
+ fi
+ if useq $1; then
+ echo "WITH_BF_${UWORD}=1" | tr '[:lower:]' '[:upper:]' \
+ >> ${S}/user-config.py
+ else
+ echo "WITH_BF_${UWORD}=0" | tr '[:lower:]' '[:upper:]' \
+ >> ${S}/user-config.py
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/release/plugins
+ chmod 755 bmake
+ rmdir include
+ cp -pPR ${S}/source/blender/blenpluginapi include
+
+ cd ${S}
+ epatch ${FILESDIR}/blender-2.37-dirs.patch
+
+ if use ffmpeg ; then
+ cd ${S}/extern
+ mv ffmpeg/Makefile ffmpeg/common.mak ${T}
+ unpack ffmpeg-${FFMPEG_SNAP}.tar.bz2
+ mv ${T}/Makefile ${T}/common.mak ffmpeg
+ fi
+ # pass compiler flags to the scons build system
+ # and set python version to newest stable in portage
+ cat <<- EOF >> ${S}/user-config.py
+ CFLAGS += '${CFLAGS}'
+ BF_PYTHON_VERSION="2.4"
+ BF_PYTHON_INC="/usr/include/python2.4"
+ BF_PYTHON_BINARY="/usr/bin/python2.4"
+ BF_PYTHON_LIB="python2.4"
+ EOF
+
+}
+
+src_compile() {
+ for arg in 'openal' \
+ 'openexr' \
+ 'jpeg' \
+ 'ffmpeg' \
+ 'png' \
+ 'nls international' \
+ 'blender-game gameengine'; do
+ blend_with ${arg}
+ done
+
+ # scons uses -l differently -> remove it
+ scons ${MAKEOPTS/-l[0-9]} -h > scons.config
+ scons ${MAKEOPTS/-l[0-9]} || die \
+ "!!! Please add ${S}/scons.config when filing bugs reports to bugs.gentoo.org"
+
+ cd ${S}/release/plugins
+ emake || die
+}
+
+src_install() {
+ exeinto /usr/bin/
+ doexe ${WORKDIR}/install/linux2/blender
+
+ dodir /usr/share/${PN}
+
+ exeinto /usr/$(get_libdir)/${PN}/textures
+ doexe ${S}/release/plugins/texture/*.so
+ exeinto /usr/$(get_libdir)/${PN}/sequences
+ doexe ${S}/release/plugins/sequence/*.so
+ insinto /usr/include/${PN}
+ doins ${S}/release/plugins/include/*.h
+
+ if use nls ; then
+ mv ${WORKDIR}/install/linux2/.blender/{.Blanguages,.bfont.ttf} \
+ ${D}/usr/share/${PN}
+ mv ${WORKDIR}/install/linux2/.blender/locale \
+ ${D}/usr/share/locale
+ fi
+
+ mv ${WORKDIR}/install/linux2/.blender/scripts ${D}/usr/share/${PN}
+
+ insinto /usr/share/pixmaps
+ doins ${FILESDIR}/${PN}.png
+ insinto /usr/share/applications
+ doins ${FILESDIR}/${PN}.desktop
+
+ dodoc COPYING INSTALL README
+}
+
+pkg_preinst(){
+ if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ];
+ then
+ rm -f ${ROOT}/usr/$(get_libdir)/blender/plugins/include
+ fi
+}
diff --git a/media-gfx/blender/files/digest-blender-2.44 b/media-gfx/blender/files/digest-blender-2.44
new file mode 100644
index 000000000000..bb9865d1e41c
--- /dev/null
+++ b/media-gfx/blender/files/digest-blender-2.44
@@ -0,0 +1,6 @@
+MD5 7ac841f6feb27e9d7fb6d77cf137be12 blender-2.44.tar.gz 14362667
+RMD160 65e96e03258263a7759bdff5a6d14fc65d13a816 blender-2.44.tar.gz 14362667
+SHA256 8fa5a46ea65d2a8b87fd1368d5984dfa0a41bdc3cfe24c776e069a4fe40102d1 blender-2.44.tar.gz 14362667
+MD5 eb4210984880af7f2c0043c4e3f1658e ffmpeg-0.4.9-p20070330.tar.bz2 2192476
+RMD160 e52bf6abbf7c630aa3e76243987fb7dd6d9b84a1 ffmpeg-0.4.9-p20070330.tar.bz2 2192476
+SHA256 58a7e7d909e02fda07856ea044ae0f5f9c174791f63a449f2f23f37a78b34f95 ffmpeg-0.4.9-p20070330.tar.bz2 2192476