diff options
author | Sebastian Pipping <sping@gentoo.org> | 2011-10-29 03:39:57 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2011-10-29 03:39:57 +0000 |
commit | 7e5bffd4614d3b71ae4fd0d84b33d4f8eea23421 (patch) | |
tree | c4b1f52b3de3d5614fbefe0c9f593cc8f724ba00 /media-gfx/blender | |
parent | media-gfx/blender: Fix 2.57-r1 for Linux 3.x (bug #381099) (diff) | |
download | historical-7e5bffd4614d3b71ae4fd0d84b33d4f8eea23421.tar.gz historical-7e5bffd4614d3b71ae4fd0d84b33d4f8eea23421.tar.bz2 historical-7e5bffd4614d3b71ae4fd0d84b33d4f8eea23421.zip |
media-gfx/blender: Clean old revisions
Package-Manager: portage-2.1.10.31/cvs/Linux x86_64
Diffstat (limited to 'media-gfx/blender')
-rw-r--r-- | media-gfx/blender/ChangeLog | 6 | ||||
-rw-r--r-- | media-gfx/blender/Manifest | 11 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.49b-r1.ebuild | 174 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.49b.ebuild | 173 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.57.ebuild | 451 |
5 files changed, 9 insertions, 806 deletions
diff --git a/media-gfx/blender/ChangeLog b/media-gfx/blender/ChangeLog index 528db4ad1be0..8ee4c075c032 100644 --- a/media-gfx/blender/ChangeLog +++ b/media-gfx/blender/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-gfx/blender # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.202 2011/10/29 03:36:58 sping Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.203 2011/10/29 03:39:57 sping Exp $ + + 29 Oct 2011; Sebastian Pipping <sping@gentoo.org> -blender-2.49b.ebuild, + -blender-2.49b-r1.ebuild, -blender-2.57.ebuild: + Clean out some revisions with improved versions around 29 Oct 2011; Sebastian Pipping <sping@gentoo.org> blender-2.57-r1.ebuild, +files/blender-2.57-linux-3.patch: diff --git a/media-gfx/blender/Manifest b/media-gfx/blender/Manifest index b01a14b37357..59520db7ea74 100644 --- a/media-gfx/blender/Manifest +++ b/media-gfx/blender/Manifest @@ -30,17 +30,14 @@ DIST blender-2.49b.tar.gz 22918377 RMD160 5b641de7b41af5e4186c9721b66eddc6870f9f DIST blender-2.57.tar.gz 16806453 RMD160 d2f4d14cb08067a3d1fb3c1661772cf8f3a9bfaa SHA1 c539e2640dfa2a17e044d0f296219b866242112a SHA256 8bd1812166f2dd96e158c1898a666adc1f9f109765d5cd7ff3a8adeae60794b8 EBUILD blender-2.48a-r3.ebuild 4097 RMD160 83ffd9a2c440bc825de7bb928e9c101c02f5bac3 SHA1 c139bf8af7e4d8fe606d6f331ef9cb6862608e29 SHA256 be938e23ab30b2c8c779cf557e3430448287cc59d51a06dc6ea85b98bb9f19b9 EBUILD blender-2.49a.ebuild 4872 RMD160 ddfae1234db4ef3ba48ce6d2d69fe68b6ba43d0c SHA1 22238798714710f654dd2f252c6eafefef503087 SHA256 b9c70199b724c18ef5e9c92c7ef18235904585a830da45b8d94247d26d4b8ee9 -EBUILD blender-2.49b-r1.ebuild 4890 RMD160 9fdab3e883a12078c8da8296767d73e957148289 SHA1 41884006c86fab05ba0900e87baa9cc92d7baf1a SHA256 ecda8468309ec51b140a285ea2b6c4cd0d1f0d45ef6ca4798bad160084a603c7 EBUILD blender-2.49b-r2.ebuild 4944 RMD160 2cc9329b20d030c424004ce2a4e8b11f0afe7fd5 SHA1 031af009ceee3bf5e1d076e9671a87c3860fd8cf SHA256 3cd3540fe84c3d8006d6cde9922364c0330a059a096affd9eb3e61a697ba5592 -EBUILD blender-2.49b.ebuild 4830 RMD160 1371b3f5393f3cd76a909d6ef19a8b1667582aa9 SHA1 0fb604433885eb4ec3e7bf0634c2e2cce61c418d SHA256 b139d96960468061bb20c5a9d9515bb5fc8686436e28e4d3c1e31b104c6344f2 EBUILD blender-2.57-r1.ebuild 13886 RMD160 2c015370756af10d79f0a20b9574ae8dac571bb9 SHA1 43d91e329713cb90ce3ba1d233244140dfe50374 SHA256 e1a0dec4f0f3e28f0d8b2230388ed211aa78e1aa138426c9b385287c7f5f84c8 -EBUILD blender-2.57.ebuild 13818 RMD160 16c9eb9b0ba563fd4240fb2f8c9efd6d72fae4e7 SHA1 8bd8f3b9aeada5e687fc62e0fcca5a4ea1250066 SHA256 1ff0f09c13e150018691d33b0585f4c33e93c84efca65d7e7609de112a4238df -MISC ChangeLog 30559 RMD160 7fbff3dc5e4faa7cbc0661a8e30b077a65b7cf0c SHA1 7d75355a6fbd1fa3e745b509ee158f76e9884a36 SHA256 ef4d7fe66bc1fc0773f2245f8e90a84d13e508aa7dee776218ed63a72b567ce2 +MISC ChangeLog 30742 RMD160 fd4d9f7bc9484730d1d602eadda1aa85ac3068ed SHA1 8ae05821b4944fb0af7296e140214a82ae17096e SHA256 3ad1babd6d99992fb468f29eacb20a2274c6d3b8b5b35de1df0fb0681be55f1a MISC metadata.xml 1799 RMD160 7330ec5ccf7f7a86f31abf0b5f45bf84025c505a SHA1 a8bc4c5db954f24ea50e879b1bdbd5753430b3ee SHA256 f4bc849a0cc6a805fe6624699c5c1b9248336f7b879484f777f31b7c755759ea -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iEYEARECAAYFAk6rdNoACgkQsAvGakAaFgAL4QCgyIhgE6rNpnlJYlkCvRcnoVSh -WFoAni2DO57qko2K2zp1nnUZ43jxXL/6 -=LsRs +iEYEARECAAYFAk6rdYkACgkQsAvGakAaFgAfbgCghZXV9K0I8vZbkaDvK3QU1+ho +XegAnRN4fNBY6lSPIrCEloQ/KWENrQrr +=VZeb -----END PGP SIGNATURE----- diff --git a/media-gfx/blender/blender-2.49b-r1.ebuild b/media-gfx/blender/blender-2.49b-r1.ebuild deleted file mode 100644 index 82bada4da846..000000000000 --- a/media-gfx/blender/blender-2.49b-r1.ebuild +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.49b-r1.ebuild,v 1.3 2011/07/08 10:22:39 ssuominen Exp $ - -EAPI=2 - -inherit multilib eutils python - -IUSE="blender-game ffmpeg nls ogg openmp verse openal" - -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 BSD )" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -RDEPEND="ffmpeg? ( virtual/ffmpeg[encode,theora] ) - media-libs/openjpeg - media-libs/tiff - >=dev-lang/python-2.5 - nls? ( >=media-libs/freetype-2.0 - virtual/libintl - >=media-libs/ftgl-2.1 ) - openal? ( >=media-libs/openal-1.6.372 - >=media-libs/freealut-1.1.0-r1 ) - media-libs/openexr - media-libs/libpng - blender-game? ( >=media-libs/libsdl-1.2[joystick] ) - >=media-libs/libsdl-1.2 - ogg? ( media-libs/libogg ) - virtual/jpeg - virtual/opengl" -DEPEND=">=dev-util/scons-0.98 - sys-devel/gcc[openmp?] - x11-base/xorg-server - ${RDEPEND}" - -blend_with() { - local UWORD="$2" - if [ -z "${UWORD}" ]; then - UWORD="$1" - fi - if use $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_prepare() { - epatch "${FILESDIR}"/blender-2.48a-CVE-2008-4863.patch - epatch "${FILESDIR}"/${PN}-2.37-dirs.patch - epatch "${FILESDIR}"/${PN}-2.44-scriptsdir.patch - epatch "${FILESDIR}"/${PN}-2.49a-sys-openjpeg.patch - epatch "${FILESDIR}"/${PN}-2.49b-CVE-2009-3850-v3.patch - rm -f "${S}/release/scripts/bpymodules/"*.pyc -} - -src_configure() { - - # add ffmpeg info to the scons build info - cat <<- EOF >> "${S}"/user-config.py - BF_FFMPEG="/usr" - BF_FFMPEG_LIB="avdevice avformat avcodec swscale avutil" - EOF - - # set python version to current version in use - cat <<- EOF >> "${S}"/user-config.py - BF_PYTHON_VERSION="$(python_get_version)" - BF_PYTHON_INC="$(python_get_includedir)" - BF_PYTHON_BINARY="$(PYTHON -a)" - BF_PYTHON_LIB="python$(python_get_version)" - EOF - - # add system openjpeg into scons build. - cat <<- EOF >> "${S}"/user-config.py - BF_OPENJPEG = "/usr" - BF_OPENJPEG_INC = "/usr/include" - BF_OPENJPEG_LIB = "openjpeg" - EOF - - #set CFLAGS used in /etc/make.conf correctly - - echo "CFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ - | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - echo "CXXFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`]" \ - | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - # check for blender-game USE flag. - # blender-game will merge with blenderplayer. - - for arg in \ - 'openal'\ - 'ffmpeg' \ - 'blender-game player' \ - 'blender-game gameengine' \ - 'nls international' \ - 'ogg' \ - 'openmp' \ - 'verse' ; do - blend_with ${arg} - done -} - -src_compile() { - # scons uses -l differently -> remove it - scons ${MAKEOPTS/-l[0-9]} || die \ - '!!! Please add "${S}/scons.config" when filing bugs reports \ - to bugs.gentoo.org' - - cd "${WORKDIR}"/install/linux2/plugins - chmod 755 bmake - emake || die -} - -src_install() { - exeinto /usr/bin/ - doexe "${WORKDIR}"/install/linux2/blender - use blender-game && doexe "${WORKDIR}"/install/linux2/blenderplayer - - dodir /usr/share/${PN} - - exeinto /usr/$(get_libdir)/${PN}/textures - doexe "${WORKDIR}"/install/linux2/plugins/texture/*.so - exeinto /usr/$(get_libdir)/${PN}/sequences - doexe "${WORKDIR}"/install/linux2/plugins/sequence/*.so - insinto /usr/include/${PN} - doins "${WORKDIR}"/install/linux2/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 "${WORKDIR}"/install/linux2/icons/scalable/blender.svg - insinto /usr/share/applications - doins "${FILESDIR}"/${PN}.desktop - - dodoc INSTALL README - dodoc "${WORKDIR}"/install/linux2/BlenderQuickStart.pdf - -} - -pkg_preinst(){ - if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; - then - rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include - fi -} - -pkg_postinst(){ - elog "blender uses python integration. As such, may have some" - elog "inherit risks with running unknown python scripting." - elog " " - elog "CVE-2008-1103-1.patch has been removed as it interferes" - elog "with autosave undo features. Up stream blender coders" - elog "have not addressed the CVE issue as the status is still" - elog "a CANDIDATE and not CONFIRMED." - elog " " - elog "It is recommended to change your blender temp directory" - elog "from /tmp to ~tmp or another tmp file under your home" - elog "directory. This can be done by starting blender, then" - elog "dragging the main menu down do display all paths." -} diff --git a/media-gfx/blender/blender-2.49b.ebuild b/media-gfx/blender/blender-2.49b.ebuild deleted file mode 100644 index 77d86d403b22..000000000000 --- a/media-gfx/blender/blender-2.49b.ebuild +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.49b.ebuild,v 1.7 2011/07/08 10:22:39 ssuominen Exp $ - -EAPI=2 - -inherit multilib eutils python - -IUSE="blender-game ffmpeg nls ogg openmp verse openal" - -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 BSD )" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -RDEPEND="ffmpeg? ( virtual/ffmpeg[encode,theora] ) - media-libs/openjpeg - media-libs/tiff - >=dev-lang/python-2.5 - nls? ( >=media-libs/freetype-2.0 - virtual/libintl - >=media-libs/ftgl-2.1 ) - openal? ( >=media-libs/openal-1.6.372 - >=media-libs/freealut-1.1.0-r1 ) - media-libs/openexr - media-libs/libpng - blender-game? ( >=media-libs/libsdl-1.2[joystick] ) - >=media-libs/libsdl-1.2 - ogg? ( media-libs/libogg ) - virtual/jpeg - virtual/opengl" -DEPEND=">=dev-util/scons-0.98 - sys-devel/gcc[openmp?] - x11-base/xorg-server - ${RDEPEND}" - -blend_with() { - local UWORD="$2" - if [ -z "${UWORD}" ]; then - UWORD="$1" - fi - if use $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_prepare() { - epatch "${FILESDIR}"/blender-2.48a-CVE-2008-4863.patch - epatch "${FILESDIR}"/${PN}-2.37-dirs.patch - epatch "${FILESDIR}"/${PN}-2.44-scriptsdir.patch - epatch "${FILESDIR}"/${PN}-2.49a-sys-openjpeg.patch - rm -f "${S}/release/scripts/bpymodules/"*.pyc -} - -src_configure() { - - # add ffmpeg info to the scons build info - cat <<- EOF >> "${S}"/user-config.py - BF_FFMPEG="/usr" - BF_FFMPEG_LIB="avdevice avformat avcodec swscale avutil" - EOF - - # set python version to current version in use - cat <<- EOF >> "${S}"/user-config.py - BF_PYTHON_VERSION="$(python_get_version)" - BF_PYTHON_INC="$(python_get_includedir)" - BF_PYTHON_BINARY="$(PYTHON -a)" - BF_PYTHON_LIB="python$(python_get_version)" - EOF - - # add system openjpeg into scons build. - cat <<- EOF >> "${S}"/user-config.py - BF_OPENJPEG = "/usr" - BF_OPENJPEG_INC = "/usr/include" - BF_OPENJPEG_LIB = "openjpeg" - EOF - - #set CFLAGS used in /etc/make.conf correctly - - echo "CFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ - | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - echo "CXXFLAGS= [`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`]" \ - | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - # check for blender-game USE flag. - # blender-game will merge with blenderplayer. - - for arg in \ - 'openal'\ - 'ffmpeg' \ - 'blender-game player' \ - 'blender-game gameengine' \ - 'nls international' \ - 'ogg' \ - 'openmp' \ - 'verse' ; do - blend_with ${arg} - done -} - -src_compile() { - # scons uses -l differently -> remove it - scons ${MAKEOPTS/-l[0-9]} || die \ - '!!! Please add "${S}/scons.config" when filing bugs reports \ - to bugs.gentoo.org' - - cd "${WORKDIR}"/install/linux2/plugins - chmod 755 bmake - emake || die -} - -src_install() { - exeinto /usr/bin/ - doexe "${WORKDIR}"/install/linux2/blender - use blender-game && doexe "${WORKDIR}"/install/linux2/blenderplayer - - dodir /usr/share/${PN} - - exeinto /usr/$(get_libdir)/${PN}/textures - doexe "${WORKDIR}"/install/linux2/plugins/texture/*.so - exeinto /usr/$(get_libdir)/${PN}/sequences - doexe "${WORKDIR}"/install/linux2/plugins/sequence/*.so - insinto /usr/include/${PN} - doins "${WORKDIR}"/install/linux2/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 "${WORKDIR}"/install/linux2/icons/scalable/blender.svg - insinto /usr/share/applications - doins "${FILESDIR}"/${PN}.desktop - - dodoc INSTALL README - dodoc "${WORKDIR}"/install/linux2/BlenderQuickStart.pdf - -} - -pkg_preinst(){ - if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; - then - rm -f "${ROOT}"/usr/$(get_libdir)/blender/plugins/include - fi -} - -pkg_postinst(){ - elog "blender uses python integration. As such, may have some" - elog "inherit risks with running unknown python scripting." - elog " " - elog "CVE-2008-1103-1.patch has been removed as it interferes" - elog "with autosave undo features. Up stream blender coders" - elog "have not addressed the CVE issue as the status is still" - elog "a CANDIDATE and not CONFIRMED." - elog " " - elog "It is recommended to change your blender temp directory" - elog "from /tmp to ~tmp or another tmp file under your home" - elog "directory. This can be done by starting blender, then" - elog "dragging the main menu down do display all paths." -} diff --git a/media-gfx/blender/blender-2.57.ebuild b/media-gfx/blender/blender-2.57.ebuild deleted file mode 100644 index 9d544c172222..000000000000 --- a/media-gfx/blender/blender-2.57.ebuild +++ /dev/null @@ -1,451 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.57.ebuild,v 1.4 2011/07/08 10:22:39 ssuominen Exp $ - -PYTHON_DEPEND="3:3.2" - -EAPI=3 - -if [[ ${PV} == *9999 ]] ; then -SCM="subversion" -ESVN_REPO_URI="https://svn.blender.org/svnroot/bf-blender/trunk/blender" -fi - -inherit eutils python versionator flag-o-matic toolchain-funcs ${SCM} - -IUSE="+game-engine player +elbeem +openexr ffmpeg jpeg2k openal openmp \ - +dds debug fftw jack apidoc sndfile lcms tweak-mode sdl sse \ - redcode +zlib iconv contrib collada verse" - -# not complete/working features -#IUSE="verse collada test" - -LANGS="en ar bg ca cs de el es fi fr hr it ja ko nl pl pt_BR ro ru sr sv uk zh_CN" -for X in ${LANGS} ; do - IUSE="${IUSE} linguas_${X}" -done - -DESCRIPTION="3D Creation/Animation/Publishing System" -HOMEPAGE="http://www.blender.org" -if [[ ${PV} == *9999 ]] ; then - SRC_URI="" -elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot - SRC_URI="mirror://gentoo/${P}.tar.xz" -else # Official release - SRC_URI="http://download.blender.org/source/${P}.tar.gz" -fi - -#SLOT="$(get_version_component_range 1-2)" -SLOT="2.5" -LICENSE="|| ( GPL-2 BL )" -KEYWORDS="~amd64 ~x86" - -RDEPEND="virtual/jpeg - media-libs/libpng - x11-libs/libXi - x11-libs/libX11 - media-libs/tiff - media-libs/libsamplerate - virtual/opengl - >=media-libs/freetype-2.0 - virtual/libintl - media-libs/glew - dev-cpp/eigen:2 - >=sci-physics/bullet-2.76 - iconv? ( virtual/libiconv ) - zlib? ( sys-libs/zlib ) - sdl? ( media-libs/libsdl[audio,joystick] ) - openexr? ( media-libs/openexr ) - ffmpeg? ( - virtual/ffmpeg[x264,mp3,encode,theora] - jpeg2k? ( virtual/ffmpeg[x264,mp3,encode,theora,jpeg2k] ) - ) - openal? ( >=media-libs/openal-1.6.372 ) - fftw? ( sci-libs/fftw:3.0 ) - jack? ( media-sound/jack-audio-connection-kit ) - sndfile? ( media-libs/libsndfile ) - lcms? ( media-libs/lcms )" - -DEPEND=">=dev-util/scons-0.98 - apidoc? ( - dev-python/sphinx - >=app-doc/doxygen-1.5.7[-nodot] - ) - x11-base/xorg-server - ${RDEPEND}" - -# configure internationalization only if LINGUAS have more -# languages than 'en', otherwise must be disabled -if [[ ${LINGUAS} != "en" && -n ${LINGUAS} ]]; then - DEPEND="${DEPEND} - sys-devel/gettext" -fi - -blend_with() { - local UWORD="$2" - [ -z "${UWORD}" ] && UWORD="$1" - if use $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() { -if [[ ${PV} == *9999 ]] ; then - subversion_fetch - if use contrib; then - S="${S}"/release/scripts/addons_contrib subversion_fetch \ - "https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/" - fi -else - unpack ${A} -fi -} - -pkg_setup() { - enable_openmp=0 - if use openmp; then - if tc-has-openmp; then - enable_openmp=1 - else - ewarn "You are using gcc built without 'openmp' USE." - ewarn "Switch CXX to an OpenMP capable compiler." - die "Need openmp" - fi - fi - python_set_active_version 3 -} - -src_prepare() { - #epatch "${FILESDIR}"/${PN}-${SLOT}-CVE-2008-1103.patch - #epatch "${FILESDIR}"/${PN}-${SLOT}-CVE-2008-4863.patch - #epatch "${FILESDIR}"/${PN}-2.49a-sys-openjpeg.patch - epatch "${FILESDIR}"/${P}-bmake.patch - epatch "${FILESDIR}"/${P}-doxygen.patch - epatch "${FILESDIR}"/${P}-libav-0.7.patch - epatch "${FILESDIR}"/${P}-CVE-2009-3850-v1.patch - epatch "${FILESDIR}"/${P}-desktop.patch - - # OpenJPEG - einfo "Removing bundled OpenJPEG ..." - rm -r extern/libopenjpeg - - # Glew - einfo "Removing bundled Glew ..." - rm -r extern/glew - epatch "${FILESDIR}"/${P}-glew.patch - - # binreloc -# einfo "Removing bundled binreloc ..." -# rm -r extern/binreloc -# epatch "${FILESDIR}"/${PN}-${SLOT}-binreloc.patch - - # Eigen2 - einfo "Removing bundled Eigen2 ..." - rm -r extern/Eigen2 - epatch "${FILESDIR}"/${P}-eigen.patch - - # Bullet -# einfo "Removing bundled Bullet2 ..." -# rm -r extern/bullet2 -# epatch "${FILESDIR}"/${PN}-${SLOT}-bullet.patch -} - -src_configure() { - # add system openjpeg into Scons build options. - cat <<- EOF >> "${S}"/user-config.py - BF_OPENJPEG="/usr" - BF_OPENJPEG_INC="/usr/include" - BF_OPENJPEG_LIB="openjpeg" - EOF - - # FIX: littlecms includes path aren't specified - if use lcms; then - cat <<- EOF >> "${S}"/user-config.py - BF_LCMS_INC="/usr/include/" - BF_LCMS_LIB="lcms" - BF_LCMS_LIBPATH="/usr/lib/" - EOF - fi - - # add system sci-physic/bullet into Scons build options. -# cat <<- EOF >> "${S}"/user-config.py -# WITH_BF_BULLET=1 -# BF_BULLET="/usr/include" -# BF_BULLET_INC="/usr/include /usr/include/BulletCollision /usr/include/BulletDynamics /usr/include/LinearMath /usr/include/BulletSoftBody" -# BF_BULLET_LIB="BulletSoftBody BulletDynamics BulletCollision LinearMath" -# EOF - - #add iconv into Scons build options. - if use !elibc_glibc && use !elibc_uclibc && use iconv; then - cat <<- EOF >> "${S}"/user-config.py - WITH_BF_ICONV=1 - BF_ICONV="/usr" - EOF - fi - - # configure internationalization only if LINGUAS have more - # languages than 'en', otherwise must be disabled - [[ -z ${LINGUAS} ]] || [[ ${LINGUAS} == "en" ]] && echo "WITH_BF_INTERNATIONAL=0" >> "${S}"/user-config.py - - # configure Elbeem fluid system - use elbeem || echo "BF_NO_ELBEEM=1" >> "${S}"/user-config.py - - # configure Tweak Mode - use tweak-mode && echo "BF_TWEAK_MODE=1" >> "${S}"/user-config.py - - # FIX: Game Engine module needs to be active to build the Blender Player - if ! use game-engine && use player; then - elog "Forcing Game Engine [+game-engine] as required by Blender Player [+player]" - echo "WITH_BF_GAMEENGINE=1" >> "${S}"/user-config.py - else - blend_with game-engine gameengine - fi - - # set CFLAGS used in /etc/make.conf correctly - echo "CFLAGS=[`for i in ${CFLAGS[@]}; do printf "%s \'$i"\',; done`] " \ - | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - # set CXXFLAGS used in /etc/make.conf correctly - local FILTERED_CXXFLAGS="`for i in ${CXXFLAGS[@]}; do printf "%s \'$i"\',; done`" - echo "CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py - echo "BGE_CXXFLAGS=[${FILTERED_CXXFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - # reset general options passed to the C/C++ compilers (useless hardcoded flags) - # FIX: forcing '-funsigned-char' fixes an anti-aliasing issue with menu - # shadows, see bug #276338 for reference - echo "CCFLAGS= ['-funsigned-char', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']" >> "${S}"/user-config.py - - # set LDFLAGS used in /etc/make.conf correctly - local FILTERED_LDFLAGS="`for i in ${LDFLAGS[@]}; do printf "%s \'$i"\',; done`" - echo "LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py - echo "PLATFORM_LINKFLAGS=[${FILTERED_LDFLAGS}]" | sed -e "s:,]: ]:" >> "${S}"/user-config.py - - # reset REL_* variables (useless hardcoded flags) - cat <<- EOF >> "${S}"/user-config.py - REL_CFLAGS=[] - REL_CXXFLAGS=[] - REL_CCFLAGS=[] - EOF - - # reset warning flags (useless for NON blender developers) - cat <<- EOF >> "${S}"/user-config.py - C_WARN =[ '-w', '-g0' ] - CC_WARN =[ '-w', '-g0' ] - CXX_WARN=[ '-w', '-g0' ] - EOF - - # detecting -j value from MAKEOPTS - local NUMJOBS="$( echo "${MAKEOPTS}" | sed -ne 's,.*-j\([[:digit:]]\+\).*,\1,p' )" - [[ -z "${NUMJOBS}" ]] && NUMJOBS=1 # resetting to -j1 for empty MAKEOPTS - - # generic settings which differ from the defaults from linux2-config.py - cat <<- EOF >> "${S}"/user-config.py - BF_OPENGL_LIB='GL GLU X11 Xi GLEW' - BF_INSTALLDIR="../install" - WITHOUT_BF_PYTHON_INSTALL=1 - BF_PYTHON="/usr" - BF_PYTHON_VERSION="3.2" - BF_PYTHON_ABI_FLAGS="" - BF_BUILDINFO=0 - BF_QUIET=1 - BF_NUMJOBS=${NUMJOBS} - BF_LINE_OVERWRITE=0 - WITH_BF_FHS=1 - WITH_BF_BINRELOC=0 - WITH_BF_STATICOPENGL=0 - WITH_BF_OPENMP=${enable_openmp} - EOF - - # configure WITH_BF* Scons build options - for arg in \ - 'sdl' \ - 'apidoc docs' \ - 'lcms' \ - 'jack' \ - 'sndfile' \ - 'openexr' \ - 'dds' \ - 'fftw fftw3' \ - 'jpeg2k openjpeg' \ - 'openal'\ - 'ffmpeg' \ - 'ffmpeg ogg' \ - 'player' \ - 'collada' \ - 'sse rayoptimization' \ - 'redcode' \ - 'zlib' \ - 'verse' ; do - blend_with ${arg} - done - - # enable debugging/testing support - use debug && echo "BF_DEBUG=1" >> "${S}"/user-config.py - use test && echo "BF_UNIT_TEST=1" >> "${S}"/user-config.py -} - -src_compile() { - scons || die \ - '!!! Please add "${S}/scons.config" when filing bugs reports \ - to bugs.gentoo.org' - - einfo "Building plugins ..." - cd "${WORKDIR}"/install/${PV}/plugins/ \ - || die "dir ${WORKDIR}/install/plugins/ do not exist" - chmod 755 bmake - - # FIX: plugins are built without respecting user's LDFLAGS - emake \ - CFLAGS="${CFLAGS} -fPIC" \ - LDFLAGS="$(raw-ldflags) -Bshareable" \ - > /dev/null \ - || die "plugins compilation failed" - - # final cleanup - rm -r "${WORKDIR}"/install/{Python-license.txt,icons,GPL-license.txt,copyright.txt} - -} - -src_install() { - # creating binary wrapper - cat <<- EOF >> "${WORKDIR}/install/blender-${SLOT}" - #!/bin/sh - - # stop this script if the local blender path is a symlink - if [ -L \${HOME}/.blender ]; then - echo "Detected a symbolic link for \${HOME}/.blender" - echo "Sorry, to avoid dangerous situations, the Blender binary can" - echo "not be started until you have removed the symbolic link:" - echo " # rm -i \${HOME}/.blender" - exit 1 - fi - - export BLENDER_SYSTEM_SCRIPTS="/usr/share/blender/${SLOT}/scripts" - export BLENDER_SYSTEM_DATAFILES="/usr/share/blender/${SLOT}/datafiles" - exec /usr/bin/blender-bin-${SLOT} \$* - EOF - - # install binaries - exeinto /usr/bin/ - cp "${WORKDIR}/install/blender" "${WORKDIR}/install/blender-bin-${SLOT}" - doexe "${WORKDIR}/install/blender-bin-${SLOT}" - doexe "${WORKDIR}/install/blender-${SLOT}" - if use player; then - cp "${WORKDIR}/install/blenderplayer" \ - "${WORKDIR}/install/blenderplayer-${SLOT}" - doexe "${WORKDIR}/install/blenderplayer-${SLOT}" - fi - if use verse; then - cp "${WORKDIR}"/install/bin/verse_server \ - "${WORKDIR}/install/bin/verse_server-${SLOT}" - doexe "${WORKDIR}"/install/bin/verse_server-${SLOT} - fi - - # install plugins - exeinto /usr/share/${PN}/${SLOT}/textures - doexe "${WORKDIR}"/install/${PV}/plugins/texture/*.so - exeinto /usr/share/${PN}/${SLOT}/sequences - doexe "${WORKDIR}"/install/${PV}/plugins/sequence/*.so - insinto /usr/include/${PN}/${SLOT} - doins "${WORKDIR}"/install/${PV}/plugins/include/*.h -# rm -r "${WORKDIR}"/install/${PV}/plugins || die - - # install desktop file - insinto /usr/share/pixmaps - cp release/freedesktop/icons/scalable/blender.svg \ - release/freedesktop/icons/scalable/blender-${SLOT}.svg - doins release/freedesktop/icons/scalable/blender-${SLOT}.svg - insinto /usr/share/applications - cp release/freedesktop/blender.desktop \ - release/freedesktop/blender-${SLOT}.desktop - doins release/freedesktop/blender-${SLOT}.desktop || die - newins "${FILESDIR}"/${P}-insecure.desktop ${PN}-${SLOT}-insecure.desktop || die - - # install docs -# use doc && dodoc release/text/BlenderQuickStart.pdf - if use apidoc; then - - einfo "Generating (BGE) Blender Game Engine API docs ..." - docinto "API/BGE_API" - dohtml -r "${WORKDIR}"/blender/doc/* -# rm -r "${WORKDIR}"/blender/doc - -# einfo "Generating (BPY) Blender Python API docs ..." -# epydoc source/blender/python/doc/*.py -v \ -# -o doc/BPY_API \ -# --quiet --quiet --quiet \ -# --simple-term \ -# --inheritance=included \ -# --graph=all \ -# --dotpath /usr/bin/dot \ -# || die "epydoc failed." -# docinto "API/python" -# dohtml -r doc/BPY_API/* - - einfo "Generating Blender C/C++ API docs ..." - pushd "${WORKDIR}"/blender/doc/doxygen > /dev/null - doxygen -u Doxyfile - doxygen || die "doxygen failed to build API docs." - docinto "API/blender" - dohtml -r html/* - popd > /dev/null - fi - - # installing blender - insinto /usr/share/${PN}/${SLOT} - doins -r "${WORKDIR}"/install/${PV}/* -# doins -r "${WORKDIR}"/install/${SLOT}/* - - # FIX: making all python scripts readable only by group 'users', - # so nobody can modify scripts apart root user, but python - # cache (*.pyc) can be written and shared across the users. -# chown root:users -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die -# chmod 750 -R "${D}/usr/share/${PN}/${SLOT}/scripts" || die -} - -pkg_preinst() { - if [ -h "${ROOT}/usr/$(get_libdir)/blender/plugins/include" ]; - then - rm -r "${ROOT}"/usr/$(get_libdir)/blender/plugins/include - fi -} - -pkg_postinst() { - echo - elog "Blender uses python integration. As such, may have some" - elog "inherit risks with running unknown python scripting." - elog -# elog "CVE-2008-1103-1.patch has been removed as it interferes" -# elog "with autosave undo features. Up stream blender coders" -# elog "have not addressed the CVE issue as the status is still" -# elog "a CANDIDATE and not CONFIRMED." -# elog -# elog "CVE-2008-4863.patch has been remove as it interferes" -# elog "with the load of bpy_ops.py and all the UI python" -# elog "scripts." -# elog - elog "It is recommended to change your blender temp directory" - elog "from /tmp to /home/user/tmp or another tmp file under your" - elog "home directory. This can be done by starting blender, then" - elog "dragging the main menu down do display all paths." - elog - elog "Blender has its own internal rendering engine but you" - elog "can export to external renderers for image computation" - elog "like: YafRay[1], sunflow[2], PovRay[3] and luxrender[4]" - elog - elog "If you need one of them just emerge it:" - elog " [1] emerge -av media-gfx/yafray" - elog " [2] emerge -av media-gfx/sunflow" - elog " [3] emerge -av media-gfx/povray" - elog " [4] emerge -av media-gfx/luxrender" - elog - elog "When setting the Blender paths with the User Preferences" - elog "dialog box, remember to NOT declare your home's paths as:" - elog "~/.blender, but as: /home/user/.blender; in other words," - elog "DO NOT USE the tilde inside the paths, as Blender is not" - elog "able to handle it, ignoring your customizations." -} |