head 1.12; access; symbols pkgsrc-2014Q4:1.11.0.2 pkgsrc-2014Q4-base:1.11 pkgsrc-2014Q3:1.10.0.46 pkgsrc-2014Q3-base:1.10 pkgsrc-2014Q2:1.10.0.44 pkgsrc-2014Q2-base:1.10 pkgsrc-2014Q1:1.10.0.42 pkgsrc-2014Q1-base:1.10 pkgsrc-2013Q4:1.10.0.40 pkgsrc-2013Q4-base:1.10 pkgsrc-2013Q3:1.10.0.38 pkgsrc-2013Q3-base:1.10 pkgsrc-2013Q2:1.10.0.36 pkgsrc-2013Q2-base:1.10 pkgsrc-2013Q1:1.10.0.34 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.10.0.32 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.10.0.30 pkgsrc-2012Q3-base:1.10 pkgsrc-2012Q2:1.10.0.28 pkgsrc-2012Q2-base:1.10 pkgsrc-2012Q1:1.10.0.26 pkgsrc-2012Q1-base:1.10 pkgsrc-2011Q4:1.10.0.24 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q3:1.10.0.22 pkgsrc-2011Q3-base:1.10 pkgsrc-2011Q2:1.10.0.20 pkgsrc-2011Q2-base:1.10 pkgsrc-2011Q1:1.10.0.18 pkgsrc-2011Q1-base:1.10 pkgsrc-2010Q4:1.10.0.16 pkgsrc-2010Q4-base:1.10 pkgsrc-2010Q3:1.10.0.14 pkgsrc-2010Q3-base:1.10 pkgsrc-2010Q2:1.10.0.12 pkgsrc-2010Q2-base:1.10 pkgsrc-2010Q1:1.10.0.10 pkgsrc-2010Q1-base:1.10 pkgsrc-2009Q4:1.10.0.8 pkgsrc-2009Q4-base:1.10 pkgsrc-2009Q3:1.10.0.6 pkgsrc-2009Q3-base:1.10 pkgsrc-2009Q2:1.10.0.4 pkgsrc-2009Q2-base:1.10 pkgsrc-2009Q1:1.10.0.2 pkgsrc-2009Q1-base:1.10 pkgsrc-2008Q4:1.8.0.6 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.8.0.4 pkgsrc-2008Q3-base:1.8 cube-native-xorg:1.8.0.2 cube-native-xorg-base:1.8 pkgsrc-2008Q2:1.7.0.18 pkgsrc-2008Q2-base:1.7 pkgsrc-2008Q1:1.7.0.16 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.14 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.12 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.10 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.8 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.6 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.4 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.2 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.6.0.2 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.3.0.6 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.4 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.2 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.2.0.2 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.1.1.1.0.8 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.6 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.4 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.2 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.12 date 2015.01.31.21.25.47; author adam; state dead; branches; next 1.11; commitid 8DRwcOhE5M8YPd8y; 1.11 date 2014.10.01.12.18.19; author wiz; state Exp; branches; next 1.10; commitid iwZzK0lzO0RfJuSx; 1.10 date 2009.02.23.11.09.27; author wiz; state Exp; branches; next 1.9; 1.9 date 2009.01.14.22.28.05; author jmcneill; state dead; branches; next 1.8; 1.8 date 2008.07.20.23.38.17; author dbj; state Exp; branches; next 1.7; 1.7 date 2006.04.15.21.23.10; author wiz; state dead; branches; next 1.6; 1.6 date 2006.02.17.15.39.21; author rillig; state Exp; branches; next 1.5; 1.5 date 2006.01.26.16.23.12; author xtraeme; state Exp; branches; next 1.4; 1.4 date 2006.01.23.22.09.26; author wiz; state dead; branches; next 1.3; 1.3 date 2005.05.25.17.11.52; author drochner; state Exp; branches; next 1.2; 1.2 date 2005.03.10.14.21.45; author tv; state Exp; branches; next 1.1; 1.1 date 2004.01.28.14.29.01; author recht; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.01.28.14.29.01; author recht; state Exp; branches; next ; desc @@ 1.12 log @Changes 5.0.2: * Add DVDOpenStream to open a dvd from a set of callbacks @ text @$NetBSD: patch-aa,v 1.11 2014/10/01 12:18:19 wiz Exp $ DragonFly support. --- src/bswap.h.orig 2014-01-02 15:37:37.000000000 +0000 +++ src/bswap.h @@@@ -73,6 +73,12 @@@@ #define B2N_32(x) x = ENDIAN_RET32(x) #define B2N_64(x) x = ENDIAN_RET64(x) +#elif defined(__DragonFly__) +#include +#define B2N_16(x) x = bswap16(x) +#define B2N_32(x) x = bswap32(x) +#define B2N_64(x) x = bswap64(x) + /* This is a slow but portable implementation, it has multiple evaluation * problems so beware. * Old FreeBSD's and Solaris don't have or any other such @ 1.11 log @Update to 5.0.0: libdvdread (5.0.0) * added support for Android * fix build support for OS/2 * fix crashes in IFO parsing (Shark Week The Great Bites Collection) libdvdread (4.9.9) * major cleanup * rewritten build system, including removal of configure2 and dvdread-config * fix numerous crashes * added QNX support * updated to support libdvdcss 1.3.0 * improved dlopen support for Win32 * simplify static linking of libdvdcss libdvdread (4.2.1) * fix huge memory consumption when reading DVDs: "Up" and "Dark Knight" * numerous crashes fixed, notably on ARCCOS protected DVDs, like Transformers 3, Brave, The Express, Sherlock Holmes and Cars 2, * fix packed structures with mingw gcc >= 4.7 @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.10 2009/02/23 11:09:27 wiz Exp $ @ 1.10 log @Fix build on DragonFlyBSD, using patch from Steve O'Hara-Smith on pkgsrc-users. No PKGREVISION bump because it shouldn't affect other platforms. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 1 --- src/bswap.h.orig 2008-09-06 21:55:51.000000000 +0000 d7 3 a9 3 @@@@ -65,6 +65,12 @@@@ #define B2N_32(x) x = be32toh(x) #define B2N_64(x) x = be64toh(x) @ 1.9 log @Update to libdvdread 4.1.3. This is a fun one, as dvdread/dvdnav is now maintained by the mplayer project and according to the changelog, this dvdread package was split out from dvdnav in 4.1.3. Check the ChangeLog in the distfile for the full drama. libdvdread (4.1.3) * an embarassing amount of fixes regarding potential memory and resource leaks (patches contributed by Erik Hovland) * added dvdread-config (dvdnav-config's younger brother) * added pkgconfig support * split dvdread to a separate tree @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.8 2008/07/20 23:38:17 dbj Exp $ d3 5 a7 10 --- dvdread/Makefile.am.orig 2006-10-06 01:12:31.000000000 -0700 +++ dvdread/Makefile.am 2007-05-09 09:53:33.000000000 -0700 @@@@ -6,7 +6,7 @@@@ dvdread_internal.h cmd_print.c \ md5.c md5.h libdvdread_la_LIBADD = @@DL_LIBS@@ @@CSS_LIBS@@ -libdvdread_la_LDFLAGS = -version-info 5:1:2 -export-symbols-regex "(DVD.*|ifo.*|nav.*|cmd.*)" +libdvdread_la_LDFLAGS = -version-info 5:1:2 -export-symbols-regex "(DVD.*|ifo.*|nav.*|cmd.*|UDFFindFile)" pkgincludedir = $(includedir)/dvdread d9 9 @ 1.8 log @add UDFFindFile to exported symbol set @ text @d1 1 a1 1 $NetBSD: $ @ 1.7 log @Remove workaround for ifo_types.h header to automatically include stdint.h or inttypes.h. 1. it is broken 2. the applications should be fixed instead, as the library authors intended when they changed the behaviour. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 2006/02/17 15:39:21 rillig Exp $ d3 11 a13 15 --- dvdread/ifo_types.h.orig Sun Sep 18 20:02:08 2005 +++ dvdread/ifo_types.h Fri Feb 17 16:30:23 2006 @@@@ -28,6 +28,12 @@@@ #error "Must include or before any libdvdread header." #endif #else +#ifdef HAVE_INTTYPES_H +#include +#endif +#ifdef HAVE_STDINT_H +#include +#endif #if !defined(UINT8_MAX) || !defined(UINT16_MAX) || !defined(INT32_MAX) #error "Must include or before any libdvdread header." #endif @ 1.6 log @Don't include and unconditionally. For example, Solaris 8 has only . @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2006/01/26 16:23:12 xtraeme Exp $ @ 1.5 log @Patch dvdread/ifo_types.h to include inttypes.h and stdint.h before checking for UINT{8,16,32}_MAX. It's better to take this way, otherwise we'd have to patch all dependent packages requiring libdvdread. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- dvdread/ifo_types.h.orig 2006-01-26 17:15:53.000000000 +0100 +++ dvdread/ifo_types.h 2006-01-26 17:16:08.000000000 +0100 @@@@ -28,6 +28,8 @@@@ d9 1 d11 2 d14 1 @ 1.4 log @Update to 0.9.5: 2006-01-22 22:54 bjorn * libdvdread.spec: updated to 0.9.5 2006-01-22 16:45 bjorn * configure.in, dvdread/Makefile.am, dvdread/dvd_reader.c, dvdread/dvd_reader.h: updated to version 0.9.5 updated version-info to 4.0.1 added function int DVDVersion(void) 2006-01-22 13:19 bjorn * dvdread/ifo_read.c: only allocate if there is anything to put in there 2006-01-18 19:32 bjorn * dvdread/dvd_reader.c: _DARWIN_ _is_ defined, reverting last patch 2006-01-13 17:49 bjorn * dvdread/dvd_reader.c: added __APPLE__ because __DARWIN__ is apparently not define anymore in Apple Darwin 7-8 2005-09-19 16:14 bjorn * dvdread/bswap.h: DragonFly patch from Joerg Sonnenberger 2005-09-19 15:44 bjorn * dvdread/ifo_read.c: added missing { } 2005-09-19 15:43 bjorn * dvdread/: dvd_input.c, dvd_udf.c: fixed warnings 2005-09-19 14:57 bjorn * dvdread/dvd_reader.c: it's good to return the value from the function too 2005-09-18 20:02 bjorn * dvdread/: bswap.h, dvd_reader.c, dvd_reader.h, ifo_types.h: slighlty modified patches for BeOS from Eric Petit 2005-09-15 18:54 bjorn * dvdread/ifo_print.c: c_adt_t should be cell_adr_t, fixes too short listing of cell address table 2005-09-15 14:11 bjorn * dvdread/ifo_read.c: don't use ifofile->file when it's NULL 2005-09-15 14:08 bjorn * dvdread/dvd_reader.c: missing { } 2005-09-15 14:03 bjorn * dvdread/dvd_reader.c: missing { } 2005-09-12 21:42 bjorn * dvdread/: dvd_input.c, dvd_reader.c, dvd_udf.c, dvdread_internal.h, ifo_print.c, ifo_read.c: only print error messages if verbose level is high enough verbose level -1: never print error messages 0: default, only internal errors, or misconfigurations. 1: normal errors, file not found, etc 2005-09-09 02:41 bjorn * src/: disc_id.c, ifo_dump.c, play_title.c, title_info.c: DVDFree() renamed to DVDFinish() 2005-09-09 02:39 bjorn * dvdread/: dvd_input.c, dvd_reader.c, dvd_reader.h, dvd_udf.c, dvd_udf.h: Support for multithreading apps Added DVDInit(), Renamed DVDFree() to DVDFinish() Better error reporting 2005-09-07 03:35 bjorn * dvdread/: dvd_reader.c, dvd_udf.c: Fixed some potential memory leaks. Removed some error messages. Set errno to report errors better. Check that we can find a root dir on the udf image otherwise fail openudf and fallback to openpath. 2005-09-06 21:23 bjorn * dvdread/bswap.h, dvdread/dvd_input.c, dvdread/dvd_input.h, dvdread/dvd_reader.c, dvdread/dvd_reader.h, dvdread/dvd_udf.c, dvdread/dvd_udf.h, dvdread/dvdread_internal.h, dvdread/ifo_print.c, dvdread/ifo_print.h, dvdread/ifo_read.c, dvdread/ifo_read.h, dvdread/ifo_types.h, dvdread/md5.c, dvdread/md5.h, dvdread/nav_print.c, dvdread/nav_print.h, dvdread/nav_read.c, dvdread/nav_read.h, dvdread/nav_types.h, src/ifo_dump.c, src/play_title.c, src/title_info.c: indentation cleanup only 2005-09-06 01:53 bjorn * dvdread/dvd_udf.c: align buffers used to read sectors to 2048 bytes 2005-09-06 00:03 bjorn * dvdread/: dvd_reader.c, dvd_reader.h: align all buffers used to read from the dvd to 2048 bytes. 2005-09-06 00:01 bjorn * dvdread/dvd_input.c: if environment variable DVDREAD_USE_DIRECT is set, files/devices will be opened with the O_DIRECT flag (in linux and systems that define O_DIRECT). This is only in effect when libdvdread is _not_ using libdvdcss. When using O_DIRECT, reads must be done to buffers aligned to device block sizes (or 512 bytes on linux 2.6). All internal reads from libdvdread are done to 2048 bytes aligned buffers. 2005-09-05 23:46 bjorn * configure.in: add check for uintptr_t typo fix, remove deprecated flag for gcc 2005-08-31 04:02 bjorn * configure.in: rename to -includes and -libs 2005-08-31 03:51 bjorn * configure.in: added --with-libdvdcss-include and -lib to handle the case when the include and lib dir are not in the same prefix or the are named differently, like lib64 instead of lib 2005-08-30 17:51 bjorn * src/: disc_id.c, play_title.c, title_info.c: added DVDFree() to be able to check memory leaks 2005-08-30 17:44 bjorn * dvdread/dvd_reader.c: fail DVDDiscID if no ifo files are found 2005-08-30 17:01 bjorn * src/ifo_dump.c: added close/free to keep memory checker from complaining 2005-08-30 16:55 bjorn * dvdread/: dvd_udf.c, ifo_read.c: fixed some memory leaks, code cleanup 2005-08-30 16:54 bjorn * dvdread/: dvd_input.c, dvd_input.h, dvd_reader.c, dvd_reader.h: added DVDFree(void) that dlcloses the dlopened libs 2004-10-21 12:53 bjorn * dvdread/ifo_print.c: add specific printf for no fp pgc 2004-10-20 22:35 bjorn * dvdread/ifo_print.c: don't try to print a PGC that doesn't exist 2004-09-19 21:21 hjort * dvdread/ifo_read.c: Use correct (PGCI_SRP_SIZE) define for the PGCI parse loop. 2004-09-19 21:19 hjort * dvdread/dvd_input.c: Actually malloc the size of the struct and not just a pointers worth of space. 2004-08-17 20:46 bjorn * dvdread/ifo_print.c: fixed printing of drc/quantization and code_extension 2004-04-16 00:33 hjort * dvdread/ifo_types.h: Correct PGC still_time parsing, was swapped with pg_playback_mode. 2004-04-04 22:41 hjort * dvdread/ifo_read.c: Make libdvdread try the BUP version if anything fails for the IFO. Patch from Keith Lyon. 2004-04-04 22:02 hjort * dvdread/: dvd_input.c, ifo_read.c, ifo_types.h: Make constants unsigned. Change command tbl zero_1 to last_byte. Update reading of command tbl to handle last_byte. 2003-11-04 15:12 hjort * dvdread/ifo_types.h: Correct location of ATTRIBUTE_PACKED. 2003-08-05 14:44 hjort * dvdread/dvd_reader.c: Correct return code for DVDISOVolumeInfo. 2003-07-13 22:16 hjort * dvdread/dvd_reader.c: Bug fix for BSD device mangling. 2003-07-05 20:30 hjort * acinclude.m4, configure.in, dvdread/dvd_input.c, dvdread/dvd_reader.c, dvdread/dvd_udf.c: More WIN32 fixes. 2003-06-22 18:27 hjort * TODO, dvdread/dvd_reader.c, dvdread/ifo_types.h, dvdread/nav_types.h, src/disc_id.c, src/ifo_dump.c, src/play_title.c, src/title_info.c: Enable use of either stdint.h or inttypes.h 2003-06-22 18:26 hjort * configure.in: Add a define of ssize_t for *win systems. 2003-06-18 15:35 hjort * dvdread/bswap.h: Add WIN32. 2003-06-18 15:00 hjort * dvdread/: dvd_udf.c, dvd_udf.h, ifo_print.c, ifo_read.c, nav_print.c, nav_read.c: Guard and include inttypes.h and stdint.h. 2003-05-30 00:05 hjort * dvdread/: Makefile.am, ifo_print.c, nav_print.c: Make use of the DVD command pretty printer. 2003-05-29 23:54 hjort * dvdread/ifo_read.c: Handle VTS_TMAPT as optional. 2003-04-28 19:52 hjort * dvdread/dvd_reader.c: Fix wrong function declaration for DVDFileSeek, bug from Diego Biurrun & Co. 2003-03-24 17:07 hjort * configure.in: Improve the testing for libdvdcss. 2003-03-13 16:33 hjort * dvdread/bswap.h: Fix FreeBSD pre 5.0 2003-02-22 22:42 hjort * configure.in: Version 0.9.4. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2005/05/25 17:11:52 drochner Exp $ d3 11 a13 38 --- dvdread/bswap.h.orig 2002-12-15 01:09:12.000000000 +0100 +++ dvdread/bswap.h @@@@ -53,19 +53,33 @@@@ #define B2N_32(x) x = swap32(x) #define B2N_64(x) x = swap64(x) -#elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 +#elif defined(__DragonFly__) #include #define B2N_16(x) x = be16toh(x) #define B2N_32(x) x = be32toh(x) #define B2N_64(x) x = be64toh(x) +#elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 +#include +#define B2N_16(x) x = be16toh(x) +#define B2N_32(x) x = be32toh(x) +#define B2N_64(x) x = \ + ((((x) & 0xff00000000000000) >> 56) | \ + (((x) & 0x00ff000000000000) >> 40) | \ + (((x) & 0x0000ff0000000000) >> 24) | \ + (((x) & 0x000000ff00000000) >> 8) | \ + (((x) & 0x00000000ff000000) << 8) | \ + (((x) & 0x0000000000ff0000) << 24) | \ + (((x) & 0x000000000000ff00) << 40) | \ + (((x) & 0x00000000000000ff) << 56)) + /* This is a slow but portable implementation, it has multiple evaluation * problems so beware. * Old FreeBSD's and Solaris don't have or any other such * functionality! */ -#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) +#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(__INTERIX) #define B2N_16(x) \ x = ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)) @ 1.3 log @add DragonFly support, from Joerg Sonnenberger per PR pkg/30314 @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Add bswap conditional for Interix. @ text @d3 1 a3 1 --- dvdread/bswap.h.orig 2002-12-14 19:09:12.000000000 -0500 d5 6 a10 1 @@@@ -57,7 +57,15 @@@@ d14 6 a19 1 -#define B2N_64(x) x = be64toh(x) d29 1 a29 1 d32 1 a32 1 @@@@ -65,7 +73,7 @@@@ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2003/12/27 04:02:00 wiz Exp $ d3 2 a4 2 --- dvdread/bswap.h.orig Wed Mar 5 23:13:17 2003 +++ dvdread/bswap.h Wed Mar 5 23:14:24 2003 d22 9 @ 1.1.1.1 log @move libdvdread to the multimedia category (from misc) @ text @@