2020-06-20 11:59:31 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchurl }:
|
2010-09-14 15:29:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-20 11:59:31 +01:00
|
|
|
pname = "mp4v2";
|
|
|
|
version = "4.1.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
# 2020-06-20: THE current upstream, maintained and used in distros fork.
|
|
|
|
owner = "TechSmith";
|
|
|
|
repo = "mp4v2";
|
|
|
|
rev = "Release-ThirdParty-MP4v2-${version}";
|
|
|
|
sha256 = "053a0lgy819sbz92cfkq0vmkn2ky39bva554pj4ypky1j6vs04fv";
|
2010-09-14 15:29:31 +01:00
|
|
|
};
|
2010-09-15 13:57:49 +01:00
|
|
|
|
2014-05-04 00:44:16 +01:00
|
|
|
patches = [
|
2018-02-18 13:33:37 +00:00
|
|
|
(fetchurl {
|
2020-06-20 11:59:31 +01:00
|
|
|
# 2020-06-19: NOTE: # Fix build with C++11
|
|
|
|
# Close when https://github.com/TechSmith/mp4v2/pull/36 merged/closed.
|
|
|
|
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/libmp4v2-c++11.patch?id=203f5a72bc97ffe089b424c47b07dd9eaea35713";
|
2018-02-18 13:33:37 +00:00
|
|
|
sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w";
|
|
|
|
})
|
2014-05-04 00:44:16 +01:00
|
|
|
];
|
2018-02-18 13:33:37 +00:00
|
|
|
|
2011-05-12 21:43:33 +01:00
|
|
|
# `faac' expects `mp4.h'.
|
|
|
|
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
|
|
|
|
|
2017-12-09 11:44:22 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-09-15 13:57:49 +01:00
|
|
|
meta = {
|
2020-06-20 11:59:31 +01:00
|
|
|
description = "Provides functions to read, create, and modify mp4 files";
|
2018-12-28 14:44:24 +00:00
|
|
|
longDescription = ''
|
|
|
|
MP4v2 library provides an API to work with mp4 files
|
|
|
|
as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems.
|
|
|
|
This container format is derived from Apple's QuickTime format.
|
|
|
|
'';
|
2020-06-20 11:59:31 +01:00
|
|
|
homepage = "https://github.com/TechSmith/mp4v2";
|
2018-12-28 14:45:00 +00:00
|
|
|
maintainers = [ lib.maintainers.Anton-Latukha ];
|
2017-12-09 11:44:22 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.mpl11;
|
2010-09-15 13:57:49 +01:00
|
|
|
};
|
2010-09-14 15:29:31 +01:00
|
|
|
}
|