diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-04-09 20:57:32 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-04-09 20:57:32 +0000 |
commit | 87b6210f0678a65f68c50d6ea16f142d033a0153 (patch) | |
tree | 0d3586acd1290f77ec24d4c4ac18c06049a17006 /media-gfx | |
parent | use games_get_libdir (diff) | |
download | gentoo-2-87b6210f0678a65f68c50d6ea16f142d033a0153.tar.gz gentoo-2-87b6210f0678a65f68c50d6ea16f142d033a0153.tar.bz2 gentoo-2-87b6210f0678a65f68c50d6ea16f142d033a0153.zip |
New masked ebuild
(Portage version: 2.1.2.3)
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/blender/blender-2.43.ebuild | 132 | ||||
-rw-r--r-- | media-gfx/blender/files/digest-blender-2.43 | 6 |
2 files changed, 138 insertions, 0 deletions
diff --git a/media-gfx/blender/blender-2.43.ebuild b/media-gfx/blender/blender-2.43.ebuild new file mode 100644 index 000000000000..569e0d9dc655 --- /dev/null +++ b/media-gfx/blender/blender-2.43.ebuild @@ -0,0 +1,132 @@ +# 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.43.ebuild,v 1.1 2007/04/09 20:57:32 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="~x86 ~ppc ~amd64" + +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 + 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 + return 0 +} + +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 + echo "CFLAGS += '${CFLAGS}'" >> ${S}/user-config.py + echo "CCFLAGS += ['${CXXFLAGS//' '/','}','-DYESIAMSTUPID']" \ + >> ${S}/user-config.py + # disable blender-player and iconv + # echo "WITH_BF_PLAYER=0" >> ${S}/user-config.py + # echo "WITH_BF_ICONV=0" >> ${S}/user-config.py +} + + +src_compile() { + myconf="${myconf} $(blend_with openal)" + myconf="${myconf} $(blend_with openexr)" + myconf="${myconf} $(blend_with jpeg)" + myconf="${myconf} $(blend_with ffmpeg)" + myconf="${myconf} $(blend_with png)" + myconf="${myconf} $(blend_with nls international)" + myconf="${myconf} $(blend_with blender-game gameengine)" + + # 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.43 b/media-gfx/blender/files/digest-blender-2.43 new file mode 100644 index 000000000000..d6716c4c5bae --- /dev/null +++ b/media-gfx/blender/files/digest-blender-2.43 @@ -0,0 +1,6 @@ +MD5 7629c31bc45e286bdf3b2c555e6446a2 blender-2.43.tar.gz 13806334 +RMD160 a43babbc816194ba3e4cfed3bd250d20406e2479 blender-2.43.tar.gz 13806334 +SHA256 a48213b61302d03eb8db0cf42712b142d280d16ad111f6411cd8e43403e5e61b blender-2.43.tar.gz 13806334 +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 |