diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2005-01-03 12:41:13 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2005-01-03 12:41:13 +0000 |
commit | b4cf8128dcf8f3676ac56a9bd04d7cfba3d71e55 (patch) | |
tree | 28590a8e479c48e0dbbe04116e10835ac05160b2 /media-gfx/blender/blender-2.36-r1.ebuild | |
parent | Marked ppc stable for bug #74333. (Manifest recommit) (diff) | |
download | gentoo-2-b4cf8128dcf8f3676ac56a9bd04d7cfba3d71e55.tar.gz gentoo-2-b4cf8128dcf8f3676ac56a9bd04d7cfba3d71e55.tar.bz2 gentoo-2-b4cf8128dcf8f3676ac56a9bd04d7cfba3d71e55.zip |
New revision and some cleanups
Diffstat (limited to 'media-gfx/blender/blender-2.36-r1.ebuild')
-rw-r--r-- | media-gfx/blender/blender-2.36-r1.ebuild | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/media-gfx/blender/blender-2.36-r1.ebuild b/media-gfx/blender/blender-2.36-r1.ebuild new file mode 100644 index 000000000000..60fdf7d1b845 --- /dev/null +++ b/media-gfx/blender/blender-2.36-r1.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.36-r1.ebuild,v 1.1 2005/01/03 12:41:13 lu_zero Exp $ + +inherit flag-o-matic eutils + +#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="~ppc ~x86" + +RDEPEND="virtual/x11 + media-libs/libsdl + media-libs/jpeg + media-libs/libpng + >=media-libs/freetype-2.0 + >=media-libs/openal-20020127 + >=media-libs/libsdl-1.2 + >=media-libs/libvorbis-1.0 + >=dev-libs/openssl-0.9.6 + >=media-gfx/yafray-0.0.6 + nls? ( >=media-libs/ftgl-2.1 )" + +DEPEND="dev-util/scons + ${RDEPEND}" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd ${S}/release/plugins + chmod 755 bmake + rm -fR include + cp -a ${S}/source/blender/blenpluginapi include + cd ${S} + epatch ${FILESDIR}/${P}-dirs.patch +} + + +src_compile() { + local myconf="" + + replace-flags -march=pentium4 -march=pentium3 + 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/lib']:" \ + config.opts + fi + +# 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/lib/${PN}/textures + doexe ${S}/release/plugins/texture/*.so + exeinto /usr/lib/${PN}/sequences + doexe ${S}/release/plugins/sequence/*.so + cp -a ${S}/release/{bpydata,plugins,scripts} ${D}/usr/lib/${PN} + use nls && \ + cp -a ${S}/bin/.blender/{.Blanguages,.bfont.ttf,locale} ${D}/usr/lib/${PN} + insinto /usr/share/pixmaps + doins ${FILESDIR}/${PN}.png + insinto /usr/share/applications + doins ${FILESDIR}/${PN}.desktop + + dodoc COPYING INSTALL README + +} |