From d67cad48704fe2351ec1d1ba85ab28c21b3ed698 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 22 Oct 2009 10:41:38 +0200 Subject: [PATCH] move package libdvdread: - no more need, move to pkg-archive branch --- packages/multimedia/libdvdread/build | 26 ---- packages/multimedia/libdvdread/install | 8 -- .../patches/10_brokent_udf_compat.diff | 123 ------------------ packages/multimedia/libdvdread/url | 1 - 4 files changed, 158 deletions(-) delete mode 100755 packages/multimedia/libdvdread/build delete mode 100755 packages/multimedia/libdvdread/install delete mode 100644 packages/multimedia/libdvdread/patches/10_brokent_udf_compat.diff delete mode 100644 packages/multimedia/libdvdread/url diff --git a/packages/multimedia/libdvdread/build b/packages/multimedia/libdvdread/build deleted file mode 100755 index ba40582161..0000000000 --- a/packages/multimedia/libdvdread/build +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build libdvdcss - -cd $PKG_BUILD -./configure2 --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ - --disable-debug \ - --disable-strip \ - --cc=$CC \ - -make - -$MAKEINSTALL - -$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ - $SYSROOT_PREFIX/usr/bin/dvdread-config - -mv $SYSROOT_PREFIX/usr/bin/dvdread-config $ROOT/$TOOLCHAIN/bin diff --git a/packages/multimedia/libdvdread/install b/packages/multimedia/libdvdread/install deleted file mode 100755 index a4c3582a22..0000000000 --- a/packages/multimedia/libdvdread/install +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install libdvdcss - -mkdir -p $INSTALL/usr/lib -cp $PKG_BUILD/obj/libdvdread.so $INSTALL/usr/lib/libdvdread.so.4 diff --git a/packages/multimedia/libdvdread/patches/10_brokent_udf_compat.diff b/packages/multimedia/libdvdread/patches/10_brokent_udf_compat.diff deleted file mode 100644 index 481b27b01b..0000000000 --- a/packages/multimedia/libdvdread/patches/10_brokent_udf_compat.diff +++ /dev/null @@ -1,123 +0,0 @@ -http://tobias.rautenkranz.ch/libdvdread_ifo.html.en ---- a/src/dvd_input.c 2005-09-19 15:43:08.000000000 +0200 -+++ b/src/dvd_input.c 2008-02-21 09:42:01.000000000 +0100 -@@ -376,6 +376,8 @@ - } - #endif /* HAVE_DVDCSS_DVDCSS_H */ - -+ fprintf(stderr, "libdvdread patched to play DVDs with DVD-Movie-Protect\n"); -+ - if(dvdcss_library != NULL) { - /* - char *psz_method = getenv( "DVDCSS_METHOD" ); ---- a/src/dvd_udf.c 2005-09-19 15:43:08.000000000 +0200 -+++ b/dvd_udf.c 2008-02-21 09:42:01.000000000 +0100 -@@ -39,10 +39,15 @@ - #include - #include - #include -+#ifndef __WIN32__ -+#include -+#endif - - #include "dvd_reader.h" - #include "dvd_udf.h" -+#include "ifo_types.h" -+#include "ifo_read.h" - - /* Private but located in/shared with dvd_reader.c */ - extern int UDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number, - size_t block_count, unsigned char *data, -@@ -962,7 +968,7 @@ - return part->valid; - } - --uint32_t UDFFindFile( dvd_reader_t *device, char *filename, -+uint32_t UDFFindFileReal( dvd_reader_t *device, char *filename, - uint32_t *filesize ) - { - uint8_t LogBlock_base[ DVD_VIDEO_LB_LEN + 2048 ]; -@@ -1065,6 +1071,83 @@ - } - } - -+/** -+ * Get the offset from the ifo files to allow playback of DVDs -+ * with a deliberately broken UDF file system (aka DVD-Movie-Protect). -+ * When the file is not an IFO or VOB, it calls the real UDF routine. -+ */ -+uint32_t UDFFindFile( dvd_reader_t *device, char *filename, -+ uint32_t *filesize ) -+{ -+#ifndef __WIN32__ -+ if (!fnmatch("/VIDEO_TS/VTS_[0-9][0-9]_[0-9].???", filename, FNM_PATHNAME)) { -+#else -+ if (strlen("/VIDEO_TS/VTS_01_1.VOB") == strlen(filename) -+ && !strncmp(filename, "/VIDEO_TS/VTS_", strlen("/VIDEO_TS/VTS_")) ) { -+#endif -+ size_t len = strlen(filename); -+ char *extension = &filename[len-3]; -+ if (!strcmp(extension, "IFO") || !strcmp(extension, "VOB")) { -+ int title = atoi(&filename[len-8]); -+ int part = atoi(&filename[len-5]); -+ -+ ifo_handle_t *ifo_handle = ifoOpen(device, 0); -+ if (0 == ifo_handle) -+ return 0; -+ -+ uint32_t tmp_filesize; -+ uint32_t offset = UDFFindFileReal(device, "/VIDEO_TS/VIDEO_TS.IFO", &tmp_filesize); -+ -+ int i; -+ for (i=0; itt_srpt->nr_of_srpts; i++) -+ if (title == ifo_handle->tt_srpt->title[i].title_set_nr) -+ break; -+ -+ if (i == ifo_handle->tt_srpt->nr_of_srpts) { -+ /* not found */ -+ ifoClose(ifo_handle); -+ return 0; -+ } -+ offset += ifo_handle->tt_srpt->title[i].title_set_sector; -+ ifoClose(ifo_handle); -+ -+ if (!strcmp(extension, "VOB")) { -+ ifo_handle = ifoOpen(device, title); -+ if (0 == ifo_handle) -+ return 0; -+ -+ switch(part) { -+ case 0: -+ if (0 == ifo_handle->vtsi_mat->vtsm_vobs) { -+ ifoClose(ifo_handle); -+ return 0; -+ } -+ offset += ifo_handle->vtsi_mat->vtsm_vobs; -+ break; -+ case 1: -+ if (0 == ifo_handle->vtsi_mat->vtstt_vobs) { -+ ifoClose(ifo_handle); -+ return 0; -+ } -+ offset += ifo_handle->vtsi_mat->vtstt_vobs; -+ break; -+ default: /* can't get other parts (also no need to) */ -+ offset = 0; -+ break; -+ } -+ -+ ifoClose(ifo_handle); -+ } -+ -+ -+ *filesize = 1000000; /* File size unknown */ -+ if (offset != 0) -+ return offset; -+ } -+ } -+ -+ return UDFFindFileReal( device, filename, filesize); -+} - - - /** diff --git a/packages/multimedia/libdvdread/url b/packages/multimedia/libdvdread/url deleted file mode 100644 index 2b348c5852..0000000000 --- a/packages/multimedia/libdvdread/url +++ /dev/null @@ -1 +0,0 @@ -http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdread-4.1.3.tar.bz2