diff options
author | Markus Meier <maekke@gentoo.org> | 2008-10-16 05:27:40 +0000 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2008-10-16 05:27:40 +0000 |
commit | 0ba2cb2f5771786bd731244b3b34ec49721e40ef (patch) | |
tree | d1363148bc21d5f8f93ddffba0ada924d4383e10 /media-gfx/blender | |
parent | add media-gfx/blender-2.48-r2 to the media-video/ffmpeg-0.4.9_p20081014 mask (diff) | |
download | gentoo-2-0ba2cb2f5771786bd731244b3b34ec49721e40ef.tar.gz gentoo-2-0ba2cb2f5771786bd731244b3b34ec49721e40ef.tar.bz2 gentoo-2-0ba2cb2f5771786bd731244b3b34ec49721e40ef.zip |
bump to 2.48 (bug #242202), with three revisions for different ffmpeg versions (-r2 is for media-video/ffmpeg-0.4.9_p20081014 with patch from bug #242058)
(Portage version: 2.2_rc12/cvs/Linux 2.6.27 i686)
Diffstat (limited to 'media-gfx/blender')
-rw-r--r-- | media-gfx/blender/ChangeLog | 13 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.48-r1.ebuild | 150 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.48-r2.ebuild | 151 | ||||
-rw-r--r-- | media-gfx/blender/blender-2.48.ebuild | 149 | ||||
-rw-r--r-- | media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch | 25 |
5 files changed, 487 insertions, 1 deletions
diff --git a/media-gfx/blender/ChangeLog b/media-gfx/blender/ChangeLog index 69473b781d7e..da76a2033db6 100644 --- a/media-gfx/blender/ChangeLog +++ b/media-gfx/blender/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for media-gfx/blender # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.151 2008/09/10 20:04:26 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/ChangeLog,v 1.152 2008/10/16 05:27:38 maekke Exp $ + +*blender-2.48-r2 (16 Oct 2008) +*blender-2.48-r1 (16 Oct 2008) +*blender-2.48 (16 Oct 2008) + + 16 Oct 2008; Markus Meier <maekke@gentoo.org> + +files/blender-2.48-ffmpeg-20081014.patch, +blender-2.48.ebuild, + +blender-2.48-r1.ebuild, +blender-2.48-r2.ebuild: + bump to 2.48 (bug #242202), with three revisions for different ffmpeg + versions (-r2 is for media-video/ffmpeg-0.4.9_p20081014 with patch from + bug #242058) 10 Sep 2008; Markus Meier <maekke@gentoo.org> blender-2.47.ebuild, blender-2.47-r1.ebuild: diff --git a/media-gfx/blender/blender-2.48-r1.ebuild b/media-gfx/blender/blender-2.48-r1.ebuild new file mode 100644 index 000000000000..a91c36e164fc --- /dev/null +++ b/media-gfx/blender/blender-2.48-r1.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.48-r1.ebuild,v 1.1 2008/10/16 05:27:38 maekke Exp $ + +EAPI="2" + +inherit multilib flag-o-matic eutils python + +#IUSE="jpeg mozilla png sdl static truetype" +IUSE="blender-game ffmpeg jpeg nls openal openexr openmp + player png quicktime verse" +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="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=">=dev-libs/openssl-0.9.6 + ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 ) + 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 ) + quicktime? ( media-libs/libquicktime ) + >=media-libs/libsdl-1.2 + virtual/opengl" + +DEPEND=">=dev-util/scons-0.98 + x11-libs/libXt + x11-proto/inputproto + ${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_prepare() { + epatch "${FILESDIR}"/blender-2.37-dirs.patch + epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch + epatch "${FILESDIR}"/blender-2.46-ffmpeg.patch + epatch "${FILESDIR}"/blender-2.46-cve-2008-1103-1.patch +} + +src_configure() { + if use ffmpeg ; then +# cd "${S}"/extern +# rm -rf ffmpeg libmp3lame x264 + cat <<- EOF >> "${S}"/user-config.py + BF_FFMPEG="/usr" + BF_FFMPEG_LIB="avformat avcodec swscale avutil" + EOF + fi + # pass compiler flags to the scons build system + # and set python version to current version in use + python_version + cat <<- EOF >> "${S}"/user-config.py + CFLAGS += '${CFLAGS}' + BF_PYTHON_VERSION="${PYVER}" + BF_PYTHON_INC="/usr/include/python${PYVER}" + BF_PYTHON_BINARY="/usr/bin/python${PYVER}" + BF_PYTHON_LIB="python${PYVER}" + EOF + + if use openmp && built_with_use --missing false sys-devel/gcc openmp ; then + echo "WITH_BF_OPENMP=1" >> "${S}"/user-config.py + elog "enabling openmp" + else + echo "WITH_BF_OPENMP=0" >> "${S}"/user-config.py + elog "disabling openmp" + fi + + for arg in \ + 'blender-game gameengine' \ + 'ffmpeg' \ + 'jpeg' \ + 'nls international' \ + 'openal' \ + 'openexr' \ + 'player' \ + 'png' \ + '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 + + 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 "${FILESDIR}"/${PN}.png + 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 +} diff --git a/media-gfx/blender/blender-2.48-r2.ebuild b/media-gfx/blender/blender-2.48-r2.ebuild new file mode 100644 index 000000000000..03649142a572 --- /dev/null +++ b/media-gfx/blender/blender-2.48-r2.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.48-r2.ebuild,v 1.1 2008/10/16 05:27:38 maekke Exp $ + +EAPI="2" + +inherit multilib flag-o-matic eutils python + +#IUSE="jpeg mozilla png sdl static truetype" +IUSE="blender-game ffmpeg jpeg nls openal openexr openmp + player png quicktime verse" +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="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=">=dev-libs/openssl-0.9.6 + ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20081014 ) + 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 ) + quicktime? ( media-libs/libquicktime ) + >=media-libs/libsdl-1.2 + virtual/opengl" + +DEPEND=">=dev-util/scons-0.98 + x11-libs/libXt + x11-proto/inputproto + ${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_prepare() { + epatch "${FILESDIR}"/blender-2.37-dirs.patch + epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch + epatch "${FILESDIR}"/blender-2.46-ffmpeg.patch + epatch "${FILESDIR}"/blender-2.46-cve-2008-1103-1.patch + epatch "${FILESDIR}"/${P}-ffmpeg-20081014.patch +} + +src_configure() { + if use ffmpeg ; then +# cd "${S}"/extern +# rm -rf ffmpeg libmp3lame x264 + cat <<- EOF >> "${S}"/user-config.py + BF_FFMPEG="/usr" + BF_FFMPEG_LIB="avformat avcodec swscale avutil" + EOF + fi + # pass compiler flags to the scons build system + # and set python version to current version in use + python_version + cat <<- EOF >> "${S}"/user-config.py + CFLAGS += '${CFLAGS}' + BF_PYTHON_VERSION="${PYVER}" + BF_PYTHON_INC="/usr/include/python${PYVER}" + BF_PYTHON_BINARY="/usr/bin/python${PYVER}" + BF_PYTHON_LIB="python${PYVER}" + EOF + + if use openmp && built_with_use --missing false sys-devel/gcc openmp ; then + echo "WITH_BF_OPENMP=1" >> "${S}"/user-config.py + elog "enabling openmp" + else + echo "WITH_BF_OPENMP=0" >> "${S}"/user-config.py + elog "disabling openmp" + fi + + for arg in \ + 'blender-game gameengine' \ + 'ffmpeg' \ + 'jpeg' \ + 'nls international' \ + 'openal' \ + 'openexr' \ + 'player' \ + 'png' \ + '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 + + 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 "${FILESDIR}"/${PN}.png + 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 +} diff --git a/media-gfx/blender/blender-2.48.ebuild b/media-gfx/blender/blender-2.48.ebuild new file mode 100644 index 000000000000..c51acbae4652 --- /dev/null +++ b/media-gfx/blender/blender-2.48.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/blender/blender-2.48.ebuild,v 1.1 2008/10/16 05:27:38 maekke Exp $ + +inherit multilib flag-o-matic eutils python + +#IUSE="jpeg mozilla png sdl static truetype" +IUSE="blender-game ffmpeg jpeg nls openal openexr openmp + player png quicktime verse" +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="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=">=dev-libs/openssl-0.9.6 + ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20070616-r1 + media-libs/x264 ) + 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 ) + quicktime? ( media-libs/libquicktime ) + >=media-libs/libsdl-1.2 + virtual/opengl" + +DEPEND=">=dev-util/scons-0.98 + x11-libs/libXt + x11-proto/inputproto + ${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}" + epatch "${FILESDIR}"/blender-2.37-dirs.patch + epatch "${FILESDIR}"/blender-2.44-scriptsdir.patch + epatch "${FILESDIR}"/blender-2.46-cve-2008-1103-1.patch + + if use ffmpeg ; then +# cd "${S}"/extern +# rm -rf ffmpeg libmp3lame x264 + cat <<- EOF >> "${S}"/user-config.py + BF_FFMPEG="/usr" + BF_FFMPEG_LIB="avformat avcodec swscale avutil" + EOF + fi + # pass compiler flags to the scons build system + # and set python version to current version in use + python_version + cat <<- EOF >> "${S}"/user-config.py + CFLAGS += '${CFLAGS}' + BF_PYTHON_VERSION="${PYVER}" + BF_PYTHON_INC="/usr/include/python${PYVER}" + BF_PYTHON_BINARY="/usr/bin/python${PYVER}" + BF_PYTHON_LIB="python${PYVER}" + EOF + + if use openmp && built_with_use --missing false sys-devel/gcc openmp ; then + echo "WITH_BF_OPENMP=1" >> "${S}"/user-config.py + elog "enabling openmp" + else + echo "WITH_BF_OPENMP=0" >> "${S}"/user-config.py + elog "disabling openmp" + fi +} + +src_compile() { + for arg in \ + 'blender-game gameengine' \ + 'ffmpeg' \ + 'jpeg' \ + 'nls international' \ + 'openal' \ + 'openexr' \ + 'player' \ + 'png' \ + 'verse' ; do + blend_with ${arg} + done + + # 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 + + 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 "${FILESDIR}"/${PN}.png + 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 +} diff --git a/media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch b/media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch new file mode 100644 index 000000000000..93ae633d7501 --- /dev/null +++ b/media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch @@ -0,0 +1,25 @@ +Index: blender-2.47/source/blender/src/hddaudio.c +=================================================================== +--- blender-2.47.orig/source/blender/src/hddaudio.c ++++ blender-2.47/source/blender/src/hddaudio.c +@@ -302,7 +302,8 @@ static void sound_hdaudio_extract_small_ + audio_pkt_size = packet.size; + + while (audio_pkt_size > 0) { +- len = avcodec_decode_audio( ++ data_size= AVCODEC_MAX_AUDIO_FRAME_SIZE; ++ len = avcodec_decode_audio2( + hdaudio->pCodecCtx, + hdaudio->decode_cache + + decode_pos, +@@ -469,7 +470,8 @@ static void sound_hdaudio_extract_small_ + } + + while (audio_pkt_size > 0) { +- len = avcodec_decode_audio( ++ data_size = AVCODEC_MAX_AUDIO_FRAME_SIZE; ++ len = avcodec_decode_audio2( + hdaudio->pCodecCtx, + hdaudio->decode_cache + + decode_pos, + |