Subject: [bug#29964] [PATCH] gnu: vlc: Enable libdvdread and libdvdcss support.

From: Roel Janssen <[email-masked]>
Date: Wed, 03 Jan 2018 18:53:10 +0100

Dear Guix,

The following patch adds support for libdvdcss to VLC.  It does so by
building libdvdread with libdvdcss support, and in turn adding
libdvdread as an input to VLC.

Kind regards,
Roel Janssen

>From bd9d9af018b6db5f1ab17aa9dcdcba45f3a669a8 Mon Sep 17 00:00:00 2001
From: Roel Janssen <[email-masked]>
Date: Wed, 3 Jan 2018 18:45:32 +0100
Subject: [PATCH] gnu: vlc: Enable libdvdread and libdvdcss support.

* gnu/packages/video.scm (libdvdread): Compile with libdvdcss support;
  (vlc): Add libdvdread as input.
---
 gnu/packages/video.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index b98173d74..88c5561b6 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -831,6 +831,7 @@ audio/video codec library.")
        ("libcddb" ,libcddb)
        ("libdvbpsi" ,libdvbpsi)
        ("libgcrypt" ,libgcrypt)
+       ("libdvdread" ,libdvdread)
        ("libkate" ,libkate)
        ("libmad" ,libmad)
        ("libogg" ,libogg)
@@ -1359,6 +1360,12 @@ players, like VLC or MPlayer.")
     (build-system gnu-build-system)
     (home-page "http://dvdnav.mplayerhq.hu/")
     (synopsis "Library for reading video DVDs")
+    (arguments
+     `(#:configure-flags '("--with-libdvdcss=yes")))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libdvdcss" ,libdvdcss)))
     (description
      "Libdvdread provides a simple foundation for reading DVD video
 disks.  It provides the functionality that is required to access many
-- 
2.15.1