2014-12-17 01:24:18 +01:00
|
|
|
{ stdenv, fetchurl, automake, autoconf, libtool, pkgconfig, libzen, zlib }:
|
|
|
|
|
2015-01-12 20:13:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-21 00:01:37 +02:00
|
|
|
version = "0.7.76";
|
2014-12-17 01:24:18 +01:00
|
|
|
name = "libmediainfo-${version}";
|
|
|
|
src = fetchurl {
|
2015-07-04 16:55:15 +02:00
|
|
|
url = "http://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz";
|
2015-08-21 00:01:37 +02:00
|
|
|
sha256 = "088hxj3x12ww8zym3g6izz1w9m6wxgdy7hc2m089cd4sv9dlccnq";
|
2014-12-17 01:24:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ automake autoconf libtool pkgconfig libzen zlib ];
|
|
|
|
|
|
|
|
sourceRoot = "./MediaInfoLib/Project/GNU/Library/";
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-shared" ];
|
2015-08-21 00:01:37 +02:00
|
|
|
preConfigure = "sh autogen.sh";
|
2014-12-17 01:24:18 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -vD -m 644 libmediainfo.pc "$out/lib/pkgconfig/libmediainfo.pc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Shared library for mediainfo";
|
2014-12-20 16:40:16 +01:00
|
|
|
homepage = http://mediaarea.net/;
|
2014-12-17 01:24:18 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2015-04-04 07:10:20 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-12-18 20:52:37 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.devhell ];
|
2014-12-17 01:24:18 +01:00
|
|
|
};
|
|
|
|
}
|