* [gentoo-commits] repo/gentoo:master commit in: media-libs/ffmpegsource/files/, media-libs/ffmpegsource/
@ 2016-01-10 1:59 Ian Delaney
0 siblings, 0 replies; 2+ messages in thread
From: Ian Delaney @ 2016-01-10 1:59 UTC (permalink / raw
To: gentoo-commits
commit: 95b17a979efbb78a23484cbca6447e536552a1ac
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Sat Jan 9 19:42:57 2016 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 01:58:55 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b17a97
media-libs/ffmpegsource: verbump to 2.22 wrt bug 564524
Gentoo-Bug: 564524
Package-Manager: portage-2.2.26
media-libs/ffmpegsource/Manifest | 1 +
media-libs/ffmpegsource/ffmpegsource-2.22.ebuild | 39 ++++++++++++++++++++++
.../ffmpegsource-2.22-add-missing-extern-C.patch | 27 +++++++++++++++
.../ffmpegsource-2.22-fix-pixfmt-define.patch | 31 +++++++++++++++++
| 22 ++++++++++++
5 files changed, 120 insertions(+)
diff --git a/media-libs/ffmpegsource/Manifest b/media-libs/ffmpegsource/Manifest
index c928826..ab2fa50 100644
--- a/media-libs/ffmpegsource/Manifest
+++ b/media-libs/ffmpegsource/Manifest
@@ -1,3 +1,4 @@
DIST ffmpegsource-2.19.1.tar.gz 512381 SHA256 39c8a5f6c6735d10b3b0a3830f71ef0182b42e747cbceb6bf9b8dcc0532c99db SHA512 e6e9a49af8eb9c1f5a54db8a74879cefbd4876329b71b09ebf79fc6f25808a12cc020ebe275607773127b908c67fc7c92f264b49e02ce08ec209a7d94e9d3a67 WHIRLPOOL 469519aee1a7364e21bb988481e6709af8ee53d18cd5be4d00c148a5e0f940491d6c777d387d3fcdbf74fde5c3c6da843205dd378e7fb301f65981daddf71760
DIST ffmpegsource-2.20.tar.gz 539587 SHA256 c7d880172756c253f2c5673044dabf03c19890dcfe64da5104ee9f42a1a573a0 SHA512 77cfb027a6be21952700fadee66467d18bc0521569cf3d5eef3f7fd3ff9785ba1c6b7a251a5ccfb8b6e8dd965aef9928cf27459dca28591eeddd1fd5a2905295 WHIRLPOOL 321cc4a3ff37201def87bfb7596e84e76cb58fb05a43d99901eaca8f46f712fa4d86af9cdc65a24749c2715a4f52c9106ab2b24d7060cfe87f5401e520ac7fb1
+DIST ffmpegsource-2.22.tar.gz 487244 SHA256 7c5202fa2e49186fb3bb815e5b12ca71f05ec09cb707ffd9465852e21a06fdad SHA512 af92766f19b5db15c2f0b08e4d894e26bb66f93360b12461d37f38983a4e1916656514d52bf86f8a5def83207e2433d04f58384b1cf8f617ab19aafd2f0d7d56 WHIRLPOOL 2fb1b189ba573fd2e1f65e61cfa365201a419a3bb066ef54e06c07c5f8eabcfb93dc3191c860a8816a797eb9e47a62929a35c1c786a43712ab80ac2df69ee811
DIST ffms-2.17-src.tar.bz2 394862 SHA256 991f7a77982823afdcf0beb8961deddaf7dd0aea949249e51fbf51cb3314643d SHA512 18a7ccbc9a665c1293dc17dccf3253fc4cad4449fc774242b773360eacb4eceb3440cd0dedbf4dfca51b40c5b2759bdd8b524cfba38339aff2460967ef8f0aa3 WHIRLPOOL 4f7ab6b1897d78b4a67c1ae5a1fce1c0d657454d6174fd738dbf8f0ecf77a5e137b6d263be0a8feb6b65db7b7f6ba7d0f601d719e6edb0e68850bf9662b39cb9
diff --git a/media-libs/ffmpegsource/ffmpegsource-2.22.ebuild b/media-libs/ffmpegsource/ffmpegsource-2.22.ebuild
new file mode 100644
index 0000000..4a8b2a3
--- /dev/null
+++ b/media-libs/ffmpegsource/ffmpegsource-2.22.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils flag-o-matic vcs-snapshot
+
+DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access"
+HOMEPAGE="https://github.com/FFMS/ffms2"
+SRC_URI="https://github.com/FFMS/ffms2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+KEYWORDS="~amd64 ~x86"
+IUSE="libav static-libs"
+
+RDEPEND="
+ sys-libs/zlib
+ !libav? ( >=media-video/ffmpeg-2.4:0= )
+ libav? ( >=media-video/libav-9:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-pixfmt-define.patch"
+ "${FILESDIR}/${P}-include-missing-header.patch"
+ "${FILESDIR}/${P}-add-missing-extern-C.patch"
+)
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then
+ die "Your compiler lacks C++11 support. Use GCC>=4.7.0 or Clang>=3.3."
+ fi
+}
diff --git a/media-libs/ffmpegsource/files/ffmpegsource-2.22-add-missing-extern-C.patch b/media-libs/ffmpegsource/files/ffmpegsource-2.22-add-missing-extern-C.patch
new file mode 100644
index 0000000..9ef42d7
--- /dev/null
+++ b/media-libs/ffmpegsource/files/ffmpegsource-2.22-add-missing-extern-C.patch
@@ -0,0 +1,27 @@
+commit 1dc922cdd0798d5522331f1c98657f494d18c6b9
+Author: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+Date: Sun Dec 27 18:37:59 2015 -0500
+
+ track: Wrap C headers in extern "C" properly
+
+ This fixes av_rescale being undefiend during linking with some
+ GCC versions (e.g. 4.8.4 on Ubuntu 14.04).
+
+ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+
+diff --git a/src/core/track.cpp b/src/core/track.cpp
+index 136bc21..23e57ad 100644
+--- a/src/core/track.cpp
++++ b/src/core/track.cpp
+@@ -25,9 +25,11 @@
+
+ #include <algorithm>
+
++extern "C" {
+ #include <libavutil/avutil.h>
+ #include <libavutil/common.h>
+ #include <libavutil/mathematics.h>
++}
+
+ namespace {
+ FrameInfo ReadFrame(ZipFile &stream, FrameInfo const& prev, const FFMS_TrackType TT) {
diff --git a/media-libs/ffmpegsource/files/ffmpegsource-2.22-fix-pixfmt-define.patch b/media-libs/ffmpegsource/files/ffmpegsource-2.22-fix-pixfmt-define.patch
new file mode 100644
index 0000000..9815edc
--- /dev/null
+++ b/media-libs/ffmpegsource/files/ffmpegsource-2.22-fix-pixfmt-define.patch
@@ -0,0 +1,31 @@
+commit d4cf0fcdb355319e2f868d4e474a6b78b36848fd
+Author: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+Date: Sun Dec 27 18:36:27 2015 -0500
+
+ ffmscompat: Use a separate version check for pixfmt flags
+
+ These changed during a separate version bump from the pixfmts themselves.
+
+ What a mess.
+
+ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+
+diff --git a/include/ffmscompat.h b/include/ffmscompat.h
+index be99db8..eea9029 100644
+--- a/include/ffmscompat.h
++++ b/include/ffmscompat.h
+@@ -88,9 +88,13 @@ static void av_frame_free(AVFrame **frame) { av_freep(frame); }
+ # if VERSION_CHECK(LIBAVUTIL_VERSION_INT, <, 51, 42, 0, 51, 74, 100)
+ # define AVPixelFormat PixelFormat
+ # define FFMS_PIX_FMT(x) PIX_FMT_##x
+-# define FFMS_PIX_FMT_FLAG(x) PIX_FMT_##x
+ # else
+ # define FFMS_PIX_FMT(x) AV_PIX_FMT_##x
++# endif
++
++# if VERSION_CHECK(LIBAVUTIL_VERSION_INT, <, 52, 11, 0, 52, 32, 100)
++# define FFMS_PIX_FMT_FLAG(x) PIX_FMT_##x
++# else
+ # define FFMS_PIX_FMT_FLAG(x) AV_PIX_FMT_FLAG_##x
+ # endif
+
--git a/media-libs/ffmpegsource/files/ffmpegsource-2.22-include-missing-header.patch b/media-libs/ffmpegsource/files/ffmpegsource-2.22-include-missing-header.patch
new file mode 100644
index 0000000..bae86ec
--- /dev/null
+++ b/media-libs/ffmpegsource/files/ffmpegsource-2.22-include-missing-header.patch
@@ -0,0 +1,22 @@
+commit 848f7656e1e912352345f84b9499ab4483902d3b
+Author: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+Date: Sun Dec 27 18:37:28 2015 -0500
+
+ track: Include missing header
+
+ This is requried for av_rescale.
+
+ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
+
+diff --git a/src/core/track.cpp b/src/core/track.cpp
+index 3300094..136bc21 100644
+--- a/src/core/track.cpp
++++ b/src/core/track.cpp
+@@ -27,6 +27,7 @@
+
+ #include <libavutil/avutil.h>
+ #include <libavutil/common.h>
++#include <libavutil/mathematics.h>
+
+ namespace {
+ FrameInfo ReadFrame(ZipFile &stream, FrameInfo const& prev, const FFMS_TrackType TT) {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/ffmpegsource/files/, media-libs/ffmpegsource/
@ 2016-01-10 1:59 Ian Delaney
0 siblings, 0 replies; 2+ messages in thread
From: Ian Delaney @ 2016-01-10 1:59 UTC (permalink / raw
To: gentoo-commits
commit: 2f1bb65c02b810f2639aa38e5b2082a6191a3b49
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Sat Jan 9 18:48:49 2016 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 01:58:58 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f1bb65c
media-libs/ffmpegsource: remove old
Package-Manager: portage-2.2.26
media-libs/ffmpegsource/Manifest | 2 -
media-libs/ffmpegsource/ffmpegsource-2.17.ebuild | 39 --------
media-libs/ffmpegsource/ffmpegsource-2.19.1.ebuild | 28 ------
.../files/ffmpegsource-2.17-ffmpeg.patch | 102 ---------------------
4 files changed, 171 deletions(-)
diff --git a/media-libs/ffmpegsource/Manifest b/media-libs/ffmpegsource/Manifest
index ab2fa50..26d9dff 100644
--- a/media-libs/ffmpegsource/Manifest
+++ b/media-libs/ffmpegsource/Manifest
@@ -1,4 +1,2 @@
-DIST ffmpegsource-2.19.1.tar.gz 512381 SHA256 39c8a5f6c6735d10b3b0a3830f71ef0182b42e747cbceb6bf9b8dcc0532c99db SHA512 e6e9a49af8eb9c1f5a54db8a74879cefbd4876329b71b09ebf79fc6f25808a12cc020ebe275607773127b908c67fc7c92f264b49e02ce08ec209a7d94e9d3a67 WHIRLPOOL 469519aee1a7364e21bb988481e6709af8ee53d18cd5be4d00c148a5e0f940491d6c777d387d3fcdbf74fde5c3c6da843205dd378e7fb301f65981daddf71760
DIST ffmpegsource-2.20.tar.gz 539587 SHA256 c7d880172756c253f2c5673044dabf03c19890dcfe64da5104ee9f42a1a573a0 SHA512 77cfb027a6be21952700fadee66467d18bc0521569cf3d5eef3f7fd3ff9785ba1c6b7a251a5ccfb8b6e8dd965aef9928cf27459dca28591eeddd1fd5a2905295 WHIRLPOOL 321cc4a3ff37201def87bfb7596e84e76cb58fb05a43d99901eaca8f46f712fa4d86af9cdc65a24749c2715a4f52c9106ab2b24d7060cfe87f5401e520ac7fb1
DIST ffmpegsource-2.22.tar.gz 487244 SHA256 7c5202fa2e49186fb3bb815e5b12ca71f05ec09cb707ffd9465852e21a06fdad SHA512 af92766f19b5db15c2f0b08e4d894e26bb66f93360b12461d37f38983a4e1916656514d52bf86f8a5def83207e2433d04f58384b1cf8f617ab19aafd2f0d7d56 WHIRLPOOL 2fb1b189ba573fd2e1f65e61cfa365201a419a3bb066ef54e06c07c5f8eabcfb93dc3191c860a8816a797eb9e47a62929a35c1c786a43712ab80ac2df69ee811
-DIST ffms-2.17-src.tar.bz2 394862 SHA256 991f7a77982823afdcf0beb8961deddaf7dd0aea949249e51fbf51cb3314643d SHA512 18a7ccbc9a665c1293dc17dccf3253fc4cad4449fc774242b773360eacb4eceb3440cd0dedbf4dfca51b40c5b2759bdd8b524cfba38339aff2460967ef8f0aa3 WHIRLPOOL 4f7ab6b1897d78b4a67c1ae5a1fce1c0d657454d6174fd738dbf8f0ecf77a5e137b6d263be0a8feb6b65db7b7f6ba7d0f601d719e6edb0e68850bf9662b39cb9
diff --git a/media-libs/ffmpegsource/ffmpegsource-2.17.ebuild b/media-libs/ffmpegsource/ffmpegsource-2.17.ebuild
deleted file mode 100644
index c1613d6..0000000
--- a/media-libs/ffmpegsource/ffmpegsource-2.17.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-AUTOTOOLS_AUTORECONF=1
-
-inherit autotools-utils
-
-MY_P="ffms-${PV}-src"
-DESCRIPTION="An FFmpeg based source library for easy frame accurate access"
-HOMEPAGE="https://code.google.com/p/ffmpegsource/"
-SRC_URI="https://ffmpegsource.googlecode.com/files/${MY_P}.tar.bz2"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="static-libs"
-
-RDEPEND="
- sys-libs/zlib
- >=virtual/ffmpeg-0.9
-"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
-"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=( "${FILESDIR}/${P}-ffmpeg.patch" )
-
-src_configure() {
- local myeconfargs=(
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html"
- )
-
- autotools-utils_src_configure
-}
diff --git a/media-libs/ffmpegsource/ffmpegsource-2.19.1.ebuild b/media-libs/ffmpegsource/ffmpegsource-2.19.1.ebuild
deleted file mode 100644
index 5ada343..0000000
--- a/media-libs/ffmpegsource/ffmpegsource-2.19.1.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-AUTOTOOLS_AUTORECONF=1
-
-inherit autotools-utils
-
-DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access"
-HOMEPAGE="https://github.com/FFMS/ffms2"
-SRC_URI="https://github.com/FFMS/ffms2/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0/3"
-KEYWORDS="amd64 x86"
-IUSE="libav static-libs"
-
-RDEPEND="
- sys-libs/zlib
- libav? ( >=media-video/libav-9.17:0= )
- !libav? ( >=media-video/ffmpeg-1.2.6-r1:0= )
-"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
-"
-S="${WORKDIR}/ffms2-${PV}"
diff --git a/media-libs/ffmpegsource/files/ffmpegsource-2.17-ffmpeg.patch b/media-libs/ffmpegsource/files/ffmpegsource-2.17-ffmpeg.patch
deleted file mode 100644
index 41c4fb5..0000000
--- a/media-libs/ffmpegsource/files/ffmpegsource-2.17-ffmpeg.patch
+++ /dev/null
@@ -1,102 +0,0 @@
-https://bugs.gentoo.org/show_bug.cgi?id=417983
-Backported from upstream.
-
-Index: ffms-2.17-src/configure.in
-===================================================================
---- ffms-2.17-src.orig/configure.in
-+++ ffms-2.17-src/configure.in
-@@ -135,7 +135,7 @@ AC_DEFUN([TEST_LIBAV],
- #include <libavcodec/avcodec.h>
- #include <libswscale/swscale.h>
- ]],[[
-- avcodec_init();
-+ av_register_all();
- swscale_version();
- #ifdef FFMS_USE_FFMPEG_COMPAT
- int bogus = CODEC_ID_G2M;
-Index: ffms-2.17-src/include/ffmscompat.h
-===================================================================
---- ffms-2.17-src.orig/include/ffmscompat.h
-+++ ffms-2.17-src/include/ffmscompat.h
-@@ -84,6 +84,14 @@
- # else
- # define FFMS_CALCULATE_DELAY (CodecContext->has_b_frames + (CodecContext->thread_count - 1))
- # endif
-+# if VERSION_CHECK(LIBAVCODEC_VERSION_INT, <, 54, 25, 0, 54, 51, 100)
-+# define FFMS_ID(x) (CODEC_ID_##x)
-+# define FFMS_CodecID CodecID
-+# else
-+# define FFMS_ID(x) (AV_CODEC_ID_##x)
-+# define FFMS_CodecID AVCodecID
-+# undef CodecID
-+# endif
- #endif
-
- #ifdef LIBAVUTIL_VERSION_INT
-Index: ffms-2.17-src/src/core/codectype.cpp
-===================================================================
---- ffms-2.17-src.orig/src/core/codectype.cpp
-+++ ffms-2.17-src/src/core/codectype.cpp
-@@ -25,7 +25,7 @@
-
- typedef struct CodecTags {
- char str[20];
-- CodecID id;
-+ FFMS_CodecID id;
- } CodecTags;
-
- static const CodecTags mkv_codec_tags[] = {
-@@ -92,7 +92,7 @@ static const CodecTags mkv_codec_tags[]
- };
-
- typedef struct AVCodecTag {
-- enum CodecID id;
-+ enum FFMS_CodecID id;
- unsigned int tag;
- } AVCodecTag;
-
-@@ -400,7 +400,7 @@ const char *GetLAVCSampleFormatName(AVSa
- }
- }
-
--CodecID MatroskaToFFCodecID(char *Codec, void *CodecPrivate, unsigned int FourCC, unsigned int BitsPerSample) {
-+FFMS_CodecID MatroskaToFFCodecID(char *Codec, void *CodecPrivate, unsigned int FourCC, unsigned int BitsPerSample) {
- /* Look up native codecs */
- for(int i = 0; mkv_codec_tags[i].id != CODEC_ID_NONE; i++){
- if(!strncmp(mkv_codec_tags[i].str, Codec,
-@@ -408,7 +408,7 @@ CodecID MatroskaToFFCodecID(char *Codec,
-
- // Uncompressed and exotic format fixup
- // This list is incomplete
-- CodecID CID = mkv_codec_tags[i].id;
-+ FFMS_CodecID CID = mkv_codec_tags[i].id;
- switch (CID) {
- case CODEC_ID_PCM_S16LE:
- switch (BitsPerSample) {
-Index: ffms-2.17-src/src/core/codectype.h
-===================================================================
---- ffms-2.17-src.orig/src/core/codectype.h
-+++ ffms-2.17-src/src/core/codectype.h
-@@ -27,5 +27,5 @@ extern "C" {
- #include "ffmscompat.h"
-
- FFMS_TrackType HaaliTrackTypeToFFTrackType(int TT);
--CodecID MatroskaToFFCodecID(char *Codec, void *CodecPrivate, unsigned int FourCC = 0, unsigned int BitsPerSample = 0);
-+FFMS_CodecID MatroskaToFFCodecID(char *Codec, void *CodecPrivate, unsigned int FourCC = 0, unsigned int BitsPerSample = 0);
- const char *GetLAVCSampleFormatName(AVSampleFormat s);
-Index: ffms-2.17-src/src/core/matroskaparser.h
-===================================================================
---- ffms-2.17-src.orig/src/core/matroskaparser.h
-+++ ffms-2.17-src/src/core/matroskaparser.h
-@@ -32,6 +32,11 @@
- #ifndef MATROSKA_PARSER_H
- #define MATROSKA_PARSER_H
-
-+/* Make sure we undefine CodecID, since libavcodec defines it as AVCodec ID */
-+#ifdef CodecID
-+#undef CodecID
-+#endif
-+
- /* Random notes:
- *
- * The parser does not process frame data in any way and does not read it into
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-10 1:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-10 1:59 [gentoo-commits] repo/gentoo:master commit in: media-libs/ffmpegsource/files/, media-libs/ffmpegsource/ Ian Delaney
-- strict thread matches above, loose matches on Subject: below --
2016-01-10 1:59 Ian Delaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox