summaryrefslogtreecommitdiff
path: root/repo/libdvdcss
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/libdvdcss
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/libdvdcss')
-rw-r--r--repo/libdvdcss/libdvdcss.xibuild35
-rw-r--r--repo/libdvdcss/replace-error.patch101
2 files changed, 136 insertions, 0 deletions
diff --git a/repo/libdvdcss/libdvdcss.xibuild b/repo/libdvdcss/libdvdcss.xibuild
new file mode 100644
index 0000000..b5d7ca4
--- /dev/null
+++ b/repo/libdvdcss/libdvdcss.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="libdvdcss"
+DESC="Library for accessing DVDs like a block device without having to bother about the decryption"
+
+MAKEDEPS="file linux-headers"
+
+PKG_VER=1.4.3
+SOURCE="https://download.videolan.org/pub/libdvdcss/$PKG_VER/libdvdcss-$PKG_VER.tar.bz2"
+
+ADDITIONAL="
+replace-error.patch
+"
+
+prepare() {
+ apply_patches
+}
+
+build() {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ make check
+}
+
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+
diff --git a/repo/libdvdcss/replace-error.patch b/repo/libdvdcss/replace-error.patch
new file mode 100644
index 0000000..194fef0
--- /dev/null
+++ b/repo/libdvdcss/replace-error.patch
@@ -0,0 +1,101 @@
+--- a/src/ioctl.c
++++ b/src/ioctl.c
+@@ -220,7 +220,7 @@
+ *pi_copyright = p_buffer[ 4 ];
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -353,7 +353,7 @@
+ memcpy( p_key, p_buffer + 4, DVD_DISCKEY_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -483,7 +483,7 @@
+ memcpy( p_key, p_buffer + 5, DVD_KEY_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+
+@@ -580,7 +580,7 @@
+ *pi_agid = p_buffer[ 7 ] >> 6;
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -688,7 +688,7 @@
+ memcpy( p_challenge, p_buffer + 4, DVD_CHALLENGE_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -798,7 +798,7 @@
+ *pi_asf = p_buffer[ 7 ] & 1;
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -901,7 +901,7 @@
+ memcpy( p_key, p_buffer + 4, DVD_KEY_SIZE );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -984,7 +984,7 @@
+ &sdc, sizeof(sdc), &ulParamLen,
+ NULL, 0, &ulDataLen);
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -1093,7 +1093,7 @@
+ p_buffer, sizeof(p_buffer), &ulDataLen );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -1202,7 +1202,7 @@
+ p_buffer, sizeof(p_buffer), &ulDataLen );
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;
+@@ -1329,7 +1329,7 @@
+ *p_scheme = p_buffer[ 6 ];
+
+ #else
+-# error "DVD ioctls are unavailable on this system"
++ printf("DVD ioctls are unavailable on this system\n");
+
+ #endif
+ return i_ret;