diff options
author | Nikolay Amiantov <nikoamia@gmail.com> | 2014-09-18 05:42:08 +0400 |
---|---|---|
committer | Nikolay Amiantov <nikoamia@gmail.com> | 2014-09-18 14:08:39 +0400 |
commit | ab56d9c3441dbc935908c61e69a95c6af6e5b687 (patch) | |
tree | f083c22280afceb4e064752650569eabf0e65b14 /pkgs/development/libraries/libbluray | |
parent | 3bed4d44d514d1fbd72da9d801410d2bf158a9bd (diff) | |
download | nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.tar nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.tar.gz nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.tar.bz2 nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.tar.lz nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.tar.xz nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.tar.zst nixlib-ab56d9c3441dbc935908c61e69a95c6af6e5b687.zip |
libbluray: adopt and update the package to meet cmplayer's requirements
Diffstat (limited to 'pkgs/development/libraries/libbluray')
-rw-r--r-- | pkgs/development/libraries/libbluray/default.nix | 52 |
1 files changed, 31 insertions, 21 deletions
diff --git a/pkgs/development/libraries/libbluray/default.nix b/pkgs/development/libraries/libbluray/default.nix index f0eea80e89d2..34352484738c 100644 --- a/pkgs/development/libraries/libbluray/default.nix +++ b/pkgs/development/libraries/libbluray/default.nix @@ -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 withMetadata -> libxml2 != null; +assert withFonts -> freetype != null; # Info on how to use: # https://wiki.archlinux.org/index.php/BluRay -let baseName = "libbluray"; - version = "0.2.1"; +stdenv.mkDerivation rec { + baseName = "libbluray"; + version = "0.6.0"; + name = "${baseName}-${version}"; -in - -stdenv.mkDerivation { - name = "${baseName}-${version}p1"; - - src = fetchgit { - url = git://git.videolan.org/libbluray.git; - rev = "3b9a9f044644a6abe9cb09377f714ded9fdd6c87"; - sha256 = "551b623e76c2dba44b5490fb42ccdc491b28cd42841de28237b8edbed0f0711c"; + src = fetchurl { + url = "ftp://ftp.videolan.org/pub/videolan/${baseName}/${version}/${name}.tar.bz2"; + sha256 = "0zsk16p7rxwbyizm87i7x2fcy3gwjfnlfd2gi2n17fv6gajvsyv2"; }; - nativeBuildInputs = [autoconf automake libtool]; - buildInputs = stdenv.lib.optionals withAACS [jdk ant libaacs]; - NIX_LDFLAGS = stdenv.lib.optionalString withAACS "-laacs"; + nativeBuildInputs = with stdenv.lib; + [pkgconfig] + ++ optional withAACS ant + ; - preConfigure = "./bootstrap"; - configureFlags = ["--disable-static"] ++ stdenv.lib.optionals withAACS ["--enable-bdjava" "--with-jdk=${jdk}"]; + buildInputs = with stdenv.lib; + optionals withAACS [jdk libaacs] + ++ optional withMetadata libxml2 + ++ optional withFonts freetype + ; - # From Handbrake - patches = [ ./A01-filter-dup.patch ]; + configureFlags = with stdenv.lib; + 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; description = "Library to access Blu-Ray disks for video playback"; - license = stdenv.lib.licenses.lgpl21; + license = licenses.lgpl21; + maintainers = [ maintainers.abbradar ]; }; } |