summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-03-20 21:25:22 +0100
committerFabian Groffen <grobian@gentoo.org>2017-03-20 21:25:41 +0100
commit4a0707ad6dd56e3c58be18395adcb34707fcb2b5 (patch)
tree3c26d1b60eb2db9a2694c5140838ead8e3e8b9c2
parentdev-libs/libintl: hide newlocale behind feature macros (diff)
downloadprefix-4a0707ad6dd56e3c58be18395adcb34707fcb2b5.tar.gz
prefix-4a0707ad6dd56e3c58be18395adcb34707fcb2b5.tar.bz2
prefix-4a0707ad6dd56e3c58be18395adcb34707fcb2b5.zip
media-video/ffmpeg: migrated to gx86
-rw-r--r--media-video/ffmpeg/Manifest1
-rw-r--r--media-video/ffmpeg/ffmpeg-3.2.4.ebuild460
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.11-tests.patch25
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20070616-apple.patch12
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris.patch13
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris64.patch18
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-sparc-gcc43.patch12
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-apple.patch11
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-freebsd7.patch21
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris.patch22
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris64.patch20
-rw-r--r--media-video/ffmpeg/files/ffmpeg-0.5_p20601-r1-libtheora.patch39
-rw-r--r--media-video/ffmpeg/files/freiordl.patch20
-rw-r--r--media-video/ffmpeg/files/ladspadl.patch25
-rw-r--r--media-video/ffmpeg/metadata.xml67
15 files changed, 0 insertions, 766 deletions
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
deleted file mode 100644
index 5af0740518..0000000000
--- a/media-video/ffmpeg/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST ffmpeg-3.2.4.tar.bz2 9612274 SHA256 c0fa3593a2e9e96ace3c1757900094437ad96d1d6ca19f057c378b5f394496a4 SHA512 ba5004d0f2659faa139c7dbf2f0fc6bab1d4e017d919f4ac271a5d2e8e4a3478909176e3a4d1ad33ddf2f62ab28dd9e00ce9be1399efb7cb3276dde79134cdaa WHIRLPOOL e97a19541f990f86b8adbdc3fd20115258e5644b98a5c7f4e075f8f1320881da33fb9be969d8a5e20d79eea4c63b1c9510841b5cf0d5b479408ff231d3ba69cc
diff --git a/media-video/ffmpeg/ffmpeg-3.2.4.ebuild b/media-video/ffmpeg/ffmpeg-3.2.4.ebuild
deleted file mode 100644
index 4963e1382e..0000000000
--- a/media-video/ffmpeg/ffmpeg-3.2.4.ebuild
+++ /dev/null
@@ -1,460 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-# Subslot: libavutil major.libavcodec major.libavformat major
-# Since FFmpeg ships several libraries, subslot is kind of limited here.
-# Most consumers will use those three libraries, if a "less used" library
-# changes its soname, consumers will have to be rebuilt the old way
-# (preserve-libs).
-# If, for example, a package does not link to libavformat and only libavformat
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage
-# doing so since such a case is unlikely.
-FFMPEG_SUBSLOT=55.57.57
-
-SCM=""
-if [ "${PV#9999}" != "${PV}" ] ; then
- SCM="git-r3"
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
-fi
-
-inherit eutils flag-o-matic multilib multilib-minimal 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}"
-
-SLOT="0/${FFMPEG_SUBSLOT}"
-LICENSE="
- !gpl? ( LGPL-2.1 )
- gpl? ( GPL-2 )
- amr? (
- gpl? ( GPL-3 )
- !gpl? ( LGPL-3 )
- )
- gmp? (
- gpl? ( GPL-3 )
- !gpl? ( LGPL-3 )
- )
- encode? (
- amrenc? (
- gpl? ( GPL-3 )
- !gpl? ( LGPL-3 )
- )
- )
- samba? ( GPL-3 )
-"
-if [ "${PV#9999}" = "${PV}" ] ; then
- KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
-fi
-
-# Options to use as use_enable in the foo[:bar] form.
-# This will feed configure with $(use_enable foo bar)
-# or $(use_enable foo foo) if no :bar is set.
-# foo is added to IUSE.
-FFMPEG_FLAG_MAP=(
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc
- samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau X:xlib xcb:libxcb
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib
- # libavdevice options
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
- opengl
- # indevs
- libv4l:libv4l2 pulseaudio:libpulse
- # decoders
- amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
- zvbi:libzvbi
- # libavfilter options
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype
- rubberband:librubberband zimg:libzimg
- # libswresample options
- libsoxr
- # Threads; we only support pthread for now but ffmpeg supports more
- +threads:pthreads
-)
-
-# Same as above but for encoders, i.e. they do something only with USE=encode.
-FFMPEG_ENCODER_FLAG_MAP=(
- amrenc:libvo-amrwbenc mp3:libmp3lame
- kvazaar:libkvazaar nvenc:nvenc
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid
-)
-
-IUSE="
- alsa doc +encode jack oss pic static-libs test v4l
- ${FFMPEG_FLAG_MAP[@]%:*}
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
-"
-
-# Strings for CPU features in the useflag[:configure_option] form
-# if :configure_option isn't set, it will use 'useflag' as configure option
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
-PPC_CPU_FEATURES=( altivec )
-X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
-X86_CPU_REQUIRED_USE="
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
- cpu_flags_x86_xop? ( cpu_flags_x86_avx )
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 )
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
-"
-
-IUSE="${IUSE}
- ${ARM_CPU_FEATURES[@]%:*}
- ${MIPS_CPU_FEATURES[@]%:*}
- ${PPC_CPU_FEATURES[@]%:*}
- ${X86_CPU_FEATURES[@]%:*}
-"
-
-CPU_REQUIRED_USE="
- ${X86_CPU_REQUIRED_USE}
-"
-
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
-# $(tc-arch).
-CPU_FEATURES_MAP="
- arm:ARM
- arm64:ARM
- mips:MIPS
- ppc:PPC
- ppc64:PPC
- x86:X86
- amd64:X86
-"
-
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
-
-RDEPEND="
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] )
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] )
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] )
- encode? (
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] )
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
- nvenc? ( media-video/nvidia_video_sdk )
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] )
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
- theora? (
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
- )
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
- )
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
- frei0r? ( media-plugins/frei0r-plugins )
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] )
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] )
- gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] )
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
- iec61883? (
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
- )
- ieee1394? (
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
- )
- jack? ( virtual/jack[${MULTILIB_USEDEP}] )
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] )
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] )
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] )
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
- mmal? ( media-libs/raspberrypi-userland )
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] )
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] )
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
- vorbis? (
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
- )
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
- X? (
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
- )
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] )
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
- !media-video/qt-faststart
- postproc? ( !media-libs/libpostproc )
-"
-
-DEPEND="${RDEPEND}
- >=sys-devel/make-3.81
- doc? ( sys-apps/texinfo )
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
- test? ( net-misc/wget sys-devel/bc )
- v4l? ( sys-kernel/linux-headers )
-"
-
-RDEPEND="${RDEPEND}
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
-
-# Code requiring FFmpeg to be built under gpl license
-GPL_REQUIRED_USE="
- postproc? ( gpl )
- frei0r? ( gpl )
- cdio? ( gpl )
- samba? ( gpl )
- encode? (
- x264? ( gpl )
- x265? ( gpl )
- xvid? ( gpl )
- X? ( !xcb? ( gpl ) )
- )
-"
-REQUIRED_USE="
- libv4l? ( v4l )
- fftools_cws2fws? ( zlib )
- test? ( encode )
- ${GPL_REQUIRED_USE}
- ${CPU_REQUIRED_USE}"
-RESTRICT="
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
-"
-
-S=${WORKDIR}/${P/_/-}
-
-MULTILIB_WRAPPED_HEADERS=(
- /usr/include/libavutil/avconfig.h
-)
-
-src_prepare() {
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
- export revision=git-N-${FFMPEG_REVISION}
- fi
- default
-
- # the version script on Solaris causes invalid symbol version problems
- # we don't want their hacky workarounds, we're having a GNU ld
- sed -i -e 's/sunos)/sunos) network_extralibs="-lsocket -lnsl"; add_cppflags -D__EXTENSIONS__; enable pic; disable symver ;; no-sunos)/' configure || die
-}
-
-multilib_src_configure() {
- local myconf=( ${EXTRA_FFMPEG_CONF} )
-
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
- use openssl && use gpl && myconf+=( --enable-nonfree )
- use samba && myconf+=( --enable-version3 )
-
- # Encoders
- if use encode ; then
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
-
- # Licensing.
- if use amrenc ; then
- myconf+=( --enable-version3 )
- fi
- else
- myconf+=( --disable-encoders )
- fi
-
- # Indevs
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
- for i in alsa oss jack ; do
- use ${i} || myconf+=( --disable-indev=${i} )
- done
- use xcb || ffuse+=( X:x11grab )
-
- # Outdevs
- for i in alsa oss sdl ; do
- use ${i} || myconf+=( --disable-outdev=${i} )
- done
-
- # Decoders
- use amr && myconf+=( --enable-version3 )
- use gmp && myconf+=( --enable-version3 )
- use fdk && use gpl && myconf+=( --enable-nonfree )
-
- for i in "${ffuse[@]#+}" ; do
- myconf+=( $(use_enable ${i%:*} ${i#*:}) )
- done
-
- # (temporarily) disable non-multilib deps
- if ! multilib_is_native_abi; then
- for i in frei0r ; do
- myconf+=( --disable-${i} )
- done
- fi
-
- # CPU features
- for i in ${CPU_FEATURES_MAP} ; do
- if [ "$(tc-arch)" = "${i%:*}" ] ; then
- local var="${i#*:}_CPU_FEATURES[@]"
- for j in ${!var} ; do
- use ${j%:*} || myconf+=( --disable-${j#*:} )
- done
- fi
- done
-
- if use pic ; then
- myconf+=( --enable-pic )
- # disable asm code if PIC is required
- # as the provided asm decidedly is not PIC for x86.
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
- fi
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
-
- # 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 mcpu) $(get-flag march) ; do
- [[ ${i} = native ]] && i="host" # bug #273421
- myconf+=( --cpu=${i} )
- break
- done
-
- # LTO support, bug #566282
- is-flagq "-flto*" && myconf+=( "--enable-lto" )
-
- # Mandatory configuration
- myconf=(
- --enable-avfilter
- --enable-avresample
- --disable-stripping
- "${myconf[@]}"
- )
-
- # cross compile support
- if tc-is-cross-compiler ; then
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
- case ${CHOST} in
- *freebsd*)
- myconf+=( --target-os=freebsd )
- ;;
- *mingw32*)
- myconf+=( --target-os=mingw32 )
- ;;
- *linux*)
- myconf+=( --target-os=linux )
- ;;
- esac
- fi
-
- # doc
- myconf+=(
- $(multilib_native_use_enable doc)
- $(multilib_native_use_enable doc htmlpages)
- $(multilib_native_enable manpages)
- )
-
- set -- "${S}/configure" \
- --prefix="${EPREFIX}/usr" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
- --mandir="${EPREFIX}/usr/share/man" \
- --enable-shared \
- --cc="$(tc-getCC)" \
- --cxx="$(tc-getCXX)" \
- --ar="$(tc-getAR)" \
- --optflags="${CFLAGS}" \
- $(use_enable static-libs static) \
- "${myconf[@]}"
- echo "${@}"
- "${@}" || die
-}
-
-multilib_src_compile() {
- emake V=1
-
- if multilib_is_native_abi; then
- for i in "${FFTOOLS[@]}" ; do
- if use fftools_${i} ; then
- emake V=1 tools/${i}
- fi
- done
- fi
-}
-
-multilib_src_install() {
- emake V=1 DESTDIR="${D}" install install-doc
-
- if multilib_is_native_abi; then
- for i in "${FFTOOLS[@]}" ; do
- if use fftools_${i} ; then
- dobin tools/${i}
- fi
- done
- fi
-}
-
-multilib_src_install_all() {
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
-}
-
-multilib_src_test() {
- LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
- emake V=1 fate
-}
diff --git a/media-video/ffmpeg/files/ffmpeg-0.11-tests.patch b/media-video/ffmpeg/files/ffmpeg-0.11-tests.patch
deleted file mode 100644
index 6f6ba2cbfa..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.11-tests.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From b4d36f60f68b87ee0bea6fb0b5e5437d12f5f894 Mon Sep 17 00:00:00 2001
-From: Alexis Ballier <aballier@gentoo.org>
-Date: Sat, 26 May 2012 14:06:12 -0400
-Subject: [PATCH] Fix tests without fate samples.
-
----
- tests/fate/video.mak | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/tests/fate/video.mak b/tests/fate/video.mak
-index 8c42332..0e043dc 100644
---- a/tests/fate/video.mak
-+++ b/tests/fate/video.mak
-@@ -97,7 +97,7 @@ fate-dxa-scummvm: CMD = framecrc -i $(SAMPLES)/dxa/scummvm.dxa -pix_fmt rgb24
- FATE_VIDEO += $(FATE_DXA)
- fate-dxa: $(FATE_DXA)
-
--FATE_PCM += fate-film-cvid
-+FATE_SAMPLES_PCM += fate-film-cvid
- fate-film-cvid: CMD = framecrc -i $(SAMPLES)/film/logo-capcom.cpk -an
-
- FATE_FLIC += fate-flic-af11-palette-change
---
-1.7.8.6
-
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20070616-apple.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20070616-apple.patch
deleted file mode 100644
index c1fbb84343..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20070616-apple.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur /tmp/work/ffmpeg/libswscale/rgb2rgb.c ffmpeg/libswscale/rgb2rgb.c
---- ffmpeg/libswscale/rgb2rgb.c 2007-06-16 13:03:04 +0400
-+++ ffmpeg/libswscale/rgb2rgb.c 2008-04-08 23:22:53 +0400
-@@ -171,7 +171,7 @@
- #define RENAME(a) a ## _C
- #include "rgb2rgb_template.c"
-
--#if defined(ARCH_X86) && defined(CONFIG_GPL)
-+#if defined(ARCH_X86) && defined(CONFIG_GPL) && !defined(__APPLE__)
-
- //MMX versions
- #undef RENAME
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris.patch
deleted file mode 100644
index eb4db02033..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-* grobian@gentoo.org: the use of nanosleep requires librealtime (-lrt)
- on Solaris
-
---- configure
-+++ configure
-@@ -1254,6 +1254,7 @@
- FFSERVERLDFLAGS=""
- SHFLAGS='-shared -Wl,-h,$$(@F)'
- network_extralibs="-lsocket -lnsl"
-+ osextralibs="-lrt"
- ;;
- netbsd)
- oss_demuxer_extralibs="-lossaudio"
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris64.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris64.patch
deleted file mode 100644
index 7659b92d1b..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-solaris64.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-uname -m on Solaris/Intel returns i86pc for both x86 and x64
-
---- configure
-+++ configure
-@@ -1152,11 +1152,11 @@
- check_cflags -std=c99
-
- case "$arch" in
-- i386|i486|i586|i686|i86pc|BePC)
-+ i386|i486|i586|i686|BePC)
- arch="x86_32"
- enable fast_unaligned
- ;;
-- x86_64|amd64)
-+ x86_64|amd64|i86pc)
- arch="x86_32"
- enable fast_unaligned
- check_cc <<EOF && enable fast_64bit && arch="x86_64"
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-sparc-gcc43.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-sparc-gcc43.patch
deleted file mode 100644
index 1599647b87..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20081014-sparc-gcc43.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur ffmpeg.orig/libavcodec/sparc/simple_idct_vis.c ffmpeg/libavcodec/sparc/simple_idct_vis.c
---- ffmpeg.orig/libavcodec/sparc/simple_idct_vis.c 2008-05-09 14:56:36.000000000 +0300
-+++ ffmpeg/libavcodec/sparc/simple_idct_vis.c 2008-12-13 11:52:04.000000000 +0200
-@@ -384,7 +384,7 @@
- "st %%f14, [%12+" dest "] \n\t"\
-
-
--inline void ff_simple_idct_vis(DCTELEM *data) {
-+void ff_simple_idct_vis(DCTELEM *data) {
- int out1, out2, out3, out4;
- DECLARE_ALIGNED_8(int16_t, temp[8*8]);
-
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-apple.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-apple.patch
deleted file mode 100644
index bfc7e0aa5d..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-apple.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- libswscale/rgb2rgb.c.orig 2009-02-12 14:30:37.222852621 +0100
-+++ libswscale/rgb2rgb.c 2009-02-12 14:31:38.877425291 +0100
-@@ -148,7 +148,7 @@
- #define RENAME(a) a ## _C
- #include "rgb2rgb_template.c"
-
--#if ARCH_X86 && CONFIG_GPL
-+#if ARCH_X86 && CONFIG_GPL && !defined(__APPLE__)
-
- //MMX versions
- #undef RENAME
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-freebsd7.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-freebsd7.patch
deleted file mode 100644
index 9477933947..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-freebsd7.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-That module doesn't compile on freebsd7.
---- libavdevice/Makefile.orig 2009-03-02 00:45:31 +0100
-+++ libavdevice/Makefile 2009-03-02 00:45:59 +0100
-@@ -10,7 +10,6 @@ OBJS = alldevices.o
- # input/output devices
- OBJS-$(CONFIG_ALSA_DEMUXER) += alsa-audio-common.o alsa-audio-dec.o
- OBJS-$(CONFIG_ALSA_MUXER) += alsa-audio-common.o alsa-audio-enc.o
--OBJS-$(CONFIG_BKTR_DEMUXER) += bktr.o
- OBJS-$(CONFIG_DV1394_DEMUXER) += dv1394.o
- OBJS-$(CONFIG_OSS_DEMUXER) += oss_audio.o
- OBJS-$(CONFIG_OSS_MUXER) += oss_audio.o
---- libavdevice/alldevices.c.orig 2009-03-02 00:45:39 +0100
-+++ libavdevice/alldevices.c 2009-03-02 00:45:49 +0100
-@@ -46,7 +46,6 @@ void avdevice_register_all(void)
- /* devices */
- REGISTER_MUXDEMUX (ALSA, alsa);
- REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
-- REGISTER_DEMUXER (BKTR, bktr);
- REGISTER_DEMUXER (DV1394, dv1394);
- REGISTER_MUXDEMUX (OSS, oss);
- REGISTER_DEMUXER (V4L2, v4l2);
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris.patch
deleted file mode 100644
index 34b3e95635..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-* grobian@gentoo.org: the use of nanosleep requires librealtime (-lrt)
- on Solaris, OpenSolaris however doesn't need it
- anymore
-
-SABENA: http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/83705
-
---- configure
-+++ configure
-@@ -1904,6 +1904,13 @@
- fi
- done
-
-+# Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
-+if check_func nanosleep; then
-+ :
-+elif check_func nanosleep -lrt; then
-+ add_extralibs -lrt
-+fi
-+
- check_lib math.h sin -lm
-
- # test for C99 functions in math.h
diff --git a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris64.patch b/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris64.patch
deleted file mode 100644
index f2a69bd6b1..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.4.9_p20090201-solaris64.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-* grobian@gentoo.org: uname -m on Solaris/Intel returns i86pc for both
- x86 and x64
-
---- configure
-+++ configure
-@@ -1327,12 +1327,12 @@
- check_cflags -std=c99
-
- case "$arch" in
-- i386|i486|i586|i686|i86pc|BePC)
-+ i386|i486|i586|i686|BePC)
- arch="x86"
- subarch="x86_32"
- enable fast_unaligned
- ;;
-- x86_64|amd64)
-+ x86_64|amd64|i86pc)
- arch="x86"
- subarch="x86_32"
- enable cmov
diff --git a/media-video/ffmpeg/files/ffmpeg-0.5_p20601-r1-libtheora.patch b/media-video/ffmpeg/files/ffmpeg-0.5_p20601-r1-libtheora.patch
deleted file mode 100644
index baec435eba..0000000000
--- a/media-video/ffmpeg/files/ffmpeg-0.5_p20601-r1-libtheora.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- libavcodec/libtheoraenc.c.orig 2009-11-25 20:55:18.000000000 -0700
-+++ libavcodec/libtheoraenc.c 2009-11-25 20:55:21.000000000 -0700
-@@ -86,6 +86,7 @@
-
- static int get_stats(AVCodecContext *avctx, int eos)
- {
-+#ifdef TH_ENCCTL_2PASS_OUT
- TheoraContext *h = avctx->priv_data;
- uint8_t *buf;
- int bytes;
-@@ -108,12 +109,17 @@
- av_base64_encode(avctx->stats_out, b64_size, h->stats, h->stats_offset);
- }
- return 0;
-+#else
-+ av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
-+ return -1;
-+#endif
- }
-
- // libtheora won't read the entire buffer we give it at once, so we have to
- // repeatedly submit it...
- static int submit_stats(AVCodecContext *avctx)
- {
-+#ifdef TH_ENCCTL_2PASS_IN
- TheoraContext *h = avctx->priv_data;
- int bytes;
- if (!h->stats) {
-@@ -138,6 +144,10 @@
- h->stats_offset += bytes;
- }
- return 0;
-+#else
-+ av_log(avctx, AV_LOG_ERROR, "libtheora too old to support 2pass\n");
-+ return -1;
-+#endif
- }
-
- static av_cold int encode_init(AVCodecContext* avc_context)
diff --git a/media-video/ffmpeg/files/freiordl.patch b/media-video/ffmpeg/files/freiordl.patch
deleted file mode 100644
index 1b89ef24da..0000000000
--- a/media-video/ffmpeg/files/freiordl.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-commit cfec77aaf8186f556e1201be13ce487b99b3b831
-Author: Anton Khirnov <anton@khirnov.net>
-Date: Sun Apr 1 18:56:26 2012 +0200
-
- configure: add dl to frei0r extralibs.
-
-diff --git a/configure b/configure
-index 4606b23..e207ed8 100755
---- a/configure
-+++ b/configure
-@@ -1526,7 +1526,9 @@ cropdetect_filter_deps="gpl"
- delogo_filter_deps="gpl"
- drawtext_filter_deps="libfreetype"
- frei0r_filter_deps="frei0r dlopen"
-+frei0r_filter_extralibs='$ldl'
- frei0r_src_filter_deps="frei0r dlopen"
-+frei0r_src_filter_extralibs='$ldl'
- hqdn3d_filter_deps="gpl"
- ocv_filter_deps="libopencv"
- scale_filter_deps="swscale"
diff --git a/media-video/ffmpeg/files/ladspadl.patch b/media-video/ffmpeg/files/ladspadl.patch
deleted file mode 100644
index 12fc988990..0000000000
--- a/media-video/ffmpeg/files/ladspadl.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From c27dc27c50cb016d470b45c5852c884718f4769c Mon Sep 17 00:00:00 2001
-From: Alexis Ballier <aballier@gentoo.org>
-Date: Tue, 20 May 2014 20:06:28 +0200
-Subject: [PATCH] Fix build with --enable-ladspa --disable-frei0r.
-
-https://bugs.gentoo.org/show_bug.cgi?id=510516
----
- configure | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/configure b/configure
-index b6d35ae..0848fed 100755
---- a/configure
-+++ b/configure
-@@ -2499,6 +2499,7 @@ hqdn3d_filter_deps="gpl"
- interlace_filter_deps="gpl"
- kerndeint_filter_deps="gpl"
- ladspa_filter_deps="ladspa dlopen"
-+ladspa_filter_extralibs='$ldl'
- mcdeint_filter_deps="avcodec gpl"
- movie_filter_deps="avcodec avformat"
- mp_filter_deps="gpl avcodec swscale inline_asm"
---
-1.9.3
-
diff --git a/media-video/ffmpeg/metadata.xml b/media-video/ffmpeg/metadata.xml
deleted file mode 100644
index b8773a83a6..0000000000
--- a/media-video/ffmpeg/metadata.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>media-video@gentoo.org</email>
- </maintainer>
- <use>
- <flag name="aacplus">AAC+ encoding via <pkg>media-libs/libaacplus</pkg>.</flag>
- <flag name="amr">Enables Adaptive Multi-Rate Audio support</flag>
- <flag name="amrenc">Enables Adaptive Multi-Rate Audio encoding support with <pkg>media-libs/vo-amrwbenc</pkg>.</flag>
- <flag name="armv5te">Enables optimizations for armv5te processors.</flag>
- <flag name="armv6">Enables optimizations for armv6 processors.</flag>
- <flag name="armv6t2">Enables optimizations for armv6t2 processors.</flag>
- <flag name="armvfp">Enables VFP optimizations for ARM processors.</flag>
- <flag name="bluray">Enable playback of Blu-ray filesystems</flag>
- <flag name="bs2b">Enables <pkg>media-libs/libbs2b</pkg> based Bauer stereo-to-binaural filter.</flag>
- <flag name="cdio">Enables audio CD grabbing with <pkg>dev-libs/libcdio</pkg>.</flag>
- <flag name="celt">Adds Xiph CELT audio decoding support via <pkg>media-libs/celt</pkg></flag>
- <flag name="chromaprint">Enables audio fingerprinting support with <pkg>media-libs/chromaprint</pkg>.</flag>
- <flag name="cpudetection">Enables runtime CPU detection (useful for bindist, compatibility on other CPUs)</flag>
- <flag name="ebur128">Enables EBU R128 loudness normalization filter via <pkg>media-libs/libebur128</pkg></flag>
- <flag name="faac">Use external faac library for AAC encoding</flag>
- <flag name="fdk">Use external fdk-aac library for AAC encoding</flag>
- <flag name="flite">Adds a text-to-speech filter based on <pkg>app-accessibility/flite</pkg>.</flag>
- <flag name="frei0r">Enable frei0r wrapping in libavfilter</flag>
- <flag name="fribidi">Enables fribidi support in the drawtext filter.</flag>
- <flag name="gcrypt">Enables gcrypt support: Needed for rtmp(t)e support if openssl, librtmp or gmp is not used.</flag>
- <flag name="gme">Enables support for <pkg>media-libs/game-music-emu</pkg> for playing various video game music formats.</flag>
- <flag name="gpl">Build GPL code. Should be enabled unless you require LGPL binaries.</flag>
- <flag name="hardcoded-tables">Use pre-calculated tables rather than calculating them on the fly.</flag>
- <flag name="iec61883"> Support for FireWire DV/HDV input device using <pkg>media-libs/libiec61883</pkg>.</flag>
- <flag name="kvazaar">Enables <pkg>media-libs/kvazaar</pkg> based HEVC encoder.</flag>
- <flag name="libilbc">Enables iLBC de/encoding via <pkg>media-libs/libilbc</pkg>.</flag>
- <flag name="librtmp">Enables Real Time Messaging Protocol using librtmp (<pkg>media-video/rtmpdump</pkg>) in addition to FFmpeg's native implementation.</flag>
- <flag name="libsoxr">Enables audio resampling through <pkg>media-libs/soxr</pkg>.</flag>
- <flag name="libv4l">Uses <pkg>media-libs/libv4l</pkg> for video4linux instead of direct calls. Adds support for more devices via the userspace library.</flag>
- <flag name="mipsdspr1">Enables MIPS DSP ASE R1 optimizations.</flag>
- <flag name="mipsdspr2">Enables MIPS DSP ASE R2 optimizations.</flag>
- <flag name="mipsfpu">Enables floating point MIPS optimizations.</flag>
- <flag name="mmal">Enables Multi-Media Abstraction Layer (MMAL) decoding support: Available e.g. on the Raspberry Pi.</flag>
- <flag name="network">Enables network streaming support</flag>
- <flag name="nvenc">Adds support for NVIDIA Encoder (NVENC) API for hardware accelerated encoding on NVIDIA cards.</flag>
- <flag name="openh264">Enables H.264 encoding suppoprt via <pkg>media-libs/openh264</pkg>.</flag>
- <flag name="openssl">Enables <pkg>dev-libs/openssl</pkg> support. Adds support for encrypted network protocols (TLS/HTTPS).</flag>
- <flag name="opus">Adds (decoding) support for the Opus codec via <pkg>media-libs/opus</pkg>.</flag>
- <flag name="pic">Force shared libraries to be built as PIC (this is slower)</flag>
- <flag name="postproc">Build and install libpostproc.</flag>
- <flag name="quvi">Adds support for playing media from Internet services using the quvi project.</flag>
- <flag name="rubberband">Adds time-stretching and pitch-shifting audio filter based on <pkg>media-libs/rubberband</pkg>.</flag>
- <flag name="schroedinger">Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec).</flag>
- <flag name="snappy">Enable <pkg>app-arch/snappy</pkg> support. Required for e.g. Vidvox Hap encoder.</flag>
- <flag name="sofalizer">Enables Sofalizer filter</flag>
- <flag name="ssh">Enable SSH/sftp support via <pkg>net-libs/libssh</pkg>.</flag>
- <flag name="twolame">Enables MP2 encoding via <pkg>media-sound/twolame</pkg> as an alternative to the internal encoder.</flag>
- <flag name="vpx">Enables vp8 codec support using libvpx: Decoding vp8 does not require this to be enabled but libvpx can also be used for decoding; encoding vp8 requires this useflag to be enabled though.</flag>
- <flag name="webp">Enables WebP encoding with <pkg>media-libs/libwebp</pkg>.</flag>
- <flag name="x265">Enables HEVC encoding with <pkg>media-libs/x265</pkg>.</flag>
- <flag name="zeromq">Enables <pkg>net-libs/zeromq</pkg> support with the zmq/azmq filters.</flag>
- <flag name="zimg">Enables <pkg>media-libs/zimg</pkg> based scale filter.</flag>
- <flag name="zvbi">Enables <pkg>media-libs/zvbi</pkg> based teletext decoder.</flag>
- </use>
- <slots>
- <slot name="0">For building against. This is the only slot that provides
- headers and command line tools. Binary compatibility slots come and go
- as required, so always pin dependencies to this slot when appropriate.</slot>
- </slots>
-</pkgmetadata>