libbluray: adopt and update the package to meet cmplayer's requirements
This commit is contained in:
parent
3bed4d44d5
commit
ab56d9c344
@ -1,37 +1,47 @@
|
|||||||
{stdenv, fetchgit, autoconf, automake, libtool, libaacs ? null, jdk ? null, ant ? null, withAACS ? false}:
|
{ stdenv, fetchurl, pkgconfig
|
||||||
|
, withAACS ? false, libaacs ? null, jdk ? null, ant ? null
|
||||||
|
, withMetadata ? true, libxml2 ? null
|
||||||
|
, withFonts ? true, freetype ? null
|
||||||
|
}:
|
||||||
|
|
||||||
assert withAACS -> jdk != null && ant != null && libaacs != null;
|
assert withAACS -> jdk != null && ant != null && libaacs != null;
|
||||||
|
assert withMetadata -> libxml2 != null;
|
||||||
|
assert withFonts -> freetype != null;
|
||||||
|
|
||||||
# Info on how to use:
|
# Info on how to use:
|
||||||
# https://wiki.archlinux.org/index.php/BluRay
|
# https://wiki.archlinux.org/index.php/BluRay
|
||||||
|
|
||||||
let baseName = "libbluray";
|
stdenv.mkDerivation rec {
|
||||||
version = "0.2.1";
|
baseName = "libbluray";
|
||||||
|
version = "0.6.0";
|
||||||
|
name = "${baseName}-${version}";
|
||||||
|
|
||||||
in
|
src = fetchurl {
|
||||||
|
url = "ftp://ftp.videolan.org/pub/videolan/${baseName}/${version}/${name}.tar.bz2";
|
||||||
stdenv.mkDerivation {
|
sha256 = "0zsk16p7rxwbyizm87i7x2fcy3gwjfnlfd2gi2n17fv6gajvsyv2";
|
||||||
name = "${baseName}-${version}p1";
|
|
||||||
|
|
||||||
src = fetchgit {
|
|
||||||
url = git://git.videolan.org/libbluray.git;
|
|
||||||
rev = "3b9a9f044644a6abe9cb09377f714ded9fdd6c87";
|
|
||||||
sha256 = "551b623e76c2dba44b5490fb42ccdc491b28cd42841de28237b8edbed0f0711c";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [autoconf automake libtool];
|
nativeBuildInputs = with stdenv.lib;
|
||||||
buildInputs = stdenv.lib.optionals withAACS [jdk ant libaacs];
|
[pkgconfig]
|
||||||
NIX_LDFLAGS = stdenv.lib.optionalString withAACS "-laacs";
|
++ optional withAACS ant
|
||||||
|
;
|
||||||
|
|
||||||
preConfigure = "./bootstrap";
|
buildInputs = with stdenv.lib;
|
||||||
configureFlags = ["--disable-static"] ++ stdenv.lib.optionals withAACS ["--enable-bdjava" "--with-jdk=${jdk}"];
|
optionals withAACS [jdk libaacs]
|
||||||
|
++ optional withMetadata libxml2
|
||||||
|
++ optional withFonts freetype
|
||||||
|
;
|
||||||
|
|
||||||
# From Handbrake
|
configureFlags = with stdenv.lib;
|
||||||
patches = [ ./A01-filter-dup.patch ];
|
optionals withAACS ["--enable-bdjava" "--with-jdk=${jdk}"]
|
||||||
|
++ optional (! withMetadata) "--without-libxml2"
|
||||||
|
++ optional (! withFonts) "--without-freetype"
|
||||||
|
;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.videolan.org/developers/libbluray.html;
|
homepage = http://www.videolan.org/developers/libbluray.html;
|
||||||
description = "Library to access Blu-Ray disks for video playback";
|
description = "Library to access Blu-Ray disks for video playback";
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
|
maintainers = [ maintainers.abbradar ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user