diff options
29 files changed, 10 insertions, 1986 deletions
diff --git a/app-accessibility/espeak/espeak-1.42.04.ebuild b/app-accessibility/espeak/espeak-1.42.04.ebuild deleted file mode 100644 index 33f16bc..0000000 --- a/app-accessibility/espeak/espeak-1.42.04.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.42.04.ebuild,v 1.8 2010/07/20 18:37:03 jer Exp $ - -EAPI="2" - -inherit eutils - -MY_P="${P}-source" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" -DESCRIPTION="Speech synthesizer for English and other languages" -HOMEPAGE="http://espeak.sourceforge.net/" -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" -IUSE="portaudio pulseaudio" -RDEPEND="portaudio? ( >=media-libs/portaudio-19_pre20071207 ) - pulseaudio? ( media-sound/pulseaudio )" - DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR}/${MY_P} - -get_audio() { - local MY_AUDIO - - if use portaudio; then - MY_AUDIO=portaudio - elif use pulseaudio; then - MY_AUDIO=pulseaudio - else - MY_AUDIO=none - fi - echo ${MY_AUDIO} -} - -pkg_setup() { - if ! use portaudio && ! use pulseaudio; then - ewarn - ewarn Since portaudio and pulseaudio are not in your use flags, - ewarn espeak will only be able to create wav files. - ewarn If this is not what you want, press ctrl-c and put either - ewarn portaudio or pulseaudio in your use flags. - ebeep - epause 10 - elif use portaudio && use pulseaudio; then - die "You must choose either portaudio or pulseaudio, but not both." - fi -} - -src_prepare() { - cd src - # gentoo uses portaudio 19. - if use portaudio; then - mv -f portaudio19.h portaudio.h - fi -} - -src_compile() { - cd src - emake AUDIO="$(get_audio)" CXXFLAGS="${CXXFLAGS}" all || die "Compilation failed" - - einfo "Fixing byte order of phoneme data files" - cd "${S}/platforms/big_endian" - make - ./espeak-phoneme-data "${S}/espeak-data" - cp -f phondata phonindex phontab "${S}/espeak-data" -} - -src_install() { - cd src - make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" AUDIO="$(get_audio)" install || die "Installation failed" - - cd .. - insinto /usr/share/espeak-data - doins -r dictsource - dodoc ChangeLog ReadMe - dohtml -r docs/* -} diff --git a/app-accessibility/espeak/espeak-1.45.03.ebuild b/app-accessibility/espeak/espeak-1.45.03.ebuild deleted file mode 100644 index e3674db..0000000 --- a/app-accessibility/espeak/espeak-1.45.03.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.45.03.ebuild,v 1.1 2011/03/22 17:10:56 williamh Exp $ - -EAPI="4" - -inherit eutils toolchain-funcs - -MY_P="${P}-source" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" -DESCRIPTION="Speech synthesizer for English and other languages" -HOMEPAGE="http://espeak.sourceforge.net/" -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="portaudio pulseaudio" -REQUIRED_USE="portaudio? ( !pulseaudio ) - pulseaudio? ( !portaudio )" - RDEPEND=" pulseaudio? ( media-sound/pulseaudio ) - portaudio? ( >=media-libs/portaudio-19_pre20071207 )" -DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR}/${MY_P} - -get_audio() { - if use portaudio; then - echo portaudio - elif use pulseaudio; then - echo pulseaudio - else - echo none - fi -} - -src_prepare() { - cd src - # gentoo uses portaudio 19. - mv -f portaudio19.h portaudio.h -} - -src_compile() { - cd src - emake PREFIX="${EPREFIX}/usr" AUDIO="$(get_audio)" \ - CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" all - - einfo "Fixing byte order of phoneme data files" - cd "${S}/platforms/big_endian" - make - ./espeak-phoneme-data "${S}/espeak-data" - cp -f phondata phonindex phontab "${S}/espeak-data" -} - -src_install() { - cd src - make DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="\$(PREFIX)/$(get_libdir)" AUDIO="$(get_audio)" install - - cd .. - insinto /usr/share/espeak-data - doins -r dictsource - dodoc ChangeLog.txt ReadMe - dohtml -r docs/* -} - -pkg_postinst() { - if ! use portaudio && ! use pulseaudio; then - ewarn "Since portaudio and pulseaudio are not in your use flags," - ewarn "espeak will only be able to create wav files." - ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}" - ewarn "with either portaudio or pulseaudio USE flag enabled." - fi -} diff --git a/app-accessibility/espeak/espeak-1.45.04.ebuild b/app-accessibility/espeak/espeak-1.45.04.ebuild deleted file mode 100644 index 2a1f4f0..0000000 --- a/app-accessibility/espeak/espeak-1.45.04.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.45.04.ebuild,v 1.5 2011/12/04 16:06:46 armin76 Exp $ - -EAPI="4" - -inherit eutils toolchain-funcs - -MY_P="${P}-source" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" -DESCRIPTION="Speech synthesizer for English and other languages" -HOMEPAGE="http://espeak.sourceforge.net/" -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ~ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux" -IUSE="portaudio pulseaudio" -REQUIRED_USE="portaudio? ( !pulseaudio ) - pulseaudio? ( !portaudio )" - RDEPEND=" pulseaudio? ( media-sound/pulseaudio ) - portaudio? ( >=media-libs/portaudio-19_pre20071207 )" -DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR}/${MY_P} - -get_audio() { - if use portaudio; then - echo portaudio - elif use pulseaudio; then - echo pulseaudio - else - echo none - fi -} - -src_prepare() { - cd src - # gentoo uses portaudio 19. - mv -f portaudio19.h portaudio.h -} - -src_compile() { - cd src - emake PREFIX="${EPREFIX}/usr" AUDIO="$(get_audio)" \ - CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" all - - einfo "Fixing byte order of phoneme data files" - cd "${S}/platforms/big_endian" - make - ./espeak-phoneme-data "${S}/espeak-data" - cp -f phondata phonindex phontab "${S}/espeak-data" -} - -src_install() { - cd src - make DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="\$(PREFIX)/$(get_libdir)" AUDIO="$(get_audio)" install - - cd .. - insinto /usr/share/espeak-data - doins -r dictsource - dodoc ChangeLog.txt ReadMe - dohtml -r docs/* -} - -pkg_postinst() { - if ! use portaudio && ! use pulseaudio; then - ewarn "Since portaudio and pulseaudio are not in your use flags," - ewarn "espeak will only be able to create wav files." - ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}" - ewarn "with either portaudio or pulseaudio USE flag enabled." - fi -} diff --git a/app-misc/posterazor/posterazor-1.5.ebuild b/app-misc/posterazor/posterazor-1.5.ebuild deleted file mode 100644 index 2ea01da..0000000 --- a/app-misc/posterazor/posterazor-1.5.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" -inherit eutils -#Source Releases/1.5/PosteRazor-1.5-Source.zip - -MY_P=PosteRazor-${PV}-Source -SRC_URI="mirror://sourceforge/${PN}/Source Releases/${PV}/${MY_P}.zip" - -DESCRIPTION="PosteRazor cuts raster images into multipage PDF documents." -HOMEPAGE="http://posterazor.sourceforge.net/" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -RDEPEND="" - -src_compile() { -unzip ${DISTDIR}/${MY_P}.zip -d ${WORKDIR} -} -src_install() { - cd ${WORKDIR}/${MY_P}/ - cmake - rm ${WORKDIR}/${MY_P}/papagayo.ic* - insinto /usr/share/${PN} - doins -r ${WORKDIR}/${MY_P}/* - exeinto /usr/bin - doexe ${FILESDIR}/papagayo - dodoc ${WORKDIR}/${MY_P}/*.txt ${WORKDIR}/${MY_P}/rsrc/*.html - doicon ${WORKDIR}/${MY_P}/rsrc/papagayo.jpg - make_desktop_entry papagayo Papagayo -} diff --git a/app-misc/posterazor/posterazor-1.5.ebuild_ b/app-misc/posterazor/posterazor-1.5.ebuild_ deleted file mode 100644 index 7dc721d..0000000 --- a/app-misc/posterazor/posterazor-1.5.ebuild_ +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" -inherit eutils -#Source Releases/1.5/PosteRazor-1.5-Source.zip - -MY_P=PosteRazor-${PV}-Source -SRC_URI="mirror://sourceforge/${PN}/Source%20dReleases/${PV}/${MY_P}.zip -FreeImage.h: No such file or directory" - -DESCRIPTION="PosteRazor cuts raster images into multipage PDF documents." -HOMEPAGE="http://posterazor.sourceforge.net/" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -RDEPEND="" -src_compile() { - cd src - cmake CMakeLists.txt - -} -src_install() { - cd ${WORKDIR}/${MY_P}/ - cmake - rm ${WORKDIR}/${MY_P}/papagayo.ic* - insinto /usr/share/${PN} - doins -r ${WORKDIR}/${MY_P}/* - exeinto /usr/bin - doexe ${FILESDIR}/papagayo - dodoc ${WORKDIR}/${MY_P}/*.txt ${WORKDIR}/${MY_P}/rsrc/*.html - doicon ${WORKDIR}/${MY_P}/rsrc/papagayo.jpg - make_desktop_entry papagayo Papagayo -} diff --git a/app-office/b2uconverter/ChangeLog b/app-office/b2uconverter/ChangeLog deleted file mode 100644 index e69de29..0000000 --- a/app-office/b2uconverter/ChangeLog +++ /dev/null diff --git a/app-office/b2uconverter/Manifest b/app-office/b2uconverter/Manifest index 72387b5..142a1f3 100644 --- a/app-office/b2uconverter/Manifest +++ b/app-office/b2uconverter/Manifest @@ -1,2 +1,4 @@ -DIST b2uconverter-10.01.4.oxt 63105 RMD160 90ffe2282029e3c378cb965316cb61168a1035db SHA1 b36df46cc3a9cefbb1c94246ded2d7f6b16654b6 SHA256 f419e898a107342e0b52a9c4d0f96760ce0b856dc6ed85678eade4a8a4795f77 -EBUILD b2uconverter-10.01.4.ebuild 706 RMD160 86a60e0e113972fa1393ee68d41b64dcf102897c SHA1 a531e9abdb6be40e3bf16287330a4a48a2848d5c SHA256 dcb4538f25c7c13e2534d1a4d8c744cef3bf85f95d2c481ef9fd38c2a6f94ece +DIST b2uconverter-10.01.04.oxt 63105 RMD160 90ffe2282029e3c378cb965316cb61168a1035db SHA1 b36df46cc3a9cefbb1c94246ded2d7f6b16654b6 SHA256 f419e898a107342e0b52a9c4d0f96760ce0b856dc6ed85678eade4a8a4795f77 +DIST b2uconverter-10.02.oxt 65017 RMD160 641488db4fbd476f5adb3f99e9c345b1c6052667 SHA1 d5b017a54759d2836cbcd05f6d0674609f23cefb SHA256 4d56f8784965af5c222ec538c8d70091d65f7d41c3d6405c2441caac33201358 +EBUILD b2uconverter-10.01.04.ebuild 672 RMD160 1fab4300fee61d685a06537fadf33534e6e6ca77 SHA1 27b44c414b22ff5e6fa8c2b45dd2c5796941ffe4 SHA256 6d13957db146f915dd96a68c4bb4d7deb2af8f921254f7979588a53c652b2029 +EBUILD b2uconverter-10.02.ebuild 672 RMD160 1fab4300fee61d685a06537fadf33534e6e6ca77 SHA1 27b44c414b22ff5e6fa8c2b45dd2c5796941ffe4 SHA256 6d13957db146f915dd96a68c4bb4d7deb2af8f921254f7979588a53c652b2029 diff --git a/app-office/b2uconverter/b2uconverter-10.01.3.ebuild b/app-office/b2uconverter/b2uconverter-10.01.04.ebuild index abe48d4..a4c9bb7 100644 --- a/app-office/b2uconverter/b2uconverter-10.01.3.ebuild +++ b/app-office/b2uconverter/b2uconverter-10.01.04.ebuild @@ -3,8 +3,8 @@ inherit multilib DESCRIPTION="Converting documents from old Vietnamese encodings to Unicode" -HOMEPAGE="http://extensions.libreoffice.org/extension-center/b2uconverter/" -SRC_URI="http://github.com/downloads/myguidingstar/B2Uconverter/B2UConverter.oxt" +HOMEPAGE="http://extensions.libreoffice.org/extension-center/${PN}/" +SRC_URI="http://extensions.libreoffice.org/extension-center/${PN}/releases/${PV}/${PN}-${PV}.oxt" INSTDIR="/usr/$(get_libdir)/libreoffice/share/extensions/${PN}" LICENSE="LGPL-2.1" @@ -15,7 +15,7 @@ RDEPEND="virtual/ooo" DEPEND="${RDEPEND}" src_compile() { -unzip ${DISTDIR}/B2UConverter.oxt -d ${WORKDIR} +unzip ${DISTDIR}/${PN}-${PV}.oxt -d ${WORKDIR} } src_install() { insinto "${INSTDIR}" diff --git a/app-office/b2uconverter/b2uconverter-10.01.4.ebuild b/app-office/b2uconverter/b2uconverter-10.02.ebuild index cfb84b2..a4c9bb7 100644 --- a/app-office/b2uconverter/b2uconverter-10.01.4.ebuild +++ b/app-office/b2uconverter/b2uconverter-10.02.ebuild @@ -3,8 +3,8 @@ inherit multilib DESCRIPTION="Converting documents from old Vietnamese encodings to Unicode" -HOMEPAGE="http://extensions.libreoffice.org/extension-center/b2uconverter/" -SRC_URI="http://extensions.libreoffice.org/extension-center/b2uconverter/releases/10.01.4/b2uconverter-10.01.4.oxt" +HOMEPAGE="http://extensions.libreoffice.org/extension-center/${PN}/" +SRC_URI="http://extensions.libreoffice.org/extension-center/${PN}/releases/${PV}/${PN}-${PV}.oxt" INSTDIR="/usr/$(get_libdir)/libreoffice/share/extensions/${PN}" LICENSE="LGPL-2.1" @@ -15,7 +15,7 @@ RDEPEND="virtual/ooo" DEPEND="${RDEPEND}" src_compile() { -unzip ${DISTDIR}/b2uconverter-10.01.4.oxt -d ${WORKDIR} +unzip ${DISTDIR}/${PN}-${PV}.oxt -d ${WORKDIR} } src_install() { insinto "${INSTDIR}" diff --git a/games-arcade/performous/Manifest b/games-arcade/performous/Manifest deleted file mode 100644 index 0189ed4..0000000 --- a/games-arcade/performous/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -AUX performous-gentoopaths.patch 2221 RMD160 022dad2c9b43bacdc3440d600c9a082c331a25d1 SHA1 4c80d00de213b0ab53b7fe0756527c1ce668de5c SHA256 c16f93491528774861571258463f480ec2d2f55759fd49ae2adfa2ae9af533e3 -DIST Performous-0.6.0-Source.tar.bz2 3749230 RMD160 53095b64599d8a7368656b77e96cc7893b571eac SHA1 6c7a26354421fdfa3e2a87fdc0702efbec024186 SHA256 8eaefaeff64aa44628de96c9bd5de85e09c3657a62d17b32f92dbb9eba809c6c -DIST ultrastar-songs-jc-1.zip 242698201 RMD160 b541ad7df65a9280d1f5eb8b9891083ffff797d9 SHA1 baf4287e50b8fc4d43d9719b113d04d006a0460e SHA256 b3a6f980926c4f1ce40bc763a406040855600ad005f4daa54e0ac324ce99a9ba -DIST ultrastar-songs-libre-3.zip 5289866 RMD160 98e9c4ab2364c1c26cb0f51e61c4026f43199868 SHA1 10add8daf1767671eb8b7d10927e93ea5ab73d5f SHA256 739d1c678bb7c786499f5216faee420b9b56633142928aff60a7282dae755489 -DIST ultrastar-songs-restricted-3.zip 10242651 RMD160 7eb59b4db7968097db8f850f475e32a9ecbab889 SHA1 fd4e373104df543e44e273d294c39bd7baf6923b SHA256 e05d81333f85e2c6c271a67f90beac453d64eac78cd95eec7214721182257a82 -DIST ultrastar-songs-shearer-1.zip 50411551 RMD160 20ea920aa05c489903988bf31edff467012d4921 SHA1 49d64f914cfd77cc39dcaa14b00a5b4c5df3f112 SHA256 967c3dfae2da2915a66fd9dfee14da7191e13bb95e8b0820049d109c21f25628 -EBUILD performous-0.6.0.ebuild 2850 RMD160 b46879e399eccea501d75098a2a6e0dc2e7e8385 SHA1 394e70f937caa2bce069c19aac0b30b33bc2ad11 SHA256 ad1ab67e687bfdb633488aa42b912d85860194a0f9c61fc24d5e6e2e208674f9 diff --git a/games-arcade/performous/performous-0.4.0.ebuild b/games-arcade/performous/performous-0.4.0.ebuild deleted file mode 100644 index 33a0f51..0000000 --- a/games-arcade/performous/performous-0.4.0.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ - -EAPI=2 -inherit cmake-utils games - -RESTRICT="nostrip" - -SONGS_PN=ultrastar-songs -MY_PN=Performous -MY_P=${MY_PN}-${PV}-Source -SONGS_PN=ultrastar-songs - -DESCRIPTION="Karaoke game similar to Singstar" -HOMEPAGE="http://performous.org" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2 - songs? ( - mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip - mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip - )" - -EGIT_REPO_URI="git://performous.git.sourceforge.net/gitroot/performous/performous" - -LICENSE="GPL-2 - songs? ( - CCPL-Attribution-ShareAlike-NonCommercial-2.5 - CCPL-Attribution-NonCommercial-NoDerivs-2.5 - )" -SLOT="0" -KEYWORDS="~x86 ~amd64 ~ppc ~ppc64" - -IUSE="debug alsa portaudio pulseaudio jack songs gstreamer tools editor" - -RDEPEND="gnome-base/librsvg - >=dev-libs/boost-1.36.0 - x11-libs/pango - dev-cpp/libxmlpp - media-libs/glew - media-libs/libsdl[joystick,opengl] - media-gfx/imagemagick[png] - >=media-video/ffmpeg-0.4.9_p20070616-r20 - alsa? ( media-libs/alsa-lib ) - jack? ( media-sound/jack-audio-connection-kit ) - portaudio? ( media-libs/portaudio ) - gstreamer? ( media-libs/gstreamer ) - pulseaudio? ( media-sound/pulseaudio ) - sys-apps/help2man - !games-arcade/ultrastar-ng" -DEPEND="${RDEPEND} - >=dev-util/cmake-2.6.0" - -S="${WORKDIR}/${MY_P}" - -src_unpack() { - unpack "${MY_P}.tar.bz2" - if use songs; then - cd "${S}" - unpack "${SONGS_PN}-jc-1.zip" - unpack "${SONGS_PN}-libre-3.zip" - unpack "${SONGS_PN}-restricted-3.zip" - unpack "${SONGS_PN}-shearer-1.zip" - fi -} - -src_configure() { - local mycmakeargs=" - $(cmake-utils_use alsa LIBDA_PLUGIN_ALSA) - $(cmake-utils_use jack LIBDA_PLUGIN_JACK) - $(cmake-utils_use gstreamer LIBDA_PLUGIN_GSTREAMER) - $(cmake-utils_use portaudio LIBDA_PLUGIN_PORTAUDIO) - $(cmake-utils_use pulseaudio LIBDA_PLUGIN_PULSEAUDIO) - $(cmake-utils_use_enable tools TOOLS) - $(cmake-utils_use_enable editor EDITOR) - -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} - -DSHARE_INSTALL=share/performous/ - -DLIBDA_AUTODETECT_PLUGINS=false - -DLIBDA_PLUGIN_TESTING=false - -DCMAKE_BUILD_TYPE=Release" - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - DOCS="docs/*.txt" cmake-utils_src_install - - if use songs; then - insinto "/usr/share/games/ultrastar" - doins -r "${S}/songs" || die "doins songs failed" - fi - doicon "${S}/data/${PN}.xpm" - domenu "${S}/data/${PN}.desktop" - prepgamesdirs -} diff --git a/games-arcade/performous/performous-0.5.1.ebuild b/games-arcade/performous/performous-0.5.1.ebuild deleted file mode 100644 index 1af2d4b..0000000 --- a/games-arcade/performous/performous-0.5.1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ - -EAPI=2 -inherit games cmake-utils - -RESTRICT="nostrip" - -SONGS_PN=ultrastar-songs - -MY_PN=Performous -MY_P=${MY_PN}-${PV}-Source -SONGS_PN=ultrastar-songs - -DESCRIPTION="Karaoke game similar to Singstar" -HOMEPAGE="http://performous.org" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2 - songs? ( - mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip - mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip - )" - -LICENSE="GPL-2 - songs? ( - CCPL-Attribution-ShareAlike-NonCommercial-2.5 - CCPL-Attribution-NonCommercial-NoDerivs-2.5 - )" -SLOT="0" -KEYWORDS="~x86 ~amd64 ~ppc ~ppc64" - -IUSE="debug alsa portaudio pulseaudio jack songs gstreamer tools editor" - -RDEPEND="gnome-base/librsvg - dev-libs/boost - x11-libs/pango - dev-cpp/libxmlpp - media-libs/glew - media-libs/libsdl[joystick,opengl] - media-libs/libpng - media-libs/jpeg - tools? ( media-gfx/imagemagick[png] ) - editor? ( media-gfx/imagemagick[png] ) - >=media-video/ffmpeg-0.4.9_p20070616-r20 - alsa? ( media-libs/alsa-lib ) - jack? ( media-sound/jack-audio-connection-kit ) - portaudio? ( media-libs/portaudio ) - gstreamer? ( media-libs/gstreamer ) - pulseaudio? ( media-sound/pulseaudio ) - sys-apps/help2man - !games-arcade/ultrastar-ng" -DEPEND="${RDEPEND} - >=dev-util/cmake-2.6.0" - -S="${WORKDIR}/${MY_P}" - -src_unpack() { - unpack "${MY_P}.tar.bz2" - if use songs; then - cd "${S}" - unpack "${SONGS_PN}-jc-1.zip" - unpack "${SONGS_PN}-libre-3.zip" - unpack "${SONGS_PN}-restricted-3.zip" - unpack "${SONGS_PN}-shearer-1.zip" - fi -} - -src_configure() { - local mycmakeargs=" - $(cmake-utils_use alsa LIBDA_PLUGIN_ALSA) - $(cmake-utils_use jack LIBDA_PLUGIN_JACK) - $(cmake-utils_use gstreamer LIBDA_PLUGIN_GSTREAMER) - $(cmake-utils_use portaudio LIBDA_PLUGIN_PORTAUDIO) - $(cmake-utils_use pulseaudio LIBDA_PLUGIN_PULSEAUDIO) - $(cmake-utils_use_enable tools TOOLS) - $(cmake-utils_use_enable editor EDITOR) - -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} - -DSHARE_INSTALL=share/performous - -DLIBDA_AUTODETECT_PLUGINS=false - -DLIBDA_PLUGIN_TESTING=false - -DCMAKE_BUILD_TYPE=Release" - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - DOCS="docs/*.txt" cmake-utils_src_install - - if use songs; then - insinto "/usr/share/games/ultrastar" - doins -r "${S}/songs" || die "doins songs failed" - fi - doicon "${S}/data/${PN}.xpm" - domenu "${S}/data/${PN}.desktop" - prepgamesdirs -} diff --git a/games-arcade/performous/performous-0.6.0.ebuild b/games-arcade/performous/performous-0.6.0.ebuild deleted file mode 100644 index 336a520..0000000 --- a/games-arcade/performous/performous-0.6.0.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ - -[[ ${PV} = 9999 ]] && GIT="git" -EAPI=2 - -inherit cmake-utils ${GIT} games - -SONGS_PN=ultrastar-songs - -DESCRIPTION="Party game similar to Singstar, RockBand, Guitar Hero and Stepmania" -HOMEPAGE="http://performous.org" -SRC_URI="songs? ( - mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip - mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip - )" - -if [ "$PV" != "9999" ]; then - MY_PN=Performous - MY_P=${MY_PN}-${PV}-Source - SRC_URI=" mirror://sourceforge/${PN}/${MY_P}.tar.bz2 - $SRC_URI" -else - EGIT_REPO_URI="git://performous.git.sourceforge.net/gitroot/performous/performous" - EGIT_BRANCH="master" -fi - -LICENSE="GPL-2 - songs? ( - CCPL-Attribution-ShareAlike-NonCommercial-2.5 - CCPL-Attribution-NonCommercial-NoDerivs-2.5 - )" -SLOT="0" -KEYWORDS="amd64 x86" - -IUSE="debug midi songs tools webcam" - -RDEPEND="gnome-base/librsvg - >=dev-libs/boost-1.39.0 - x11-libs/pango - dev-cpp/libxmlpp - media-libs/glew - media-libs/libsdl[joystick,opengl] - media-libs/libpng - media-libs/jpeg - tools? ( media-gfx/imagemagick[png] ) - webcam? ( media-libs/opencv[v4l] ) - >=media-video/ffmpeg-0.4.9_p20070616-r20 - media-libs/portaudio - sys-apps/help2man - !games-arcade/ultrastar-ng" -# Waiting for portmidi to enter portage (#90614) -#RDEPEND="${RDEPEND} -# midi? ( media-libs/portmidi )" -DEPEND="${RDEPEND} - >=dev-util/cmake-2.6.0" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - if [ "${PV}" != "9999" ]; then - unpack "${MY_P}.tar.bz2" - else - git_src_unpack - fi - cd "${S}" - if use songs; then - unpack "${SONGS_PN}-jc-1.zip" "${SONGS_PN}-libre-3.zip" "${SONGS_PN}-restricted-3.zip" "${SONGS_PN}-shearer-1.zip" - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-gentoopaths.patch -} - -src_configure() { - local mycmakeargs=" - $(cmake-utils_use_enable tools TOOLS) - $(cmake-utils_use_no webcam WEBCAM) - -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} - -DGENTOO_DATA_DIR=${GAMES_DATADIR}/${PN} - -DLOCALE_DIR=/usr/share - -DCMAKE_BUILD_TYPE=Release" -# local mycmakeargs=" -# $(cmake-utils_use_no midi MIDI) -# ${mycmakeargs}" - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - DOCS="docs/*.txt" cmake-utils_src_install - mv -f "${D}/${GAMES_PREFIX}/share/man" "${D}/usr/share/" - mkdir -p "${D}/${GAMES_DATADIR}/${PN}" - mv -f "${D}/${GAMES_PREFIX}/share/games/performous" "${D}/${GAMES_DATADIR}/" - - if use songs; then - insinto "${GAMES_DATADIR}/${PN}" - doins -r "${S}/songs" || die "doins songs failed" - fi - doicon "${S}/data/${PN}.xpm" - domenu "${S}/data/${PN}.desktop" - prepgamesdirs -} diff --git a/games-arcade/performous/performous-9999.ebuild b/games-arcade/performous/performous-9999.ebuild deleted file mode 100644 index 7eb426c..0000000 --- a/games-arcade/performous/performous-9999.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /cvsroot/ultrastar-ng/UltraStar-ng/portage-overlay/games-arcade/performous/performous-9999.ebuild,v 1.10 2007/09/29 13:04:19 yoda-jm Exp $ - -[[ ${PV} = 9999 ]] && GIT="git" -EAPI=2 - -inherit cmake-utils ${GIT} games - -SONGS_PN=ultrastar-songs - -DESCRIPTION="Party game similar to Singstar, RockBand, Guitar Hero and Stepmania" -HOMEPAGE="http://performous.org" -SRC_URI="songs? ( - mirror://sourceforge/${PN}/${SONGS_PN}-jc-1.zip - mirror://sourceforge/${PN}/${SONGS_PN}-libre-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-restricted-3.zip - mirror://sourceforge/${PN}/${SONGS_PN}-shearer-1.zip - )" - -if [ "$PV" != "9999" ]; then - MY_PN=Performous - MY_P=${MY_PN}-${PV}-Source - SRC_URI=" mirror://sourceforge/${PN}/${MY_P}.tar.bz2 - $SRC_URI" -else - EGIT_REPO_URI="git://performous.git.sourceforge.net/gitroot/performous/performous" - EGIT_BRANCH="master" -fi - -LICENSE="GPL-2 - songs? ( - CCPL-Attribution-ShareAlike-NonCommercial-2.5 - CCPL-Attribution-NonCommercial-NoDerivs-2.5 - )" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="debug midi songs tools webcam" - -RDEPEND="gnome-base/librsvg - >=dev-libs/boost-1.39.0 - x11-libs/pango - dev-cpp/libxmlpp - media-libs/glew - media-libs/libsdl[joystick,opengl] - media-libs/libpng - media-libs/jpeg - tools? ( media-gfx/imagemagick[png] ) - webcam? ( media-libs/opencv[v4l] ) - >=media-video/ffmpeg-0.4.9_p20070616-r20 - media-libs/portaudio - sys-apps/help2man - !games-arcade/ultrastar-ng" -# Waiting for portmidi to enter portage (#90614) -#RDEPEND="${RDEPEND} -# midi? ( media-libs/portmidi )" -DEPEND="${RDEPEND} - >=dev-util/cmake-2.6.0" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - if [ "${PV}" != "9999" ]; then - unpack "${MY_P}.tar.bz2" - else - git_src_unpack - fi - cd "${S}" - if use songs; then - unpack "${SONGS_PN}-jc-1.zip" "${SONGS_PN}-libre-3.zip" "${SONGS_PN}-restricted-3.zip" "${SONGS_PN}-shearer-1.zip" - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-gentoopaths.patch -} - -src_configure() { - local mycmakeargs=" - $(cmake-utils_use_enable tools TOOLS) - $(cmake-utils_use_no webcam WEBCAM) - -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} - -DGENTOO_DATA_DIR=${GAMES_DATADIR}/${PN} - -DLOCALE_DIR=/usr/share - -DCMAKE_BUILD_TYPE=Release" -# local mycmakeargs=" -# $(cmake-utils_use_no midi MIDI) -# ${mycmakeargs}" - - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - DOCS="docs/*.txt" cmake-utils_src_install - mv -f "${D}/${GAMES_PREFIX}/share/man" "${D}/usr/share/" - mkdir -p "${D}/${GAMES_DATADIR}/${PN}" - mv -f "${D}/${GAMES_PREFIX}/share/games/performous" "${D}/${GAMES_DATADIR}/" - - if use songs; then - insinto "${GAMES_DATADIR}/${PN}" - doins -r "${S}/songs" || die "doins songs failed" - fi - doicon "${S}/data/${PN}.xpm" - domenu "${S}/data/${PN}.desktop" - prepgamesdirs -} diff --git a/media-gfx/blender/files/blender-2.37-dirs.patch b/media-gfx/blender/files/blender-2.37-dirs.patch deleted file mode 100644 index 1b6837f..0000000 --- a/media-gfx/blender/files/blender-2.37-dirs.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -ruN blender.orig/source/blender/src/language.c blender/source/blender/src/language.c ---- blender.orig/source/blender/src/language.c 2005-06-01 10:59:36.000000000 +0200 -+++ blender/source/blender/src/language.c 2005-06-01 11:07:15.000000000 +0200 -@@ -358,9 +358,9 @@ - strcpy(name, bundlePath); - strcat(name, "/Contents/Resources/.Blanguages"); - #else -- /* Check the CWD. Takes care of the case where users -- * unpack blender tarball; cd blender-dir; ./blender */ -- strcpy(name, ".blender/.Blanguages"); -+ /* Check the standar location. Takes care of the case -+ * in which the distribution installs blender */ -+ strcpy(name, "/usr/share/blender/.Blanguages"); - #endif - lines= BLI_read_file_as_lines(name); - diff --git a/media-gfx/blender/files/blender-2.44-scriptsdir.patch b/media-gfx/blender/files/blender-2.44-scriptsdir.patch deleted file mode 100644 index 398ccc5..0000000 --- a/media-gfx/blender/files/blender-2.44-scriptsdir.patch +++ /dev/null @@ -1,91 +0,0 @@ ---- blender-2.44/source/blender/python/api2_2x/EXPP_interface.c.orig 2006-05-01 14:24:56.000000000 +0200 -+++ blender-2.44/source/blender/python/api2_2x/EXPP_interface.c 2007-06-21 22:25:39.000000000 +0200 -@@ -52,85 +52,13 @@ - */ - char *bpy_gethome(int append_scriptsdir) - { -- static char homedir[FILE_MAXDIR]; -- static char scriptsdir[FILE_MAXDIR]; -- char tmpdir[FILE_MAXDIR]; -- char bprogdir[FILE_MAXDIR]; -- char *s; -- int i; -+ static char homedir[FILE_MAXDIR]="/usr/share/blender"; -+ static char scriptsdir[FILE_MAXDIR]="/usr/share/blender/scripts"; - - if (append_scriptsdir) { -- if (scriptsdir[0] != '\0') - return scriptsdir; - } -- else if (homedir[0] != '\0') -- return homedir; -- -- /* BLI_gethome() can return NULL if env vars are not set */ -- s = BLI_gethome(); -- -- if( !s ) /* bail if no $HOME */ -- { -- printf("$HOME is NOT set\n"); -- return NULL; -- } -- -- if( strstr( s, ".blender" ) ) -- PyOS_snprintf( homedir, FILE_MAXDIR, s ); -- else -- BLI_make_file_string( "/", homedir, s, ".blender" ); -- -- /* if userhome/.blender/ exists, return it */ -- if( BLI_exists( homedir ) ) { -- if (append_scriptsdir) { -- BLI_make_file_string("/", scriptsdir, homedir, "scripts"); -- if (BLI_exists (scriptsdir)) return scriptsdir; -- } -- else return homedir; -- } -- else homedir[0] = '\0'; -- -- /* if either: -- * no homedir was found or -- * append_scriptsdir = 1 but there's no scripts/ inside homedir, -- * use argv[0] (bprogname) to get .blender/ in -- * Blender's installation dir */ -- s = BLI_last_slash( bprogname ); -- -- i = s - bprogname + 1; -- -- PyOS_snprintf( bprogdir, i, "%s", bprogname ); -- -- /* using tmpdir to preserve homedir (if) found above: -- * the ideal is to have a home dir with scripts dir inside -- * it, but if that isn't available, it's possible to -- * have a 'broken' home dir somewhere and a scripts dir in the -- * cvs sources */ -- BLI_make_file_string( "/", tmpdir, bprogdir, ".blender" ); -- -- if (BLI_exists(tmpdir)) { -- if (append_scriptsdir) { -- BLI_make_file_string("/", scriptsdir, tmpdir, "scripts"); -- if (BLI_exists(scriptsdir)) { -- PyOS_snprintf(homedir, FILE_MAXDIR, "%s", tmpdir); -- return scriptsdir; -- } -- else { -- homedir[0] = '\0'; -- scriptsdir[0] = '\0'; -- } -- } -- else return homedir; -- } -- -- /* last try for scripts dir: blender in cvs dir, scripts/ inside release/: */ -- if (append_scriptsdir) { -- BLI_make_file_string("/", scriptsdir, bprogdir, "release/scripts"); -- if (BLI_exists(scriptsdir)) return scriptsdir; -- else scriptsdir[0] = '\0'; -- } -- -- return NULL; -+ return homedir; - } - - /* PyDrivers */ diff --git a/media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch b/media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch deleted file mode 100644 index c45a811..0000000 --- a/media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up blender/source/blender/blenkernel/intern/blender.c.cve blender/source/blender/blenkernel/intern/blender.c ---- blender/source/blender/blenkernel/intern/blender.c.cve 2008-05-07 17:37:52.000000000 +0200 -+++ blender/source/blender/blenkernel/intern/blender.c 2008-05-07 17:38:22.000000000 +0200 -@@ -716,7 +716,7 @@ void BKE_undo_save_quit(void) - - BLI_make_file_string("/", str, btempdir, "quit.blend"); - -- file = open(str,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC, 0666); -+ file = open(str,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC+O_EXCL, 0666); - if(file == -1) { - error("Unable to save %s, check you have permissions", str); - return; diff --git a/media-gfx/blender/files/blender-2.46-ffmpeg.patch b/media-gfx/blender/files/blender-2.46-ffmpeg.patch deleted file mode 100644 index b06854c..0000000 --- a/media-gfx/blender/files/blender-2.46-ffmpeg.patch +++ /dev/null @@ -1,100 +0,0 @@ -diff -urN blender-2.46/source/blender/blenkernel/intern/writeffmpeg.c blender-2.46.orig/source/blender/blenkernel/intern/writeffmpeg.c ---- blender-2.46/source/blender/blenkernel/intern/writeffmpeg.c 2008-05-20 12:02:12.000000000 +0200 -+++ blender-2.46.orig/source/blender/blenkernel/intern/writeffmpeg.c 2008-05-19 16:38:16.000000000 +0200 -@@ -29,11 +29,11 @@ - - #include <stdlib.h> - -+#include <libavformat/avformat.h> -+#include <libavcodec/avcodec.h> -+#include <libavutil/rational.h> -+#include <libswscale/swscale.h> -+#include <libavcodec/opt.h> --#include <ffmpeg/avformat.h> --#include <ffmpeg/avcodec.h> --#include <ffmpeg/rational.h> --#include <ffmpeg/swscale.h> --#include <ffmpeg/opt.h> - - #if LIBAVFORMAT_VERSION_INT < (49 << 16) - #define FFMPEG_OLD_FRAME_RATE 1 -diff -urN blender-2.46/source/blender/imbuf/intern/anim.c blender-2.46.orig/source/blender/imbuf/intern/anim.c ---- blender-2.46/source/blender/imbuf/intern/anim.c 2008-05-20 12:05:41.000000000 +0200 -+++ blender-2.46.orig/source/blender/imbuf/intern/anim.c 2008-05-19 16:38:41.000000000 +0200 -@@ -83,10 +83,10 @@ - #include "IMB_anim5.h" - - #ifdef WITH_FFMPEG -+#include <libavformat/avformat.h> -+#include <libavcodec/avcodec.h> -+#include <libavutil/rational.h> -+#include <libswscale/swscale.h> --#include <ffmpeg/avformat.h> --#include <ffmpeg/avcodec.h> --#include <ffmpeg/rational.h> --#include <ffmpeg/swscale.h> - - #if LIBAVFORMAT_VERSION_INT < (49 << 16) - #define FFMPEG_OLD_FRAME_RATE 1 -diff -urN blender-2.46/source/blender/imbuf/intern/IMB_anim.h blender-2.46.orig/source/blender/imbuf/intern/IMB_anim.h ---- blender-2.46/source/blender/imbuf/intern/IMB_anim.h 2008-05-20 12:04:33.000000000 +0200 -+++ blender-2.46.orig/source/blender/imbuf/intern/IMB_anim.h 2008-05-19 16:38:41.000000000 +0200 -@@ -76,9 +76,9 @@ - #endif /* WITH_QUICKTIME */ - - #ifdef WITH_FFMPEG -+#include <libavformat/avformat.h> -+#include <libavcodec/avcodec.h> -+#include <libswscale/swscale.h> --#include <ffmpeg/avformat.h> --#include <ffmpeg/avcodec.h> --#include <ffmpeg/swscale.h> - #endif - - #include "IMB_imbuf_types.h" -diff -urN blender-2.46/source/blender/imbuf/intern/util.c blender-2.46.orig/source/blender/imbuf/intern/util.c ---- blender-2.46/source/blender/imbuf/intern/util.c 2008-05-20 12:05:04.000000000 +0200 -+++ blender-2.46.orig/source/blender/imbuf/intern/util.c 2008-05-19 16:38:41.000000000 +0200 -@@ -62,8 +62,8 @@ - #endif - - #ifdef WITH_FFMPEG -+#include <libavcodec/avcodec.h> -+#include <libavformat/avformat.h> --#include <ffmpeg/avcodec.h> --#include <ffmpeg/avformat.h> - - #if LIBAVFORMAT_VERSION_INT < (49 << 16) - #define FFMPEG_OLD_FRAME_RATE 1 -diff -urN blender-2.46/source/blender/src/buttons_scene.c blender-2.46.orig/source/blender/src/buttons_scene.c ---- blender-2.46/source/blender/src/buttons_scene.c 2008-05-20 12:03:50.000000000 +0200 -+++ blender-2.46.orig/source/blender/src/buttons_scene.c 2008-05-19 16:38:39.000000000 +0200 -@@ -108,9 +108,9 @@ - - #ifdef WITH_FFMPEG - -+#include <libavcodec/avcodec.h> /* for PIX_FMT_* and CODEC_ID_* */ -+#include <libavformat/avformat.h> -+#include <libavcodec/opt.h> --#include <ffmpeg/avcodec.h> /* for PIX_FMT_* and CODEC_ID_* */ --#include <ffmpeg/avformat.h> --#include <ffmpeg/opt.h> - - static int ffmpeg_preset_sel = 0; - -diff -urN blender-2.46/source/blender/src/hddaudio.c blender-2.46.orig/source/blender/src/hddaudio.c ---- blender-2.46/source/blender/src/hddaudio.c 2008-05-20 12:02:42.000000000 +0200 -+++ blender-2.46.orig/source/blender/src/hddaudio.c 2008-05-19 16:38:39.000000000 +0200 -@@ -33,9 +33,9 @@ - #endif - - #ifdef WITH_FFMPEG -+#include <libavformat/avformat.h> -+#include <libavcodec/avcodec.h> -+#include <libavutil/rational.h> --#include <ffmpeg/avformat.h> --#include <ffmpeg/avcodec.h> --#include <ffmpeg/rational.h> - #if LIBAVFORMAT_VERSION_INT < (49 << 16) - #define FFMPEG_OLD_FRAME_RATE 1 - #else diff --git a/media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch b/media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch deleted file mode 100644 index 93ae633..0000000 --- a/media-gfx/blender/files/blender-2.48-ffmpeg-20081014.patch +++ /dev/null @@ -1,25 +0,0 @@ -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, - diff --git a/media-gfx/blender/files/blender-2.48a-CVE-2008-4863.patch b/media-gfx/blender/files/blender-2.48a-CVE-2008-4863.patch deleted file mode 100644 index 3162a0d..0000000 --- a/media-gfx/blender/files/blender-2.48a-CVE-2008-4863.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -up blender-2.48a/source/blender/python/BPY_interface.c.cve blender-2.48a/source/blender/python/BPY_interface.c ---- blender-2.48a/source/blender/python/BPY_interface.c.cve 2008-11-03 17:31:19.000000000 +0100 -+++ blender-2.48a/source/blender/python/BPY_interface.c 2008-11-03 17:35:01.000000000 +0100 -@@ -225,6 +225,11 @@ void BPY_start_python( int argc, char ** - Py_Initialize( ); - - PySys_SetArgv( argc_copy, argv_copy ); -+ -+ /* Sanitize sys.path to prevent relative imports loading modules in -+ the current working directory */ -+ PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)"); -+ - /* Initialize thread support (also acquires lock) */ - PyEval_InitThreads(); - diff --git a/media-gfx/blender/files/blender-2.49a-bake.patch b/media-gfx/blender/files/blender-2.49a-bake.patch deleted file mode 100644 index 53674da..0000000 --- a/media-gfx/blender/files/blender-2.49a-bake.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: source/blender/render/intern/source/rendercore.c -=================================================================== ---- source/blender/render/intern/source/rendercore.c (revision 21781) -+++ source/blender/render/intern/source/rendercore.c (working copy) -@@ -2241,7 +2241,7 @@ - /* no direction checking for now, doesn't always improve the result - * (INPR(shi->facenor, bs->dir) > 0.0f); */ - -- return (R.objectinstance[ob].obr->ob != bs->actob); -+ return (R.objectinstance[ob & ~RE_RAY_TRANSFORM_OFFS].obr->ob != bs->actob); - } - - static int bake_intersect_tree(RayTree* raytree, Isect* isect, float *start, float *dir, float sign, float *hitco, float *dist) diff --git a/media-gfx/blender/files/blender-2.49a-sys-openjpeg.patch b/media-gfx/blender/files/blender-2.49a-sys-openjpeg.patch deleted file mode 100644 index a9e46ea..0000000 --- a/media-gfx/blender/files/blender-2.49a-sys-openjpeg.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- blender/tools/Blender.py.orig 2009-06-16 14:57:16.000000000 +0200 -+++ blender/tools/Blender.py 2009-07-02 15:53:49.000000000 +0200 -@@ -170,6 +170,8 @@ - if lenv['WITH_BF_OPENAL']: - if not lenv['WITH_BF_STATICOPENAL']: - syslibs += Split(lenv['BF_OPENAL_LIB']) -+ if lenv['WITH_BF_OPENJPEG']: -+ syslibs += Split(lenv['BF_OPENJPEG_LIB']) - if lenv['WITH_BF_OPENMP'] and lenv['CC'] != 'icc': - if lenv['CC'] == 'cl.exe': - syslibs += ['vcomp'] diff --git a/media-gfx/blender/files/blender-2.49b-CVE-2009-3850-v3.patch b/media-gfx/blender/files/blender-2.49b-CVE-2009-3850-v3.patch deleted file mode 100644 index 9cf17a5..0000000 --- a/media-gfx/blender/files/blender-2.49b-CVE-2009-3850-v3.patch +++ /dev/null @@ -1,105 +0,0 @@ -From 072e11130a2f96642972b0d4ac7ad2a9cd19fbf2 Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping <sebastian@pipping.org> -Date: Wed, 20 Apr 2011 16:42:17 +0200 -Subject: [PATCH] Flip default of "Auto Run Python Scripts" to disabled - (CVE-2009-3850) - -Manual overriding through new parameter -666 is supported ---- - source/blender/blenkernel/intern/blender.c | 11 ++++++++++- - source/blender/python/api2_2x/sceneRender.c | 3 ++- - source/creator/creator.c | 14 ++++++++++---- - 3 files changed, 22 insertions(+), 6 deletions(-) - -diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c -index bf208c8..029b7cf 100644 ---- a/source/blender/blenkernel/intern/blender.c -+++ b/source/blender/blenkernel/intern/blender.c -@@ -388,7 +388,16 @@ static void setup_app_data(BlendFileData *bfd, char *filename) - if (G.f & G_DEBUG) bfd->globalf |= G_DEBUG; - else bfd->globalf &= ~G_DEBUG; - -- if ((U.flag & USER_DONT_DOSCRIPTLINKS)) bfd->globalf &= ~G_DOSCRIPTLINKS; -+ if (G.f & G_DOSCRIPTLINKS) { -+ /* Blender running in -666 mode */ -+ /* NOTE: In background mode U.flag has not been initialized from ~/.B.blend */ -+ if (! G.background && (U.flag & USER_DONT_DOSCRIPTLINKS)) -+ /* Prefer disabled "Auto Run Python Scripts" over -666 */ -+ bfd->globalf &= ~G_DOSCRIPTLINKS; -+ } else { -+ /* Blender NOT running in -666 mode, deny pulling G_DOSCRIPTLINKS in */ -+ bfd->globalf &= ~G_DOSCRIPTLINKS; -+ } - - G.f= bfd->globalf; - -diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c -index 1bf2b75..e34a361 100644 ---- a/source/blender/python/api2_2x/sceneRender.c -+++ b/source/blender/python/api2_2x/sceneRender.c -@@ -498,7 +498,8 @@ static PyObject *RenderData_Render( BPy_RenderData * self ) - - RE_BlenderFrame(re, G.scene, G.scene->r.cfra); - -- BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); -+ if (G.f & G_DOSCRIPTLINKS) -+ BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); - - set_scene_bg( oldsce ); - } -diff --git a/source/creator/creator.c b/source/creator/creator.c -index a562fc3..994180d 100644 ---- a/source/creator/creator.c -+++ b/source/creator/creator.c -@@ -232,7 +232,8 @@ static void print_help(void) - printf (" -nojoystick\tDisable joystick support\n"); - printf (" -noglsl\tDisable GLSL shading\n"); - printf (" -h\t\tPrint this help text\n"); -- printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n"); -+ printf (" -666\t\tEnables automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n"); -+ printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes) (default)\n"); - printf (" -P <filename>\tRun the given Python script (filename or Blender Text)\n"); - #ifdef WIN32 - printf (" -R\t\tRegister .blend extension\n"); -@@ -366,7 +367,7 @@ int main(int argc, char **argv) - - /* first test for background */ - -- G.f |= G_DOSCRIPTLINKS; /* script links enabled by default */ -+ G.f &= ~G_DOSCRIPTLINKS; /* script links disabled by default */ - - for(a=1; a<argc; a++) { - -@@ -388,6 +389,10 @@ int main(int argc, char **argv) - exit(0); - } - -+ if (!strcmp(argv[a], "-666")){ -+ G.f |= G_DOSCRIPTLINKS; -+ } -+ - /* Handle -* switches */ - else if(argv[a][0] == '-') { - switch(argv[a][1]) { -@@ -405,7 +410,7 @@ int main(int argc, char **argv) - a= argc; - break; - -- case 'y': -+ case 'y': /* NOTE: -y works the exact opposite way in version 2.57! */ - G.f &= ~G_DOSCRIPTLINKS; - break; - -@@ -680,7 +685,8 @@ int main(int argc, char **argv) - #endif - RE_BlenderAnim(re, G.scene, frame, frame, G.scene->frame_step); - #ifndef DISABLE_PYTHON -- BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); -+ if (G.f & G_DOSCRIPTLINKS) -+ BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); - #endif - } - } else { --- -1.7.5.rc1 - diff --git a/media-gfx/blender/files/blender-2.49b-CVE-2009-3850-v4.patch b/media-gfx/blender/files/blender-2.49b-CVE-2009-3850-v4.patch deleted file mode 100644 index 9349879..0000000 --- a/media-gfx/blender/files/blender-2.49b-CVE-2009-3850-v4.patch +++ /dev/null @@ -1,139 +0,0 @@ -From f3a8d00d03cc8bdf1739936998a784c9e4e64bb9 Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping <sebastian@pipping.org> -Date: Sun, 24 Apr 2011 00:00:36 +0200 -Subject: [PATCH] Disable execution of embedded Python code unless run with - -666 (CVE-2009-3850) - ---- - source/blender/blenkernel/intern/blender.c | 11 ++++++++++- - source/blender/python/api2_2x/sceneRender.c | 3 ++- - source/blender/src/buttons_script.c | 4 +++- - source/creator/creator.c | 18 ++++++++++++++---- - 4 files changed, 29 insertions(+), 7 deletions(-) - -diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c -index bf208c8..029b7cf 100644 ---- a/source/blender/blenkernel/intern/blender.c -+++ b/source/blender/blenkernel/intern/blender.c -@@ -388,7 +388,16 @@ static void setup_app_data(BlendFileData *bfd, char *filename) - if (G.f & G_DEBUG) bfd->globalf |= G_DEBUG; - else bfd->globalf &= ~G_DEBUG; - -- if ((U.flag & USER_DONT_DOSCRIPTLINKS)) bfd->globalf &= ~G_DOSCRIPTLINKS; -+ if (G.f & G_DOSCRIPTLINKS) { -+ /* Blender running in -666 mode */ -+ /* NOTE: In background mode U.flag has not been initialized from ~/.B.blend */ -+ if (! G.background && (U.flag & USER_DONT_DOSCRIPTLINKS)) -+ /* Prefer disabled "Auto Run Python Scripts" over -666 */ -+ bfd->globalf &= ~G_DOSCRIPTLINKS; -+ } else { -+ /* Blender NOT running in -666 mode, deny pulling G_DOSCRIPTLINKS in */ -+ bfd->globalf &= ~G_DOSCRIPTLINKS; -+ } - - G.f= bfd->globalf; - -diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c -index 1bf2b75..e34a361 100644 ---- a/source/blender/python/api2_2x/sceneRender.c -+++ b/source/blender/python/api2_2x/sceneRender.c -@@ -498,7 +498,8 @@ static PyObject *RenderData_Render( BPy_RenderData * self ) - - RE_BlenderFrame(re, G.scene, G.scene->r.cfra); - -- BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); -+ if (G.f & G_DOSCRIPTLINKS) -+ BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); - - set_scene_bg( oldsce ); - } -diff --git a/source/blender/src/buttons_script.c b/source/blender/src/buttons_script.c -index 647fc66..6166133 100644 ---- a/source/blender/src/buttons_script.c -+++ b/source/blender/src/buttons_script.c -@@ -107,6 +107,8 @@ - #include "blendef.h" - #include "butspace.h" - -+extern int button_enable_script_links_enabled; -+ - /* ************************ function prototypes ********************** */ - void draw_scriptlink(uiBlock *, ScriptLink *, int , int , int ) ; - -@@ -323,7 +325,7 @@ static void script_panel_scriptlink(void) - block= uiNewBlock(&curarea->uiblocks, "script_panel_scriptlink", UI_EMBOSS, UI_HELV, curarea->win); - if(uiNewPanel(curarea, block, "Scriptlinks", "Script", 0, 0, 318, 204)==0) return; - -- uiDefButBitI(block, TOG, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT, -+ uiDefButBitI(block, button_enable_script_links_enabled ? TOG : BUT, G_DOSCRIPTLINKS, REDRAWBUTSSCRIPT, - "Enable Script Links", xco, 200, 150, 20, &G.f, 0, 0, 0, 0, - "Enable execution of all assigned Script links and Space Handelers"); - /* for proper alignment: */ -diff --git a/source/creator/creator.c b/source/creator/creator.c -index a562fc3..ccea569 100644 ---- a/source/creator/creator.c -+++ b/source/creator/creator.c -@@ -108,6 +108,8 @@ - #include "binreloc.h" - #endif - -+int button_enable_script_links_enabled = 0; -+ - // from buildinfo.c - #ifdef BUILD_DATE - extern char * build_date; -@@ -232,7 +234,8 @@ static void print_help(void) - printf (" -nojoystick\tDisable joystick support\n"); - printf (" -noglsl\tDisable GLSL shading\n"); - printf (" -h\t\tPrint this help text\n"); -- printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n"); -+ printf (" -666\t\tEnables automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n"); -+ printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes) (default)\n"); - printf (" -P <filename>\tRun the given Python script (filename or Blender Text)\n"); - #ifdef WIN32 - printf (" -R\t\tRegister .blend extension\n"); -@@ -366,7 +369,7 @@ int main(int argc, char **argv) - - /* first test for background */ - -- G.f |= G_DOSCRIPTLINKS; /* script links enabled by default */ -+ G.f &= ~G_DOSCRIPTLINKS; /* script links disabled by default */ - - for(a=1; a<argc; a++) { - -@@ -388,6 +391,11 @@ int main(int argc, char **argv) - exit(0); - } - -+ if (!strcmp(argv[a], "-666")){ -+ G.f |= G_DOSCRIPTLINKS; -+ button_enable_script_links_enabled = 1; -+ } -+ - /* Handle -* switches */ - else if(argv[a][0] == '-') { - switch(argv[a][1]) { -@@ -405,8 +413,9 @@ int main(int argc, char **argv) - a= argc; - break; - -- case 'y': -+ case 'y': /* NOTE: -y works the exact opposite way in version 2.57! */ - G.f &= ~G_DOSCRIPTLINKS; -+ button_enable_script_links_enabled = 0; - break; - - case 'Y': -@@ -680,7 +689,8 @@ int main(int argc, char **argv) - #endif - RE_BlenderAnim(re, G.scene, frame, frame, G.scene->frame_step); - #ifndef DISABLE_PYTHON -- BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); -+ if (G.f & G_DOSCRIPTLINKS) -+ BPY_do_all_scripts(SCRIPT_POSTRENDER, 0); - #endif - } - } else { --- -1.7.5.rc1 - diff --git a/media-gfx/blender/files/blender-2.49b-insecure.desktop b/media-gfx/blender/files/blender-2.49b-insecure.desktop deleted file mode 100644 index 6b36a0a..0000000 --- a/media-gfx/blender/files/blender-2.49b-insecure.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=Blender 2.4x (reduced security) -Comment=3D modeling, animation, rendering and post-production. -Exec=blender -666 -Icon=blender -Terminal=0 -Type=Application -Categories=Graphics;Application; diff --git a/media-gfx/blender/files/blender-2.49b-libav-0.7.patch b/media-gfx/blender/files/blender-2.49b-libav-0.7.patch deleted file mode 100644 index d0661ad..0000000 --- a/media-gfx/blender/files/blender-2.49b-libav-0.7.patch +++ /dev/null @@ -1,425 +0,0 @@ -diff -urN blender-2.49b.orig//source/blender/blenkernel/intern/writeffmpeg.c blender-2.49b/source/blender/blenkernel/intern/writeffmpeg.c ---- blender-2.49b.orig//source/blender/blenkernel/intern/writeffmpeg.c 2009-09-01 17:21:17.000000000 +0200 -+++ blender-2.49b/source/blender/blenkernel/intern/writeffmpeg.c 2011-11-13 05:36:23.000000000 +0100 -@@ -32,6 +32,7 @@ - #include <libavformat/avformat.h> - #include <libavcodec/avcodec.h> - #include <libavutil/rational.h> -+#include <libavutil/mathematics.h> - #include <libswscale/swscale.h> - #include <libavcodec/opt.h> - -@@ -149,10 +150,9 @@ - #else - pkt.pts = c->coded_frame->pts; - #endif -- fprintf(stderr, "Audio Frame PTS: %lld\n", pkt.pts); - - pkt.stream_index = audio_stream->index; -- pkt.flags |= PKT_FLAG_KEY; -+ pkt.flags |= AV_PKT_FLAG_KEY; - if (av_interleaved_write_frame(outfile, &pkt) != 0) { - error("Error writing audio packet"); - return -1; -@@ -271,7 +271,7 @@ - fprintf(stderr, "Video Frame PTS: not set\n"); - } - if (c->coded_frame->key_frame) -- packet.flags |= PKT_FLAG_KEY; -+ packet.flags |= AV_PKT_FLAG_KEY; - packet.stream_index = video_stream->index; - packet.data = video_buffer; - packet.size = outsize; -@@ -373,7 +373,7 @@ - switch(prop->type) { - case IDP_STRING: - fprintf(stderr, "%s.\n", IDP_String(prop)); -- rv = av_set_string(c, prop->name, IDP_String(prop)); -+ av_set_string3(c, prop->name, IDP_String(prop), 0, &rv); - break; - case IDP_FLOAT: - fprintf(stderr, "%g.\n", IDP_Float(prop)); -@@ -384,12 +384,12 @@ - - if (param) { - if (IDP_Int(prop)) { -- rv = av_set_string(c, name, param); -+ av_set_string3(c, name, param, 0, &rv); - } else { - return; - } - } else { -- rv = av_set_int(c, prop->name, IDP_Int(prop)); -+ av_set_int(c, prop->name, IDP_Int(prop)); - } - break; - } -@@ -438,7 +438,7 @@ - - c = get_codec_from_stream(st); - c->codec_id = codec_id; -- c->codec_type = CODEC_TYPE_VIDEO; -+ c->codec_type = AVMEDIA_TYPE_VIDEO; - - - /* Get some values from the current render settings */ -@@ -496,7 +496,7 @@ - c->pix_fmt = PIX_FMT_YUV422P; - } - -- if (codec_id == CODEC_ID_XVID) { -+ if (codec_id == CODEC_ID_MPEG4) { - /* arghhhh ... */ - c->pix_fmt = PIX_FMT_YUV420P; - } -@@ -557,7 +557,7 @@ - - c = get_codec_from_stream(st); - c->codec_id = codec_id; -- c->codec_type = CODEC_TYPE_AUDIO; -+ c->codec_type = AVMEDIA_TYPE_AUDIO; - - c->sample_rate = G.scene->audio.mixrate; - c->bit_rate = ffmpeg_audio_bitrate*1000; -@@ -652,14 +652,14 @@ - error("No valid formats found"); - return; - } -- fmt = guess_format(NULL, exts[0], NULL); -+ fmt = av_guess_format(NULL, exts[0], NULL); - if (!fmt) { - G.afbreek = 1; /* Abort render */ - error("No valid formats found"); - return; - } - -- of = av_alloc_format_context(); -+ of = avformat_alloc_context(); - if (!of) { - G.afbreek = 1; - error("Error opening output file"); -@@ -699,7 +699,7 @@ - fmt->video_codec = CODEC_ID_H264; - break; - case FFMPEG_XVID: -- fmt->video_codec = CODEC_ID_XVID; -+ fmt->video_codec = CODEC_ID_MPEG4; - break; - case FFMPEG_FLV: - fmt->video_codec = CODEC_ID_FLV1; -diff -urN blender-2.49b.orig//source/blender/imbuf/intern/anim.c blender-2.49b/source/blender/imbuf/intern/anim.c ---- blender-2.49b.orig//source/blender/imbuf/intern/anim.c 2009-09-01 17:21:50.000000000 +0200 -+++ blender-2.49b/source/blender/imbuf/intern/anim.c 2011-11-13 06:21:37.000000000 +0100 -@@ -550,7 +550,7 @@ - videoStream=-1; - for(i=0; i<pFormatCtx->nb_streams; i++) - if(get_codec_from_stream(pFormatCtx->streams[i])->codec_type -- == CODEC_TYPE_VIDEO) { -+ == AVMEDIA_TYPE_VIDEO) { - videoStream=i; - break; - } -@@ -683,10 +683,10 @@ - && position - (anim->curposition + 1) < anim->preseek) { - while(av_read_frame(anim->pFormatCtx, &packet)>=0) { - if (packet.stream_index == anim->videoStream) { -- avcodec_decode_video( -+ avcodec_decode_video2( - anim->pCodecCtx, - anim->pFrame, &frameFinished, -- packet.data, packet.size); -+ &packet); - - if (frameFinished) { - anim->curposition++; -@@ -741,9 +741,9 @@ - - while(av_read_frame(anim->pFormatCtx, &packet)>=0) { - if(packet.stream_index == anim->videoStream) { -- avcodec_decode_video(anim->pCodecCtx, -+ avcodec_decode_video2(anim->pCodecCtx, - anim->pFrame, &frameFinished, -- packet.data, packet.size); -+ &packet); - - if (frameFinished && !pos_found) { - if (packet.dts >= pts_to_search) { -diff -urN blender-2.49b.orig//source/blender/imbuf/intern/util.c blender-2.49b/source/blender/imbuf/intern/util.c ---- blender-2.49b.orig//source/blender/imbuf/intern/util.c 2009-09-01 17:21:50.000000000 +0200 -+++ blender-2.49b/source/blender/imbuf/intern/util.c 2011-11-13 04:37:27.000000000 +0100 -@@ -324,7 +324,7 @@ - return 0; - } - -- if(UTIL_DEBUG) dump_format(pFormatCtx, 0, filename, 0); -+ if(UTIL_DEBUG) av_dump_format(pFormatCtx, 0, filename, 0); - - - /* Find the first video stream */ -@@ -332,7 +332,7 @@ - for(i=0; i<pFormatCtx->nb_streams; i++) - if(pFormatCtx->streams[i] && - get_codec_from_stream(pFormatCtx->streams[i]) && -- (get_codec_from_stream(pFormatCtx->streams[i])->codec_type==CODEC_TYPE_VIDEO)) -+ (get_codec_from_stream(pFormatCtx->streams[i])->codec_type==AVMEDIA_TYPE_VIDEO)) - { - videoStream=i; - break; -Binary files blender-2.49b.orig//source/blender/python/api2_2x/BGL.o and blender-2.49b/source/blender/python/api2_2x/BGL.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/bpy_internal_import.o and blender-2.49b/source/blender/python/api2_2x/bpy_internal_import.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/constant.o and blender-2.49b/source/blender/python/api2_2x/constant.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/euler.o and blender-2.49b/source/blender/python/api2_2x/euler.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/Geometry.o and blender-2.49b/source/blender/python/api2_2x/Geometry.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/Mathutils.o and blender-2.49b/source/blender/python/api2_2x/Mathutils.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/matrix.o and blender-2.49b/source/blender/python/api2_2x/matrix.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/quat.o and blender-2.49b/source/blender/python/api2_2x/quat.o differ -Binary files blender-2.49b.orig//source/blender/python/api2_2x/vector.o and blender-2.49b/source/blender/python/api2_2x/vector.o differ -diff -urN blender-2.49b.orig//source/blender/src/buttons_scene.c blender-2.49b/source/blender/src/buttons_scene.c ---- blender-2.49b.orig//source/blender/src/buttons_scene.c 2009-09-01 17:21:46.000000000 +0200 -+++ blender-2.49b/source/blender/src/buttons_scene.c 2011-11-13 05:38:04.000000000 +0100 -@@ -2169,7 +2169,7 @@ - "Quicktime", FFMPEG_MOV, - "DV", FFMPEG_DV, - "H264", FFMPEG_H264, -- "XVid", FFMPEG_XVID, -+ "XVID", FFMPEG_XVID, - #if 0 - /* ifdef WITH_OGG, disabled, since broken within ffmpeg bundled with blender */ - "OGG", FFMPEG_OGG, -@@ -2212,7 +2212,7 @@ - "HuffYUV", CODEC_ID_HUFFYUV, - "DV", CODEC_ID_DVVIDEO, - "H264", CODEC_ID_H264, -- "XVid", CODEC_ID_XVID, -+ "XVid", CODEC_ID_MPEG4, - #ifdef WITH_OGG - "Theora", CODEC_ID_THEORA, - #endif -@@ -2723,12 +2723,12 @@ - switch (o->type) { - case FF_OPT_TYPE_INT: - case FF_OPT_TYPE_INT64: -- val.i = o->default_val; -+ val.i = o->default_val.dbl; - idp_type = IDP_INT; - break; - case FF_OPT_TYPE_DOUBLE: - case FF_OPT_TYPE_FLOAT: -- val.f = o->default_val; -+ val.f = o->default_val.dbl; - idp_type = IDP_FLOAT; - break; - case FF_OPT_TYPE_STRING: -diff -urN blender-2.49b.orig//source/blender/src/hddaudio.c blender-2.49b/source/blender/src/hddaudio.c ---- blender-2.49b.orig//source/blender/src/hddaudio.c 2009-09-01 17:21:45.000000000 +0200 -+++ blender-2.49b/source/blender/src/hddaudio.c 2011-11-13 06:27:23.000000000 +0100 -@@ -126,7 +126,7 @@ - audioStream=-1; - for(i=0; i<pFormatCtx->nb_streams; i++) - if(get_codec_from_stream(pFormatCtx->streams[i]) -- ->codec_type == CODEC_TYPE_AUDIO) -+ ->codec_type == AVMEDIA_TYPE_AUDIO) - { - audioStream=i; - break; -@@ -382,39 +382,30 @@ - continue; - } - -- audio_pkt_data = packet.data; -- audio_pkt_size = packet.size; -- -- while (audio_pkt_size > 0) { -- data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE; -- len = avcodec_decode_audio2( -- hdaudio->pCodecCtx, -- hdaudio->decode_cache -- + decode_pos -- * hdaudio->decode_sample_format_size, -- &data_size, -- audio_pkt_data, -- audio_pkt_size); -- if (len <= 0) { -- audio_pkt_size = 0; -- break; -- } -- -- audio_pkt_size -= len; -- audio_pkt_data += len; -- -- if (data_size <= 0) { -- continue; -- } -- -- decode_pos += data_size -- / hdaudio->decode_sample_format_size; -- if (decode_pos + data_size -- / hdaudio->decode_sample_format_size -- > hdaudio->decode_cache_size) { -- break; -- } -- } -+ data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE; -+ len = avcodec_decode_audio3( -+ hdaudio->pCodecCtx, -+ hdaudio->decode_cache -+ + decode_pos -+ * hdaudio->decode_sample_format_size, -+ &data_size, -+ &packet); -+ if (len <= 0) { -+ audio_pkt_size = 0; -+ break; -+ } -+ -+ if (data_size <= 0) { -+ continue; -+ } -+ -+ decode_pos += data_size -+ / hdaudio->decode_sample_format_size; -+ if (decode_pos + data_size -+ / hdaudio->decode_sample_format_size -+ > hdaudio->decode_cache_size) { -+ break; -+ } - av_free_packet(&packet); - - if (decode_pos + data_size / hdaudio->decode_sample_format_size -@@ -534,36 +525,29 @@ - decode_cache_zero_init = 1; - } - -- while (audio_pkt_size > 0) { -- data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE; -- len = avcodec_decode_audio2( -- hdaudio->pCodecCtx, -- hdaudio->decode_cache -- + decode_pos -- * hdaudio->decode_sample_format_size, -- &data_size, -- audio_pkt_data, -- audio_pkt_size); -- if (len <= 0) { -- audio_pkt_size = 0; -- break; -- } -- -- audio_pkt_size -= len; -- audio_pkt_data += len; -- -- if (data_size <= 0) { -- continue; -- } -- -- decode_pos += data_size -- / hdaudio->decode_sample_format_size; -- if (decode_pos + data_size -- / hdaudio->decode_sample_format_size -- > hdaudio->decode_cache_size) { -- break; -- } -- } -+ data_size=AVCODEC_MAX_AUDIO_FRAME_SIZE; -+ len = avcodec_decode_audio3( -+ hdaudio->pCodecCtx, -+ hdaudio->decode_cache -+ + decode_pos -+ * hdaudio->decode_sample_format_size, -+ &data_size, -+ &packet); -+ if (len <= 0) { -+ break; -+ } -+ -+ if (data_size <= 0) { -+ continue; -+ } -+ -+ decode_pos += data_size -+ / hdaudio->decode_sample_format_size; -+ if (decode_pos + data_size -+ / hdaudio->decode_sample_format_size -+ > hdaudio->decode_cache_size) { -+ break; -+ } - - av_free_packet(&packet); - -diff -urN blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.cpp blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.cpp ---- blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.cpp 2009-09-01 17:20:53.000000000 +0200 -+++ blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.cpp 2011-11-13 07:56:56.000000000 +0100 -@@ -26,7 +26,6 @@ - #define __STDC_CONSTANT_MACROS - #include <stdint.h> - -- - #include "MEM_guardedalloc.h" - #include "PIL_time.h" - -@@ -177,7 +176,7 @@ - { - if(formatCtx->streams[i] && - get_codec_from_stream(formatCtx->streams[i]) && -- (get_codec_from_stream(formatCtx->streams[i])->codec_type==CODEC_TYPE_VIDEO)) -+ (get_codec_from_stream(formatCtx->streams[i])->codec_type==AVMEDIA_TYPE_VIDEO)) - { - videoStream=i; - break; -@@ -358,9 +357,9 @@ - BLI_remlink(&video->m_packetCacheBase, cachePacket); - // use m_frame because when caching, it is not used in main thread - // we can't use currentFrame directly because we need to convert to RGB first -- avcodec_decode_video(video->m_codecCtx, -+ avcodec_decode_video2(video->m_codecCtx, - video->m_frame, &frameFinished, -- cachePacket->packet.data, cachePacket->packet.size); -+ &cachePacket->packet); - if(frameFinished) - { - AVFrame * input = video->m_frame; -@@ -628,7 +627,7 @@ - if (m_captRate <= 0.f) - m_captRate = defFrameRate; - sprintf(rateStr, "%f", m_captRate); -- av_parse_video_frame_rate(&frameRate, rateStr); -+ av_parse_video_rate(&frameRate, rateStr); - // populate format parameters - // need to specify the time base = inverse of rate - formatParams.time_base.num = frameRate.den; -@@ -887,10 +886,10 @@ - { - if (packet.stream_index == m_videoStream) - { -- avcodec_decode_video( -+ avcodec_decode_video2( - m_codecCtx, - m_frame, &frameFinished, -- packet.data, packet.size); -+ &packet); - if (frameFinished) - m_curPosition++; - } -@@ -966,9 +965,9 @@ - { - if(packet.stream_index == m_videoStream) - { -- avcodec_decode_video(m_codecCtx, -+ avcodec_decode_video2(m_codecCtx, - m_frame, &frameFinished, -- packet.data, packet.size); -+ &packet); - - if (frameFinished && !posFound) - { -diff -urN blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.h blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.h ---- blender-2.49b.orig//source/gameengine/VideoTexture/VideoFFmpeg.h 2009-09-01 17:20:53.000000000 +0200 -+++ blender-2.49b/source/gameengine/VideoTexture/VideoFFmpeg.h 2011-11-13 08:03:51.000000000 +0100 -@@ -28,6 +28,7 @@ - #include <libavformat/avformat.h> - #include <libavcodec/avcodec.h> - #include <libavutil/rational.h> -+#include <libavutil/parseutils.h> - #include <libswscale/swscale.h> - #include "DNA_listBase.h" - #include "BLI_threads.h" diff --git a/media-gfx/blender/files/blender-2.49b-subversion-1.7.patch b/media-gfx/blender/files/blender-2.49b-subversion-1.7.patch deleted file mode 100644 index 34b4b8a..0000000 --- a/media-gfx/blender/files/blender-2.49b-subversion-1.7.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- tools/Blender.py 2011-10-29 06:32:11.706449854 +0200 -+++ tools/Blender.py 2011-10-29 06:32:15.923397138 +0200 -@@ -219,7 +219,10 @@ - """ - build_date = time.strftime ("%Y-%m-%d") - build_time = time.strftime ("%H:%M:%S") -- build_rev = os.popen('svnversion').read()[:-1] # remove \n -+ # svn 1.6 says "exported" -+ # svn 1.7 says "Unversioned directory" -+ # Latter breaks the build somewhere, former doesn't. -+ build_rev = 'exported' - - obj = [] - if lenv['BF_BUILDINFO']: diff --git a/media-gfx/blender/files/blender-2.57-CVE-2009-3850-v1.patch b/media-gfx/blender/files/blender-2.57-CVE-2009-3850-v1.patch deleted file mode 100644 index 9c0f39f..0000000 --- a/media-gfx/blender/files/blender-2.57-CVE-2009-3850-v1.patch +++ /dev/null @@ -1,105 +0,0 @@ -From dfb6ecd9a4a129b976b7a8d2002e32146125340f Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping <sebastian@pipping.org> -Date: Sun, 24 Apr 2011 18:26:47 +0200 -Subject: [PATCH] Disable execution of embedded Python code unless run with - --enable-autoexec|-y|-666 (CVE-2009-3850) - ---- - source/blender/blenkernel/intern/blender.c | 3 ++- - source/blender/makesrna/intern/rna_userdef.c | 9 ++++++--- - source/blender/windowmanager/intern/wm_files.c | 3 ++- - source/creator/creator.c | 10 ++++++---- - 4 files changed, 16 insertions(+), 9 deletions(-) - -diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c -index 5f08505..9c27ac7 100644 ---- a/source/blender/blenkernel/intern/blender.c -+++ b/source/blender/blenkernel/intern/blender.c -@@ -141,7 +141,8 @@ void initglobals(void) - G.charmin = 0x0000; - G.charmax = 0xffff; - -- G.f |= G_SCRIPT_AUTOEXEC; -+ G.f &= ~G_SCRIPT_AUTOEXEC; -+ G.f |= G_SCRIPT_OVERRIDE_PREF; /* Disables turning G_SCRIPT_AUTOEXEC on from user prefs */ - } - - /***/ -diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c -index e9a9ddc..a120857 100644 ---- a/source/blender/makesrna/intern/rna_userdef.c -+++ b/source/blender/makesrna/intern/rna_userdef.c -@@ -99,9 +99,12 @@ static void rna_userdef_show_manipulator_update(Main *bmain, Scene *scene, Point - - static void rna_userdef_script_autoexec_update(Main *bmain, Scene *scene, PointerRNA *ptr) - { -- UserDef *userdef = (UserDef*)ptr->data; -- if (userdef->flag & USER_SCRIPT_AUTOEXEC_DISABLE) G.f &= ~G_SCRIPT_AUTOEXEC; -- else G.f |= G_SCRIPT_AUTOEXEC; -+ if ((G.f & G_SCRIPT_OVERRIDE_PREF) == 0) { -+ /* Blender run with --enable-autoexec */ -+ UserDef *userdef = (UserDef*)ptr->data; -+ if (userdef->flag & USER_SCRIPT_AUTOEXEC_DISABLE) G.f &= ~G_SCRIPT_AUTOEXEC; -+ else G.f |= G_SCRIPT_AUTOEXEC; -+ } - } - - static void rna_userdef_mipmap_update(Main *bmain, Scene *scene, PointerRNA *ptr) -diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c -index f4f7af0..c1bacc6 100644 ---- a/source/blender/windowmanager/intern/wm_files.c -+++ b/source/blender/windowmanager/intern/wm_files.c -@@ -270,7 +270,8 @@ static void wm_init_userdef(bContext *C) - - /* set the python auto-execute setting from user prefs */ - /* enabled by default, unless explicitly enabled in the command line which overrides */ -- if((G.f & G_SCRIPT_OVERRIDE_PREF) == 0) { -+ if (! G.background && ((G.f & G_SCRIPT_OVERRIDE_PREF) == 0)) { -+ /* Blender run with --enable-autoexec */ - if ((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE) == 0) G.f |= G_SCRIPT_AUTOEXEC; - else G.f &= ~G_SCRIPT_AUTOEXEC; - } -diff --git a/source/creator/creator.c b/source/creator/creator.c -index c687cc2..1da282f 100644 ---- a/source/creator/creator.c -+++ b/source/creator/creator.c -@@ -278,6 +278,7 @@ static int print_help(int UNUSED(argc), const char **UNUSED(argv), void *data) - - printf("\n"); - -+ BLI_argsPrintArgDoc(ba, "-666"); - BLI_argsPrintArgDoc(ba, "--enable-autoexec"); - BLI_argsPrintArgDoc(ba, "--disable-autoexec"); - -@@ -359,14 +360,14 @@ static int end_arguments(int UNUSED(argc), const char **UNUSED(argv), void *UNUS - static int enable_python(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) - { - G.f |= G_SCRIPT_AUTOEXEC; -- G.f |= G_SCRIPT_OVERRIDE_PREF; -+ G.f &= ~G_SCRIPT_OVERRIDE_PREF; /* Enables turning G_SCRIPT_AUTOEXEC off from user prefs */ - return 0; - } - - static int disable_python(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) - { - G.f &= ~G_SCRIPT_AUTOEXEC; -- G.f |= G_SCRIPT_OVERRIDE_PREF; -+ G.f |= G_SCRIPT_OVERRIDE_PREF; /* Disables turning G_SCRIPT_AUTOEXEC on from user prefs */ - return 0; - } - -@@ -1075,8 +1076,9 @@ static void setupArguments(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle) - - BLI_argsAdd(ba, 1, "-v", "--version", "\n\tPrint Blender version and exit", print_version, NULL); - -- BLI_argsAdd(ba, 1, "-y", "--enable-autoexec", "\n\tEnable automatic python script execution (default)", enable_python, NULL); -- BLI_argsAdd(ba, 1, "-Y", "--disable-autoexec", "\n\tDisable automatic python script execution (pydrivers, pyconstraints, pynodes)", disable_python, NULL); -+ BLI_argsAdd(ba, 1, NULL, "-666", "\n\tEnable automatic python script execution (port from CVE-2009-3850 patch to Blender 2.49b)", enable_python, NULL); -+ BLI_argsAdd(ba, 1, "-y", "--enable-autoexec", "\n\tEnable automatic python script execution", enable_python, NULL); -+ BLI_argsAdd(ba, 1, "-Y", "--disable-autoexec", "\n\tDisable automatic python script execution (pydrivers, pyconstraints, pynodes) (default)", disable_python, NULL); - - BLI_argsAdd(ba, 1, "-b", "--background", "<file>\n\tLoad <file> in background (often used for UI-less rendering)", background_mode, NULL); - --- -1.7.5.rc1 - diff --git a/media-gfx/blender/files/blender-2.57-CVE-2009-3850-v2.patch b/media-gfx/blender/files/blender-2.57-CVE-2009-3850-v2.patch deleted file mode 100644 index 526e0f7..0000000 --- a/media-gfx/blender/files/blender-2.57-CVE-2009-3850-v2.patch +++ /dev/null @@ -1,172 +0,0 @@ -From c4181c5639da5c6a6df31b434498a44d0d680487 Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping <sebastian@pipping.org> -Date: Tue, 17 May 2011 17:37:11 +0200 -Subject: [PATCH] Disable execution of embedded Python code unless run with - --enable-autoexec|-y|-666 (CVE-2009-3850) - ---- - source/blender/blenkernel/intern/blender.c | 3 ++- - source/blender/makesrna/intern/rna_userdef.c | 16 +++++++++++++--- - source/blender/windowmanager/intern/wm_files.c | 7 ++++++- - source/blender/windowmanager/intern/wm_operators.c | 16 ++++++++++++---- - source/creator/creator.c | 10 ++++++---- - 5 files changed, 39 insertions(+), 13 deletions(-) - -diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c -index 5f08505..9c27ac7 100644 ---- a/source/blender/blenkernel/intern/blender.c -+++ b/source/blender/blenkernel/intern/blender.c -@@ -141,7 +141,8 @@ void initglobals(void) - G.charmin = 0x0000; - G.charmax = 0xffff; - -- G.f |= G_SCRIPT_AUTOEXEC; -+ G.f &= ~G_SCRIPT_AUTOEXEC; -+ G.f |= G_SCRIPT_OVERRIDE_PREF; /* Disables turning G_SCRIPT_AUTOEXEC on from user prefs */ - } - - /***/ -diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c -index e9a9ddc..218b50a 100644 ---- a/source/blender/makesrna/intern/rna_userdef.c -+++ b/source/blender/makesrna/intern/rna_userdef.c -@@ -99,9 +99,17 @@ static void rna_userdef_show_manipulator_update(Main *bmain, Scene *scene, Point - - static void rna_userdef_script_autoexec_update(Main *bmain, Scene *scene, PointerRNA *ptr) - { -- UserDef *userdef = (UserDef*)ptr->data; -- if (userdef->flag & USER_SCRIPT_AUTOEXEC_DISABLE) G.f &= ~G_SCRIPT_AUTOEXEC; -- else G.f |= G_SCRIPT_AUTOEXEC; -+ if ((G.f & G_SCRIPT_OVERRIDE_PREF) == 0) { -+ /* Blender run with --enable-autoexec */ -+ UserDef *userdef = (UserDef*)ptr->data; -+ if (userdef->flag & USER_SCRIPT_AUTOEXEC_DISABLE) G.f &= ~G_SCRIPT_AUTOEXEC; -+ else G.f |= G_SCRIPT_AUTOEXEC; -+ } -+} -+ -+static int rna_userdef_script_autoexec_editable(Main *bmain, Scene *scene, PointerRNA *ptr) { -+ /* Disable "Auto Run Python Scripts" checkbox unless Blender run with --enable-autoexec */ -+ return !(G.f & G_SCRIPT_OVERRIDE_PREF); - } - - static void rna_userdef_mipmap_update(Main *bmain, Scene *scene, PointerRNA *ptr) -@@ -2505,6 +2513,8 @@ static void rna_def_userdef_system(BlenderRNA *brna) - RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", USER_SCRIPT_AUTOEXEC_DISABLE); - RNA_def_property_ui_text(prop, "Auto Run Python Scripts", "Allow any .blend file to run scripts automatically (unsafe with blend files from an untrusted source)"); - RNA_def_property_update(prop, 0, "rna_userdef_script_autoexec_update"); -+ /* Disable "Auto Run Python Scripts" checkbox unless Blender run with --enable-autoexec */ -+ RNA_def_property_editable_func(prop, "rna_userdef_script_autoexec_editable"); - - prop= RNA_def_property(srna, "use_tabs_as_spaces", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", USER_TXT_TABSTOSPACES_DISABLE); -diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c -index f4f7af0..37a9664 100644 ---- a/source/blender/windowmanager/intern/wm_files.c -+++ b/source/blender/windowmanager/intern/wm_files.c -@@ -270,11 +270,16 @@ static void wm_init_userdef(bContext *C) - - /* set the python auto-execute setting from user prefs */ - /* enabled by default, unless explicitly enabled in the command line which overrides */ -- if((G.f & G_SCRIPT_OVERRIDE_PREF) == 0) { -+ if (! G.background && ((G.f & G_SCRIPT_OVERRIDE_PREF) == 0)) { -+ /* Blender run with --enable-autoexec */ - if ((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE) == 0) G.f |= G_SCRIPT_AUTOEXEC; - else G.f &= ~G_SCRIPT_AUTOEXEC; - } - if(U.tempdir[0]) BLI_where_is_temp(btempdir, FILE_MAX, 1); -+ -+ /* Workaround to fix default of "Auto Run Python Scripts" checkbox */ -+ if ((G.f & G_SCRIPT_OVERRIDE_PREF) && !(G.f & G_SCRIPT_AUTOEXEC)) -+ U.flag |= USER_SCRIPT_AUTOEXEC_DISABLE; - } - - void WM_read_file(bContext *C, const char *name, ReportList *reports) -diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c -index 28df023..a2142a5 100644 ---- a/source/blender/windowmanager/intern/wm_operators.c -+++ b/source/blender/windowmanager/intern/wm_operators.c -@@ -1471,12 +1471,13 @@ static int wm_open_mainfile_exec(bContext *C, wmOperator *op) - G.fileflags &= ~G_FILE_NO_UI; - else - G.fileflags |= G_FILE_NO_UI; -- -- if(RNA_boolean_get(op->ptr, "use_scripts")) -+ -+ /* Restrict "Trusted Source" mode to Blender in --enable-autoexec mode */ -+ if(RNA_boolean_get(op->ptr, "use_scripts") && (!(G.f & G_SCRIPT_OVERRIDE_PREF))) - G.f |= G_SCRIPT_AUTOEXEC; - else - G.f &= ~G_SCRIPT_AUTOEXEC; -- -+ - // XXX wm in context is not set correctly after WM_read_file -> crash - // do it before for now, but is this correct with multiple windows? - WM_event_add_notifier(C, NC_WINDOW, NULL); -@@ -1488,6 +1489,8 @@ static int wm_open_mainfile_exec(bContext *C, wmOperator *op) - - static void WM_OT_open_mainfile(wmOperatorType *ot) - { -+ PropertyRNA * use_scripts_checkbox = NULL; -+ - ot->name= "Open Blender File"; - ot->idname= "WM_OT_open_mainfile"; - ot->description="Open a Blender file"; -@@ -1499,7 +1502,12 @@ static void WM_OT_open_mainfile(wmOperatorType *ot) - WM_operator_properties_filesel(ot, FOLDERFILE|BLENDERFILE, FILE_BLENDER, FILE_OPENFILE, WM_FILESEL_FILEPATH); - - RNA_def_boolean(ot->srna, "load_ui", 1, "Load UI", "Load user interface setup in the .blend file"); -- RNA_def_boolean(ot->srna, "use_scripts", 1, "Trusted Source", "Allow blend file execute scripts automatically, default available from system preferences"); -+ use_scripts_checkbox = RNA_def_boolean(ot->srna, "use_scripts", -+ !!(G.f & G_SCRIPT_AUTOEXEC), "Trusted Source", -+ "Allow blend file execute scripts automatically, default available from system preferences"); -+ /* Disable "Trusted Source" checkbox unless Blender run with --enable-autoexec */ -+ if (use_scripts_checkbox && (G.f & G_SCRIPT_OVERRIDE_PREF)) -+ RNA_def_property_clear_flag(use_scripts_checkbox, PROP_EDITABLE); - } - - /* **************** link/append *************** */ -diff --git a/source/creator/creator.c b/source/creator/creator.c -index c687cc2..1da282f 100644 ---- a/source/creator/creator.c -+++ b/source/creator/creator.c -@@ -278,6 +278,7 @@ static int print_help(int UNUSED(argc), const char **UNUSED(argv), void *data) - - printf("\n"); - -+ BLI_argsPrintArgDoc(ba, "-666"); - BLI_argsPrintArgDoc(ba, "--enable-autoexec"); - BLI_argsPrintArgDoc(ba, "--disable-autoexec"); - -@@ -359,14 +360,14 @@ static int end_arguments(int UNUSED(argc), const char **UNUSED(argv), void *UNUS - static int enable_python(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) - { - G.f |= G_SCRIPT_AUTOEXEC; -- G.f |= G_SCRIPT_OVERRIDE_PREF; -+ G.f &= ~G_SCRIPT_OVERRIDE_PREF; /* Enables turning G_SCRIPT_AUTOEXEC off from user prefs */ - return 0; - } - - static int disable_python(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) - { - G.f &= ~G_SCRIPT_AUTOEXEC; -- G.f |= G_SCRIPT_OVERRIDE_PREF; -+ G.f |= G_SCRIPT_OVERRIDE_PREF; /* Disables turning G_SCRIPT_AUTOEXEC on from user prefs */ - return 0; - } - -@@ -1075,8 +1076,9 @@ static void setupArguments(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle) - - BLI_argsAdd(ba, 1, "-v", "--version", "\n\tPrint Blender version and exit", print_version, NULL); - -- BLI_argsAdd(ba, 1, "-y", "--enable-autoexec", "\n\tEnable automatic python script execution (default)", enable_python, NULL); -- BLI_argsAdd(ba, 1, "-Y", "--disable-autoexec", "\n\tDisable automatic python script execution (pydrivers, pyconstraints, pynodes)", disable_python, NULL); -+ BLI_argsAdd(ba, 1, NULL, "-666", "\n\tEnable automatic python script execution (port from CVE-2009-3850 patch to Blender 2.49b)", enable_python, NULL); -+ BLI_argsAdd(ba, 1, "-y", "--enable-autoexec", "\n\tEnable automatic python script execution", enable_python, NULL); -+ BLI_argsAdd(ba, 1, "-Y", "--disable-autoexec", "\n\tDisable automatic python script execution (pydrivers, pyconstraints, pynodes) (default)", disable_python, NULL); - - BLI_argsAdd(ba, 1, "-b", "--background", "<file>\n\tLoad <file> in background (often used for UI-less rendering)", background_mode, NULL); - --- -1.7.5.rc3 - |