diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /media-libs/libmp4v2 | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'media-libs/libmp4v2')
| -rw-r--r-- | media-libs/libmp4v2/Manifest | 1 | ||||
| -rw-r--r-- | media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch | 36 | ||||
| -rw-r--r-- | media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch | 18 | ||||
| -rw-r--r-- | media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch | 20 | ||||
| -rw-r--r-- | media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild | 50 | ||||
| -rw-r--r-- | media-libs/libmp4v2/metadata.xml | 15 |
6 files changed, 140 insertions, 0 deletions
diff --git a/media-libs/libmp4v2/Manifest b/media-libs/libmp4v2/Manifest new file mode 100644 index 000000000000..1d76d432b5a9 --- /dev/null +++ b/media-libs/libmp4v2/Manifest @@ -0,0 +1 @@ +DIST mp4v2-2.0.0.tar.bz2 495672 BLAKE2B 966c90b443bd6f7a81c96fd12f95b00c3ec89cd476aa0fff3e0450b315d54543578ef953c5e3f28d52ca800a0768c601dddc8e99a32ff512767cd65c12832bd5 SHA512 15eb882f33d72d4209053b54c883b67715f539c33096705a0e7bc79015b93f6f3ac80ae29c65a0ffe9eab1bf0dedf07198bdee23fa6eafcd6ccb34f984484be0 diff --git a/media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch new file mode 100644 index 000000000000..34aa81cc5e0e --- /dev/null +++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch @@ -0,0 +1,36 @@ +From edc4f0ad8f37bb8aeae4e3ea34766dc6cdbb2f15 Mon Sep 17 00:00:00 2001 +From: David Carlos Manuelda <StormByte@gmail.com> +Date: Tue, 7 Aug 2018 05:42:28 +0200 +Subject: [PATCH] Fix clang compilation + +--- + src/mp4.cpp | 2 +- + src/mp4util.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/mp4.cpp b/src/mp4.cpp +index 1016f79..d576103 100644 +--- a/src/mp4.cpp ++++ b/src/mp4.cpp +@@ -896,7 +896,7 @@ MP4FileHandle MP4ReadProvider( const char* fileName, const MP4FileProvider* file + } + + catch (...) { +- return MP4_INVALID_TRACK_ID; ++ return (mp4v2_ismacrypParams *)MP4_INVALID_TRACK_ID; + } + } + +diff --git a/src/mp4util.h b/src/mp4util.h +index 1fbbd81..b33bb44 100644 +--- a/src/mp4util.h ++++ b/src/mp4util.h +@@ -33,7 +33,7 @@ namespace mp4v2 { namespace impl { + #ifndef ASSERT + # define ASSERT(expr) \ + if (!(expr)) { \ +- throw new Exception("assert failure: "LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \ ++ throw new Exception("assert failure: " LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \ + } + #endif +
\ No newline at end of file diff --git a/media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch new file mode 100644 index 000000000000..156f0fcbaa0d --- /dev/null +++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-gcc7.patch @@ -0,0 +1,18 @@ +https://bugs.gentoo.org/show_bug.cgi?id=600892 + +Description: Fix pointer comparison (FTBFS on GCC 7) +Author: Philip Chung <philipchung1995@yahoo.com> +Bug-Debian: https://bugs.debian.org/853560 +Last-Update: 2017-09-04 + +--- a/src/rtphint.cpp ++++ b/src/rtphint.cpp +@@ -339,7 +339,7 @@ void MP4RtpHintTrack::GetPayload( + pSlash = strchr(pSlash, '/'); + if (pSlash != NULL) { + pSlash++; +- if (pSlash != '\0') { ++ if (*pSlash != '\0') { + length = (uint32_t)strlen(pRtpMap) - (pSlash - pRtpMap); + *ppEncodingParams = (char *)MP4Calloc(length + 1); + strncpy(*ppEncodingParams, pSlash, length); diff --git a/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch new file mode 100644 index 000000000000..182d41bb8123 --- /dev/null +++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch @@ -0,0 +1,20 @@ +From: "Matteo F. Vescovi" <mfv@debian.org> +Date: Thu, 5 Nov 2015 15:26:00 +0100 +Subject: Fix_mp4tags_corruption + +--- + util/mp4tags.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/util/mp4tags.cpp b/util/mp4tags.cpp +index 1b9e866..80e89d4 100644 +--- a/util/mp4tags.cpp ++++ b/util/mp4tags.cpp +@@ -539,6 +539,7 @@ extern "C" int + else { + fprintf( stderr, "Art file %s not found\n", tags[i] ); + } ++ break; + } + case OPT_ALBUM_ARTIST: + MP4TagsSetAlbumArtist( mdata, tags[i] ); diff --git a/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild b/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild new file mode 100644 index 000000000000..58d839ef5f38 --- /dev/null +++ b/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P=${P/lib} +inherit libtool + +DESCRIPTION="Functions for accessing ISO-IEC:14496-1:2001 MPEG-4 standard" +HOMEPAGE="https://code.google.com/p/mp4v2/" +SRC_URI="https://mp4v2.googlecode.com/files/${MY_P}.tar.bz2" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="static-libs test utils" +RESTRICT="!test? ( test )" + +BDEPEND=" + sys-apps/sed + test? ( dev-util/dejagnu ) + utils? ( sys-apps/help2man ) +" + +DOCS=( doc/{Authors,BuildSource,Documentation,ReleaseNotes,ToolGuide}.txt README ) + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}/${P}-gcc7.patch" + "${FILESDIR}/${P}-mp4tags-corruption.patch" + "${FILESDIR}/${P}-clang.patch" +) + +src_prepare() { + default + elibtoolize +} + +src_configure() { + econf \ + --disable-gch \ + $(use_enable utils util) \ + $(use_enable static-libs static) +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die +} diff --git a/media-libs/libmp4v2/metadata.xml b/media-libs/libmp4v2/metadata.xml new file mode 100644 index 000000000000..13fff3630b8f --- /dev/null +++ b/media-libs/libmp4v2/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> + </maintainer> + <use> + <flag name="utils">Install command-line utilities</flag> + </use> + <upstream> + <remote-id type="google-code">mp4v2</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
