From ae1063b59ef317fdc6dd640b60437f6fb143a2ac Mon Sep 17 00:00:00 2001 From: Mikle Kolyada Date: Sun, 26 Apr 2020 18:14:48 +0300 Subject: [PATCH] media-video/libav: remove last-rited pkg Closes: https://bugs.gentoo.org/show_bug.cgi?id=452482 Closes: https://bugs.gentoo.org/show_bug.cgi?id=458768 Closes: https://bugs.gentoo.org/show_bug.cgi?id=470764 Closes: https://bugs.gentoo.org/show_bug.cgi?id=499256 Closes: https://bugs.gentoo.org/show_bug.cgi?id=509974 Closes: https://bugs.gentoo.org/show_bug.cgi?id=519602 Closes: https://bugs.gentoo.org/show_bug.cgi?id=525070 Closes: https://bugs.gentoo.org/show_bug.cgi?id=555114 Closes: https://bugs.gentoo.org/show_bug.cgi?id=564040 Closes: https://bugs.gentoo.org/show_bug.cgi?id=587054 Closes: https://bugs.gentoo.org/show_bug.cgi?id=588986 Closes: https://bugs.gentoo.org/show_bug.cgi?id=701952 Closes: https://bugs.gentoo.org/show_bug.cgi?id=538790 Closes: https://bugs.gentoo.org/show_bug.cgi?id=711206 Closes: https://bugs.gentoo.org/show_bug.cgi?id=489922 Closes: https://bugs.gentoo.org/show_bug.cgi?id=409957 Closes: https://bugs.gentoo.org/show_bug.cgi?id=445854 Closes: https://bugs.gentoo.org/show_bug.cgi?id=474408 Closes: https://bugs.gentoo.org/show_bug.cgi?id=509294 Closes: https://bugs.gentoo.org/show_bug.cgi?id=522350 Closes: https://bugs.gentoo.org/show_bug.cgi?id=546080 Closes: https://bugs.gentoo.org/show_bug.cgi?id=588482 Closes: https://bugs.gentoo.org/show_bug.cgi?id=603726 Closes: https://bugs.gentoo.org/show_bug.cgi?id=694082 Closes: https://bugs.gentoo.org/show_bug.cgi?id=634102 Closes: https://bugs.gentoo.org/show_bug.cgi?id=542186 Closes: https://bugs.gentoo.org/show_bug.cgi?id=635524 Closes: https://bugs.gentoo.org/show_bug.cgi?id=651218 Closes: https://bugs.gentoo.org/show_bug.cgi?id=651220 Signed-off-by: Mikle Kolyada --- media-video/libav/Manifest | 3 - media-video/libav/files/libav-12.3-x264.patch | 85 ----- media-video/libav/libav-12.3.ebuild | 350 ------------------ media-video/libav/libav-13_pre20171219.ebuild | 336 ----------------- media-video/libav/libav-9999.ebuild | 339 ----------------- media-video/libav/metadata.xml | 35 -- 6 files changed, 1148 deletions(-) delete mode 100644 media-video/libav/Manifest delete mode 100644 media-video/libav/files/libav-12.3-x264.patch delete mode 100644 media-video/libav/libav-12.3.ebuild delete mode 100644 media-video/libav/libav-13_pre20171219.ebuild delete mode 100644 media-video/libav/libav-9999.ebuild delete mode 100644 media-video/libav/metadata.xml diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest deleted file mode 100644 index 45c885bdad98..000000000000 --- a/media-video/libav/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST fate-12-r1.tar.xz 763758260 BLAKE2B 299e1a2a773e49c7a51c1222ac34eaea24f77420570a1b0c0b18db5517736656f52ad0a7ca807f65f5e9f9597709265fcd950cf989ad995aa4289ba0e364950e SHA512 084f584c34d34b66c1f4d4742a11376ee2b90f6a07529b5aba6d50421dc8f863fded73dd57ad2c201aadfd529f0f923fa531ea9b41aaaa7b682846ef565a1018 -DIST libav-12.3.tar.xz 5267988 BLAKE2B 92147dde4f41a5aa05d93824d3ffa9a21b067f99cec5fa17bc4b8e3600f2b1913f7e74d4ea766c864cdba686dd14d5d3a8bc8af8f9e6de4c956f14cb8e20ab88 SHA512 fd4838a934792797a975ece034cbd63760c94ee6becc99b8707e8345e41777baf26e30ef6937ab30b7d2f722977e69aabc2cfca3fcdf88373d579f9cc9d69162 -DIST libav-13_pre20171219.tar.xz 5427904 BLAKE2B 074dc5d071aeb656fc14a015c2e3c168aa81d25e2fb08d99e300dc47d7ea28f61500fcfab0b16fa136261a5af27631b7536eb3aefa0e1feb4d615af57f9f5a36 SHA512 0c9b59957f1fbbff8f5b95b02c11014a4efdddf4b7e1b158cd0fda3af8b89bd90d48263ed0239915adfb7abcd7a8b22c278cd5cf1d01822bd22df65cc7f69689 diff --git a/media-video/libav/files/libav-12.3-x264.patch b/media-video/libav/files/libav-12.3-x264.patch deleted file mode 100644 index 25c089bfeac1..000000000000 --- a/media-video/libav/files/libav-12.3-x264.patch +++ /dev/null @@ -1,85 +0,0 @@ -From c6558e8840fbb2386bf8742e4d68dd6e067d262e Mon Sep 17 00:00:00 2001 -From: Luca Barbato -Date: Tue, 26 Dec 2017 12:32:42 +0100 -Subject: [PATCH] x264: Support version 153 - -It has native simultaneus 8 and 10 bit support. ---- - libavcodec/libx264.c | 30 ++++++++++++++++++++++++++++++ - 1 file changed, 30 insertions(+) - -diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c -index 0dec12edd..3dc53aaf3 100644 ---- a/libavcodec/libx264.c -+++ b/libavcodec/libx264.c -@@ -243,7 +243,11 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, - - x264_picture_init( &x4->pic ); - x4->pic.img.i_csp = x4->params.i_csp; -+#if X264_BUILD >= 153 -+ if (x4->params.i_bitdepth > 8) -+#else - if (x264_bit_depth > 8) -+#endif - x4->pic.img.i_csp |= X264_CSP_HIGH_DEPTH; - x4->pic.img.i_plane = 3; - -@@ -395,6 +399,9 @@ static av_cold int X264_init(AVCodecContext *avctx) - x4->params.p_log_private = avctx; - x4->params.i_log_level = X264_LOG_DEBUG; - x4->params.i_csp = convert_pix_fmt(avctx->pix_fmt); -+#if X264_BUILD >= 153 -+ x4->params.i_bitdepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth; -+#endif - - if (avctx->bit_rate) { - x4->params.rc.i_bitrate = avctx->bit_rate / 1000; -@@ -659,6 +666,7 @@ FF_ENABLE_DEPRECATION_WARNINGS - return 0; - } - -+#if X264_BUILD < 153 - static const enum AVPixelFormat pix_fmts_8bit[] = { - AV_PIX_FMT_YUV420P, - AV_PIX_FMT_YUVJ420P, -@@ -685,15 +693,37 @@ static const enum AVPixelFormat pix_fmts_10bit[] = { - AV_PIX_FMT_NV20, - AV_PIX_FMT_NONE - }; -+#else -+static const enum AVPixelFormat pix_fmts_all[] = { -+ AV_PIX_FMT_YUV420P, -+ AV_PIX_FMT_YUVJ420P, -+ AV_PIX_FMT_YUV422P, -+ AV_PIX_FMT_YUVJ422P, -+ AV_PIX_FMT_YUV444P, -+ AV_PIX_FMT_YUVJ444P, -+ AV_PIX_FMT_NV12, -+ AV_PIX_FMT_NV16, -+ AV_PIX_FMT_NV21, -+ AV_PIX_FMT_YUV420P10, -+ AV_PIX_FMT_YUV422P10, -+ AV_PIX_FMT_YUV444P10, -+ AV_PIX_FMT_NV20, -+ AV_PIX_FMT_NONE -+}; -+#endif - - static av_cold void X264_init_static(AVCodec *codec) - { -+#if X264_BUILD < 153 - if (x264_bit_depth == 8) - codec->pix_fmts = pix_fmts_8bit; - else if (x264_bit_depth == 9) - codec->pix_fmts = pix_fmts_9bit; - else if (x264_bit_depth == 10) - codec->pix_fmts = pix_fmts_10bit; -+#else -+ codec->pix_fmts = pix_fmts_all; -+#endif - } - - #define OFFSET(x) offsetof(X264Context, x) --- -2.21.0 - diff --git a/media-video/libav/libav-12.3.ebuild b/media-video/libav/libav-12.3.ebuild deleted file mode 100644 index 8ef66ef03759..000000000000 --- a/media-video/libav/libav-12.3.ebuild +++ /dev/null @@ -1,350 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit flag-o-matic multilib multilib-minimal toolchain-funcs - -if [[ ${PV} == *9999 ]] ; then - : ${EGIT_REPO_URI:="https://git.libav.org/libav.git"} - if [[ ${PV%9999} != "" ]] ; then - : ${EGIT_BRANCH:="release/${PV%.9999}"} - fi - inherit git-r3 -fi - -DESCRIPTION="Complete solution to record, convert and stream audio and video" -HOMEPAGE="https://libav.org/" -if [[ ${PV} == *9999 ]] ; then - SRC_URI="" -elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot - SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" - SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV}.tar.xz )" -else # Official release - SRC_URI="https://libav.org/releases/${P}.tar.xz" - FATE_VER=${PV%%_*} - SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-12-r1.tar.xz )" -fi - -# 9999 does not have fate-*.tar.xz - -LICENSE="LGPL-2.1 gpl? ( GPL-3 )" -SLOT="0/12" -[[ ${PV} == *9999 ]] || KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" -IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk - frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 - +network nvidia openssl opus oss pic pulseaudio rtmp sdl speex ssl - static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X - wavpack webp x264 x265 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="altivec armv5te armv6 armv6t2 armvfp:vfp neon" -X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" -for i in ${X86_CPU_FEATURES} ; do - CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" -done -for i in ${CPU_FEATURES} ; do - IUSE+=" ${i%:*}" -done - -RDEPEND=" - !media-video/ffmpeg:0 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) - amr? ( >=media-libs/opencore-amr-0.1.3-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}] ) - encode? ( - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) - amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) - mp3? ( >=media-sound/lame-3.99.5-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}] ) - vorbis? ( - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] - ) - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) - x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) - ) - nvidia? ( media-video/nvidia-video-codec ) - fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) - frei0r? ( media-plugins/frei0r-plugins ) - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) - ieee1394? ( - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] - ) - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) - rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) - ssl? ( - openssl? ( - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) - ) - !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) - ) - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) - fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) - X? ( >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}] ) - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) -" - -DEPEND="${RDEPEND} - >=sys-devel/make-3.81 - doc? ( app-text/texi2html ) - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - cpu_flags_x86_mmx? ( dev-lang/yasm ) - rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - test? ( sys-devel/bc ) - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - v4l? ( sys-kernel/linux-headers ) -" - -# faac can't be binary distributed -# openssl support marked as nonfree -# faac and aac are concurent implementations -# amr and aac require at least lgpl3 -# x264 requires gpl2 -REQUIRED_USE=" - rtmp? ( network ) - amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) cdio? ( gpl ) x265? ( gpl ) - test? ( encode zlib ) - fontconfig? ( truetype ) -" -RESTRICT=" - !test? ( test ) - faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist ) nvidia? ( bindist )" - -MULTILIB_WRAPPED_HEADERS=( - /usr/include/libavutil/avconfig.h -) - -src_unpack() { - [[ ${PV} == *9999 ]] && git-r3_src_unpack - # 9999 does not have fate-*.tar.xz - [[ ${PV%9999} != "" ]] && default_src_unpack -} - -src_prepare() { - eapply_user - eapply "${FILESDIR}/${P}-x264.patch" # bug 681888 - - # if we have snapshot then we need to hardcode the version - if [[ ${PV%_p*} != ${PV} ]]; then - sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die - fi - - TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) - use zlib && TOOLS+=( cws2fws ) - - MAKEOPTS+=" V=1" -} - -multilib_src_configure() { - local myconf=( ${EXTRA_LIBAV_CONF} ) - local uses i - - # 9999 does not have fate-*.tar.xz - [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) - - myconf+=( - $(use_enable gpl) - $(use_enable gpl version3) - --enable-avfilter - ) - - # enabled by default - uses="debug doc network zlib" - for i in ${uses}; do - use ${i} || myconf+=( --disable-${i} ) - done - use bzip2 || myconf+=( --disable-bzlib ) - use sdl || myconf+=( --disable-avplay ) - - if use ssl; then - use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ - || myconf+=( --enable-gnutls ) - fi - - use custom-cflags && myconf+=( --disable-optimizations ) - use cpudetection && myconf+=( --enable-runtime-cpudetect ) - - use vdpau || myconf+=( --disable-vdpau ) - - use vaapi && myconf+=( --enable-vaapi ) - - NVIDIA_INCLUDES="-I/opt/nvidia-video-codec/include -I/opt/cuda/include" - NVIDIA_LIBS="-L/opt/cuda/lib64" - use nvidia && myconf+=( --enable-nonfree --enable-cuda --enable-libnpp - --extra-cflags="$NVIDIA_INCLUDES" --extra-ldflags="$NVIDIA_LIBS" ) - - # Encoders - if use encode; then - use faac && myconf+=( --enable-nonfree ) - use mp3 && myconf+=( --enable-libmp3lame ) - use amr && myconf+=( --enable-libvo-amrwbenc ) - use aac && myconf+=( --enable-libvo-aacenc ) - use nvidia && myconf+=( --enable-nvenc ) - uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" - for i in ${uses}; do - use ${i} && myconf+=( --enable-lib${i} ) - done - else - myconf+=( --disable-encoders ) - fi - - # libavdevice options - use cdio && myconf+=( --enable-libcdio ) - use ieee1394 && myconf+=( --enable-libdc1394 ) - use pulseaudio && myconf+=( --enable-libpulse ) - - # Indevs - # v4l1 is gone since linux-headers-2.6.38 - myconf+=( --disable-indev=v4l ) - use v4l || myconf+=( --disable-indev=v4l2 ) - for i in alsa oss jack; do - use ${i} || myconf+=( --disable-indev=${i} ) - done - use X && myconf+=( --enable-libxcb ) - # Outdevs - for i in alsa oss ; do - use ${i} || myconf+=( --disable-outdev=${i} ) - done - # libavfilter options - use bs2b && myconf+=( --enable-libbs2b ) - multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) - use truetype && myconf+=( --enable-libfreetype ) - use fontconfig && myconf+=( --enable-libfontconfig ) - - # Threads; we only support pthread for now - use threads && myconf+=( --enable-pthreads ) - - # Decoders - use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) - use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) - uses="gsm opus rtmp speex vpx" - for i in ${uses}; do - use ${i} && myconf+=( --enable-lib${i} ) - done - use jpeg2k && myconf+=( --enable-libopenjpeg ) - - # CPU features - for i in ${CPU_FEATURES}; do - use ${i%:*} || myconf+=( --disable-${i#*:} ) - done - - # pass the right -mfpu as extra - use neon && use arm && append-cflags -mfpu=neon - - # disable mmx accelerated code if PIC is required - # as the provided asm decidedly is not PIC for x86. - if use pic && [[ ${ABI} == x86 ]]; then - myconf+=( --disable-mmx --disable-mmxext ) - fi - - # Option to force building pic - use pic && myconf+=( --enable-pic ) - - # 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 - - # Misc stuff - use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) - - # Forcing arm would make the compiler break left and right - if [[ ${ABI} == arm ]]; then - filter-flags -marm - fi - - # Specific workarounds for too-few-registers arch... - if [[ ${ABI} == x86 ]]; then - local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} - filter-flags -fforce-addr -momit-leaf-frame-pointer - append-flags -fomit-frame-pointer - is-flag -O? || append-flags -O2 - if use debug; then - # no need to warn about debug if not using debug flag - ewarn "" - ewarn "Debug information will be almost useless as the frame pointer is omitted." - ewarn "This makes debugging harder, so crashes that has no fixed behavior are" - ewarn "difficult to fix. Please have that in mind." - ewarn "" - fi - fi - - set -- "${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)" \ - --ar="$(tc-getAR)" \ - --optflags="${CFLAGS}" \ - --extra-cflags="${CFLAGS}" \ - $(use_enable static-libs static) \ - "${myconf[@]}" - echo "${@}" - "${@}" || die -} - -multilib_src_compile() { - emake - - if use tools; then - tc-export CC - - emake ${TOOLS[@]/#/tools/} - fi -} - -multilib_src_install() { - emake DESTDIR="${D}" install install-man - use doc && dodoc doc/*.html - - if use tools; then - dobin ${TOOLS[@]/#/tools/} - fi -} - -multilib_src_install_all() { - dodoc Changelog README.md INSTALL -} - -multilib_src_test() { - local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" - einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" - LD_LIBRARY_PATH="${_libs}" emake -j1 fate V=1 -} diff --git a/media-video/libav/libav-13_pre20171219.ebuild b/media-video/libav/libav-13_pre20171219.ebuild deleted file mode 100644 index 316231001656..000000000000 --- a/media-video/libav/libav-13_pre20171219.ebuild +++ /dev/null @@ -1,336 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs - -if [[ ${PV} == *9999 ]] ; then - : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} - if [[ ${PV%9999} != "" ]] ; then - : ${EGIT_BRANCH:="release/${PV%.9999}"} - fi - inherit git-r3 -fi - -DESCRIPTION="Complete solution to record, convert and stream audio and video" -HOMEPAGE="https://libav.org/" -if [[ ${PV} == *9999 ]] ; then - SRC_URI="" -elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot - SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" -else # Official release - SRC_URI="https://libav.org/releases/${P}.tar.xz" -fi - -SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-12-r1.tar.xz )" - -LICENSE="LGPL-2.1 gpl? ( GPL-3 )" -SLOT="0/13" -[[ ${PV} == *9999 ]] || KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" -IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk - frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 - +network openssl opus oss pic pulseaudio rtmp sdl speex ssl - static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X - wavpack webp x264 x265 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="altivec armv5te armv6 armv6t2 armvfp:vfp neon" -X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" -for i in ${X86_CPU_FEATURES} ; do - CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" -done -for i in ${CPU_FEATURES} ; do - IUSE+=" ${i%:*}" -done - -RDEPEND=" - !media-video/ffmpeg:0 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) - amr? ( >=media-libs/opencore-amr-0.1.3-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}] ) - encode? ( - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) - amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) - mp3? ( >=media-sound/lame-3.99.5-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}] ) - vorbis? ( - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] - ) - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) - x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) - ) - fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) - frei0r? ( media-plugins/frei0r-plugins ) - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) - ieee1394? ( - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] - ) - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) - rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) - ssl? ( - openssl? ( - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) - ) - !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) - ) - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) - fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) - X? ( >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}] ) - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) -" - -DEPEND="${RDEPEND} - >=sys-devel/make-3.81 - doc? ( app-text/texi2html ) - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - cpu_flags_x86_mmx? ( >=dev-lang/nasm-2.13 ) - rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - test? ( sys-devel/bc ) - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - v4l? ( sys-kernel/linux-headers ) -" - -# faac can't be binary distributed -# openssl support marked as nonfree -# faac and aac are concurent implementations -# amr and aac require at least lgpl3 -# x264 requires gpl2 -REQUIRED_USE=" - rtmp? ( network ) - amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) cdio? ( gpl ) x265? ( gpl ) - test? ( encode zlib ) - fontconfig? ( truetype ) -" -RESTRICT=" - !test? ( test ) - faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" - -MULTILIB_WRAPPED_HEADERS=( - /usr/include/libavutil/avconfig.h -) - -src_unpack() { - [[ ${PV} == *9999 ]] && git-r3_src_unpack - # 9999 does not have fate-*.tar.xz - [[ ${PV%9999} != "" ]] && default_src_unpack -} - -src_prepare() { - epatch_user - - # if we have snapshot then we need to hardcode the version - if [[ ${PV%_p*} != ${PV} ]]; then - sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/avbuild/version.sh" || die - fi - - TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) - use zlib && TOOLS+=( cws2fws ) - - MAKEOPTS+=" V=1" -} - -multilib_src_configure() { - local myconf=( ${EXTRA_LIBAV_CONF} ) - local uses i - - # 9999 does not have fate-*.tar.xz - [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) - - myconf+=( - $(use_enable gpl) - $(use_enable gpl version3) - --enable-avfilter - ) - - # enabled by default - uses="debug doc network zlib" - for i in ${uses}; do - use ${i} || myconf+=( --disable-${i} ) - done - use bzip2 || myconf+=( --disable-bzlib ) - use sdl || myconf+=( --disable-avplay ) - - if use ssl; then - use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ - || myconf+=( --enable-gnutls ) - fi - - use custom-cflags && myconf+=( --disable-optimizations ) - use cpudetection && myconf+=( --enable-runtime-cpudetect ) - - use vdpau || myconf+=( --disable-vdpau ) - - use vaapi && myconf+=( --enable-vaapi ) - - # Encoders - if use encode; then - use faac && myconf+=( --enable-nonfree ) - use mp3 && myconf+=( --enable-libmp3lame ) - use amr && myconf+=( --enable-libvo-amrwbenc ) - use aac && myconf+=( --enable-libvo-aacenc ) - uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" - for i in ${uses}; do - use ${i} && myconf+=( --enable-lib${i} ) - done - else - myconf+=( --disable-encoders ) - fi - - # libavdevice options - use cdio && myconf+=( --enable-libcdio ) - use ieee1394 && myconf+=( --enable-libdc1394 ) - use pulseaudio && myconf+=( --enable-libpulse ) - - # Indevs - # v4l1 is gone since linux-headers-2.6.38 - myconf+=( --disable-indev=v4l ) - use v4l || myconf+=( --disable-indev=v4l2 ) - for i in alsa oss jack; do - use ${i} || myconf+=( --disable-indev=${i} ) - done - use X && myconf+=( --enable-libxcb ) - - # libavfilter options - use bs2b && myconf+=( --enable-libbs2b ) - multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) - use truetype && myconf+=( --enable-libfreetype ) - use fontconfig && myconf+=( --enable-libfontconfig ) - - # Threads; we only support pthread for now - use threads && myconf+=( --enable-pthreads ) - - # Decoders - use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) - use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) - uses="gsm opus rtmp speex vpx" - for i in ${uses}; do - use ${i} && myconf+=( --enable-lib${i} ) - done - use jpeg2k && myconf+=( --enable-libopenjpeg ) - - # CPU features - for i in ${CPU_FEATURES}; do - use ${i%:*} || myconf+=( --disable-${i#*:} ) - done - - # pass the right -mfpu as extra - use neon && use arm && append-cflags -mfpu=neon - - # disable mmx accelerated code if PIC is required - # as the provided asm decidedly is not PIC for x86. - if use pic && [[ ${ABI} == x86 ]]; then - myconf+=( --disable-mmx --disable-mmxext ) - fi - - # Option to force building pic - use pic && myconf+=( --enable-pic ) - - # 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 - - # Misc stuff - use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) - - # Forcing arm would make the compiler break left and right - if [[ ${ABI} == arm ]]; then - filter-flags -marm - fi - - # Specific workarounds for too-few-registers arch... - if [[ ${ABI} == x86 ]]; then - local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} - filter-flags -fforce-addr -momit-leaf-frame-pointer - append-flags -fomit-frame-pointer - is-flag -O? || append-flags -O2 - if use debug; then - # no need to warn about debug if not using debug flag - ewarn "" - ewarn "Debug information will be almost useless as the frame pointer is omitted." - ewarn "This makes debugging harder, so crashes that has no fixed behavior are" - ewarn "difficult to fix. Please have that in mind." - ewarn "" - fi - fi - - set -- "${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)" \ - --ar="$(tc-getAR)" \ - --optflags="${CFLAGS}" \ - --extra-cflags="${CFLAGS}" \ - $(use_enable static-libs static) \ - "${myconf[@]}" - echo "${@}" - "${@}" || die -} - -multilib_src_compile() { - emake - - if use tools; then - tc-export CC - - emake ${TOOLS[@]/#/tools/} - fi -} - -multilib_src_install() { - emake DESTDIR="${D}" install install-man - use doc && dodoc doc/*.html - - if use tools; then - dobin ${TOOLS[@]/#/tools/} - fi -} - -multilib_src_install_all() { - dodoc Changelog README.md INSTALL -} - -multilib_src_test() { - local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" - einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" - LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate -} diff --git a/media-video/libav/libav-9999.ebuild b/media-video/libav/libav-9999.ebuild deleted file mode 100644 index 72b3d24390d9..000000000000 --- a/media-video/libav/libav-9999.ebuild +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit flag-o-matic multilib multilib-minimal toolchain-funcs - -if [[ ${PV} == *9999 ]] ; then - : ${EGIT_REPO_URI:="https://git.libav.org/libav.git"} - if [[ ${PV%9999} != "" ]] ; then - : ${EGIT_BRANCH:="release/${PV%.9999}"} - fi - inherit git-r3 -fi - -DESCRIPTION="Complete solution to record, convert and stream audio and video" -HOMEPAGE="https://libav.org/" -if [[ ${PV} == *9999 ]] ; then - SRC_URI="" -elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot - SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" - SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV}.tar.xz )" -else # Official release - SRC_URI="https://libav.org/releases/${P}.tar.xz" - SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )" -fi - -LICENSE="LGPL-2.1 gpl? ( GPL-3 )" -SLOT="0/13" -[[ ${PV} == *9999 ]] || KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" -IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk - frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 - +network openssl opus oss pic pulseaudio rtmp sdl speex ssl - static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X - wavpack webp x264 x265 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="altivec armv5te armv6 armv6t2 armvfp:vfp neon" -X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" -for i in ${X86_CPU_FEATURES} ; do - CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" -done -for i in ${CPU_FEATURES} ; do - IUSE+=" ${i%:*}" -done - -RDEPEND=" - !media-video/ffmpeg:0 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) - amr? ( >=media-libs/opencore-amr-0.1.3-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}] ) - encode? ( - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) - amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) - mp3? ( >=media-sound/lame-3.99.5-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}] ) - vorbis? ( - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] - ) - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) - x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) - ) - fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) - frei0r? ( media-plugins/frei0r-plugins ) - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) - ieee1394? ( - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] - ) - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) - rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) - ssl? ( - openssl? ( - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) - ) - !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) - ) - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) - fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) - X? ( >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}] ) - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) -" - -DEPEND="${RDEPEND} - >=sys-devel/make-3.81 - doc? ( app-text/texi2html ) - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - cpu_flags_x86_mmx? ( >=dev-lang/nasm-2.13 ) - rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - test? ( sys-devel/bc ) - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) - v4l? ( sys-kernel/linux-headers ) -" - -# faac can't be binary distributed -# openssl support marked as nonfree -# faac and aac are concurent implementations -# amr and aac require at least lgpl3 -# x264 requires gpl2 -REQUIRED_USE=" - rtmp? ( network ) - amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) cdio? ( gpl ) x265? ( gpl ) - test? ( encode zlib ) - fontconfig? ( truetype ) -" -RESTRICT=" - !test? ( test ) - faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" - -MULTILIB_WRAPPED_HEADERS=( - /usr/include/libavutil/avconfig.h -) - -src_unpack() { - [[ ${PV} == *9999 ]] && git-r3_src_unpack - # 9999 does not have fate-*.tar.xz - [[ ${PV%9999} != "" ]] && default_src_unpack -} - -src_prepare() { - eapply_user - - # if we have snapshot then we need to hardcode the version - if [[ ${PV%_p*} != ${PV} ]]; then - sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die - fi - - TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) - use zlib && TOOLS+=( cws2fws ) - - MAKEOPTS+=" V=1" - - # needed at leasts for tests in live ebuild - multilib_copy_sources -} - -multilib_src_configure() { - local myconf=( ${EXTRA_LIBAV_CONF} ) - local uses i - - # 9999 does not have fate-*.tar.xz - [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) - - myconf+=( - $(use_enable gpl) - $(use_enable gpl version3) - --enable-avfilter - ) - - # enabled by default - uses="debug doc network zlib" - for i in ${uses}; do - use ${i} || myconf+=( --disable-${i} ) - done - use bzip2 || myconf+=( --disable-bzlib ) - use sdl || myconf+=( --disable-avplay ) - - if use ssl; then - use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ - || myconf+=( --enable-gnutls ) - fi - - use custom-cflags && myconf+=( --disable-optimizations ) - use cpudetection && myconf+=( --enable-runtime-cpudetect ) - - use vdpau || myconf+=( --disable-vdpau ) - - use vaapi && myconf+=( --enable-vaapi ) - - # Encoders - if use encode; then - use faac && myconf+=( --enable-nonfree ) - use mp3 && myconf+=( --enable-libmp3lame ) - use amr && myconf+=( --enable-libvo-amrwbenc ) - use aac && myconf+=( --enable-libvo-aacenc ) - uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" - for i in ${uses}; do - use ${i} && myconf+=( --enable-lib${i} ) - done - else - myconf+=( --disable-encoders ) - fi - - # libavdevice options - use cdio && myconf+=( --enable-libcdio ) - use ieee1394 && myconf+=( --enable-libdc1394 ) - use pulseaudio && myconf+=( --enable-libpulse ) - - # Indevs - # v4l1 is gone since linux-headers-2.6.38 - myconf+=( --disable-indev=v4l ) - use v4l || myconf+=( --disable-indev=v4l2 ) - for i in alsa oss jack; do - use ${i} || myconf+=( --disable-indev=${i} ) - done - use X && myconf+=( --enable-libxcb ) - - # libavfilter options - use bs2b && myconf+=( --enable-libbs2b ) - multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) - use truetype && myconf+=( --enable-libfreetype ) - use fontconfig && myconf+=( --enable-libfontconfig ) - - # Threads; we only support pthread for now - use threads && myconf+=( --enable-pthreads ) - - # Decoders - use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) - use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) - uses="gsm opus rtmp speex vpx" - for i in ${uses}; do - use ${i} && myconf+=( --enable-lib${i} ) - done - use jpeg2k && myconf+=( --enable-libopenjpeg ) - - # CPU features - for i in ${CPU_FEATURES}; do - use ${i%:*} || myconf+=( --disable-${i#*:} ) - done - - # pass the right -mfpu as extra - use neon && use arm && append-cflags -mfpu=neon - - # disable mmx accelerated code if PIC is required - # as the provided asm decidedly is not PIC for x86. - if use pic && [[ ${ABI} == x86 ]]; then - myconf+=( --disable-mmx --disable-mmxext ) - fi - - # Option to force building pic - use pic && myconf+=( --enable-pic ) - - # 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 - - # Misc stuff - use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) - - # Forcing arm would make the compiler break left and right - if [[ ${ABI} == arm ]]; then - filter-flags -marm - fi - - # Specific workarounds for too-few-registers arch... - if [[ ${ABI} == x86 ]]; then - local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} - filter-flags -fforce-addr -momit-leaf-frame-pointer - append-flags -fomit-frame-pointer - is-flag -O? || append-flags -O2 - if use debug; then - # no need to warn about debug if not using debug flag - ewarn "" - ewarn "Debug information will be almost useless as the frame pointer is omitted." - ewarn "This makes debugging harder, so crashes that has no fixed behavior are" - ewarn "difficult to fix. Please have that in mind." - ewarn "" - fi - fi - - set -- "${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)" \ - --ar="$(tc-getAR)" \ - --optflags="${CFLAGS}" \ - --extra-cflags="${CFLAGS}" \ - $(use_enable static-libs static) \ - "${myconf[@]}" - echo "${@}" - "${@}" || die -} - -multilib_src_compile() { - emake - - if use tools; then - tc-export CC - - emake ${TOOLS[@]/#/tools/} - fi -} - -multilib_src_install() { - emake DESTDIR="${D}" install install-man - use doc && dodoc doc/*.html - - if use tools; then - dobin ${TOOLS[@]/#/tools/} - fi -} - -multilib_src_install_all() { - dodoc Changelog README.md INSTALL -} - -multilib_src_test() { - local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" - einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" - LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate -} diff --git a/media-video/libav/metadata.xml b/media-video/libav/metadata.xml deleted file mode 100644 index 82ff0f291ef6..000000000000 --- a/media-video/libav/metadata.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - media-video@gentoo.org - - - Use external vo-aacenc library for AAC encoding - Enable Adaptive Multi-Rate Audio support - Enable optimizations for armv5te processors - Enable optimizations for armv6 processors - Enable optimizations for armv6t2 processors - Enable VFP optimizations for ARM processors - Enable media-libs/libbs2b based Bauer stereo-to-binaural audio filter - Enable audio CD grabbing with dev-libs/libcdio. - Enables runtime CPU detection (useful for bindist, compatibility on other CPUs). - Use external faac library for AAC encoding - Use external fdk-aac library for AAC encoding and decoding - Enable frei0r wrapping in libavfilter - Build all GPL licensed code. Without this flag set the package is build under LGPL license. - Use pre-calculated tables rather than calculating them on the fly. - Enable network streaming support. - Enable nvidia video codec hardware acceleration support. - Prefer dev-libs/openssl over net-libs/gnutls to provide SSL/TLS support (notice: the resulting binaries are unredistributable). - Use the external opus library for encoding and decoding. - Enable pulseaudio input support. - Force shared libraries to be built as PIC (this is slower). - Enable Real Time Messaging Protocol using librtmp instead the native implementation. - Enable SSL/TLS support using dev-libs/openssl or net-libs/gnutls. - Build and install small tools like aviocat, cws2fws, graph2dot, ismindex, qt-faststart. - Enable MP2 encoding via media-sound/twolame as an alternative to the internal encoder - Enable vp8 encoding support using media-libs/libvpx. - Enable HEVC encoding with media-libs/x265. - - -- 2.26.2