summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2014-06-24 07:31:33 +0400
committerGluzskiy Alexandr <sss123next@list.ru>2014-06-24 07:31:33 +0400
commit78a172d70fdba2b013bc281ec94d345106330628 (patch)
tree585019ffea5b753a66ac38c91774719e8ba208c3
parentff0b045cdf03d98d339cff2d4c7d06e2d29be40d (diff)
clean
-rw-r--r--media-video/ffmpeg/ChangeLog143
-rw-r--r--media-video/ffmpeg/Manifest18
-rw-r--r--media-video/ffmpeg/ffmpeg-9999.ebuild298
-rwxr-xr-xmedia-video/ffmpeg/files/cabac-asm.patch11
-rw-r--r--media-video/ffmpeg/files/disable-version-rebranding-2008.10.patch12
-rw-r--r--media-video/ffmpeg/files/disable-version-rebranding-2008.patch12
-rw-r--r--media-video/ffmpeg/files/disable-version-rebranding-2009.01.patch12
-rwxr-xr-xmedia-video/ffmpeg/files/disable-version-rebranding.patch12
-rwxr-xr-xmedia-video/ffmpeg/files/ffmpeg-amr-64bit.patch27
-rw-r--r--media-video/ffmpeg/files/ffmpeg-asm-pic.patch35
-rw-r--r--media-video/ffmpeg/files/ffmpeg-eac3_decoder-20080817.patch506
-rw-r--r--media-video/ffmpeg/files/ffmpeg-icc.patch14
-rwxr-xr-xmedia-video/ffmpeg/files/ffmpeg-libdir-pic.patch169
-rwxr-xr-xmedia-video/ffmpeg/files/ffmpeg-libdir.patch11
-rwxr-xr-xmedia-video/ffmpeg/files/ffmpeg-shared-gcc4.1.patch40
-rwxr-xr-xmedia-video/ffmpeg/files/ffmpeg-soname-symlink.patch146
-rwxr-xr-xmedia-video/ffmpeg/files/ffmpeg-unknown-options.patch16
-rw-r--r--media-video/ffmpeg/files/ffmpeg-x86-pic-fix-20080916.patch11
-rw-r--r--media-video/ffmpeg/files/ffmpeg-x86-pic-fix.patch10
-rwxr-xr-xmedia-video/mplayer/files/dump_ffmpeg.sh75
-rw-r--r--media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch74
-rw-r--r--media-video/mplayer/mplayer-9999.ebuild654
-rw-r--r--media-video/mplayer2/mplayer2-9999.ebuild602
23 files changed, 0 insertions, 2908 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
deleted file mode 100644
index 5278e05..0000000
--- a/media-video/ffmpeg/ChangeLog
+++ /dev/null
@@ -1,143 +0,0 @@
-# ChangeLog for media-video/ffmpeg
-# Copyright 2006-2009 Berkano Overlay; distributed under the GPL version 2
-
- 26 Jan 2009; Ben de Groot <yngwin@gentoo.org>;
- +files/disable-version-rebranding-2009.01.patch, ffmpeg-20099999.ebuild:
- Update patch
-
- 06 Jan 2009; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20099999.ebuild:
- Adding X and gsm useflags
-
- 06 Jan 2009; Ben de Groot <yngwin@gentoo.org>; -ffmpeg-20080908.ebuild,
- +ffmpeg-20099999.ebuild:
- Add vdpau useflag
-
- 06 Nov 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999-r1.ebuild:
- Remove ffmpeg-shared-gcc4.1.patch from live svn ebuild
-
- 21 Oct 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999-r1.ebuild:
- Rekeywording live svn ebuild, as newer stuff is also unmasked in portage,
- and updating the x264 dep.
-
- 09 Oct 2008; Ben de Groot <yngwin@gentoo.org>;
- +files/disable-version-rebranding-2008.10.patch,
- files/disable-version-rebranding-2008.patch, ffmpeg-20089999-r1.ebuild:
- Restoring patch for 20080908 snapshot version. Renaming current patch for
- 20089999 live ebuild.
-
- 08 Oct 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999-r1.ebuild:
- Removing a52 useflag and dep as upstream has dropped support.
-
- 01 Oct 2008; Ben de Groot <yngwin@gentoo.org>;
- files/disable-version-rebranding-2008.patch:
- Updating patch
-
- 16 Sep 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999-r1.ebuild:
- Dropping keywords for api/abi breaking version
-
- 16 Sep 2008; Ben de Groot <yngwin@gentoo.org>; +ffmpeg-20080908.ebuild,
- +files/ffmpeg-x86-pic-fix-20080916.patch, -ffmpeg-20089999.ebuild,
- +ffmpeg-20089999-r1.ebuild:
- Adding ffmpeg-20080908 - latest revision before current API/ABI breakage,
- and updating 20089999 with adjusted x86-pic patch.
-
- 06 Sep 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild,
- +files/ffmpeg-icc.patch:
- Adding icc patch and useflag
-
- 06 Sep 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild:
- Removing eac3 patching and useflag, as this is now part of the internal ac3
- codec.
-
- 22 Aug 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild:
- Changing eac3 patch to live svn checkout
-
- 19 Aug 2008; Ben de Groot <yngwin@gentoo.org>;
- +files/ffmpeg-eac3_decoder-20080817.patch, ffmpeg-20089999.ebuild:
- Adding new eac3 patch, removed the swscaler useflag and enabled swscale by
- default. Also (temporarily) adding -D_BSD_SOURCE to fix a compile issue
- reported on the forums.
-
- 10 Jul 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild:
- Added schroedinger useflag and dep for dirac support.
-
- 21 Jun 2008; Ben de Groot <yngwin@gentoo.org>;
- files/disable-version-rebranding-2008.patch, ffmpeg-20089999.ebuild:
- New versioning stuff as upstream changed things.
-
- 10 May 2008; Ben de Groot <yngwin@gentoo.org>;
- files/ffmpeg-x86-pic-fix.patch, -ffmpeg-20079999-r2.ebuild,
- ffmpeg-20089999.ebuild:
- Removing old ebuild, rekeywording the new one. Updated pic-fix patch.
-
- 18 Apr 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild:
- Current svn no longer needs libdir patch, so removed from ebuild.
-
- 17 Apr 2008; Ben de Groot <yngwin@gentoo.org>; files/ffmpeg-libdir.patch:
- Fixing libdir patch for current version
-
- 12 Apr 2008; Ben de Groot <yngwin@gentoo.org>;
- +files/disable-version-rebranding-2008.patch, ffmpeg-20089999.ebuild:
- New disable-version-rebranding patch
-
- 12 Apr 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild:
- Adding hardcoded-tables useflag and broken relocations flag.
-
- 08 Apr 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20079999-r2.ebuild,
- ffmpeg-20089999.ebuild:
- Adjust x264 dep.
-
- 29 Mar 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20079999-r2.ebuild,
- ffmpeg-20089999.ebuild:
- Fix x264 dep to either in old ebuild. Update disable-stripping option in
- current ebuild.
-
- 25 Mar 2008; Ben de Groot <yngwin@gentoo.org>; ffmpeg-20089999.ebuild:
- Changing x264 dep to x264 || x264-svn.
-
- 11 Mar 2008; Ben de Groot <yngwin@gentoo.org>; +ffmpeg-20089999.ebuild:
- Changed and added current configure options. Dropping keywords because at this
- point most packages that depend on ffmpeg will not build against current svn.
-
- 17 Nov 2007; Ben de Groot (yngwin) <ben@berkano.net>;
- ffmpeg-20079999-r2.ebuild:
- Removed no longer valid libogg configure option. Removed ogg useflag. Libogg
- is now a dependency with vorbis and theora useflags. Also made a few
- cosmetic changes.
-
- 13 Sep 2007; Ben de Groot (yngwin) <ben@berkano.net>;
- -ffmpeg-20069999-r1.ebuild, -ffmpeg-20069999-r2.ebuild,
- -ffmpeg-20079999.ebuild, -ffmpeg-20079999-r1.ebuild,
- ffmpeg-20079999-r2.ebuild:
- Removing older ebuilds. Updating current ebuild with latest changes in
- configure options. Adding ipv6 useflag.
-
- 07 Jun 2007; Ben de Groot; ffmpeg-20079999-r2.ebuild:
- Updated renamed configure options for xvid and x264.
-
- 22 May 2007; Ben de Groot; +ffmpeg-20079999-r2.ebuild:
- Removing dts useflag, as internal libavcodec is now used instead of libdts.
-
- 11 May 2007; Ben de Groot; ffmpeg-20079999-r1.ebuild,
- +files/ffmpeg-x86-pic-fix.patch:
- Change x86 PIC fix to a more elegant patch.
-
- 10 May 2007; Ben de Groot; ffmpeg-20079999-r1.ebuild:
- Adding -fPIC flag for x86 to fix assembly compilation borkage.
-
- 08 May 2007; Ben de Groot; ffmpeg-20079999-r1.ebuild:
- Updated configure flags for libamr-(nb|wb).
-
- 30 Apr 2007; Ben de Groot; ffmpeg-20079999-r1.ebuild:
- Removing no longer needed asm-pic patch from ebuild.
-
- 30 Apr 2007; Ben de Groot; +ffmpeg-20079999-r1.ebuild:
- Recent svn uses external amr libs. Changed ebuild accordingly after adding
- those external deps. USE-flag amr now replaced by amrnb and amrwb.
-
- 11 Apr 2007; torstenvdb; ffmpeg-20079999.ebuild:
- Added ~sparc keyword to ffmpeg ebuild.
-
- 09 Apr 2007; Ben de Groot; ChangeLog:
- Fixed ebuild with asm-pic.patch from official tree.
-
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
deleted file mode 100644
index 8acc156..0000000
--- a/media-video/ffmpeg/Manifest
+++ /dev/null
@@ -1,18 +0,0 @@
-AUX cabac-asm.patch 296 RMD160 b021017df231da679b83b9b8780ef7dc25af54a5 SHA1 3a391182010bbdb4c4f9651e4af31f8a63ad83be SHA256 5693364fc558ba94e6fe208954006c6d842d97c9be14ba2373429474dd471066
-AUX disable-version-rebranding-2008.10.patch 360 RMD160 61d5deb702fc05cc220877cab780571d91a65011 SHA1 3288b2e8af07ffcabc8f2b5626f34fb5585ebdf6 SHA256 ddd3a457683a53436bbd7286cfe3c8b9a6ebb3a5a4e0fd987021e668523fe9de
-AUX disable-version-rebranding-2008.patch 343 RMD160 a95f4fe8bbfdf4c87948f1c578899a2619a222e0 SHA1 30c1a3656f3c8814fb3a510a3e60e04c519cb7a4 SHA256 b64298ab0e77e2f956e1000b13c62827a492ffd61501c7a273a71abf1da1418a
-AUX disable-version-rebranding-2009.01.patch 376 RMD160 b182165b966c42594540da83b13cbcc7bc2d2939 SHA1 bf0ea92498005309809752d30e8d08e4d370ac49 SHA256 708f3e3ba2615242c0518e3f1132dea16d3bf6ed3e979d0b2b6477d761298d18
-AUX disable-version-rebranding.patch 308 RMD160 bdcc55c92302f0ff0f108038a49c09e4e2c8e907 SHA1 b1c319c16a60190ab4f92909b1d3f3b64dcc8834 SHA256 961a5d3c0b9e96f986de7956aa5a178175aa443684dc74167ef249a32e18efee
-AUX ffmpeg-amr-64bit.patch 1161 RMD160 c3e17a8e8a3e501ae9ce8b8e455063444d1bc15f SHA1 e4f280a2934e238529ca8b0d8d2abec2638d9fb1 SHA256 f993ac1ad11e254d846fbd0b3f73f81043551fce90438fdd196374ca9ece6c9c
-AUX ffmpeg-asm-pic.patch 2111 RMD160 3172d33b3f98933de028a279a55ceea488ab635a SHA1 1a60ea4599324bb29be2de818ee126804203b060 SHA256 a0799a9fda4312c468ec812af67e3a69f7e9f298f877734ce061dfaa4e5b1ce9
-AUX ffmpeg-eac3_decoder-20080817.patch 19284 RMD160 5f50814158a629db213a391c2550baa9fb98f32e SHA1 389dc7bdbfcbb43a9c9e83499366911f0dd5b41b SHA256 9e2eb69baa6e17dfcb151e93fd15a9a92d42cfd2c569ded2b24c82900b615045
-AUX ffmpeg-icc.patch 620 RMD160 9fa3f03b5b1f02f780861e3354907840cb7a885e SHA1 bd8ec19597199b88f4ccc951109bcc40ebf6467f SHA256 84dc49eb291aebf3f2ac1e63c0fee7b9fa7bc72b97e8e24ceb2f60e3dc6f523e
-AUX ffmpeg-libdir-pic.patch 6027 RMD160 f66a87d1ea3662c7ab0b9010e0f19af49638161a SHA1 43be5652bf5dc70d46697e3ff6b1b3f30a02d501 SHA256 30b404aaf936f3ed6fe0a1f94d7f03982fef3524c94e4ca2b98d97133347ecc8
-AUX ffmpeg-libdir.patch 305 RMD160 5663aeafb2f8f078a14529f73375446eb5792c95 SHA1 ba0a90d85c4c2434283b60c97ff45dd4a77bff81 SHA256 3bb2f715b9bd15e30f07ee1481badf0631fe9fc42e1d39ea47ec6bce3274657c
-AUX ffmpeg-shared-gcc4.1.patch 1667 RMD160 cf0318bcb812ad701e8cd55f10f59ca71933cf6c SHA1 0fd4d860efd8a0240fa66443429d8404d28a27dd SHA256 0bd67ed0cc1ea47c36756f5a66e504af4de85ce072c4b92083fb44065b5a3671
-AUX ffmpeg-soname-symlink.patch 4937 RMD160 3a3c83eb3e4bab26d039cd12bba938cf1a3f4f3b SHA1 77dbb66c84bc76dbb1b10b53b708c49f2d4a4c86 SHA256 0dc937f36d55e4c984dac967e1d0a4c261ebd6871f473dc2633a0a15332c5693
-AUX ffmpeg-unknown-options.patch 414 RMD160 46f7d8e81ab42368dabb6e29dec29a02d780055b SHA1 004e49a8461c5bf5923fd206e14d59a3e6b0ff84 SHA256 eb6f32617a42a9f55408ac64afd62c938aadb40bcf72c060a24ef5c426b4981b
-AUX ffmpeg-x86-pic-fix-20080916.patch 349 RMD160 4c5cdce5679f5648f4fba2d997486906ed07d7fa SHA1 c064f92b3f89f8a55c50043ed39db67eb1614221 SHA256 a820a255b398b5d86e66c65defc82037bf17eafa5b7fa43f2e9cfc378a613195
-AUX ffmpeg-x86-pic-fix.patch 281 RMD160 61d334ed06f04836f5e1823e339117ab0c4b4db2 SHA1 27644f0320bb8a89f5ed9fcaedb339eef998173f SHA256 091f94eefa8ffa8cc370e512d362eb8d08338e14cca13f3776c785294d314286
-EBUILD ffmpeg-20099999.ebuild 6010 RMD160 8f54f86fe33a4bd225fb060a486fa6488795a1ec SHA1 f71569b685f57fc024aa3c28ab2a3a5419ff4673 SHA256 09bd40afd193cd3cf706a701954a5a90ef75149dc256bc3b55f14fe4b4028a42
-MISC ChangeLog 5881 RMD160 c96772a6c8180e3e44b11ce554490463c34ce4f5 SHA1 6881e2802771c4dd950e840cdb2c209e0d0df133 SHA256 98131cb6d000177ccddd87a9701539ffa734f36f2ca0da0a65f8d49bbe661e0b
diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
deleted file mode 100644
index 1a554dd..0000000
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ /dev/null
@@ -1,298 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild,v 1.103 2012/08/17 13:05:23 aballier Exp $
-
-EAPI="4"
-
-SCM=""
-if [ "${PV#9999}" != "${PV}" ] ; then
- SCM="git-2"
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
-fi
-
-inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
-
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec."
-HOMEPAGE="http://ffmpeg.org/"
-if [ "${PV#9999}" != "${PV}" ] ; then
- SRC_URI=""
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
- SRC_URI="mirror://gentoo/${P}.tar.bz2"
-else # Release
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
-fi
-FFMPEG_REVISION="${PV#*_p}"
-
-LICENSE="GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )"
-SLOT="0"
-if [ "${PV#9999}" = "${PV}" ] ; then
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
-fi
-IUSE="
- aac aacplus alsa amr avresample bindist bluray +bzip2 cdio celt
- cpudetection debug doc +encode faac flite fontconfig frei0r gnutls gsm
- +hardcoded-tables iec61883 ieee1394 jack jpeg2k libass libcaca libv4l
- modplug mp3 network openal openssl opus oss pic pulseaudio rtmp schroedinger
- sdl speex static-libs test theora threads truetype twolame v4l vaapi vdpau
- vorbis vpx X x264 xvid +zlib
- "
-
-# String for CPU features in the useflag[:configure_option] form
-# if :configure_option isn't set, it will use 'useflag' as configure option
-CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext ssse3 vis neon"
-
-for i in ${CPU_FEATURES}; do
- IUSE="${IUSE} ${i%:*}"
-done
-
-FFTOOLS="aviocat cws2fws ffeval graph2dot ismindex pktdumper qt-faststart trasher"
-
-for i in ${FFTOOLS}; do
- IUSE="${IUSE} +fftools_$i"
-done
-
-RDEPEND="
- alsa? ( media-libs/alsa-lib )
- amr? ( media-libs/opencore-amr )
- bluray? ( media-libs/libbluray )
- bzip2? ( app-arch/bzip2 )
- cdio? ( dev-libs/libcdio )
- celt? ( >=media-libs/celt-0.11.1 )
- encode? (
- aac? ( media-libs/vo-aacenc )
- aacplus? ( media-libs/libaacplus )
- amr? ( media-libs/vo-amrwbenc )
- faac? ( media-libs/faac )
- mp3? ( >=media-sound/lame-3.98.3 )
- theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
- twolame? ( media-sound/twolame )
- x264? ( >=media-libs/x264-0.0.20111017 )
- xvid? ( >=media-libs/xvid-1.1.0 )
- )
- flite? ( app-accessibility/flite )
- fontconfig? ( media-libs/fontconfig )
- frei0r? ( media-plugins/frei0r-plugins )
- gnutls? ( >=net-libs/gnutls-2.12.16 )
- gsm? ( >=media-sound/gsm-1.0.12-r1 )
- iec61883? ( media-libs/libiec61883 sys-libs/libraw1394 sys-libs/libavc1394 )
- ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
- jack? ( media-sound/jack-audio-connection-kit )
- jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
- libass? ( media-libs/libass )
- libcaca? ( media-libs/libcaca )
- libv4l? ( media-libs/libv4l )
- modplug? ( media-libs/libmodplug )
- openal? ( >=media-libs/openal-1.1 )
- opus? ( media-libs/opus )
- pulseaudio? ( media-sound/pulseaudio )
- rtmp? ( >=media-video/rtmpdump-2.2f )
- sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
- schroedinger? ( media-libs/schroedinger )
- speex? ( >=media-libs/speex-1.2_beta3 )
- truetype? ( media-libs/freetype:2 )
- vaapi? ( >=x11-libs/libva-0.32 )
- vdpau? ( x11-libs/libvdpau )
- vorbis? ( media-libs/libvorbis media-libs/libogg )
- vpx? ( >=media-libs/libvpx-0.9.6 )
- X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
- zlib? ( sys-libs/zlib )
- !media-video/qt-faststart
- !media-libs/libpostproc
-"
-
-DEPEND="${RDEPEND}
- >=sys-devel/make-3.81
- doc? ( app-text/texi2html )
- fontconfig? ( virtual/pkgconfig )
- gnutls? ( virtual/pkgconfig )
- ieee1394? ( virtual/pkgconfig )
- libv4l? ( virtual/pkgconfig )
- mmx? ( dev-lang/yasm )
- rtmp? ( virtual/pkgconfig )
- schroedinger? ( virtual/pkgconfig )
- test? ( net-misc/wget )
- truetype? ( virtual/pkgconfig )
- v4l? ( sys-kernel/linux-headers )
-"
-# faac is license-incompatible with ffmpeg
-REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
- libv4l? ( v4l )
- fftools_cws2fws? ( zlib )
- test? ( encode zlib )"
-
-S=${WORKDIR}/${P/_/-}
-
-src_prepare() {
- if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
- export revision=git-N-${FFMPEG_REVISION}
- fi
-}
-
-src_configure() {
- local myconf="${EXTRA_FFMPEG_CONF}"
- # Set to --enable-version3 if (L)GPL-3 is required
- local version3=""
-
- # enabled by default
- for i in debug doc network vaapi vdpau zlib; do
- use ${i} || myconf="${myconf} --disable-${i}"
- done
- use bzip2 || myconf="${myconf} --disable-bzlib"
- use sdl || myconf="${myconf} --disable-ffplay"
-
- use cpudetection && myconf="${myconf} --enable-runtime-cpudetect"
- use openssl && myconf="${myconf} --enable-openssl --enable-nonfree"
- for i in gnutls ; do
- use $i && myconf="${myconf} --enable-$i"
- done
-
- # Encoders
- if use encode
- then
- use mp3 && myconf="${myconf} --enable-libmp3lame"
- use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
- use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
- for i in theora twolame x264 xvid; do
- use ${i} && myconf="${myconf} --enable-lib${i}"
- done
- use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree"
- use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
- else
- myconf="${myconf} --disable-encoders"
- fi
-
- # libavdevice options
- for i in cdio iec61883 ; do
- use ${i} && myconf="${myconf} --enable-lib${i}"
- done
- use ieee1394 && myconf="${myconf} --enable-libdc1394"
- use libcaca && myconf="${myconf} --enable-libcaca"
- use openal && myconf="${myconf} --enable-openal"
- # Indevs
- # v4l1 is gone since linux-headers-2.6.38
- myconf="${myconf} --disable-indev=v4l"
- use v4l || myconf="${myconf} --disable-indev=v4l2"
- for i in alsa oss jack ; do
- use ${i} || myconf="${myconf} --disable-indev=${i}"
- done
- use X && myconf="${myconf} --enable-x11grab"
- use pulseaudio && myconf="${myconf} --enable-libpulse"
- use libv4l && myconf="${myconf} --enable-libv4l2"
- # Outdevs
- for i in alsa oss sdl ; do
- use ${i} || myconf="${myconf} --disable-outdev=${i}"
- done
- # libavfilter options
- for i in frei0r fontconfig libass ; do
- use ${i} && myconf="${myconf} --enable-${i}"
- done
- use truetype && myconf="${myconf} --enable-libfreetype"
- use flite && myconf="${myconf} --enable-libflite"
-
- # Threads; we only support pthread for now but ffmpeg supports more
- use threads && myconf="${myconf} --enable-pthreads"
-
- # Decoders
- use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
- for i in bluray celt gsm modplug opus rtmp schroedinger speex vorbis vpx; do
- use ${i} && myconf="${myconf} --enable-lib${i}"
- done
- use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
-
- # CPU features
- for i in ${CPU_FEATURES}; do
- use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
- done
- if use pic ; then
- myconf="${myconf} --enable-pic"
- # disable asm code if PIC is required
- # as the provided asm decidedly is not PIC for x86.
- use x86 && myconf="${myconf} --disable-asm"
- fi
-
- # Try to get cpu type based on CFLAGS.
- # Bug #172723
- # We need to do this so that features of that CPU will be better used
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure
- # will just ignore it.
- for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
- [ "${i}" = "native" ] && i="host" # bug #273421
- myconf="${myconf} --cpu=${i}"
- break
- done
-
- # Mandatory configuration
- myconf="
- --enable-gpl
- ${version3}
- --enable-postproc
- --enable-avfilter
- --disable-stripping
- ${myconf}"
-
- # cross compile support
- if tc-is-cross-compiler ; then
- myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
- case ${CHOST} in
- *freebsd*)
- myconf="${myconf} --target-os=freebsd"
- ;;
- mingw32*)
- myconf="${myconf} --target-os=mingw32"
- ;;
- *linux*)
- myconf="${myconf} --target-os=linux"
- ;;
- esac
- fi
-
- # avresample support for libav compatibility
- use avresample && myconf="${myconf} --enable-avresample"
-
- # Misc stuff
- use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
-
- cd "${S}"
- ./configure \
- --prefix="${EPREFIX}/usr" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
- --mandir="${EPREFIX}/usr/share/man" \
- --enable-shared \
- --cc="$(tc-getCC)" \
- --cxx="$(tc-getCXX)" \
- --ar="$(tc-getAR)" \
- --optflags="${CFLAGS}" \
- --extra-cflags="${CFLAGS}" \
- --extra-cxxflags="${CXXFLAGS}" \
- $(use_enable static-libs static) \
- ${myconf} || die
-}
-
-src_compile() {
- emake
-
- for i in ${FFTOOLS} ; do
- if use fftools_$i ; then
- emake tools/$i
- fi
- done
-}
-
-src_install() {
- emake DESTDIR="${D}" install install-man
-
- dodoc Changelog README INSTALL
- dodoc -r doc/*
-
- for i in ${FFTOOLS} ; do
- if use fftools_$i ; then
- dobin tools/$i
- fi
- done
-}
-
-src_test() {
- LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libswresample:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
- emake fate
-}
diff --git a/media-video/ffmpeg/files/cabac-asm.patch b/media-video/ffmpeg/files/cabac-asm.patch
deleted file mode 100755
index 8bbf3a9..0000000
--- a/media-video/ffmpeg/files/cabac-asm.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libavcodec/cabac.h.orig 2006-11-19 15:38:01.000000000 +0000
-+++ libavcodec/cabac.h 2006-11-19 15:48:57.000000000 +0000
-@@ -659,7 +659,7 @@
-
- :"+c"(val)
- :"r"(c)
-- : "%eax", "%"REG_b, "%edx", "memory"
-+ : "%eax", "%edx", "memory"
- );
- return val;
- #else
diff --git a/media-video/ffmpeg/files/disable-version-rebranding-2008.10.patch b/media-video/ffmpeg/files/disable-version-rebranding-2008.10.patch
deleted file mode 100644
index ee7e948..0000000
--- a/media-video/ffmpeg/files/disable-version-rebranding-2008.10.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/common.mak.orig 2008-06-22 00:25:48.000000000 +0200
-+++ src/common.mak 2008-06-22 00:28:54.000000000 +0200
-@@ -45,9 +45,6 @@
- $(BUILD_ROOT_REL)/version.h: $(SVN_ENTRIES)
- endif
-
--$(BUILD_ROOT_REL)/version.h:
-- $(SRC_PATH)/version.sh $(SRC_PATH) $@ $(EXTRA_VERSION)
--
- install: install-libs install-headers
-
- uninstall: uninstall-libs uninstall-headers
diff --git a/media-video/ffmpeg/files/disable-version-rebranding-2008.patch b/media-video/ffmpeg/files/disable-version-rebranding-2008.patch
deleted file mode 100644
index d3a9461..0000000
--- a/media-video/ffmpeg/files/disable-version-rebranding-2008.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/common.mak.orig 2008-06-22 00:25:48.000000000 +0200
-+++ src/common.mak 2008-06-22 00:28:54.000000000 +0200
-@@ -45,9 +45,6 @@
- $(BUILD_ROOT_REL)/version.h: $(SVN_ENTRIES)
- endif
-
--$(BUILD_ROOT_REL)/version.h:
-- $(SRC_PATH)/version.sh $(SRC_PATH) $@
--
- install: install-libs install-headers
-
- uninstall: uninstall-libs uninstall-headers
diff --git a/media-video/ffmpeg/files/disable-version-rebranding-2009.01.patch b/media-video/ffmpeg/files/disable-version-rebranding-2009.01.patch
deleted file mode 100644
index 9cd7366..0000000
--- a/media-video/ffmpeg/files/disable-version-rebranding-2009.01.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- ffmpeg/common.mak.orig 2009-01-26 20:24:53.000000000 +0100
-+++ ffmpeg/common.mak 2009-01-26 20:25:54.000000000 +0100
-@@ -48,9 +48,6 @@
- $(BUILD_ROOT_REL)/version.h: $(SVN_ENTRIES)
- endif
-
--$(BUILD_ROOT_REL)/version.h: $(SRC_PATH_BARE)/version.sh
-- $< $(SRC_PATH) $@ $(EXTRA_VERSION)
--
- install: install-libs install-headers
-
- uninstall: uninstall-libs uninstall-headers
diff --git a/media-video/ffmpeg/files/disable-version-rebranding.patch b/media-video/ffmpeg/files/disable-version-rebranding.patch
deleted file mode 100755
index 3763df5..0000000
--- a/media-video/ffmpeg/files/disable-version-rebranding.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- Makefile.orig 2006-11-08 00:18:09.000000000 +0000
-+++ Makefile 2006-11-08 00:19:46.000000000 +0000
-@@ -90,9 +90,6 @@
- cp -p $< $@
- $(STRIP) $@
-
--version.h:
-- $(SRC_PATH)/version.sh $(SRC_PATH)
--
- output_example$(EXESUF): output_example.o .libs
- $(CC) $(LDFLAGS) -o $@ output_example.o $(EXTRALIBS)
-
diff --git a/media-video/ffmpeg/files/ffmpeg-amr-64bit.patch b/media-video/ffmpeg/files/ffmpeg-amr-64bit.patch
deleted file mode 100755
index 540ef94..0000000
--- a/media-video/ffmpeg/files/ffmpeg-amr-64bit.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-diff --exclude-from=/home/dang/.diffrc -u -ruN ffmpeg-0.4.9-p20060302.orig/libavcodec/amr_float/typedef.h ffmpeg-0.4.9-p20060302/libavcodec/amr_float/typedef.h
---- ffmpeg-0.4.9-p20060302.orig/libavcodec/amr_float/typedef.h 2003-03-26 14:15:42.000000000 -0500
-+++ ffmpeg-0.4.9-p20060302/libavcodec/amr_float/typedef.h 2006-04-19 18:39:20.000000000 -0400
-@@ -16,7 +16,7 @@
- typedef char Word8;
- typedef unsigned char UWord8;
- typedef short Word16;
--typedef long Word32;
-+typedef int Word32;
- typedef float Float32;
- typedef double Float64;
-
-diff --exclude-from=/home/dang/.diffrc -u -ruN ffmpeg-0.4.9-p20060302.orig/libavcodec/amrwb_float/typedef.h ffmpeg-0.4.9-p20060302/libavcodec/amrwb_float/typedef.h
---- ffmpeg-0.4.9-p20060302.orig/libavcodec/amrwb_float/typedef.h 2003-02-18 00:00:02.000000000 -0500
-+++ ffmpeg-0.4.9-p20060302/libavcodec/amrwb_float/typedef.h 2006-04-19 18:37:30.000000000 -0400
-@@ -11,8 +11,8 @@
- typedef unsigned char UWord8;
- typedef short Word16;
- typedef unsigned short UWord16;
--typedef long Word32;
-+typedef int Word32;
- typedef double Float64;
- typedef float Float32;
-
--#endif
-\ No newline at end of file
-+#endif
diff --git a/media-video/ffmpeg/files/ffmpeg-asm-pic.patch b/media-video/ffmpeg/files/ffmpeg-asm-pic.patch
deleted file mode 100644
index 0cf16c3..0000000
--- a/media-video/ffmpeg/files/ffmpeg-asm-pic.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Index: ffmpeg/libavcodec/cabac.h
-===================================================================
---- ffmpeg.orig/libavcodec/cabac.h
-+++ ffmpeg/libavcodec/cabac.h
-@@ -376,7 +376,7 @@ static int av_always_inline get_cabac_in
- #define BYTE "16"
- #define BYTEEND "20"
- #endif
--#if defined(ARCH_X86) && defined(CONFIG_7REGS) && defined(CONFIG_EBX_AVAILABLE)
-+#if defined(ARCH_X86) && defined(CONFIG_7REGS) && defined(CONFIG_EBX_AVAILABLE) && !(defined(PIC) && defined(__GNUC__))
- int bit;
-
- #ifndef BRANCHLESS_CABAC_DECODER
-@@ -680,7 +680,7 @@ static av_always_inline int get_cabac_by
-
- //FIXME the x86 code from this file should be moved into i386/h264 or cabac something.c/h (note ill kill you if you move my code away from under my fingers before iam finished with it!)
- //FIXME use some macros to avoid duplicatin get_cabac (cant be done yet as that would make optimization work hard)
--#if defined(ARCH_X86) && defined(CONFIG_7REGS) && defined(CONFIG_EBX_AVAILABLE)
-+#if defined(ARCH_X86) && defined(CONFIG_7REGS) && defined(CONFIG_EBX_AVAILABLE) && !(defined(PIC) && defined(__GNUC__))
- static int decode_significance_x86(CABACContext *c, int max_coeff, uint8_t *significant_coeff_ctx_base, int *index){
- void *end= significant_coeff_ctx_base + max_coeff - 1;
- int minusstart= -(int)significant_coeff_ctx_base;
-Index: ffmpeg/libavcodec/h264.c
-===================================================================
---- ffmpeg.orig/libavcodec/h264.c
-+++ ffmpeg/libavcodec/h264.c
-@@ -6111,7 +6111,7 @@ static int decode_cabac_residual( H264Co
- index[coeff_count++] = last;\
- }
- const uint8_t *sig_off = significant_coeff_flag_offset_8x8[MB_FIELD];
--#if defined(ARCH_X86) && defined(CONFIG_7REGS) && defined(CONFIG_EBX_AVAILABLE)
-+#if defined(ARCH_X86) && defined(CONFIG_7REGS) && defined(CONFIG_EBX_AVAILABLE) && !(defined(PIC) && defined(__GNUC__))
- coeff_count= decode_significance_8x8_x86(CC, significant_coeff_ctx_base, index, sig_off);
- } else {
- coeff_count= decode_significance_x86(CC, max_coeff, significant_coeff_ctx_base, index);
diff --git a/media-video/ffmpeg/files/ffmpeg-eac3_decoder-20080817.patch b/media-video/ffmpeg/files/ffmpeg-eac3_decoder-20080817.patch
deleted file mode 100644
index 366414b..0000000
--- a/media-video/ffmpeg/files/ffmpeg-eac3_decoder-20080817.patch
+++ /dev/null
@@ -1,506 +0,0 @@
-Index: libavcodec/ac3dec.c
-===================================================================
---- libavcodec/ac3dec.c (revision 14819)
-+++ libavcodec/ac3dec.c (working copy)
-@@ -1,8 +1,10 @@
- /*
- * AC-3 Audio Decoder
-- * This code is developed as part of Google Summer of Code 2006 Program.
-+ * This code was developed as part of Google Summer of Code 2006.
-+ * E-AC-3 support was added as part of Google Summer of Code 2007.
- *
- * Copyright (c) 2006 Kartikey Mahendra BHATT (bhattkm at gmail dot com).
-+ * Copyright (c) 2007-2008 Bartlomiej Wolowiec <bartek.wolowiec@gmail.com>
- * Copyright (c) 2007 Justin Ruggles <justin.ruggles@gmail.com>
- *
- * Portions of this code are derived from liba52
-@@ -37,8 +39,8 @@
- #include "ac3dec.h"
- #include "ac3dec_data.h"
-
--/** Maximum possible frame size when the specification limit is ignored */
--#define AC3_MAX_FRAME_SIZE 21695
-+/** Large enough for maximum possible frame size when the specification limit is ignored */
-+#define AC3_FRAME_BUFFER_SIZE 32768
-
- /**
- * table for ungrouping 3 values in 7 bits.
-@@ -215,7 +217,7 @@
-
- /* allocate context input buffer */
- if (avctx->error_resilience >= FF_ER_CAREFUL) {
-- s->input_buffer = av_mallocz(AC3_MAX_FRAME_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
-+ s->input_buffer = av_mallocz(AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE);
- if (!s->input_buffer)
- return AVERROR_NOMEM;
- }
-@@ -302,10 +304,22 @@
- s->channel_in_cpl[s->lfe_ch] = 0;
- }
-
-- if(hdr.bitstream_id > 10)
-- return AC3_PARSE_ERROR_BSID;
--
-+ if (hdr.bitstream_id <= 10) {
-+ s->eac3 = 0;
-+ s->snr_offset_strategy = 2;
-+ s->block_switch_syntax = 1;
-+ s->dither_flag_syntax = 1;
-+ s->bit_allocation_syntax = 1;
-+ s->fast_gain_syntax = 0;
-+ s->first_cpl_leak = 0;
-+ s->dba_syntax = 1;
-+ s->skip_syntax = 1;
-+ memset(s->channel_uses_aht, 0, sizeof(s->channel_uses_aht));
- return ac3_parse_header(s);
-+ } else {
-+ s->eac3 = 1;
-+ return ff_eac3_parse_header(s);
-+ }
- }
-
- /**
-@@ -428,7 +442,7 @@
- * Get the transform coefficients for a particular channel
- * reference: Section 7.3 Quantization and Decoding of Mantissas
- */
--static void get_transform_coeffs_ch(AC3DecodeContext *s, int ch_index, mant_groups *m)
-+static void ac3_get_transform_coeffs_ch(AC3DecodeContext *s, int ch_index, mant_groups *m)
- {
- GetBitContext *gbc = &s->gbc;
- int i, gcode, tbap, start, end;
-@@ -533,10 +547,27 @@
- }
- }
-
-+static void get_transform_coeffs_ch(AC3DecodeContext *s, int blk, int ch,
-+ mant_groups *m)
-+{
-+ if (!s->channel_uses_aht[ch]) {
-+ ac3_get_transform_coeffs_ch(s, ch, m);
-+ } else {
-+ /* if AHT is used, mantissas for all blocks are encoded in the first
-+ block of the frame. */
-+ int bin;
-+ if (!blk)
-+ ff_eac3_get_transform_coeffs_aht_ch(s, ch);
-+ for (bin = s->start_freq[ch]; bin < s->end_freq[ch]; bin++) {
-+ s->fixed_coeffs[ch][bin] = s->pre_mantissa[ch][bin][blk] >> s->dexps[ch][bin];
-+ }
-+ }
-+}
-+
- /**
- * Get the transform coefficients.
- */
--static void get_transform_coeffs(AC3DecodeContext *s)
-+static void get_transform_coeffs(AC3DecodeContext *s, int blk)
- {
- int ch, end;
- int got_cplchan = 0;
-@@ -546,12 +577,12 @@
-
- for (ch = 1; ch <= s->channels; ch++) {
- /* transform coefficients for full-bandwidth channel */
-- get_transform_coeffs_ch(s, ch, &m);
-+ get_transform_coeffs_ch(s, blk, ch, &m);
- /* tranform coefficients for coupling channel come right after the
- coefficients for the first coupled channel*/
- if (s->channel_in_cpl[ch]) {
- if (!got_cplchan) {
-- get_transform_coeffs_ch(s, CPL_CH, &m);
-+ get_transform_coeffs_ch(s, blk, CPL_CH, &m);
- calc_transform_coeffs_cpl(s);
- got_cplchan = 1;
- }
-@@ -657,7 +688,7 @@
- */
- static void ac3_upmix_delay(AC3DecodeContext *s)
- {
-- int channel_data_size = 128*sizeof(float);
-+ int channel_data_size = sizeof(s->delay[0]);
- switch(s->channel_mode) {
- case AC3_CHMODE_DUALMONO:
- case AC3_CHMODE_STEREO:
-@@ -698,19 +729,23 @@
-
- /* block switch flags */
- different_transforms = 0;
-+ if (s->block_switch_syntax) {
- for (ch = 1; ch <= fbw_channels; ch++) {
- s->block_switch[ch] = get_bits1(gbc);
- if(ch > 1 && s->block_switch[ch] != s->block_switch[1])
- different_transforms = 1;
- }
-+ }
-
- /* dithering flags */
-+ if (s->dither_flag_syntax) {
- s->dither_all = 1;
- for (ch = 1; ch <= fbw_channels; ch++) {
- s->dither_flag[ch] = get_bits1(gbc);
- if(!s->dither_flag[ch])
- s->dither_all = 0;
- }
-+ }
-
- /* dynamic range */
- i = !(s->channel_mode);
-@@ -723,9 +758,23 @@
- }
- } while(i--);
-
-+ /* spectral extension strategy */
-+ if (s->eac3 && (!blk || get_bits1(gbc))) {
-+ if (get_bits1(gbc)) {
-+ av_log_missing_feature(s->avctx, "Spectral extension", 1);
-+ return -1;
-+ }
-+ /* TODO: parse spectral extension strategy info */
-+ }
-+
-+ /* TODO: spectral extension coordinates */
-+
- /* coupling strategy */
-- if (get_bits1(gbc)) {
-+ if (!s->eac3)
-+ s->cpl_strategy_exists[blk] = get_bits1(gbc);
-+ if (s->cpl_strategy_exists[blk]) {
- memset(bit_alloc_stages, 3, AC3_MAX_CHANNELS);
-+ if (!s->eac3)
- s->cpl_in_use[blk] = get_bits1(gbc);
- if (s->cpl_in_use[blk]) {
- /* coupling in use */
-@@ -736,15 +785,28 @@
- return -1;
- }
-
-+ /* check for enhanced coupling */
-+ if (s->eac3 && get_bits1(gbc)) {
-+ /* TODO: parse enhanced coupling strategy info */
-+ av_log_missing_feature(s->avctx, "Enhanced coupling", 1);
-+ return -1;
-+ }
-+
- /* determine which channels are coupled */
-+ if (s->eac3 && s->channel_mode == AC3_CHMODE_STEREO) {
-+ s->channel_in_cpl[1] = 1;
-+ s->channel_in_cpl[2] = 1;
-+ } else {
- for (ch = 1; ch <= fbw_channels; ch++)
- s->channel_in_cpl[ch] = get_bits1(gbc);
-+ }
-
- /* phase flags in use */
- if (channel_mode == AC3_CHMODE_STEREO)
- s->phase_flags_in_use = get_bits1(gbc);
-
-- /* coupling frequency range and band structure */
-+ /* coupling frequency range */
-+ /* TODO: modify coupling end freq if spectral extension is used */
- cpl_begin_freq = get_bits(gbc, 4);
- cpl_end_freq = get_bits(gbc, 4);
- if (3 + cpl_end_freq - cpl_begin_freq < 0) {
-@@ -754,24 +816,40 @@
- s->num_cpl_bands = s->num_cpl_subbands = 3 + cpl_end_freq - cpl_begin_freq;
- s->start_freq[CPL_CH] = cpl_begin_freq * 12 + 37;
- s->end_freq[CPL_CH] = cpl_end_freq * 12 + 73;
-+
-+ /* coupling band structure */
-+ if (!s->eac3 || get_bits1(gbc)) {
- for (bnd = 0; bnd < s->num_cpl_subbands - 1; bnd++) {
-- if (get_bits1(gbc)) {
-- s->cpl_band_struct[bnd] = 1;
-- s->num_cpl_bands--;
-+ s->cpl_band_struct[bnd] = get_bits1(gbc);
- }
-+ } else if (!blk) {
-+ for (bnd = 0; bnd < s->num_cpl_subbands - 1; bnd++) {
-+ s->cpl_band_struct[bnd] = ff_eac3_default_cpl_band_struct[bnd+cpl_begin_freq+1];
-+ }
- }
- s->cpl_band_struct[s->num_cpl_subbands-1] = 0;
-+
-+ /* calculate number of coupling bands based on band structure */
-+ for (bnd = 0; bnd < s->num_cpl_subbands-1; bnd++) {
-+ s->num_cpl_bands -= s->cpl_band_struct[bnd];
-+ }
- } else {
- /* coupling not in use */
-- for (ch = 1; ch <= fbw_channels; ch++)
-+ for (ch = 1; ch <= fbw_channels; ch++) {
- s->channel_in_cpl[ch] = 0;
-+ s->first_cpl_coords[ch] = 1;
-+ }
-+ s->first_cpl_leak = 1;
-+ s->phase_flags_in_use = 0;
- }
-- } else if (!blk) {
-+ } else if (!s->eac3) {
-+ if(!blk) {
- av_log(s->avctx, AV_LOG_ERROR, "new coupling strategy must be present in block 0\n");
- return -1;
- } else {
- s->cpl_in_use[blk] = s->cpl_in_use[blk-1];
- }
-+ }
- cpl_in_use = s->cpl_in_use[blk];
-
- /* coupling coordinates */
-@@ -780,7 +858,17 @@
-
- for (ch = 1; ch <= fbw_channels; ch++) {
- if (s->channel_in_cpl[ch]) {
-- if (get_bits1(gbc)) {
-+ int new_cpl_coords = 0;
-+
-+ /* determine if coupling coordinates are new or reused */
-+ if (s->eac3 && s->first_cpl_coords[ch]) {
-+ new_cpl_coords = 1;
-+ s->first_cpl_coords[ch] = 0;
-+ } else {
-+ new_cpl_coords = get_bits1(gbc);
-+ }
-+
-+ if (new_cpl_coords) {
- int master_cpl_coord, cpl_coord_exp, cpl_coord_mant;
- cpl_coords_exist = 1;
- master_cpl_coord = 3 * get_bits(gbc, 2);
-@@ -797,6 +885,9 @@
- av_log(s->avctx, AV_LOG_ERROR, "new coupling coordinates must be present in block 0\n");
- return -1;
- }
-+ } else {
-+ /* channel not in coupling */
-+ s->first_cpl_coords[ch] = 1;
- }
- }
- /* phase flags */
-@@ -809,7 +900,7 @@
-
- /* stereo rematrixing strategy and band structure */
- if (channel_mode == AC3_CHMODE_STEREO) {
-- if (get_bits1(gbc)) {
-+ if ((s->eac3 && !blk) || get_bits1(gbc)) {
- s->num_rematrixing_bands = 4;
- if(cpl_in_use && s->start_freq[CPL_CH] <= 61)
- s->num_rematrixing_bands -= 1 + (s->start_freq[CPL_CH] == 37);
-@@ -822,10 +913,14 @@
- }
-
- /* exponent strategies for each channel */
-- s->exp_strategy[blk][CPL_CH] = EXP_REUSE;
-- s->exp_strategy[blk][s->lfe_ch] = EXP_REUSE;
-+ if (!s->eac3) {
-+ for (ch = !cpl_in_use; ch <= s->channels; ch++) {
-+ s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
-+ }
-+ }
-+
-+ /* check exponent strategies to set bit allocation stages */
- for (ch = !cpl_in_use; ch <= s->channels; ch++) {
-- s->exp_strategy[blk][ch] = get_bits(gbc, 2 - (ch == s->lfe_ch));
- if(s->exp_strategy[blk][ch] != EXP_REUSE)
- bit_alloc_stages[ch] = 3;
- }
-@@ -852,7 +947,7 @@
- memset(bit_alloc_stages, 3, AC3_MAX_CHANNELS);
- }
- }
-- if (cpl_in_use && s->exp_strategy[blk][CPL_CH] != EXP_REUSE) {
-+ if (cpl_in_use) {
- s->num_exp_groups[CPL_CH] = (s->end_freq[CPL_CH] - s->start_freq[CPL_CH]) /
- (3 << (s->exp_strategy[blk][CPL_CH] - 1));
- }
-@@ -870,6 +965,7 @@
- }
-
- /* bit allocation information */
-+ if (s->bit_allocation_syntax) {
- if (get_bits1(gbc)) {
- s->bit_alloc_params.slow_decay = ff_ac3_slow_decay_tab[get_bits(gbc, 2)] >> s->bit_alloc_params.sr_shift;
- s->bit_alloc_params.fast_decay = ff_ac3_fast_decay_tab[get_bits(gbc, 2)] >> s->bit_alloc_params.sr_shift;
-@@ -882,35 +978,78 @@
- av_log(s->avctx, AV_LOG_ERROR, "new bit allocation info must be present in block 0\n");
- return -1;
- }
-+ }
-
- /* signal-to-noise ratio offsets and fast gains (signal-to-mask ratios) */
-- if (get_bits1(gbc)) {
-+ if (s->snr_offset_strategy && (!s->eac3 || !blk) && get_bits1(gbc)) {
-+ int snr = 0;
- int csnr;
- csnr = (get_bits(gbc, 6) - 15) << 4;
-- for (ch = !cpl_in_use; ch <= s->channels; ch++) { /* snr offset and fast gain */
-- s->snr_offset[ch] = (csnr + get_bits(gbc, 4)) << 2;
-- s->fast_gain[ch] = ff_ac3_fast_gain_tab[get_bits(gbc, 3)];
-+ for (i = ch = !cpl_in_use; ch <= s->channels; ch++) {
-+ /* snr offset */
-+ if (ch == i || s->snr_offset_strategy == 2)
-+ snr = (csnr + get_bits(gbc, 4)) << 2;
-+ /* run at least last bit allocation stage if snr offset changes */
-+ if(blk && s->snr_offset[ch] != snr) {
-+ bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 1);
-+ }
-+ s->snr_offset[ch] = snr;
-+
-+ /* fast gain (normal AC-3 only) */
-+ if (!s->eac3) {
-+ int prev = s->fast_gain[ch];
-+ s->fast_gain[ch] = ff_ac3_fast_gain_tab[get_bits(gbc, 3)];
-+ /* run last 2 bit allocation stages if fast gain changes */
-+ if(blk && prev != s->fast_gain[ch])
-+ bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2);
-+ }
- }
-- memset(bit_alloc_stages, 3, AC3_MAX_CHANNELS);
-- } else if (!blk) {
-+ } else if (!s->eac3 && !blk) {
- av_log(s->avctx, AV_LOG_ERROR, "new snr offsets must be present in block 0\n");
- return -1;
- }
-
-+ /* fast gain (E-AC-3 only) */
-+ if (s->fast_gain_syntax && get_bits1(gbc)) {
-+ for (ch = !cpl_in_use; ch <= s->channels; ch++) {
-+ int prev = s->fast_gain[ch];
-+ s->fast_gain[ch] = ff_ac3_fast_gain_tab[get_bits(gbc, 3)];
-+ /* run last 2 bit allocation stages if fast gain changes */
-+ if(blk && prev != s->fast_gain[ch])
-+ bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2);
-+ }
-+ } else if (s->eac3 && !blk) {
-+ for (ch = !cpl_in_use; ch <= s->channels; ch++)
-+ s->fast_gain[ch] = ff_ac3_fast_gain_tab[4];
-+ }
-+
-+ /* E-AC-3 to AC-3 converter SNR offset */
-+ if (s->frame_type == EAC3_FRAME_TYPE_INDEPENDENT && get_bits1(gbc)) {
-+ skip_bits(gbc, 10); // skip converter snr offset
-+ }
-+
- /* coupling leak information */
- if (cpl_in_use) {
-- if (get_bits1(gbc)) {
-+ if (s->first_cpl_leak || get_bits1(gbc)) {
-+ int prev_fl = s->bit_alloc_params.cpl_fast_leak;
-+ int prev_sl = s->bit_alloc_params.cpl_slow_leak;
- s->bit_alloc_params.cpl_fast_leak = get_bits(gbc, 3);
- s->bit_alloc_params.cpl_slow_leak = get_bits(gbc, 3);
-+ /* run last 2 bit allocation stages for coupling channel if
-+ coupling leak changes */
-+ if(blk && (prev_fl != s->bit_alloc_params.cpl_fast_leak ||
-+ prev_sl != s->bit_alloc_params.cpl_slow_leak)) {
- bit_alloc_stages[CPL_CH] = FFMAX(bit_alloc_stages[CPL_CH], 2);
-- } else if (!blk) {
-+ }
-+ } else if (!s->eac3 && !blk) {
- av_log(s->avctx, AV_LOG_ERROR, "new coupling leak info must be present in block 0\n");
- return -1;
- }
-+ s->first_cpl_leak = 0;
- }
-
- /* delta bit allocation information */
-- if (get_bits1(gbc)) {
-+ if (s->dba_syntax && get_bits1(gbc)) {
- /* delta bit allocation exists (strategy) */
- for (ch = !cpl_in_use; ch <= fbw_channels; ch++) {
- s->dba_mode[ch] = get_bits(gbc, 2);
-@@ -959,16 +1098,18 @@
- }
- if(bit_alloc_stages[ch] > 0) {
- /* Compute bit allocation */
-+ const uint8_t *bap_tab = s->channel_uses_aht[ch] ?
-+ ff_eac3_hebap_tab : ff_ac3_bap_tab;
- ff_ac3_bit_alloc_calc_bap(s->mask[ch], s->psd[ch],
- s->start_freq[ch], s->end_freq[ch],
- s->snr_offset[ch],
- s->bit_alloc_params.floor,
-- ff_ac3_bap_tab, s->bap[ch]);
-+ bap_tab, s->bap[ch]);
- }
- }
-
- /* unused dummy data */
-- if (get_bits1(gbc)) {
-+ if (s->skip_syntax && get_bits1(gbc)) {
- int skipl = get_bits(gbc, 9);
- while(skipl--)
- skip_bits(gbc, 8);
-@@ -976,8 +1117,12 @@
-
- /* unpack the transform coefficients
- this also uncouples channels if coupling is in use. */
-- get_transform_coeffs(s);
-+ get_transform_coeffs(s, blk);
-
-+ /* TODO: generate enhanced coupling coordinates and uncouple */
-+
-+ /* TODO: apply spectral extension */
-+
- /* recover coefficients if rematrixing is in use */
- if(s->channel_mode == AC3_CHMODE_STEREO)
- do_rematrixing(s);
-@@ -1042,7 +1187,7 @@
- if (s->input_buffer) {
- /* copy input buffer to decoder context to avoid reading past the end
- of the buffer, which can be caused by a damaged input stream. */
-- memcpy(s->input_buffer, buf, FFMIN(buf_size, AC3_MAX_FRAME_SIZE));
-+ memcpy(s->input_buffer, buf, FFMIN(buf_size, AC3_FRAME_BUFFER_SIZE));
- init_get_bits(&s->gbc, s->input_buffer, buf_size * 8);
- } else {
- init_get_bits(&s->gbc, buf, buf_size * 8);
-@@ -1161,5 +1306,5 @@
- .init = ac3_decode_init,
- .close = ac3_decode_end,
- .decode = ac3_decode_frame,
-- .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 / AC-3"),
-+ .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 (AC-3, E-AC-3)"),
- };
-Index: libavcodec/ac3dec.h
-===================================================================
---- libavcodec/ac3dec.h (revision 14819)
-+++ libavcodec/ac3dec.h (working copy)
-@@ -168,4 +168,16 @@
- ///@}
- } AC3DecodeContext;
-
-+/**
-+ * Parse the E-AC-3 frame header.
-+ * This parses both the bit stream info and audio frame header.
-+ */
-+int ff_eac3_parse_header(AC3DecodeContext *s);
-+
-+/**
-+ * Decode mantissas in a single channel for the entire frame.
-+ * This is used when AHT mode is enabled.
-+ */
-+void ff_eac3_get_transform_coeffs_aht_ch(AC3DecodeContext *s, int ch);
-+
- #endif /* FFMPEG_AC3DEC_H */
-Index: libavcodec/Makefile
-===================================================================
---- libavcodec/Makefile (revision 14819)
-+++ libavcodec/Makefile (working copy)
-@@ -26,7 +26,7 @@
- OBJS-$(CONFIG_ENCODERS) += faandct.o jfdctfst.o jfdctint.o
-
- OBJS-$(CONFIG_AASC_DECODER) += aasc.o
--OBJS-$(CONFIG_AC3_DECODER) += ac3dec.o ac3tab.o ac3dec_data.o ac3.o mdct.o fft.o
-+OBJS-$(CONFIG_AC3_DECODER) += eac3dec.o ac3dec.o ac3tab.o ac3dec_data.o ac3.o mdct.o fft.o
- OBJS-$(CONFIG_AC3_ENCODER) += ac3enc.o ac3tab.o ac3.o
- OBJS-$(CONFIG_ALAC_DECODER) += alac.o
- OBJS-$(CONFIG_AMV_DECODER) += sp5xdec.o mjpegdec.o mjpeg.o
-Index: libavcodec/ac3enc.c
-===================================================================
---- libavcodec/ac3enc.c (revision 14819)
-+++ libavcodec/ac3enc.c (working copy)
-@@ -1365,5 +1365,5 @@
- AC3_encode_close,
- NULL,
- .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
-- .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 / AC-3"),
-+ .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 (AC-3, E-AC-3)"),
- };
diff --git a/media-video/ffmpeg/files/ffmpeg-icc.patch b/media-video/ffmpeg/files/ffmpeg-icc.patch
deleted file mode 100644
index 18be12a..0000000
--- a/media-video/ffmpeg/files/ffmpeg-icc.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Index: libswscale/yuv2rgb.c
-===================================================================
---- libswscale/yuv2rgb.c (Revision 27482)
-+++ libswscale/yuv2rgb.c (Arbeitskopie)
-@@ -157,6 +157,9 @@
-
- // The volatile is required because gcc otherwise optimizes some writes away
- // not knowing that these are read in the ASM block.
-+#ifdef __ICC
-+#define static
-+#endif
- static volatile uint64_t attribute_used __attribute__((aligned(8))) b5Dither;
- static volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
- static volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
diff --git a/media-video/ffmpeg/files/ffmpeg-libdir-pic.patch b/media-video/ffmpeg/files/ffmpeg-libdir-pic.patch
deleted file mode 100755
index 7a0e42d..0000000
--- a/media-video/ffmpeg/files/ffmpeg-libdir-pic.patch
+++ /dev/null
@@ -1,169 +0,0 @@
-Index: configure
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
-retrieving revision 1.164
-diff -u -b -B -u -r1.164 configure
---- configure 9 Mar 2005 03:04:55 -0000 1.164
-+++ configure 15 Mar 2005 23:40:10 -0000
-@@ -13,6 +13,7 @@
- echo "Standard options:"
- echo " --help print this message"
- echo " --prefix=PREFIX install in PREFIX [$prefix]"
-+echo " --libdir=DIR install libs in DIR [PREFIX/lib]"
- echo " --mandir=DIR man documentation in DIR [PREFIX/man]"
- echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
- echo " --enable-ogg enable ogg support via libogg [default=no]"
-@@ -91,6 +92,7 @@
-
- # default parameters
- prefix="/usr/local"
-+libdir=""
- mandir=""
- bindir=""
- cross_prefix=""
-@@ -376,6 +378,8 @@
- case "$opt" in
- --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
- ;;
-+ --libdir=*) libdir=`echo $opt | cut -d '=' -f 2`
-+ ;;
- --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
- ;;
- --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
-@@ -1062,6 +1066,10 @@
- bindir="${prefix}/bin"
- fi
-
-+if test x"$libdir" = x""; then
-+libdir="${prefix}/lib"
-+fi
-+
- if test x"$mandir" = x""; then
- mandir="${prefix}/man"
- fi
-@@ -1138,6 +1146,7 @@
- echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH
-
- echo "prefix=$prefix" >> config.mak
-+echo "libdir=$libdir" >> config.mak
- echo "bindir=$bindir" >> config.mak
- echo "mandir=$mandir" >> config.mak
- echo "MAKE=$make" >> config.mak
-Index: libavcodec/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/Makefile,v
-retrieving revision 1.177
-diff -u -b -B -u -r1.177 Makefile
---- libavcodec/Makefile 9 Mar 2005 19:46:31 -0000 1.177
-+++ libavcodec/Makefile 15 Mar 2005 23:40:10 -0000
-@@ -302,9 +302,9 @@
- ifeq ($(CONFIG_WIN32),yes)
- install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
- else
-- install -d $(prefix)/lib
-- install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so
-- ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so
-+ install -d $(libdir)
-+ install $(INSTALLSTRIP) -m 755 $(SLIB) $(libdir)/libavcodec-$(VERSION).so
-+ ln -sf libavcodec-$(VERSION).so $(libdir)/libavcodec.so
- ldconfig || true
- endif
- ifeq ($(CONFIG_PP),yes)
-@@ -315,7 +315,7 @@
- endif
-
- installlib: all install-headers
-- install -m 644 $(LIB) "$(prefix)/lib"
-+ install -m 644 $(LIB) "$(libdir)"
-
- install-headers:
- mkdir -p "$(prefix)/include/ffmpeg"
-Index: libavcodec/libpostproc/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/libpostproc/Makefile,v
-retrieving revision 1.19
-diff -u -b -B -u -r1.19 Makefile
---- libavcodec/libpostproc/Makefile 4 Feb 2005 03:29:50 -0000 1.19
-+++ libavcodec/libpostproc/Makefile 15 Mar 2005 23:40:11 -0000
-@@ -54,9 +54,9 @@
- ifeq ($(CONFIG_WIN32),yes)
- install $(INSTALLSTRIP) -m 755 $(SPPLIB) "$(prefix)"
- else
-- install -d $(prefix)/lib
-- install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(prefix)/lib/$(SPPLIB).$(SPPVERSION)
-- ln -sf $(SPPLIB).$(SPPVERSION) $(prefix)/lib/$(SPPLIB)
-+ install -d $(libdir)
-+ install $(INSTALLSTRIP) -m 755 $(SPPLIB) $(libdir)/$(SPPLIB).$(SPPVERSION)
-+ ln -sf $(SPPLIB).$(SPPVERSION) $(libdir)/$(SPPLIB)
- ldconfig || true
- endif
- endif
-Index: libavformat/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
-retrieving revision 1.84
-diff -u -b -B -u -r1.84 Makefile
---- libavformat/Makefile 15 Mar 2005 12:37:39 -0000 1.84
-+++ libavformat/Makefile 15 Mar 2005 23:40:11 -0000
-@@ -108,9 +108,9 @@
- ifeq ($(CONFIG_WIN32),yes)
- install $(INSTALLSTRIP) -m 755 $(SLIB) "$(prefix)"
- else
-- install -d $(prefix)/lib
-- install $(INSTALLSTRIP) -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so
-- ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so
-+ install -d $(libdir)
-+ install $(INSTALLSTRIP) -m 755 $(SLIB) $(libdir)/libavformat-$(VERSION).so
-+ ln -sf libavformat-$(VERSION).so $(libdir)/libavformat.so
- ldconfig || true
- endif
- else
-@@ -118,7 +118,7 @@
- endif
-
- installlib: all install-headers
-- install -m 644 $(LIB) "$(prefix)/lib"
-+ install -m 644 $(LIB) "$(libdir)"
-
- install-headers:
- mkdir -p "$(prefix)/include/ffmpeg"
-Index: vhook/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/vhook/Makefile,v
-retrieving revision 1.19
-diff -u -b -B -u -r1.19 Makefile
---- vhook/Makefile 25 Feb 2005 22:22:20 -0000 1.19
-+++ vhook/Makefile 15 Mar 2005 23:40:11 -0000
-@@ -26,8 +26,8 @@
- $(CC) -MM $(CFLAGS) $^ 1>.depend
-
- install:
-- install -d "$(prefix)/lib/vhook"
-- install -m 755 $(HOOKS) "$(prefix)/lib/vhook"
-+ install -d "$(libdir)/vhook"
-+ install -m 755 $(HOOKS) "$(libdir)/vhook"
-
- imlib2.so: imlib2.o
- $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
---- libavcodec/Makefile.orig 2005-03-18 06:10:21.000000000 +0900
-+++ libavcodec/Makefile 2005-03-18 06:17:04.000000000 +0900
-@@ -7,7 +7,7 @@
- VPATH=$(SRC_PATH)/libavcodec
-
- # NOTE: -I.. is needed to include config.h
--CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-+CFLAGS=$(OPTFLAGS) $(PIC) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-
- OBJS= bitstream.o utils.o mem.o allcodecs.o \
- mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
---- libavformat/Makefile.orig 2005-02-25 00:18:02.000000000 +0900
-+++ libavformat/Makefile 2005-03-18 06:17:22.000000000 +0900
-@@ -6,7 +6,7 @@
-
- VPATH=$(SRC_PATH)/libavformat
-
--CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-+CFLAGS=$(OPTFLAGS) $(PIC) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-
- OBJS= utils.o cutils.o os_support.o allformats.o
- PPOBJS=
diff --git a/media-video/ffmpeg/files/ffmpeg-libdir.patch b/media-video/ffmpeg/files/ffmpeg-libdir.patch
deleted file mode 100755
index 82b8838..0000000
--- a/media-video/ffmpeg/files/ffmpeg-libdir.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2007-01-20 10:18:40.000000000 -0800
-+++ configure 2007-01-20 10:20:31.000000000 -0800
-@@ -2093,7 +2093,7 @@
- cat <<EOF >$name.pc
- prefix=$prefix
- exec_prefix=\${prefix}
--libdir=\${exec_prefix}/lib
-+libdir=\${exec_prefix}/GENTOOLIBDIR
- includedir=\${prefix}/include
-
- Name: $name
diff --git a/media-video/ffmpeg/files/ffmpeg-shared-gcc4.1.patch b/media-video/ffmpeg/files/ffmpeg-shared-gcc4.1.patch
deleted file mode 100755
index 680c755..0000000
--- a/media-video/ffmpeg/files/ffmpeg-shared-gcc4.1.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- ffmpeg.orig/libavcodec/i386/dsputil_mmx.c 2006-03-04 07:50:27.000000000 +0100
-+++ ffmpeg/libavcodec/i386/dsputil_mmx.c 2006-03-04 07:49:04.000000000 +0100
-@@ -619,10 +619,22 @@
-
- static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int src_stride){
- asm volatile( //FIXME could save 1 instruction if done as 8x4 ...
-- "movd %4, %%mm0 \n\t"
-- "movd %5, %%mm1 \n\t"
-- "movd %6, %%mm2 \n\t"
-- "movd %7, %%mm3 \n\t"
-+ "movd %0, %%mm0 \n\t"
-+ "movd %1, %%mm1 \n\t"
-+ "movd %2, %%mm2 \n\t"
-+
-+ :
-+ : "m" (*(uint32_t*)(src + 0*src_stride)),
-+ "m" (*(uint32_t*)(src + 1*src_stride)),
-+ "m" (*(uint32_t*)(src + 2*src_stride))
-+ );
-+ asm volatile( //FIXME could save 1 instruction if done as 8x4 ...
-+ "movd %0, %%mm3 \n\t"
-+
-+ :
-+ : "m" (*(uint32_t*)(src + 3*src_stride))
-+ );
-+ asm volatile( //FIXME could save 1 instruction if done as 8x4 ...
- "punpcklbw %%mm1, %%mm0 \n\t"
- "punpcklbw %%mm3, %%mm2 \n\t"
- "movq %%mm0, %%mm1 \n\t"
-@@ -639,10 +651,6 @@
- "=m" (*(uint32_t*)(dst + 1*dst_stride)),
- "=m" (*(uint32_t*)(dst + 2*dst_stride)),
- "=m" (*(uint32_t*)(dst + 3*dst_stride))
-- : "m" (*(uint32_t*)(src + 0*src_stride)),
-- "m" (*(uint32_t*)(src + 1*src_stride)),
-- "m" (*(uint32_t*)(src + 2*src_stride)),
-- "m" (*(uint32_t*)(src + 3*src_stride))
- );
- }
-
diff --git a/media-video/ffmpeg/files/ffmpeg-soname-symlink.patch b/media-video/ffmpeg/files/ffmpeg-soname-symlink.patch
deleted file mode 100755
index 9fd7713..0000000
--- a/media-video/ffmpeg/files/ffmpeg-soname-symlink.patch
+++ /dev/null
@@ -1,146 +0,0 @@
-Index: configure
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
-retrieving revision 1.219
-diff -u -r1.219 configure
---- configure 11 Dec 2005 00:45:33 -0000 1.219
-+++ configure 13 Dec 2005 16:16:02 -0000
-@@ -215,12 +215,12 @@
- dlfcn="no"
- dlopen="no"
- mpegaudio_hp="yes"
--SHFLAGS='-shared -Wl,-soname,$@.$(LIBVERSION)'
-+SHFLAGS='-shared -Wl,-soname,$@.$(LIBMAJOR)'
- netserver="no"
- need_inet_aton="no"
- ffserver="yes"
- ffplay="yes"
--LIBOBJFLAGS=""
-+LIBOBJFLAGS='$(PIC)'
- LDFLAGS=-Wl,--warn-common
- FFSLDFLAGS=-Wl,-E
- LDCONFIG="ldconfig"
-@@ -228,6 +228,8 @@
- LIBSUF=".a"
- SLIBPREF="lib"
- SLIBSUF=".so"
-+SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBVERSION)'
-+SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBMAJOR)'
- EXESUF=""
- BUILDSUF=""
- amr_nb="no"
-@@ -339,6 +341,8 @@
- installstrip=""
- LDFLAGS="-Wl,-dynamic,-search_paths_first"
- SLIBSUF=".dylib"
-+SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'
-+SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'
- FFSLDFLAGS=-Wl,-bind_at_load
- ;;
- MINGW32*)
-@@ -1465,6 +1467,8 @@
- echo "LAVFVERSION=$lavf_version" >> config.mak
- echo "LAVUMAJOR=${lavu_version/.*/}" >> config.mak
- echo "LAVUVERSION=$lavu_version" >> config.mak
-+ echo "SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}" >> config.mak
-+ echo "SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}" >> config.mak
- fi
- echo "EXTRALIBS=$extralibs" >> config.mak
- version=`grep '#define FFMPEG_VERSION ' "$source_path/libavcodec/avcodec.h" |
-Index: libavcodec/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/Makefile,v
-retrieving revision 1.215
-diff -u -r1.215 Makefile
---- libavcodec/Makefile 10 Dec 2005 17:14:23 -0000 1.215
-+++ libavcodec/Makefile 13 Dec 2005 16:16:03 -0000
-@@ -488,14 +488,20 @@
- $(CC) -o $@ $^ $(LIBAVUTIL) -lm
-
- ifeq ($(BUILD_SHARED),yes)
--LIBVERSION=$(LAVCMAJOR)
-+LIBVERSION=$(LAVCVERSION)
-+LIBMAJOR=$(LAVCMAJOR)
-+NAME=avcodec
- install: all install-headers
- ifeq ($(CONFIG_WIN32),yes)
- install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
- else
- install -d $(libdir)
-- install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavcodec-$(VERSION)$(SLIBSUF)
-- ln -sf libavcodec-$(VERSION)$(SLIBSUF) $(libdir)/libavcodec$(SLIBSUF)
-+ install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
-+ $(libdir)/$(SLIBNAME_WITH_VERSION)
-+ ln -sf $(SLIBNAME_WITH_VERSION) \
-+ $(libdir)/$(SLIBNAME_WITH_MAJOR)
-+ ln -sf $(SLIBNAME_WITH_VERSION) \
-+ $(libdir)/$(SLIBNAME)
- $(LDCONFIG) || true
- endif
- ifeq ($(CONFIG_PP),yes)
-Index: libavformat/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/Makefile,v
-retrieving revision 1.103
-diff -u -r1.103 Makefile
---- libavformat/Makefile 10 Dec 2005 17:14:23 -0000 1.103
-+++ libavformat/Makefile 13 Dec 2005 16:16:03 -0000
-@@ -80,7 +80,9 @@
-
- LIB= $(LIBPREF)avformat$(LIBSUF)
- ifeq ($(BUILD_SHARED),yes)
--LIBVERSION=$(LAVFMAJOR)
-+LIBVERSION=$(LAVFVERSION)
-+LIBMAJOR=$(LAVFMAJOR)
-+NAME=avformat
- SLIBNAME= $(SLIBPREF)avformat$(SLIBSUF)
- AVCLIBS+=-lavcodec$(BUILDSUF) -L../libavcodec -lavutil$(BUILDSUF) -L../libavutil
- ifeq ($(CONFIG_DARWIN),yes)
-@@ -114,8 +116,12 @@
- install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
- else
- install -d $(libdir)
-- install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/$(SLIBPREF)avformat-$(VERSION)$(SLIBSUF)
-- ln -sf $(SLIBPREF)avformat-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
-+ install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
-+ $(libdir)/$(SLIBNAME_WITH_VERSION)
-+ ln -sf $(SLIBNAME_WITH_VERSION) \
-+ $(libdir)/$(SLIBNAME_WITH_MAJOR)
-+ ln -sf $(SLIBNAME_WITH_VERSION) \
-+ $(libdir)/$(SLIBNAME)
- $(LDCONFIG) || true
- endif
- else
-Index: libavutil/Makefile
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/Makefile,v
-retrieving revision 1.5
-diff -u -r1.5 Makefile
---- libavutil/Makefile 10 Dec 2005 17:14:24 -0000 1.5
-+++ libavutil/Makefile 13 Dec 2005 16:16:05 -0000
-@@ -22,7 +22,9 @@
-
- LIB= $(LIBPREF)avutil$(LIBSUF)
- ifeq ($(BUILD_SHARED),yes)
--LIBVERSION=$(LAVUMAJOR)
-+LIBVERSION=$(LAVUVERSION)
-+LIBMAJOR=$(LAVUMAJOR)
-+NAME=avutil
- SLIBNAME= $(SLIBPREF)avutil$(SLIBSUF)
- ifeq ($(CONFIG_DARWIN),yes)
- SHFLAGS += -Wl,-install_name,$(libdir)/$(SLIBNAME),-current_version,$(SPPVERSION),-compatibility_version,$(SPPVERSION)
-@@ -65,8 +67,12 @@
- install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
- else
- install -d $(libdir)
-- install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavutil-$(VERSION)$(SLIBSUF)
-- ln -sf libavutil-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
-+ install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
-+ $(libdir)/$(SLIBNAME_WITH_VERSION)
-+ ln -sf $(SLIBNAME_WITH_VERSION) \
-+ $(libdir)/$(SLIBNAME_WITH_MAJOR)
-+ ln -sf $(SLIBNAME_WITH_VERSION) \
-+ $(libdir)/$(SLIBNAME)
- $(LDCONFIG) || true
- endif
- else
diff --git a/media-video/ffmpeg/files/ffmpeg-unknown-options.patch b/media-video/ffmpeg/files/ffmpeg-unknown-options.patch
deleted file mode 100755
index ca02e9b..0000000
--- a/media-video/ffmpeg/files/ffmpeg-unknown-options.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Index: configure
-===================================================================
-RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
-retrieving revision 1.215
-diff -u -r1.215 configure
---- configure 22 Oct 2005 19:17:39 -0000 1.215
-+++ configure 20 Nov 2005 17:07:53 -0000
-@@ -580,8 +580,6 @@
- ;;
- *)
- echo "Unknown option \"$opt\"."
-- echo "See $0 --help for available options."
-- exit 1
- ;;
- esac
- done
diff --git a/media-video/ffmpeg/files/ffmpeg-x86-pic-fix-20080916.patch b/media-video/ffmpeg/files/ffmpeg-x86-pic-fix-20080916.patch
deleted file mode 100644
index 58799b9..0000000
--- a/media-video/ffmpeg/files/ffmpeg-x86-pic-fix-20080916.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- orig/libavcodec/cabac.h 2008-09-16 21:49:38.000000000 +0200
-+++ ffmpeg/libavcodec/cabac.h 2008-09-16 21:49:03.000000000 +0200
-@@ -32,7 +32,7 @@
- //#undef NDEBUG
- #include <assert.h>
- #include "libavutil/x86_cpu.h"
--
-+#define BROKEN_RELOCATIONS 1
- #define CABAC_BITS 16
- #define CABAC_MASK ((1<<CABAC_BITS)-1)
- #define BRANCHLESS_CABAC_DECODER 1
diff --git a/media-video/ffmpeg/files/ffmpeg-x86-pic-fix.patch b/media-video/ffmpeg/files/ffmpeg-x86-pic-fix.patch
deleted file mode 100644
index 8bcda2a..0000000
--- a/media-video/ffmpeg/files/ffmpeg-x86-pic-fix.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- orig/libavcodec/cabac.h 2008-05-10 17:28:08.000000000 +0200
-+++ ffmpeg/libavcodec/cabac.h 2008-05-10 17:29:24.000000000 +0200
-@@ -33,6 +33,7 @@
- #include <assert.h>
- #ifdef ARCH_X86
- #include "libavutil/x86_cpu.h"
-+#define BROKEN_RELOCATIONS 1
- #endif
-
- #define CABAC_BITS 16
diff --git a/media-video/mplayer/files/dump_ffmpeg.sh b/media-video/mplayer/files/dump_ffmpeg.sh
deleted file mode 100755
index 53404df..0000000
--- a/media-video/mplayer/files/dump_ffmpeg.sh
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-
-FFMPEG_DIR=ffmpeg
-FFMPEG_MOVED_DIR=ffmpeg_removed
-SYSTEM_FFMPEG_DIR=${EPREFIX}/usr/include
-
-# Move directories
-
-[ -d "${FFMPEG_DIR}/.git" ] && mv "${FFMPEG_DIR}" "${FFMPEG_MOVED_DIR}"
-[ -d "${FFMPEG_MOVED_DIR}" ] || exit 1
-[ -d "${FFMPEG_DIR}" ] || mkdir "${FFMPEG_DIR}"
-
-# Keep required files and check them
-
-SANITIZED_REGEXP='^\#[[:space:]]*include.*\".*[.]h\"'
-sanitize_includes() {
- sed -e "s/^\#[[:space:]]*include.*\"config[.]h\"/#include <config.h>/" \
- -e "s/^\#[[:space:]]*include.*\"\(libav.*\/.*[.]h\)\"/#include \<\1\>/" \
- -e "/${SANITIZED_REGEXP}/{s:\"\(.*\)\":\<${2}\/\1\>:}" ${1}
-}
-
-check_sanitized_includes() {
- grep -q "${SANITIZED_REGEXP}" $1
-}
-
-get_header_deps() {
- grep "^#[[:space:]]*include.*\<libav.*[.]h\>" ${1} | \
- sed -e "s/^#[[:space:]]*include.*\<\(libav.*[.]h\)\>/\1/" | \
- tr -d '<>' | tr '\n' ' '
-}
-
-check_header_deps() {
- for i ; do
- printf "Checking for the presence of ${i}...\n"
- if [ ! -f "${SYSTEM_FFMPEG_DIR}/${i}" -a ! -f "${FFMPEG_DIR}/${i}" ] ; then
- printf "Header depends on ${i}\n"
- printf "... but that file cannot be found, aborting\n"
- exit 1
- fi
- done
-}
-
-move_file() {
- mydir="$(dirname $1)"
- printf "Moving and checking file: ${1}\n"
- [ -d "${FFMPEG_DIR}/${mydir}" ] || mkdir -p "${FFMPEG_DIR}/${mydir}"
- if [ ! -f "${FFMPEG_DIR}/${1}" ] ; then
- sanitize_includes "${FFMPEG_MOVED_DIR}/${1}" ${mydir} > "${FFMPEG_DIR}/${1}"
- fi
- if $(check_sanitized_includes "${FFMPEG_DIR}/${1}") ; then
- printf "Error, found non sanitized file in ffmpeg:\n"
- printf "${FFMPEG_DIR}/${1}\n"
- printf "Please report it at bugs.gentoo.org\n"
- exit 1
- fi
- if [ "${1%.h}" != "${1}" ] ; then
- mydeps=$(get_header_deps "${FFMPEG_DIR}/${1}")
- check_header_deps ${mydeps}
- fi
-}
-
-# HEADERS (order matters for the consistency checks: leaves come first)
-FILES=" libavutil/x86_cpu.h \
- libavformat/internal.h "
-# Files that are sed'ed but not compiled, used to check for availability of
-# some codecs
-FILES="${FILES} libavcodec/allcodecs.c libavformat/allformats.c libavfilter/allfilters.c"
-
-for i in ${FILES} ; do
- move_file $i
-done
-
-rm -rf "${FFMPEG_MOVED_DIR}"
-
-exit 0
diff --git a/media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch b/media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch
deleted file mode 100644
index a93136c..0000000
--- a/media-video/mplayer/files/mplayer-1.0_rc4-pkg-config.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-respect $PKG_CONFIG, and use pkg-config for libdvdnav/libdvdread by
-default rather than the ugly xxx-config scripts
-
-https://bugs.gentoo.org/410189
-
-hassle vapier@gentoo.org if this causes issues
-
---- configure
-+++ configure
-@@ -4042,7 +4042,7 @@ echores "$_apple_ir"
- fi #if linux
-
- echocheck "pkg-config"
--_pkg_config=pkg-config
-+_pkg_config=${PKG_CONFIG:-pkg-config}
- if $($_pkg_config --version > /dev/null 2>&1); then
- if test "$ld_static"; then
- _pkg_config="$_pkg_config --static"
-@@ -5740,8 +5740,13 @@ if test "$_dvdread_internal" = auto ; th
- elif test "$_dvdread" = auto ; then
- _dvdread=no
- if test "$_dl" = yes; then
-- _dvdreadcflags=$($_dvdreadconfig --cflags 2> /dev/null)
-- _dvdreadlibs=$($_dvdreadconfig --libs 2> /dev/null)
-+ if ! $_pkg_config --exists dvdread ; then
-+ _dvdreadcflags=$($_pkgconfig dvdread --cflags)
-+ _dvdreadlibs=$($_pkgconfig dvdread --libs)
-+ else
-+ _dvdreadcflags=$($_dvdreadconfig --cflags 2> /dev/null)
-+ _dvdreadlibs=$($_dvdreadconfig --libs 2> /dev/null)
-+ fi
- if header_check dvdread/dvd_reader.h $_dvdreadcflags $_dvdreadlibs $ld_dl ; then
- _dvdread=yes
- extra_cflags="$extra_cflags $_dvdreadcflags"
-@@ -7721,13 +7726,20 @@ if test "$_dvdnav" = auto ; then
- dvdnav_internal=yes
- res_comment="internal"
- else
-- $_dvdnavconfig --version --minilibs >> $TMPLOG 2>&1 || _dvdnav=no
-+ if ! $_pkg_config --exists dvdnavmini ; then
-+ $_dvdnavconfig --version --minilibs >> $TMPLOG 2>&1 || _dvdnav=no
-+ fi
- fi
- fi
- if test "$_dvdnav" = auto ; then
- _dvdnav=no
-- _dvdnavdir=$($_dvdnavconfig --cflags)
-- _dvdnavlibs=$($_dvdnavconfig --libs)
-+ if $_pkg_config --exists dvdnavmini ; then
-+ _dvdnavdir=$($_pkg_config --cflags dvdnavmini)
-+ _dvdnavlibs=$($_pkg_config --libs dvdnavmini)
-+ else
-+ _dvdnavdir=$($_dvdnavconfig --cflags)
-+ _dvdnavlibs=$($_dvdnavconfig --libs)
-+ fi
- statement_check_broken stdint.h dvdnav/dvdnav.h 'dvdnav_t *dvd = 0' $_dvdnavdir $_dvdnavlibs $ld_dl $ld_pthread && _dvdnav=yes
- fi
- if test "$_dvdnav" = yes ; then
-@@ -7736,8 +7748,13 @@ if test "$_dvdnav" = yes ; then
- cflags_libdvdnav="-Ilibdvdnav"
- inputmodules="dvdnav(internal) $inputmodules"
- else
-- extra_cflags="$extra_cflags $($_dvdnavconfig --cflags)"
-- extra_ldflags="$extra_ldflags $($_dvdnavconfig --minilibs)"
-+ if $_pkg_config --exists dvdnavmini ; then
-+ extra_cflags="$extra_cflags $($_pkg_config --cflags dvdnavmini)"
-+ extra_ldflags="$extra_ldflags $($_pkg_config --libs dvdnavmini)"
-+ else
-+ extra_cflags="$extra_cflags $($_dvdnavconfig --cflags)"
-+ extra_ldflags="$extra_ldflags $($_dvdnavconfig --minilibs)"
-+ fi
- inputmodules="dvdnav $inputmodules"
- fi
- else
diff --git a/media-video/mplayer/mplayer-9999.ebuild b/media-video/mplayer/mplayer-9999.ebuild
deleted file mode 100644
index 774bbb8..0000000
--- a/media-video/mplayer/mplayer-9999.ebuild
+++ /dev/null
@@ -1,654 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_rc4_p20120405.ebuild,v 1.5 2012/05/05 08:58:52 jdhore Exp $
-
-EAPI=4
-
-EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git"
-ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk"
-[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-2" || SVN_ECLASS=""
-
-inherit toolchain-funcs eutils flag-o-matic multilib base ${SVN_ECLASS}
-
-IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua +ass bidi bindist bl bluray
-bs2b cddb +cdio cdparanoia cpudetection debug dga
-directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +encode faac +faad fbcon
-ftp gif ggi gsm +iconv ipv6 jack joystick jpeg jpeg2k kernel_linux ladspa
-libcaca libmpeg2 lirc +live lzo mad md5sum +mmx mmxext mng +mp3 nas
-+network nut openal +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime
-radio +rar +real +rtc rtmp samba +shm sdl +speex sse sse2 ssse3
-tga +theora +tremor +truetype +toolame +twolame +unicode v4l vdpau vidix
-+vorbis win32codecs +X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc
-zoran"
-
-VIDEO_CARDS="s3virge mga tdfx"
-for x in ${VIDEO_CARDS}; do
- IUSE+=" video_cards_${x}"
-done
-
-FONT_URI="
- mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
- mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
- mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
-"
-if [[ ${PV} == *9999* ]]; then
- RELEASE_URI=""
-else
- RELEASE_URI="mirror://gentoo/${P}.tar.xz"
-fi
-SRC_URI="${RELEASE_URI}
- !truetype? ( ${FONT_URI} )"
-
-DESCRIPTION="Media Player for Linux"
-HOMEPAGE="http://www.mplayerhq.hu/"
-
-FONT_RDEPS="
- virtual/ttf-fonts
- media-libs/fontconfig
- >=media-libs/freetype-2.2.1:2
-"
-X_RDEPS="
- x11-libs/libXext
- x11-libs/libXxf86vm
-"
-# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
-# nemesi? ( net-libs/libnemesi )
-RDEPEND+="
- sys-libs/ncurses
- app-arch/bzip2
- sys-libs/zlib
- virtual/ffmpeg
- !bindist? (
- x86? (
- win32codecs? ( media-libs/win32codecs )
- )
- )
- a52? ( media-libs/a52dec )
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- ass? ( >=media-libs/libass-0.9.10[enca?] )
- bidi? ( dev-libs/fribidi )
- bluray? ( >=media-libs/libbluray-0.2.1 )
- bs2b? ( media-libs/libbs2b )
- cdio? ( dev-libs/libcdio )
- cdparanoia? ( !cdio? ( media-sound/cdparanoia ) )
- dga? ( x11-libs/libXxf86dga )
- directfb? ( dev-libs/DirectFB )
- dts? ( media-libs/libdca )
- dv? ( media-libs/libdv )
- dvb? ( virtual/linuxtv-dvb-headers )
- dvd? ( >=media-libs/libdvdread-4.1.3 )
- dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
- encode? (
- !twolame? ( toolame? ( media-sound/toolame ) )
- twolame? ( media-sound/twolame )
- faac? ( media-libs/faac )
- mp3? ( media-sound/lame )
- x264? ( >=media-libs/x264-0.0.20100423 )
- xvid? ( media-libs/xvid )
- )
- enca? ( app-i18n/enca )
- faad? ( media-libs/faad2 )
- ggi? ( media-libs/libggi media-libs/libggiwmh )
- gif? ( media-libs/giflib )
- gsm? ( media-sound/gsm )
- iconv? ( virtual/libiconv )
- jack? ( media-sound/jack-audio-connection-kit )
- jpeg? ( virtual/jpeg )
- jpeg2k? ( media-libs/openjpeg )
- ladspa? ( media-libs/ladspa-sdk )
- libcaca? ( media-libs/libcaca )
- libmpeg2? ( media-libs/libmpeg2 )
- lirc? ( app-misc/lirc )
- live? ( media-plugins/live )
- lzo? ( >=dev-libs/lzo-2 )
- mad? ( media-libs/libmad )
- mng? ( media-libs/libmng )
- mp3? ( media-sound/mpg123 )
- nas? ( media-libs/nas )
- nut? ( >=media-libs/libnut-661 )
- openal? ( media-libs/openal )
- opengl? ( virtual/opengl )
- png? ( media-libs/libpng )
- pnm? ( media-libs/netpbm )
- pulseaudio? ( media-sound/pulseaudio )
- rar? (
- || (
- app-arch/unrar
- app-arch/rar
- )
- )
- rtmp? ( media-video/rtmpdump )
- samba? ( net-fs/samba )
- sdl? ( media-libs/libsdl )
- speex? ( media-libs/speex )
- theora? ( media-libs/libtheora[encode?] )
- truetype? ( ${FONT_RDEPS} )
- vdpau? ( x11-libs/libvdpau )
- vorbis? ( media-libs/libvorbis )
- X? ( ${X_RDEPS} )
- xanim? ( media-video/xanim )
- xinerama? ( x11-libs/libXinerama )
- xscreensaver? ( x11-libs/libXScrnSaver )
- xv? ( x11-libs/libXv )
- xvmc? ( x11-libs/libXvMC )
-"
-
-X_DEPS="
- x11-proto/videoproto
- x11-proto/xf86vidmodeproto
-"
-ASM_DEP="dev-lang/yasm"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- dga? ( x11-proto/xf86dgaproto )
- dxr3? ( media-video/em8300-libraries )
- X? ( ${X_DEPS} )
- xinerama? ( x11-proto/xineramaproto )
- xscreensaver? ( x11-proto/scrnsaverproto )
- amd64? ( ${ASM_DEP} )
- doc? (
- dev-libs/libxslt app-text/docbook-xml-dtd
- app-text/docbook-xsl-stylesheets
- )
- x86? ( ${ASM_DEP} )
- x86-fbsd? ( ${ASM_DEP} )
-"
-
-SLOT="0"
-LICENSE="GPL-2"
-if [[ ${PV} != *9999* ]]; then
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
-else
- KEYWORDS=""
-fi
-
-# faac codecs are nonfree, win32codecs are nonfree
-# libcdio support: prefer libcdio over cdparanoia and don't check for cddb w/cdio
-# dvd navigation requires dvd read support
-# ass and freetype font require iconv and ass requires freetype fonts
-# unicode transformations are usefull only with iconv
-# libvorbis require external tremor to work
-# radio requires oss or alsa backend
-# xvmc requires xvideo support
-REQUIRED_USE="bindist? ( !faac !win32codecs )
- dvdnav? ( dvd )
- ass? ( truetype )
- truetype? ( iconv )
- dxr3? ( X )
- ggi? ( X )
- xinerama? ( X )
- dga? ( X )
- opengl? ( X )
- osdmenu? ( X )
- vdpau? ( X )
- vidix? ( X )
- xscreensaver? ( X )
- xv? ( X )
- xvmc? ( xv )"
-
-PATCHES=(
-# "${FILESDIR}/ffmpeg.patch"
-# "${FILESDIR}/ffmpeg2.patch"
- "${FILESDIR}/${PN}-1.0_rc4-pkg-config.patch"
-)
-
-pkg_setup() {
- if [[ ${PV} == *9999* ]]; then
- elog
- elog "This is a live ebuild which installs the latest from upstream's"
- elog "subversion repository, and is unsupported by Gentoo."
- elog "Everything but bugs in the ebuild itself will be ignored."
- elog
- fi
-
- if use cpudetection; then
- ewarn
- ewarn "You've enabled the cpudetection flag. This feature is"
- ewarn "included mainly for people who want to use the same"
- ewarn "binary on another system with a different CPU architecture."
- ewarn "MPlayer will already detect your CPU settings by default at"
- ewarn "buildtime; this flag is used for runtime detection."
- ewarn "You won't need this turned on if you are only building"
- ewarn "mplayer for this system. Also, if your compile fails, try"
- ewarn "disabling this use flag."
- fi
-}
-
-src_unpack() {
- if [[ ${PV} = *9999* ]]; then
- subversion_src_unpack
- cd "${WORKDIR}"
- rm -rf "${WORKDIR}/${P}/ffmpeg/"
- ( S="${WORKDIR}/${P}/ffmpeg/" git-2_src_unpack )
- cd "${S}"
- cp "${FILESDIR}/dump_ffmpeg.sh" . || die
- chmod +x dump_ffmpeg.sh
- ./dump_ffmpeg.sh || die
- else
- unpack ${A}
- fi
-
- if ! use truetype; then
- unpack font-arial-iso-8859-1.tar.bz2 \
- font-arial-iso-8859-2.tar.bz2 \
- font-arial-cp1250.tar.bz2
- fi
-}
-
-src_prepare() {
- local svf=snapshot_version
- if [[ ${PV} = *9999* ]]; then
- # Set SVN version manually
- subversion_wc_info
- printf "${ESVN_WC_REVISION}" > $svf
- fi
- [ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?"
- local sv=$(<$svf)
- printf "SVN-r${sv} (Gentoo)" > VERSION
-
- # fix path to bash executable in configure scripts
- sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die
-
- base_src_prepare
-}
-
-src_configure() {
- local myconf=""
- local uses i
-
- # set LINGUAS
- [[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
-
- # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
- # compilation in almost every situation. The reason for this is
- # because if --enable is used, it will force the build of that option,
- # regardless of whether the dependency is available or not.
-
- ###################
- #Optional features#
- ###################
- # disable svga since we don't want it
- # disable arts since we don't have kde3
- # always disable internal ass
- myconf+="
- --disable-svga --disable-svgalib_helper
- --disable-ass-internal
- --disable-arts
- --disable-kai
- $(use_enable network networking)
- $(use_enable joystick)
- "
- uses="ass bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
- myconf+=" --disable-nemesi" # nemesi automagic disable
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use bidi || myconf+=" --disable-fribidi"
- use ipv6 || myconf+=" --disable-inet6"
- use nut || myconf+=" --disable-libnut"
- use rar || myconf+=" --disable-unrarexec"
- use samba || myconf+=" --disable-smb"
- use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
-
- # libcdio support: prefer libcdio over cdparanoia
- # don't check for cddb w/cdio
- if use cdio; then
- myconf+=" --disable-cdparanoia"
- else
- myconf+=" --disable-libcdio"
- use cdparanoia || myconf+=" --disable-cdparanoia"
- use cddb || myconf+=" --disable-cddb"
- fi
-
- ################################
- # DVD read, navigation support #
- ################################
- #
- # dvdread - accessing a DVD
- # dvdnav - navigation of menus
- #
- # use external libdvdcss, dvdread and dvdnav
- myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
- use dvd || myconf+=" --disable-dvdread"
- use dvdnav || myconf+=" --disable-dvdnav"
-
- #############
- # Subtitles #
- #############
- #
- # SRT/ASS/SSA (subtitles) requires freetype support
- # freetype support requires iconv
- # iconv optionally can use unicode
- use truetype || myconf+=" --disable-freetype"
- use iconv || myconf+=" --disable-iconv --charset=noconv"
- use iconv && use unicode && myconf+=" --charset=UTF-8"
-
- #####################################
- # DVB / Video4Linux / Radio support #
- #####################################
- myconf+=" --disable-tv-bsdbt848"
- # broken upstream, won't work with recent kernels
- myconf+=" --disable-ivtv"
- # gone since linux-headers-2.6.38
- myconf+=" --disable-tv-v4l1"
- if { use dvb || use v4l || use pvr || use radio; }; then
- use dvb || myconf+=" --disable-dvb"
- use pvr || myconf+=" --disable-pvr"
- use v4l || myconf+=" --disable-tv-v4l2"
- if use radio && { use dvb || use v4l; }; then
- myconf+="
- --enable-radio
- $(use_enable encode radio-capture)
- "
- else
- myconf+="
- --disable-radio-v4l2
- --disable-radio-bsdbt848
- "
- fi
- else
- myconf+="
- --disable-tv
- --disable-tv-v4l2
- --disable-radio
- --disable-radio-v4l2
- --disable-radio-bsdbt848
- --disable-dvb
- --disable-v4l2
- --disable-pvr"
- fi
-
- ##########
- # Codecs #
- ##########
- myconf+=" --disable-musepack" # Use internal musepack codecs for SV7 and SV8 support
- myconf+=" --disable-libmpeg2-internal" # always use system media-libs/libmpeg2
- use dts || myconf+=" --disable-libdca"
- # Disable internal mp3lib, bug #384849
- # Samuli Suominen: Looks like MPlayer in Portage is using internal mp3lib by
- # default, where as mpg123 upstream has incorporated all the optimizations
- # from mplayer's mp3lib in libmpg123 and more.
- # It makes very little sense to use the internal copy as default anymore.
- myconf+=" --disable-mp3lib"
- if ! use mp3; then
- myconf+="
- --disable-mp3lame
- --disable-mpg123
- "
- fi
- uses="a52 bs2b dv gsm lzo rtmp"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-lib${i}"
- done
-
- uses="faad gif jpeg libmpeg2 live mad mng png pnm speex tga theora xanim"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use jpeg2k || myconf+=" --disable-libopenjpeg"
- if use vorbis || use tremor; then
- use tremor || myconf+=" --disable-tremor-internal"
- use vorbis || myconf+=" --disable-libvorbis"
- else
- myconf+="
- --disable-tremor-internal
- --disable-tremor
- --disable-libvorbis
- "
- fi
- # Encoding
- uses="faac x264 xvid toolame twolame"
- if use encode; then
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- else
- myconf+=" --disable-mencoder"
- for i in ${uses}; do
- myconf+=" --disable-${i}"
- use ${i} && elog "Useflag \"${i}\" will only be useful for encoding, i.e., with \"encode\" useflag enabled."
- done
- fi
-
- #################
- # Binary codecs #
- #################
- # bug 213836
- if ! use x86 || ! use win32codecs; then
- use quicktime || myconf+=" --disable-qtx"
- fi
-
- ######################
- # RealPlayer support #
- ######################
- # Realplayer support shows up in four places:
- # - libavcodec (internal)
- # - win32codecs
- # - realcodecs (win32codecs libs)
- # - realcodecs (realplayer libs)
-
- # internal
- use real || myconf+=" --disable-real"
-
- # Real binary codec support only available on x86, amd64
- if use real; then
- use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
- use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
- fi
- myconf+=" $(use_enable win32codecs win32dll)"
-
- ################
- # Video Output #
- ################
- uses="directfb md5sum sdl"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use aalib || myconf+=" --disable-aa"
- use fbcon || myconf+=" --disable-fbdev"
- use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
- use libcaca || myconf+=" --disable-caca"
- use zoran || myconf+=" --disable-zr"
-
- if ! use kernel_linux || ! use video_cards_mga; then
- myconf+=" --disable-mga --disable-xmga"
- fi
-
- if use video_cards_tdfx; then
- myconf+="
- $(use_enable video_cards_tdfx tdfxvid)
- $(use_enable fbcon tdfxfb)
- "
- else
- myconf+="
- --disable-3dfx
- --disable-tdfxvid
- --disable-tdfxfb
- "
- fi
-
- # sun card, disable by default, see bug #258729
- myconf+=" --disable-xvr100"
-
- ################
- # Audio Output #
- ################
- myconf+=" --disable-esd"
- uses="alsa jack ladspa nas openal"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use pulseaudio || myconf+=" --disable-pulse"
- if ! use radio; then
- use oss || myconf+=" --disable-ossaudio"
- fi
-
- ####################
- # Advanced Options #
- ####################
- # Platform specific flags, hardcoded on amd64 (see below)
- use cpudetection && myconf+=" --enable-runtime-cpudetection"
-
- uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
- for i in ${uses}; do
- myconf+=" $(use_enable ${i})"
- done
-
- use debug && myconf+=" --enable-debug=3"
-
- if use x86 && gcc-specs-pie; then
- filter-flags -fPIC -fPIE
- append-ldflags -nopie
- fi
-
- ###########################
- # X enabled configuration #
- ###########################
- myconf+=" --disable-gui"
- myconf+=" --disable-vesa"
- uses="dxr3 ggi vdpau xinerama xv"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use dga || myconf+=" --disable-dga1 --disable-dga2"
- use opengl || myconf+=" --disable-gl"
- use osdmenu && myconf+=" --enable-menu"
- use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb"
- use xscreensaver || myconf+=" --disable-xss"
- use X || myconf+=" --disable-x11"
- if use xvmc; then
- myconf+=" --enable-xvmc --with-xvmclib=XvMCW"
- else
- myconf+=" --disable-xvmc"
- fi
-
- ############################
- # OSX (aqua) configuration #
- ############################
- if use aqua; then
- myconf+="
- --enable-macosx-finder
- --enable-macosx-bundle
- "
- fi
-
- tc-export PKG_CONFIG
- ./configure \
- --cc="$(tc-getCC)" \
- --host-cc="$(tc-getBUILD_CC)" \
- --prefix="${EPREFIX}/usr" \
- --bindir="${EPREFIX}/usr/bin" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --confdir="${EPREFIX}/etc/mplayer" \
- --datadir="${EPREFIX}/usr/share/mplayer${namesuf}" \
- --mandir="${EPREFIX}/usr/share/man" \
- --disable-ffmpeg_a \
- ${myconf} || die
-}
-
-src_compile() {
- base_src_compile
- # Build only user-requested docs if they're available.
- if use doc ; then
- # select available languages from $LINGUAS
- LINGUAS=${LINGUAS/zh/zh_CN}
- local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
- local BUILT_DOCS=""
- for i in ${LINGUAS} ; do
- has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
- done
- if [[ -z $BUILT_DOCS ]]; then
- emake -j1 html-chunked
- else
- for i in ${BUILT_DOCS}; do
- emake -j1 html-chunked-${i}
- done
- fi
- fi
-}
-
-src_install() {
- local i
-
- emake \
- DESTDIR="${D}" \
- INSTALLSTRIP="" \
- install
-
- dodoc AUTHORS Changelog Copyright README etc/codecs.conf
-
- docinto tech/
- dodoc DOCS/tech/{*.txt,MAINTAINERS,mpsub.sub,playtree,TODO,wishlist}
- docinto TOOLS/
- dodoc -r TOOLS
- if use real; then
- docinto tech/realcodecs/
- dodoc DOCS/tech/realcodecs/*
- fi
- docinto tech/mirrors/
- dodoc DOCS/tech/mirrors/*
-
- if use doc; then
- docinto html/
- dohtml -r "${S}"/DOCS/HTML/*
- fi
-
- if ! use truetype; then
- dodir /usr/share/mplayer/fonts
- # Do this generic, as the mplayer people like to change the structure
- # of their zips ...
- for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
- cp -pPR "${i}" "${ED}/usr/share/mplayer/fonts"
- done
- # Fix the font symlink ...
- rm -rf "${ED}/usr/share/mplayer/font"
- dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
- fi
-
- insinto /etc/mplayer
- newins "${S}/etc/example.conf" mplayer.conf
- cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
-# Config options can be section specific, global
-# options should go in the default section
-[default]
-_EOF_
- doins "${S}/etc/input.conf"
- if use osdmenu; then
- doins "${S}/etc/menu.conf"
- fi
-
- if use truetype; then
- cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
-fontconfig=1
-subfont-osd-scale=4
-subfont-text-scale=3
-_EOF_
- fi
-
- # bug 256203
- if use rar; then
- cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
-unrarexec=${EPREFIX}/usr/bin/unrar
-_EOF_
- fi
-
- dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
- newbin "${S}/TOOLS/midentify.sh" midentify
-}
-
-pkg_preinst() {
- [[ -d ${EROOT}/usr/share/mplayer/Skin/default ]] && \
- rm -rf "${EROOT}/usr/share/mplayer/Skin/default"
-}
-
-pkg_postrm() {
- # Cleanup stale symlinks
- [ -L "${EROOT}/usr/share/mplayer/font" -a \
- ! -e "${EROOT}/usr/share/mplayer/font" ] && \
- rm -f "${EROOT}/usr/share/mplayer/font"
-
- [ -L "${EROOT}/usr/share/mplayer/subfont.ttf" -a \
- ! -e "${EROOT}/usr/share/mplayer/subfont.ttf" ] && \
- rm -f "${EROOT}/usr/share/mplayer/subfont.ttf"
-}
diff --git a/media-video/mplayer2/mplayer2-9999.ebuild b/media-video/mplayer2/mplayer2-9999.ebuild
deleted file mode 100644
index 27f649f..0000000
--- a/media-video/mplayer2/mplayer2-9999.ebuild
+++ /dev/null
@@ -1,602 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20120309.ebuild,v 1.9 2012/05/22 16:44:06 flameeyes Exp $
-
-EAPI=4
-
-[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
-
-inherit toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
-
-NAMESUF="${PN/mplayer/}"
-DESCRIPTION="Media Player for Linux"
-HOMEPAGE="http://www.mplayer2.org/"
-
-if [[ ${PV} == *9999* ]]; then
- EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
-else
- RELEASE_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
-fi
-SRC_URI="${RELEASE_URI}
- !truetype? (
- mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
- mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
- mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
- )
-"
-
-LICENSE="GPL-3"
-SLOT="0"
-if [[ ${PV} == *9999* ]]; then
- KEYWORDS=""
-else
- KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux"
-fi
-IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua +ass bidi bindist bl
-bluray bs2b cddb +cdio cdparanoia cpudetection custom-cpuopts
-debug directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +faad fbcon ftp
-gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa libcaca lirc
-mad md5sum +mmx mmxext mng +mp3 nas +network nut +opengl oss png pnm pulseaudio
-pvr +quicktime radio +rar +real +rtc samba +shm sdl +speex sse sse2 ssse3 tga
-+theora +truetype +unicode v4l vdpau +vorbis win32codecs +X xanim xinerama
-+xscreensaver +xv xvid"
-IUSE+=" symlink"
-
-VIDEO_CARDS="s3virge mga tdfx vesa"
-for x in ${VIDEO_CARDS}; do
- IUSE+=" video_cards_${x}"
-done
-
-# bindist does not cope with win32codecs, which are nonfree
-REQUIRED_USE="bindist? ( !win32codecs )
- cdio? ( !cdparanoia )
- cddb? ( || ( cdio cdparanoia ) network )
- dvdnav? ( dvd )
- radio? ( || ( dvb v4l ) )
- dxr3? ( X )
- ggi? ( X )
- opengl? ( X )
- vdpau? ( X )
- xinerama? ( X )
- xscreensaver? ( X )
- xv? ( X )
-"
-
-FONT_RDEPS="
- virtual/ttf-fonts
- media-libs/fontconfig
- >=media-libs/freetype-2.2.1:2
-"
-# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
-# nemesi? ( net-libs/libnemesi )
-RDEPEND+="
- sys-libs/ncurses
- sys-libs/zlib
- !bindist? (
- x86? (
- win32codecs? ( media-libs/win32codecs )
- )
- )
- X? (
- x11-libs/libXext
- x11-libs/libXxf86vm
- ggi? (
- media-libs/libggi
- media-libs/libggiwmh
- )
- opengl? ( virtual/opengl )
- vdpau? ( x11-libs/libvdpau )
- xinerama? ( x11-libs/libXinerama )
- xscreensaver? ( x11-libs/libXScrnSaver )
- xv? (
- x11-libs/libXv
- )
- )
- a52? ( media-libs/a52dec )
- aalib? ( media-libs/aalib )
- alsa? ( media-libs/alsa-lib )
- ass? ( ${FONT_RDEPS} >=media-libs/libass-0.9.10[enca?,fontconfig] )
- bidi? ( dev-libs/fribidi )
- bluray? ( media-libs/libbluray )
- bs2b? ( media-libs/libbs2b )
- cdio? ( dev-libs/libcdio )
- cdparanoia? ( !cdio? ( media-sound/cdparanoia ) )
- directfb? ( dev-libs/DirectFB )
- dts? ( media-libs/libdca )
- dv? ( media-libs/libdv )
- dvb? ( virtual/linuxtv-dvb-headers )
- dvd? (
- >=media-libs/libdvdread-4.1.3
- dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
- )
- enca? ( app-i18n/enca )
- faad? ( media-libs/faad2 )
- gif? ( media-libs/giflib )
- iconv? ( virtual/libiconv )
- jack? ( media-sound/jack-audio-connection-kit )
- jpeg? ( virtual/jpeg )
- ladspa? ( media-libs/ladspa-sdk )
- libcaca? ( media-libs/libcaca )
- lirc? ( app-misc/lirc )
- mad? ( media-libs/libmad )
- mng? ( media-libs/libmng )
- mp3? ( media-sound/mpg123 )
- nas? ( media-libs/nas )
- nut? ( >=media-libs/libnut-661 )
- png? ( media-libs/libpng )
- pnm? ( media-libs/netpbm )
- pulseaudio? ( media-sound/pulseaudio )
- rar? (
- || (
- app-arch/unrar
- app-arch/rar
- )
- )
- samba? ( net-fs/samba )
- sdl? ( media-libs/libsdl )
- speex? ( media-libs/speex )
- theora? ( media-libs/libtheora )
- truetype? ( ${FONT_RDEPS} )
- vorbis? ( media-libs/libvorbis )
- xanim? ( media-video/xanim )
- xvid? ( media-libs/xvid )
- || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg )
- >=virtual/ffmpeg-0.10.2
- symlink? ( !media-video/mplayer )
-"
-ASM_DEP="dev-lang/yasm"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- dev-lang/python
- sys-devel/gettext
- X? (
- x11-proto/videoproto
- x11-proto/xf86vidmodeproto
- dxr3? ( media-video/em8300-libraries )
- xinerama? ( x11-proto/xineramaproto )
- xscreensaver? ( x11-proto/scrnsaverproto )
- )
- amd64? ( ${ASM_DEP} )
- doc? (
- dev-libs/libxslt app-text/docbook-xml-dtd
- app-text/docbook-xsl-stylesheets
- )
- x86? ( ${ASM_DEP} )
- x86-fbsd? ( ${ASM_DEP} )
-"
-
-pkg_setup() {
- if [[ ${PV} == *9999* ]]; then
- elog
- elog "This is a live ebuild which installs the latest from upstream's"
- elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
- elog "Everything but bugs in the ebuild itself will be ignored."
- elog
- fi
-
- if use cpudetection; then
- ewarn
- ewarn "You've enabled the cpudetection flag. This feature is"
- ewarn "included mainly for people who want to use the same"
- ewarn "binary on another system with a different CPU architecture."
- ewarn "MPlayer will already detect your CPU settings by default at"
- ewarn "buildtime; this flag is used for runtime detection."
- ewarn "You won't need this turned on if you are only building"
- ewarn "mplayer for this system. Also, if your compile fails, try"
- ewarn "disabling this use flag."
- fi
-
- if use custom-cpuopts; then
- ewarn
- ewarn "You are using the custom-cpuopts flag which will"
- ewarn "specifically allow you to enable / disable certain"
- ewarn "CPU optimizations."
- ewarn
- ewarn "Most desktop users won't need this functionality, but it"
- ewarn "is included for corner cases like cross-compiling and"
- ewarn "certain profiles. If unsure, disable this flag and MPlayer"
- ewarn "will automatically detect and use your available CPU"
- ewarn "optimizations."
- ewarn
- ewarn "Using this flag means your build is unsupported, so"
- ewarn "please make sure your CPU optimization use flags (3dnow"
- ewarn "3dnowext mmx mmxext sse sse2 ssse3) are properly set."
- fi
-
- einfo "For various format support you need to enable the support on your ffmpeg package:"
- einfo " media-video/libav or media-video/ffmpeg"
-}
-
-src_prepare() {
- # fix path to bash executable in configure scripts
- local bash_scripts="configure version.sh"
- sed -i -e "1c\#!${EPREFIX}/bin/bash" \
- ${bash_scripts} || die
-
- if [[ -n ${NAMESUF} ]]; then
- sed -e "/elif linux ; then/a\ _exesuf=\"${NAMESUF}\"" \
- -i configure || die
- sed -e "\, -m 644 DOCS/man/en/mplayer,i\ mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
- -e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\ mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
- -e "s/er.1/er${NAMESUF}.1/g" \
- -i Makefile || die
- sed -e "s/mplayer/${PN}/" \
- -i TOOLS/midentify.sh || die
- fi
-
- base_src_prepare
-}
-
-src_configure() {
- local myconf=""
- local uses i
-
- # set LINGUAS
- [[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
-
- # mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
- # compilation in almost every situation. The reason for this is
- # because if --enable is used, it will force the build of that option,
- # regardless of whether the dependency is available or not.
-
- ###################
- #Optional features#
- ###################
- # disable svga since we don't want it
- # disable arts since we don't have kde3
- # disable tremor, it needs libvorbisidec and is for FPU-less systems only
- myconf+="
- --disable-svga
- --disable-tremor
- $(use_enable network networking)
- $(use_enable joystick)
- "
- uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
- myconf+=" --disable-nemesi" # nemesi automagic disable
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use ass || myconf+=" --disable-libass"
- use bidi || myconf+=" --disable-fribidi"
- use ipv6 || myconf+=" --disable-inet6"
- use nut || myconf+=" --disable-libnut"
- use rar || myconf+=" --disable-unrarexec"
- use samba || myconf+=" --disable-smb"
- if ! use lirc; then
- myconf+="
- --disable-lirc
- --disable-lircc
- --disable-apple-ir
- "
- fi
-
- ########
- # CDDA #
- ########
- use cddb || myconf+=" --disable-cddb"
- use cdio || myconf+=" --disable-libcdio"
-
- ################################
- # DVD read, navigation support #
- ################################
- #
- # dvdread - accessing a DVD
- # dvdnav - navigation of menus
- #
- # use external libdvdcss, dvdread and dvdnav
- myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
- if use dvd; then
- use dvdnav || myconf+=" --disable-dvdnav"
- else
- myconf+="
- --disable-dvdnav
- --disable-dvdread
- "
- fi
-
- #############
- # Subtitles #
- #############
- # SRT/ASS/SSA (subtitles) requires freetype support
- # freetype support requires iconv
- # iconv optionally can use unicode
- if ! use ass && ! use truetype; then
- myconf+=" --disable-freetype"
- if ! use iconv; then
- myconf+="
- --disable-iconv
- --charset=noconv
- "
- fi
- fi
- use iconv && use unicode && myconf+=" --charset=UTF-8"
-
- #####################################
- # DVB / Video4Linux / Radio support #
- #####################################
- myconf+=" --disable-tv-bsdbt848"
- # broken upstream, won't work with recent kernels
- myconf+=" --disable-ivtv"
- # v4l1 is gone since linux-headers-2.6.38
- myconf+=" --disable-tv-v4l1"
- if { use dvb || use v4l || use pvr || use radio; }; then
- use dvb || myconf+=" --disable-dvb"
- use pvr || myconf+=" --disable-pvr"
- use v4l || myconf+=" --disable-tv-v4l2"
- if use radio && { use dvb || use v4l; }; then
- myconf+="
- --enable-radio
- --disable-radio-capture
- "
- else
- myconf+="
- --disable-radio-v4l2
- --disable-radio-bsdbt848
- "
- fi
- else
- myconf+="
- --disable-tv
- --disable-tv-v4l2
- --disable-radio
- --disable-radio-v4l2
- --disable-radio-bsdbt848
- --disable-dvb
- --disable-v4l2
- --disable-pvr"
- fi
-
- ##########
- # Codecs #
- ##########
- myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
- use dts || myconf+=" --disable-libdca"
- use mp3 || myconf+=" --disable-mpg123"
- uses="a52 bs2b dv vorbis"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-lib${i}"
- done
- uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- myconf+=" --disable-live" # >=live-2012 are broken
-
- #################
- # Binary codecs #
- #################
- # bug 213836
- if ! use x86 || ! use win32codecs; then
- use quicktime || myconf+=" --disable-qtx"
- fi
-
- ######################
- # RealPlayer support #
- ######################
- # Realplayer support shows up in four places:
- # - libavcodec (internal)
- # - win32codecs
- # - realcodecs (win32codecs libs)
- # - realcodecs (realplayer libs)
-
- # internal
- use real || myconf+=" --disable-real"
-
- # Real binary codec support only available on x86, amd64
- if use real; then
- use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
- use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
- fi
- myconf+=" $(use_enable win32codecs win32dll)"
-
- ################
- # Video Output #
- ################
- uses="directfb md5sum sdl"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use aalib || myconf+=" --disable-aa"
- use fbcon || myconf+=" --disable-fbdev"
- use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
- use libcaca || myconf+=" --disable-caca"
-
- if ! use kernel_linux || ! use video_cards_mga; then
- myconf+=" --disable-mga --disable-xmga"
- fi
-
- if use video_cards_tdfx; then
- myconf+="
- $(use_enable video_cards_tdfx tdfxvid)
- $(use_enable fbcon tdfxfb)
- "
- else
- myconf+="
- --disable-3dfx
- --disable-tdfxvid
- --disable-tdfxfb
- "
- fi
-
- # sun card, disable by default, see bug #258729
- myconf+=" --disable-xvr100"
-
- ################
- # Audio Output #
- ################
- myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
- uses="alsa jack ladspa nas"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- #use openal && myconf+=" --enable-openal" # build fails
- use pulseaudio || myconf+=" --disable-pulse"
- if ! use radio; then
- use oss || myconf+=" --disable-ossaudio"
- fi
-
- ####################
- # Advanced Options #
- ####################
- # Platform specific flags, hardcoded on amd64 (see below)
- use cpudetection && myconf+=" --enable-runtime-cpudetection"
-
- # Turning off CPU optimizations usually will break the build.
- # However, this use flag, if enabled, will allow users to completely
- # specify which ones to use. If disabled, mplayer will automatically
- # enable all CPU optimizations that the host build supports.
- if use custom-cpuopts; then
- uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
- for i in ${uses}; do
- myconf+=" $(use_enable ${i})"
- done
- fi
-
- use debug && myconf+=" --enable-debug=3"
-
- if use x86 && gcc-specs-pie; then
- filter-flags -fPIC -fPIE
- append-ldflags -nopie
- fi
-
- is-flag -O? || append-flags -O2
-
- # workaround bug, x86 just has too few registers, see c.f.
- # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402950#44
- # and 32-bits OSX, bug 329861
- if [[ ${CHOST} == i?86-* ]] ; then
- use debug || append-flags -fomit-frame-pointer
- fi
-
- ###########################
- # X enabled configuration #
- ###########################
- myconf+=" --disable-dga1 --disable-dga2"
- if use X; then
- uses="dxr3 ggi xinerama xv"
- for i in ${uses}; do
- use ${i} || myconf+=" --disable-${i}"
- done
- use opengl || myconf+=" --disable-gl"
- use vdpau || myconf+=" --disable-vdpau"
- use video_cards_vesa || myconf+=" --disable-vesa"
- use xscreensaver || myconf+=" --disable-xss"
- else
- myconf+="
- --disable-dxr3
- --disable-ggi
- --disable-gl
- --disable-vdpau
- --disable-xinerama
- --disable-xss
- --disable-xv
- --disable-x11
- "
- fi
-
- ############################
- # OSX (aqua) configuration #
- ############################
- if use aqua; then
- myconf+="
- --enable-macosx-finder
- --enable-macosx-bundle
- "
- fi
-
- ./configure \
- --cc="$(tc-getCC)" \
- --host-cc="$(tc-getBUILD_CC)" \
- --pkg-config="$(tc-getPKG_CONFIG)" \
- --prefix="${EPREFIX}"/usr \
- --bindir="${EPREFIX}"/usr/bin \
- --libdir="${EPREFIX}"/usr/$(get_libdir) \
- --confdir="${EPREFIX}"/etc/${PN} \
- --datadir="${EPREFIX}"/usr/share/${PN} \
- --mandir="${EPREFIX}"/usr/share/man \
- --localedir="${EPREFIX}"/usr/share/locale \
- --enable-translation \
- ${myconf} || die
-}
-
-src_compile() {
- base_src_compile
- # Build only user-requested docs if they're available.
- if use doc ; then
- # select available languages from $LINGUAS
- LINGUAS=${LINGUAS/zh/zh_CN}
- local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
- local BUILT_DOCS=""
- for i in ${LINGUAS} ; do
- has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
- done
- if [[ -z $BUILT_DOCS ]]; then
- emake -j1 -C DOCS/xml html-chunked
- else
- for i in ${BUILT_DOCS}; do
- emake -j1 -C DOCS/xml html-chunked-${i}
- done
- fi
- fi
-}
-
-src_install() {
- local i
-
- emake \
- DESTDIR="${D}" \
- INSTALLSTRIP="" \
- install
-
- dodoc AUTHORS Copyright README etc/codecs.conf
-
- docinto tech/
- dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
- docinto TOOLS/
- dodoc -r TOOLS
- if use real; then
- docinto tech/realcodecs/
- dodoc DOCS/tech/realcodecs/*
- fi
-
- if use doc; then
- docinto html/
- dohtml -r "${S}"/DOCS/HTML/*
- fi
-
- if ! use ass && ! use truetype; then
- dodir /usr/share/${PN}/fonts
- # Do this generic, as the mplayer people like to change the structure
- # of their zips ...
- for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
- cp -pPR "${i}" "${ED}/usr/share/${PN}/fonts"
- done
- # Fix the font symlink ...
- rm -rf "${ED}/usr/share/${PN}/font"
- dosym fonts/font-arial-14-iso-8859-1 /usr/share/${PN}/font
- fi
-
- insinto /etc/${PN}
- newins "${S}/etc/example.conf" mplayer.conf
- cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
-# Config options can be section specific, global
-# options should go in the default section
-[default]
-_EOF_
- doins "${S}/etc/input.conf"
-
- # set unrar path when required
- if use rar; then
- cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
-unrarexec=${EPREFIX}/usr/bin/unrar
-_EOF_
- fi
- dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
-
- newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
-
- if [[ -n ${NAMESUF} ]] && use symlink; then
- dosym "${PN}" /usr/bin/mplayer
- dosym "midentify${NAMESUF}" /usr/bin/midentify
- fi
-}