2022-04-29 09:57:05 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }:
|
2014-12-17 00:24:18 +00:00
|
|
|
|
2015-01-12 19:13:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libmediainfo";
|
2024-03-30 16:44:37 +00:00
|
|
|
version = "24.03";
|
2023-04-28 12:20:51 +00:00
|
|
|
|
2014-12-17 00:24:18 +00:00
|
|
|
src = fetchurl {
|
2017-10-11 08:13:00 +00:00
|
|
|
url = "https://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz";
|
2024-03-30 16:44:37 +00:00
|
|
|
hash = "sha256-zCu0TkB8iQq1ZpNMVnY5GFBatYwUE0tT8NHanuokLI0=";
|
2014-12-17 00:24:18 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2022-04-29 09:57:05 +00:00
|
|
|
buildInputs = [ zlib ];
|
|
|
|
propagatedBuildInputs = [ libzen ];
|
2021-10-17 19:00:43 +00:00
|
|
|
|
2022-09-27 05:23:16 +00:00
|
|
|
sourceRoot = "MediaInfoLib/Project/GNU/Library";
|
|
|
|
|
|
|
|
postPatch = lib.optionalString (stdenv.cc.targetPrefix != "") ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "pkg-config " "${stdenv.cc.targetPrefix}pkg-config "
|
|
|
|
'';
|
2014-12-17 00:24:18 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-shared" ];
|
|
|
|
|
2017-11-08 10:33:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-17 00:24:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -vD -m 644 libmediainfo.pc "$out/lib/pkgconfig/libmediainfo.pc"
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-12-17 00:24:18 +00:00
|
|
|
description = "Shared library for mediainfo";
|
2020-04-06 00:36:54 +00:00
|
|
|
homepage = "https://mediaarea.net/";
|
2023-07-09 00:07:00 +00:00
|
|
|
changelog = "https://mediaarea.net/MediaInfo/ChangeLog";
|
2016-03-12 14:13:39 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.devhell ];
|
2014-12-17 00:24:18 +00:00
|
|
|
};
|
|
|
|
}
|