2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, zlib }:
|
2012-11-30 11:39:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-10-18 12:34:54 +02:00
|
|
|
version = "1.0.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gpac";
|
2012-11-30 11:39:40 +01:00
|
|
|
|
2017-09-24 18:45:47 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gpac";
|
|
|
|
repo = "gpac";
|
|
|
|
rev = "v${version}";
|
2020-10-18 12:34:54 +02:00
|
|
|
sha256 = "0gj46jpprfqv3wyagblv3a52chbplyzhvpra66v63czjibqsslm5";
|
2012-11-30 11:39:40 +01:00
|
|
|
};
|
|
|
|
|
2020-08-16 02:57:05 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace 'dh_link' 'ln -s'
|
|
|
|
'';
|
|
|
|
|
2012-11-30 11:39:40 +01:00
|
|
|
# this is the bare minimum configuration, as I'm only interested in MP4Box
|
|
|
|
# For most other functionality, this should probably be extended
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2012-11-30 11:39:40 +01:00
|
|
|
|
2017-10-01 10:59:12 +02:00
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2012-11-30 11:39:40 +01:00
|
|
|
description = "Open Source multimedia framework for research and academic purposes";
|
|
|
|
longDescription = ''
|
|
|
|
GPAC is an Open Source multimedia framework for research and academic purposes.
|
|
|
|
The project covers different aspects of multimedia, with a focus on presentation
|
|
|
|
technologies (graphics, animation and interactivity) and on multimedia packaging
|
|
|
|
formats such as MP4.
|
|
|
|
|
|
|
|
GPAC provides three sets of tools based on a core library called libgpac:
|
|
|
|
|
|
|
|
A multimedia player, called Osmo4 / MP4Client,
|
|
|
|
A multimedia packager, called MP4Box,
|
|
|
|
And some server tools included in MP4Box and MP42TS applications.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://gpac.wp.imt.fr";
|
2017-10-01 10:59:12 +02:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ bluescreen303 mgdelacroix ];
|
|
|
|
platforms = platforms.linux;
|
2012-11-30 11:39:40 +01:00
|
|
|
};
|
|
|
|
}
|