diff options
author | 2015-02-23 18:55:11 +0100 | |
---|---|---|
committer | 2015-02-23 21:35:36 +0100 | |
commit | df04785a1012976b8719f9f8c4cb156ef49dc390 (patch) | |
tree | 94c3f60a2539e2304a3996ad44745fa62df3792b | |
parent | metadata/layout.conf (diff) | |
download | blender-gentoo-logo-df04785a1012976b8719f9f8c4cb156ef49dc390.tar.gz blender-gentoo-logo-df04785a1012976b8719f9f8c4cb156ef49dc390.tar.bz2 blender-gentoo-logo-df04785a1012976b8719f9f8c4cb156ef49dc390.zip |
media-gfx/blender: Resurrect 2.31a from CVS
media-gfx/blender/blender-2.31a.ebuild (current latest)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/blender/blender-2.31a.ebuild?revision=1.9
media-gfx/blender/files/configure-fix-2.31a.patch (current latest)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/blender/files/configure-fix-2.31a.patch?revision=1.2
media-gfx/blender/files/blender.desktop (NOT current latest)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/blender/files/blender.desktop?revision=1.1.1.1
media-gfx/blender/files/blender-2.31a-plugins.patch (current latest)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/blender/files/blender-2.31a-plugins.patch?revision=1.2
media-gfx/blender/files/blender.png (NOT current latest)
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/blender/files/blender.png?revision=1.1
-rw-r--r-- | media-gfx/blender/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.31a.ebuild | 93 | ||||
-rw-r--r-- | media-gfx/blender/files/blender-2.31a-plugins.patch | 20 | ||||
-rw-r--r-- | media-gfx/blender/files/blender.desktop | 9 | ||||
-rw-r--r-- | media-gfx/blender/files/blender.png | bin | 0 -> 2119 bytes | |||
-rw-r--r-- | media-gfx/blender/files/configure-fix-2.31a.patch | 21 | ||||
-rw-r--r-- | media-gfx/blender/metadata.xml | 8 |
7 files changed, 152 insertions, 0 deletions
diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest new file mode 100644 index 0000000..eb6d2a2 --- /dev/null +++ b/media-gfx/blender/Manifest @@ -0,0 +1 @@ +DIST blender-2.31a.tar.bz2 4540160 SHA256 8c05cfaa5206f46529fee25e0fcd320c0264be83b97f1167e618029faf3edc50 SHA512 83a90cf9dcd89b4664c3a3faaa071c6a3ec056c413047cf15507bfe315959b81b7d2e2da3e69a8e624c23937c72fc5bd78c02e1b931eec71ac0487651480b9c2 WHIRLPOOL 852f23db74b30bc54664ec0fc8ffa352fdb6d7267bf3555bb55f7fde179bdae2e82094ffd49232a5ae76299145bb4af55ff409f72e81e1702c54abe99385d597 diff --git a/media-gfx/blender/blender-2.31a.ebuild b/media-gfx/blender/blender-2.31a.ebuild new file mode 100644 index 0000000..9bce6c0 --- /dev/null +++ b/media-gfx/blender/blender-2.31a.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/Attic/blender-2.31a.ebuild,v 1.9 2005/01/03 12:41:13 lu_zero dead $ + +inherit flag-o-matic eutils +replace-flags -march=pentium4 -march=pentium3 + +IUSE="sdl jpeg png mozilla truetype static" +#IUSE="${IUSE} blender-game blender-plugin" + +S=${WORKDIR}/${P} +DESCRIPTION="3D Creation/Animation/Publishing System" +HOMEPAGE="http://www.blender.org/" +SRC_URI="http://download.blender.org/source/${P}.tar.bz2" + +SLOT="0" +LICENSE="|| (GPL-2 BL)" +KEYWORDS="~x86 ~ppc" + +DEPEND="virtual/x11 + blender-game? ( dev-games/ode ) + sdl? ( media-libs/libsdl ) + jpeg? ( media-libs/jpeg ) + png? ( media-libs/libpng ) + mozilla? ( net-www/mozilla ) + truetype? ( >=media-libs/freetype-2.0 ) + fmod? ( media-libs/fmod ) + >=media-libs/openal-20020127 + >=media-libs/libsdl-1.2 + >=media-libs/libvorbis-1.0 + >=dev-libs/openssl-0.9.6" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/configure-fix-${PV}.patch + epatch ${FILESDIR}/${P}-plugins.patch + cd ${S}/release/plugins + chmod 755 bmake +} + + +src_compile() { + local myconf="" + + # 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 && myconf="${myconf} --enable-gameblender" + + # Build the plugin (Will fail, requires gameblender) + # use blender-plugin && myconf="${myconf} --enable-blenderplugin" + + econf ${myconf} || die + emake || die + cd ${S}/release/plugins + emake || die + +} + +src_install() { + einstall || die + + exeinto /usr/lib/${PN}/textures + doexe ${S}/release/plugins/texture/*.so + exeinto /usr/lib/${PN}/sequences + doexe ${S}/release/plugins/sequence/*.so + + insinto /usr/share/pixmaps + doins ${FILESDIR}/${PN}.png + insinto /usr/share/applications + doins ${FILESDIR}/${PN}.desktop + + dodoc COPYING INSTALL README release_2* + +} diff --git a/media-gfx/blender/files/blender-2.31a-plugins.patch b/media-gfx/blender/files/blender-2.31a-plugins.patch new file mode 100644 index 0000000..c6212e6 --- /dev/null +++ b/media-gfx/blender/files/blender-2.31a-plugins.patch @@ -0,0 +1,20 @@ +--- blender-2.31a.orig/release/plugins/bmake 2003-12-04 21:12:20.000000000 +1300 ++++ blender-2.31a/release/plugins/bmake 2003-12-04 21:13:12.000000000 +1300 +@@ -60,7 +60,7 @@ + LDFLAGS="-Bshareable"; + elif ( test $UNAME = "Linux" ) then + CC="gcc"; +- CFLAGS="-fPIC -funsigned-char -O2"; ++# CFLAGS="-fPIC -funsigned-char -O2"; + + LD="ld"; + LDFLAGS="-Bshareable"; +@@ -112,6 +112,8 @@ + INCLUDES=-I..; + elif ( test -f "../include/plugin.h" ) then + INCLUDES=-I../include ++elif ( test -f "../../../source/blender/blenpluginapi/plugin.h" ) then ++ INCLUDES=-I../../../source/blender/blenpluginapi + else + echo "Couldn't find plugin.h"; + exit; diff --git a/media-gfx/blender/files/blender.desktop b/media-gfx/blender/files/blender.desktop new file mode 100644 index 0000000..0ba3f1b --- /dev/null +++ b/media-gfx/blender/files/blender.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Blender +Comment=3D modeling, animation, rendering and post-production. +Exec=blender +Icon=blender.png +Terminal=0 +Type=Application +Categories=Graphics;Application diff --git a/media-gfx/blender/files/blender.png b/media-gfx/blender/files/blender.png Binary files differnew file mode 100644 index 0000000..864a97a --- /dev/null +++ b/media-gfx/blender/files/blender.png diff --git a/media-gfx/blender/files/configure-fix-2.31a.patch b/media-gfx/blender/files/configure-fix-2.31a.patch new file mode 100644 index 0000000..1ec9190 --- /dev/null +++ b/media-gfx/blender/files/configure-fix-2.31a.patch @@ -0,0 +1,21 @@ +--- blender-2.31a.orig/configure 2003-12-04 23:47:25.000000000 +1300 ++++ blender-2.31a/configure 2003-12-04 23:49:54.000000000 +1300 +@@ -22221,8 +22221,8 @@ + with_mozilla =$withval + fi + if test x$with_mozilla != "yes"; then +- LDFLAGS="$LDFLAGS -L$withval/lib/mozilla-$MOZVER -lnspr" +- CPPFLAGS="$CPPFLAGS -I$withval/include/mozilla-$MOZVER/nspr" ++ LDFLAGS="$LDFLAGS -L$withval/lib/mozilla -lnspr4" ++ CPPFLAGS="$CPPFLAGS -I$withval/include/mozilla/nspr" + fi + + fi; +@@ -26002,7 +26002,6 @@ + fi + + +- rm -f conf.sdltest + + + echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5 diff --git a/media-gfx/blender/metadata.xml b/media-gfx/blender/metadata.xml new file mode 100644 index 0000000..16bcc9f --- /dev/null +++ b/media-gfx/blender/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata> |