mp4v2: 2.0.0 -> 4.1.3

Switch into maintanable fork. It is the community central fork.

Remove old patch, use new minor upstream patch to compile.

I weighted-in on the patch reasoning to be merged.

Strictify hardening.

Documentation update

M  pkgs/development/libraries/mp4v2/default.nix
This commit is contained in:
Anton-Latukha 2020-06-20 13:59:31 +03:00
parent eed368ac4e
commit c281c84a1e
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41

View File

@ -1,39 +1,39 @@
{ stdenv, lib, fetchurl }: { stdenv, lib, fetchFromGitHub, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mp4v2-2.0.0"; pname = "mp4v2";
version = "4.1.3";
src = fetchurl { src = fetchFromGitHub {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${name}.tar.bz2"; # 2020-06-20: THE current upstream, maintained and used in distros fork.
sha256 = "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"; owner = "TechSmith";
repo = "mp4v2";
rev = "Release-ThirdParty-MP4v2-${version}";
sha256 = "053a0lgy819sbz92cfkq0vmkn2ky39bva554pj4ypky1j6vs04fv";
}; };
patches = [ patches = [
(fetchurl { (fetchurl {
name = "gcc-7.patch"; # 2020-06-19: NOTE: # Fix build with C++11
url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/" # Close when https://github.com/TechSmith/mp4v2/pull/36 merged/closed.
+ "0004-Fix-GCC7-build.patch?id=d7aeedabb"; url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/libmp4v2-c++11.patch?id=203f5a72bc97ffe089b424c47b07dd9eaea35713";
sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w"; sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w";
}) })
]; ];
buildFlags = [ "CXXFLAGS=-std=c++03" ];
# `faac' expects `mp4.h'. # `faac' expects `mp4.h'.
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h"; postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
hardeningDisable = [ "format" ];
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = {
description = "Abandoned library. Provides functions to read, create, and modify mp4 files"; description = "Provides functions to read, create, and modify mp4 files";
longDescription = '' longDescription = ''
MP4v2 library provides an API to work with mp4 files MP4v2 library provides an API to work with mp4 files
as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems. as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems.
This container format is derived from Apple's QuickTime format. This container format is derived from Apple's QuickTime format.
''; '';
homepage = "https://code.google.com/archive/p/mp4v2/"; homepage = "https://github.com/TechSmith/mp4v2";
maintainers = [ lib.maintainers.Anton-Latukha ]; maintainers = [ lib.maintainers.Anton-Latukha ];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
license = lib.licenses.mpl11; license = lib.licenses.mpl11;