Projects
home:zaitor:branches:Essentials
libdvdcss2
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Difference Between Revision 3 and
Essentials
/
libdvdcss2
View file
libdvdcss2.changes
Changed
@@ -1,4 +1,50 @@ ------------------------------------------------------------------- +Tue Oct 13 04:55:12 UTC 2026 - Bjørn Lie <zaitor@opensuse.org> + +- Update to version 1.6.0: + * Add support for CPRM (Content Protection for Recordable Media) + decryption for CPRM-protected DVD media (DVD-RW for example) + * Add dvdcss_get_encryption_type function to the public API + This allows querying the disc's copyright protection system + type (CPST) to detect CSS/CPPM and CPRM protected media + * Update dvdcpxm_setup to allow context reuse via NULL arguments + and to accept a raw CPRM key in place of the MKB + * Improve CPXM/CPPM/CPRM error handling, context lifetime, and + cleanup + * Fix CPRM decryption and Darwin CPRM ioctl paths + * Fix CPPM decryption cache teardown and copy-control handling + * Fix OS/2 build issues and add CPRM media ID/MKB pack ioctl + support + * Fix FreeBSD and PATH_MAX build issues + * Improve Windows drive opening support + * Add proper Haiku support +- Changes between 1.4.3 and 1.5.0: + * Add support for DVD-Audio disc decryption via libdvdcpxm + integration + Add new dvdcpxm.h header for dvdcpxm function calls + Add dvdcpxm_read, dvdcpxm_readv, and dvdcpxm_seek functions + Add initialization and cleanup functions: dvdcpxm_init, + dvdcpxm_close + * Switch build system to Meson and remove autotools and Visual + Studio files + * Fix public header include paths + * Fix build issues with older compilers and scsi/sg.h detection + * Miscellaneous CI, documentation, and platform cleanups +- Changes between 1.4.2 and 1.4.3: + * Fix opening non-ASCII paths in Windows + * Avoid potential buffer overflow if PATH_MAX is reached +- Changes between 1.4.1 and 1.4.2: + * Fix buffer overflow when region mask is 0x0 + * Fix invalid free on Open +- Changes between 1.4.0 and 1.4.1: + * Fix crashes in cache directory creation and usage, including + DVDCSS_CACHE + and empty home directory cases + * Fix key cache storage in ~/.dvdcss + * Avoid closing callback stream handles +- Add meson BuildRequires and macros following upstreams port. + +------------------------------------------------------------------- Wed Feb 22 11:46:02 UTC 2017 - scarabeus@opensuse.org - Version update to 1.4.0:
View file
libdvdcss2.spec
Changed
@@ -18,17 +18,18 @@ Name: libdvdcss2 -Version: 1.4.0 +Version: 1.6.0 Release: 0 Summary: Library for accessing DVDs like block device usind deCSS if needed License: GPL-2.0+ Group: System/Libraries Url: http://www.videolan.org/libdvdcss/ -Source0: http://download.videolan.org/pub/libdvdcss/%{version}/libdvdcss-%{version}.tar.bz2 +Source0: http://download.videolan.org/pub/libdvdcss/%{version}/libdvdcss-%{version}.tar.xz + BuildRequires: gcc +BuildRequires: meson BuildRequires: pkgconfig Provides: libdvdcss = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libdvdcss is a simple library designed for accessing DVDs like a block device @@ -49,29 +50,24 @@ should install libdvdcss-devel. %prep -%setup -q -n libdvdcss-%{version} +%autosetup -n libdvdcss-%{version} %build -%configure \ - --disable-static \ - --disable-silent-rules -make %{?_smp_mflags} +%meson +%meson_build %install -%make_install +%meson_install find %{buildroot} -type f -name "*.la" -delete -print rm -rf %{buildroot}%{_datadir}/doc/ -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files -%defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/libdvdcss.so.* %files -n libdvdcss-devel -%defattr(-,root,root) %doc ChangeLog COPYING %{_includedir}/dvdcss %{_libdir}/libdvdcss.so
View file
libdvdcss-1.4.0.tar.bz2/ChangeLog
Deleted
@@ -1,3477 +0,0 @@ -commit a34ebf642b10e47c80829b923aff120d70184aba -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Wed Dec 16 16:01:56 2015 +0100 - - Update NEWS for 1.4.0 - -commit a7e814e3bfc6b7b8507c0e1083153611edb66748 -Author: Petri Hintukainen <phintuka@gmail.com> -Date: Wed Dec 16 11:21:42 2015 +0200 - - generate version.h - -commit 417a9cb24ea0658cdb76ae28e9f86dc2347ee1d5 -Author: Petri Hintukainen <phintuka@gmail.com> -Date: Thu Jul 16 10:57:57 2015 +0300 - - Fix leak - -commit 50a9209451c63397a2aaccf9a3ae11ae29d3d707 -Author: Romain Bentz <bentz.romain@gmail.com> -Date: Tue Oct 27 18:17:09 2015 +0100 - - Fix CSS key caching on Android - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit 3a322908f40dd16df76e2bfb9516eb052dc7933c -Author: Hannes Domani <ssbssa@yahoo.de> -Date: Fri Jul 24 17:15:39 2015 +0200 - - Always initialize readv temporary buffer. - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit 41905a9b3581a0efe7ecc73d39f7820601d16ff3 -Author: Ludovic Fauvet <etix@videolan.org> -Date: Fri Apr 10 17:15:48 2015 +0200 - - Fix build on win32 - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit 70260b04bf37880bb928306f6f7ee607ce531395 -Author: Petri Hintukainen <phintuka@gmail.com> -Date: Sun Mar 29 22:21:52 2015 +0300 - - Avoid closing random file descriptor - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit bf669a831a7bc841621dc8117c18422b55656512 -Author: Sam Varshavchik <mrsam@courier-mta.com> -Date: Sat Feb 14 12:18:22 2015 -0500 - - Tweak the rpm spec file - - Have make clean remove libdvdcss.spec that autoconf creates from - libdvdcss.spec.in - - Include %{?dist} tag into the RPM release tag, this a convention with - most RPM-based distributions. - - The rpm packages were missing a few files. - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit ec7c3a567dda8afd1516b49d33672557f981eb51 -Author: Thomas Guillem <thomas@gllm.fr> -Date: Wed Jan 28 16:29:40 2015 +0100 - - dvdcss_open_stream: cast to off_t - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit cce6baf1edf30fd39650eea94e752f5be515feb9 -Author: Thomas Guillem <thomas@gllm.fr> -Date: Wed Jan 28 16:29:39 2015 +0100 - - dvdcss_open_stream: fix SEGFAULT due to a NULL psz_target - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit 4863c1ea386041bbf244f4d0a41aea063a810a2a -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Wed Jan 28 15:06:50 2015 +0100 - - Prepare a test release 1.3.99 - -commit c86f8cd26d1c4fb9d9a356b5bb4f5c65ca66b90d -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Tue Jan 27 16:15:16 2015 +0100 - - Increase .so value, because of new API - -commit 781e998132501c8d12c9ee95eb3ab6b6d289327f -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Tue Jan 27 16:14:40 2015 +0100 - - libtool -version-info takes current:revision:age - - Not current:age:revision - -commit 50d5296d42cffcc60b9244af3aa672c5151e31cb -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Tue Jan 27 16:06:50 2015 +0100 - - On the road to 1.4.0 - -commit f72b87294908e6fd28c79558bb7519e0bef1a3c9 -Author: Thomas Guillem <tom@gllm.fr> -Date: Tue Jan 27 15:54:44 2015 +0100 - - Add dvdcss_open_stream() API function - - This allows opening a DVD device using external read/seek callbacks. - - Signed-off-by: Diego Biurrun <diego@biurrun.de> - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit 2ce12e9e2b52955c20804845840d2239fe279674 -Author: Evgeny Grin <karlson2k@kodi.tv> -Date: Tue Jan 27 15:39:10 2015 +0100 - - Fix position after partial read in libc_read - - Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> - -commit b8171911daa0908ebda3a7868a16f9e70fa375f3 -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Tue Jan 27 15:15:20 2015 +0100 - - Revert "device: Adjust types in offset calculations" - - This reverts commit c500fe5227012ac04ec0b91c6c29606bad246839. - -commit 5002be6b4d4390be21aa67e82ee9e20298692712 -Author: Jean-Baptiste Kempf <jb@videolan.org> -Date: Tue Jan 27 15:08:37 2015 +0100 - - Revert "win32: Use proper handle instead of file descriptor to access devices" - - This reverts commit 1b4e3f9e1c4e7b53cce59b802f95f6400ba641dd. - -commit d1f3068297b729d38d15a9b4732409f250e9d763 -Author: Diego Biurrun <diego@biurrun.de> -Date: Sat Nov 29 17:02:54 2014 +0100 - - Replace check for WIN32 define with check for _WIN32 define. - - The former is deprecated, the latter should be used nowadays. - -commit 6ea4a6589a96aa90cc7e1e3968f28fd5e40e4b93 -Author: Diego Biurrun <diego@biurrun.de> -Date: Sat Nov 29 17:02:10 2014 +0100 - - build: Fix typo in config.h define comment - -commit 8894cb46629c1ccb7a87693a4d6eaea1cef543cf -Author: Diego Biurrun <diego@biurrun.de> -Date: Sat Nov 29 16:05:00 2014 +0100 - - build: Support building under msys2 - -commit 497b8b6e549c1465945856747a0f589140a26307 -Author: Diego Biurrun <diego@biurrun.de> -Date: Sat Nov 29 16:04:05 2014 +0100 - - build: Fix wince/mingwce detection - -commit 1c2da8e3818b07036ea5931ab7e6e6033e50e1da -Author: Diego Biurrun <diego@biurrun.de> -Date: Tue Nov 18 18:29:36 2014 +0100 - - ioctl: Simplify win32 version of ioctl_ReportAgid() - -commit bb6e3da30118fd64df791a60f25ac54cf7937b25 -Author: Diego Biurrun <diego@biurrun.de> -Date: Tue Nov 18 11:54:00 2014 +0100 - - css: Restructure control flow of win32 bits in dvdcss_test() - - Avoid checking an impossible condition, skip the check instead. - This fixes CID 82126. - -commit e206559af30267cc1b893c5f177c2ff0ac708445 -Author: Diego Biurrun <diego@biurrun.de> -Date: Mon Nov 17 21:59:38 2014 +0100 - - Remove some commented-out cruft and pointless debug output. - -commit 41dc1176c4590bb2047b614547fa230838f2c335 -Author: Diego Biurrun <diego@biurrun.de> -Date: Sun Nov 16 22:40:27 2014 +0100 - - ioctl: Drop single-use INIT_SPTD/SEND_SPTD macros - -commit 00abe6bb8626e950f64df2f28b899c4d793b278a -Author: Diego Biurrun <diego@biurrun.de> -Date: Mon Nov 17 21:08:32 2014 +0100
View file
libdvdcss-1.4.0.tar.bz2/Makefile.am
Deleted
@@ -1,83 +0,0 @@ -ACLOCAL_AMFLAGS = -I m4 -AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src/dvdcss - -EXTRA_DIST = msvc libdvdcss.spec INSTALL - -dist_doc_DATA = AUTHORS COPYING NEWS README ChangeLog - -MAINTAINERCLEANFILES = ChangeLog - -ChangeLog: $(wildcard $(srcdir)/.git/logs/HEAD) -if GIT - -cd $(srcdir) && git log > $(abs_builddir)/$(@)-tmp - test -s $(@)-tmp && mv $(@)-tmp $(@) - -rm -f $(@)-tmp -endif - test -e $(@) || touch $(@) - -lib_LTLIBRARIES = libdvdcss.la -EXTRA_PROGRAMS = test/csstest test/dvd_region - -libdvdcss_la_SOURCES = \ - src/libdvdcss.c \ - src/libdvdcss.h \ - src/device.c \ - src/device.h \ - src/css.c \ - src/css.h \ - src/csstables.h \ - src/ioctl.c \ - src/ioctl.h \ - src/error.c \ - src/common.h - -libdvdcss_la_LDFLAGS = -version-info $(DVDCSS_LTVERSION) $(DVDCSS_LDFLAGS) -libdvdcss_la_LIBADD = - -if !SYS_MSVC -libdvdcss_la_LDFLAGS += -no-undefined -endif - -test_csstest_SOURCES = test/csstest.c -test_csstest_LDADD = libdvdcss.la -test_csstest_CFLAGS = -I $(top_srcdir)/src - -test_dvd_region_SOURCES = test/dvd_region.c -test_dvd_region_LDADD = libdvdcss.la -test_dvd_region_CFLAGS = -I $(top_srcdir)/src - -pkgincludedir = $(includedir)/dvdcss -pkginclude_HEADERS = \ - src/dvdcss/dvdcss.h \ - src/dvdcss/version.h - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = src/libdvdcss.pc - -if APIDOC -all-local: apidoc -install-data-local: install-apidoc -uninstall-hook: uninstall-apidoc -endif - -apidoc: stamp-doxygen - -stamp-doxygen: doc/doxygen.cfg src/libdvdcss.c src/dvdcss/dvdcss.h - doxygen $< - touch $@ - -tools: test/csstest$(EXEEXT) test/dvd_region$(EXEEXT) - -clean-local: - -rm -Rf stamp-doxygen doc/doxygen_sqlite3.db libdvdcss.spec doc/html - -install-apidoc: - $(MKDIR_P) $(DESTDIR)$(htmldir) - for file in doc/html/*; do \ - $(INSTALL_DATA) $$file "$(DESTDIR)$(htmldir)" || exit 1; \ - done; - -uninstall-apidoc: - -rm -Rf $(DESTDIR)$(htmldir)/*.png $(DESTDIR)$(htmldir)/*.html $(DESTDIR)$(htmldir)/*.css $(DESTDIR)$(htmldir)/*.js - -.PHONY: apidoc tools
View file
libdvdcss-1.4.0.tar.bz2/Makefile.in
Deleted
@@ -1,1094 +0,0 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2014 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option = \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=no; \ - sane_makeflags=$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\\ \ *) \ - bs=\\; \ - sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs$$bs $$bs *//g"`;; \ - esac; \ - fi; \ - skip_next=no; \ - strip_trailopt () \ - { \ - flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next = yes && { skip_next=no; continue; }; \ - case $$flg in \ - *=*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=yes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=yes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=yes;; \ - -*l?*) strip_trailopt 'l';; \ - -dEDm) skip_next=yes;; \ - -JT) skip_next=yes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=yes; break;; \ - esac; \ - done; \ - test $$has_opt = yes -am__make_dryrun = (target_option=n; $(am__make_running_with_option)) -am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -EXTRA_PROGRAMS = test/csstest$(EXEEXT) test/dvd_region$(EXEEXT) -@SYS_MSVC_FALSE@am__append_1 = -no-undefined -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/attributes.m4 \ - $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(dist_doc_DATA) $(pkginclude_HEADERS) \ - $(am__DIST_COMMON) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = libdvdcss.spec doc/doxygen.cfg src/libdvdcss.pc \ - src/dvdcss/version.h -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/.^$$\\*|/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/^/*$$,\1,' | \ - $(AWK) 'BEGIN { files"." = "" } { files$$2 = files$$2 " " $$1; \ - if (++n$$2 == $(am__install_max)) \ - { print $$2, files$$2; n$$2 = 0; files$$2 = "" } } \ - END { for (dir in files) print dir, filesdir }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(docdir)" \ - "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -libdvdcss_la_DEPENDENCIES = -am__dirstamp = $(am__leading_dot)dirstamp -am_libdvdcss_la_OBJECTS = src/libdvdcss.lo src/device.lo src/css.lo \ - src/ioctl.lo src/error.lo -libdvdcss_la_OBJECTS = $(am_libdvdcss_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -libdvdcss_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(libdvdcss_la_LDFLAGS) $(LDFLAGS) -o $@ -am_test_csstest_OBJECTS = test/test_csstest-csstest.$(OBJEXT) -test_csstest_OBJECTS = $(am_test_csstest_OBJECTS) -test_csstest_DEPENDENCIES = libdvdcss.la -test_csstest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_csstest_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_test_dvd_region_OBJECTS = \ - test/test_dvd_region-dvd_region.$(OBJEXT) -test_dvd_region_OBJECTS = $(am_test_dvd_region_OBJECTS) -test_dvd_region_DEPENDENCIES = libdvdcss.la -test_dvd_region_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(test_dvd_region_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ - -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
View file
libdvdcss-1.4.0.tar.bz2/README
Deleted
@@ -1,62 +0,0 @@ -README for libdvdcss, a portable abstraction library for DVD decryption - - -Introduction -============ - -libdvdcss is part of the VideoLAN project, which among other things produces -VLC, a full video client/server streaming solution. VLC can also be used as -a standalone program to play video streams from a hard disk or a DVD. - - -Building and Installing libdvdcss -================================= - -See the INSTALL file. - - -Running libdvdcss -================= - -The behavior of the library can be changed by setting two environment variables: - - DVDCSS_METHOD={title|disc|key}: method for key decryption - title: By default the decrypted title key is guessed from the encrypted - sectors of the stream. Thus it should work with a file as well as - the DVD device. But decrypting a title key may take too much time - or even fail. With the title method, the key is only checked at - the beginning of each title, so it will not work if the key - changes in the middle of a title. - disc: The disc key is cracked first. Afterwards all title keys can be - decrypted instantly, which allows checking them often. - key: The same as the "disc" method if you do not have a file with player - keys at compile time. If you do, disc key decryption will be faster. - This is the default method also employed by libcss. - DVDCSS_VERBOSE={0|1|2}: libdvdcss verbosity - 0: no error messages, no debug messages (this is the default) - 1: only error messages - 2: error and debug messages - - -Troubleshooting -=============== - -A mailing-list has been set up for support and discussion about -libdvdcss. Its address is: - - <libdvdcss-devel@videolan.org> - -To subscribe or unsubscribe, go to: - - http://mailman.videolan.org/ - -When reporting bugs, try to be as precise as possible (which OS, which -distribution, what plugins you were trying, and so on). - - -Resources -========= - -The VideoLAN web site at http://www.videolan.org/ is a good start for -information about MPEG and DVD playback. Have a look at the support -section to look for answers.
View file
libdvdcss-1.4.0.tar.bz2/aclocal.m4
Deleted
@@ -1,1194 +0,0 @@ -# generated automatically by aclocal 1.15 -*- Autoconf -*- - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef(AC_CONFIG_MACRO_DIRS, m4_defun(_AM_CONFIG_MACRO_DIRS, )m4_defun(AC_CONFIG_MACRO_DIRS, _AM_CONFIG_MACRO_DIRS($@))) -m4_ifndef(AC_AUTOCONF_VERSION, - m4_copy(m4_PACKAGE_VERSION, AC_AUTOCONF_VERSION))dnl -m4_if(m4_defn(AC_AUTOCONF_VERSION), 2.69,, -m4_warning(this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.)) - -# Copyright (C) 2002-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN(AM_AUTOMAKE_VERSION, -am__api_version='1.15' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if($1, 1.15, , - AC_FATAL(Do not call $0, use AM_INIT_AUTOMAKE($1).))dnl -) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define(_AM_AUTOCONF_VERSION, ) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN(AM_SET_CURRENT_AUTOMAKE_VERSION, -AM_AUTOMAKE_VERSION(1.15)dnl -m4_ifndef(AC_AUTOCONF_VERSION, - m4_copy(m4_PACKAGE_VERSION, AC_AUTOCONF_VERSION))dnl -_AM_AUTOCONF_VERSION(m4_defn(AC_AUTOCONF_VERSION))) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR(foo), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN(AM_AUX_DIR_EXPAND, -AC_REQUIRE(AC_CONFIG_AUX_DIR_DEFAULT)dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN(AM_CONDITIONAL, -AC_PREREQ(2.52)dnl - m4_if($1, TRUE, AC_FATAL($0: invalid condition: $1), - $1, FALSE, AC_FATAL($0: invalid condition: $1))dnl -AC_SUBST($1_TRUE)dnl -AC_SUBST($1_FALSE)dnl -_AM_SUBST_NOTMAKE($1_TRUE)dnl -_AM_SUBST_NOTMAKE($1_FALSE)dnl -m4_define(_AM_COND_VALUE_$1, $2)dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR(conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.) -fi)) - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN(_AM_DEPENDENCIES, -AC_REQUIRE(AM_SET_DEPDIR)dnl -AC_REQUIRE(AM_OUTPUT_DEPENDENCY_COMMANDS)dnl -AC_REQUIRE(AM_MAKE_INCLUDE)dnl -AC_REQUIRE(AM_DEP_TRACK)dnl - -m4_if($1, CC, depcc="$CC" am_compiler_list=, - $1, CXX, depcc="$CXX" am_compiler_list=, - $1, OBJC, depcc="$OBJC" am_compiler_list='gcc3 gcc', - $1, OBJCXX, depcc="$OBJCXX" am_compiler_list='gcc3 gcc', - $1, UPC, depcc="$UPC" am_compiler_list=, - $1, GCJ, depcc="$GCJ" am_compiler_list='gcc3 gcc', - depcc="$$1" am_compiler_list=) - -AC_CACHE_CHECK(dependency style of $depcc, - am_cv_$1_dependencies_compiler_type, -if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in
View file
libdvdcss-1.4.0.tar.bz2/compile
Deleted
@@ -1,347 +0,0 @@ -#! /bin/sh -# Wrapper for compilers which do not understand '-c -o'. - -scriptversion=2012-10-14.11; # UTC - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. -# Written by Tom Tromey <tromey@cygnus.com>. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# This file is maintained in Automake, please report -# bugs to <bug-automake@gnu.org> or send patches to -# <automake-patches@gnu.org>. - -nl=' -' - -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent tools from complaining about whitespace usage. -IFS=" "" $nl" - -file_conv= - -# func_file_conv build_file lazy -# Convert a $build file to $host form and store it in $file -# Currently only supports Windows hosts. If the determined conversion -# type is listed in (the comma separated) LAZY, no conversion will -# take place. -func_file_conv () -{ - file=$1 - case $file in - / | /!/*) # absolute file, and not a UNC file - if test -z "$file_conv"; then - # lazily determine how to convert abs files - case `uname -s` in - MINGW*) - file_conv=mingw - ;; - CYGWIN*) - file_conv=cygwin - ;; - *) - file_conv=wine - ;; - esac - fi - case $file_conv/,$2, in - *,$file_conv,*) - ;; - mingw/*) - file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` - ;; - cygwin/*) - file=`cygpath -m "$file" || echo "$file"` - ;; - wine/*) - file=`winepath -w "$file" || echo "$file"` - ;; - esac - ;; - esac -} - -# func_cl_dashL linkdir -# Make cl look for libraries in LINKDIR -func_cl_dashL () -{ - func_file_conv "$1" - if test -z "$lib_path"; then - lib_path=$file - else - lib_path="$lib_path;$file" - fi - linker_opts="$linker_opts -LIBPATH:$file" -} - -# func_cl_dashl library -# Do a library search-path lookup for cl -func_cl_dashl () -{ - lib=$1 - found=no - save_IFS=$IFS - IFS=';' - for dir in $lib_path $LIB - do - IFS=$save_IFS - if $shared && test -f "$dir/$lib.dll.lib"; then - found=yes - lib=$dir/$lib.dll.lib - break - fi - if test -f "$dir/$lib.lib"; then - found=yes - lib=$dir/$lib.lib - break - fi - if test -f "$dir/lib$lib.a"; then - found=yes - lib=$dir/lib$lib.a - break - fi - done - IFS=$save_IFS - - if test "$found" != yes; then - lib=$lib.lib - fi -} - -# func_cl_wrapper cl arg... -# Adjust compile command to suit cl -func_cl_wrapper () -{ - # Assume a capable shell - lib_path= - shared=: - linker_opts= - for arg - do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - eat=1 - case $2 in - *.o | *.oObBjJ) - func_file_conv "$2" - set x "$@" -Fo"$file" - shift - ;; - *) - func_file_conv "$2" - set x "$@" -Fe"$file" - shift - ;; - esac - ;; - -I) - eat=1 - func_file_conv "$2" mingw - set x "$@" -I"$file" - shift - ;; - -I*) - func_file_conv "${1#-I}" mingw - set x "$@" -I"$file" - shift - ;; - -l) - eat=1 - func_cl_dashl "$2" - set x "$@" "$lib" - shift - ;; - -l*) - func_cl_dashl "${1#-l}" - set x "$@" "$lib" - shift - ;; - -L) - eat=1 - func_cl_dashL "$2" - ;; - -L*) - func_cl_dashL "${1#-L}" - ;; - -static) - shared=false - ;; - -Wl,*) - arg=${1#-Wl,} - save_ifs="$IFS"; IFS=',' - for flag in $arg; do - IFS="$save_ifs" - linker_opts="$linker_opts $flag" - done - IFS="$save_ifs" - ;; - -Xlinker)
View file
libdvdcss-1.4.0.tar.bz2/config.guess
Deleted
@@ -1,1421 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright 1992-2014 Free Software Foundation, Inc. - -timestamp='2014-11-04' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). -# -# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. -# -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD -# -# Please send patches to <config-patches@gnu.org>. - - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 OPTION - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to <config-patches@gnu.org>." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright 1992-2014 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -case "${UNAME_SYSTEM}" in -Linux|GNU|GNU/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu - - eval $set_cc_for_build - cat <<-EOF > $dummy.c - #include <features.h> - #if defined(__UCLIBC__) - LIBC=uclibc - #elif defined(__dietlibc__) - LIBC=dietlibc - #else - LIBC=gnu - #endif - EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` - ;; -esac - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ELF__ - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac
View file
libdvdcss-1.4.0.tar.bz2/config.h.in
Deleted
@@ -1,169 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Have IOKit DVD IOCTL headers */ -#undef DARWIN_DVD_IOCTL - -/* Define if <linux/cdrom.h> defines DVD_STRUCT. */ -#undef DVD_STRUCT_IN_LINUX_CDROM_H - -/* Define if <sys/cdio.h> defines dvd_struct. */ -#undef DVD_STRUCT_IN_SYS_CDIO_H - -/* Define if <sys/dvdio.h> defines dvd_struct. */ -#undef DVD_STRUCT_IN_SYS_DVDIO_H - -/* Define if you have a broken mkdir */ -#undef HAVE_BROKEN_MKDIR - -/* Define if FreeBSD-like dvd_struct is defined. */ -#undef HAVE_BSD_DVD_STRUCT - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the <dvd.h> header file. */ -#undef HAVE_DVD_H - -/* Define to 1 if you have the <errno.h> header file. */ -#undef HAVE_ERRNO_H - -/* Define to 1 if you have the <fcntl.h> header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the <io.h> header file. */ -#undef HAVE_IO_H - -/* Define to 1 if you have the <linux/cdrom.h> header file. */ -#undef HAVE_LINUX_CDROM_H - -/* Define if Linux-like dvd_struct is defined. */ -#undef HAVE_LINUX_DVD_STRUCT - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define if OpenBSD-like dvd_struct is defined. */ -#undef HAVE_OPENBSD_DVD_STRUCT - -/* Define to 1 if you have the <pwd.h> header file. */ -#undef HAVE_PWD_H - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the <sys/cdio.h> header file. */ -#undef HAVE_SYS_CDIO_H - -/* Define to 1 if you have the <sys/dvdio.h> header file. */ -#undef HAVE_SYS_DVDIO_H - -/* Define to 1 if you have the <sys/ioctl.h> header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define to 1 if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the <sys/scsi/impl/uscsi.h> header file. */ -#undef HAVE_SYS_SCSI_IMPL_USCSI_H - -/* Define to 1 if you have the <sys/scsi/scsi_types.h> header file. */ -#undef HAVE_SYS_SCSI_SCSI_TYPES_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the <sys/uio.h> header file. */ -#undef HAVE_SYS_UIO_H - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if you have the <windows.h> header file. */ -#undef HAVE_WINDOWS_H - -/* Define to 1 if you have the <winioctl.h> header file. */ -#undef HAVE_WINIOCTL_H - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#undef LT_OBJDIR - -/* Define O_BINARY if missing */ -#undef O_BINARY - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Have userspace SCSI headers. */ -#undef SOLARIS_USCSI - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define this if the compiler supports __attribute__((visibility("default"))) - */ -#undef SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT - -/* Define this if the compiler supports the -fvisibility flag */ -#undef SUPPORT_FLAG_VISIBILITY - -/* Version number of package */ -#undef VERSION - -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - -/* Define to '0x0501' for IE 5.01 (and shell) APIs. */ -#undef _WIN32_IE - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus -#undef inline -#endif - -/* Define to `unsigned int' if <sys/types.h> does not define. */ -#undef size_t
View file
libdvdcss-1.4.0.tar.bz2/config.sub
Deleted
@@ -1,1807 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright 1992-2014 Free Software Foundation, Inc. - -timestamp='2014-12-03' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see <http://www.gnu.org/licenses/>. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). - - -# Please send patches to <config-patches@gnu.org>. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# You can get the latest version of this script from: -# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 OPTION CPU-MFR-OPSYS - $0 OPTION ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to <config-patches@gnu.org>." - -version="\ -GNU config.sub ($timestamp) - -Copyright 1992-2014 Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\(^-*-^-*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\(^-*-^-*\)$/\1/'` - ;; - android-linux) - os=-linux-android - basic_machine=`echo $1 | sed 's/^\(.*\)-\(^-*-^-*\)$/\1/'`-unknown - ;; - *) - basic_machine=`echo $1 | sed 's/-^-*$//'` - if $basic_machine != $1 - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun234* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c123* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze*) - os= - basic_machine=$1 - ;; - -bluegene*) - os=-cnk - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.4-9*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v4-9*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;;
View file
libdvdcss-1.4.0.tar.bz2/configure
Deleted
@@ -1,16533 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libdvdcss 1.4.0. -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *\\/* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -
View file
libdvdcss-1.4.0.tar.bz2/configure.ac
Deleted
@@ -1,255 +0,0 @@ -dnl library version number -m4_define(dvdcss_major, 1) -m4_define(dvdcss_minor, 4) -m4_define(dvdcss_micro, 0) -m4_define(dvdcss_version,dvdcss_major.dvdcss_minor.dvdcss_micro) - -AC_INIT(libdvdcss, dvdcss_version, , , https://www.videolan.org/developers/libdvdcss.html) -AC_CONFIG_SRCDIR(src/libdvdcss.c) - -AC_PREREQ(2.50) -AC_CANONICAL_HOST - -AM_INIT_AUTOMAKE(foreign dist-bzip2 no-dist-gzip subdir-objects) -AM_MAINTAINER_MODE(enable) -dnl Enable silent rules only when available (automake 1.11 or later). -m4_ifdef(AM_SILENT_RULES, AM_SILENT_RULES(yes)) - -LT_INIT(win32-dll) - -AC_CONFIG_HEADER(config.h) -AC_CONFIG_MACRO_DIR(m4) - -dnl The libtool version numbers (DVDCSS_LT_*); Don't even think about faking this! -dnl -dnl immediately before every release do: -dnl =================================== -dnl if (the interface is totally unchanged from previous release) -dnl DVDCSS_LT_REVISION ++; -dnl else { /* interfaces have been added, removed or changed */ -dnl DVDCSS_LT_REVISION = 0; -dnl DVDCSS_LT_CURRENT ++; -dnl if (any interfaces have been _added_ since last release) -dnl AGE ++; -dnl if (any interfaces have been _removed_ or _incompatibly changed_) -dnl AGE = 0; -dnl } -dnl -dnl If you want to know more about what you are doing, here are some details: -dnl * DVDCSS_LT_CURRENT is the current API version -dnl * DVDCSS_LT_REVISION is an internal revision number which is increased when the API -dnl itself did not change -dnl * DVDCSS_LT_AGE is the number of previous API versions still supported by this library -dnl * libtool has its own numbering scheme, because local library numbering schemes -dnl are platform dependent -dnl * in Linux, the library will be named -dnl libname.so.(DVDCSS_LT_CURRENT - DVDCSS_LT_AGE).DVDCSS_LT_AGE.DVDCSS_LT_REVISION - -DVDCSS_LT_CURRENT=4 -DVDCSS_LT_AGE=2 -DVDCSS_LT_REVISION=0 - -AC_SUBST(DVDCSS_LTVERSION, $DVDCSS_LT_CURRENT:$DVDCSS_LT_REVISION:$DVDCSS_LT_AGE) - -AC_PROG_CC -AC_HEADER_STDC - -AC_C_CONST -AC_C_INLINE -AC_TYPE_SIZE_T - -AC_CHECK_HEADERS(unistd.h sys/param.h sys/uio.h pwd.hdnl - errno.h sys/types.h sys/stat.h fcntl.h io.h) - -AC_CHECK_DECL(O_BINARY, , - AC_DEFINE(O_BINARY, 0, Define O_BINARY if missing), - - #if HAVE_SYS_TYPES_H - # include <sys/types.h> - #endif - #if HAVE_SYS_STAT_H - # include <sys/stat.h> - #endif - #if HAVE_FCNTL_H - # include <fcntl.h> - #endif - ) - -AC_SYS_LARGEFILE - -AC_CACHE_CHECK( - for posix mkdir(), - css_cv_mkdir_posix, - AC_COMPILE_IFELSE(AC_LANG_SOURCE( -#ifdef HAVE_IO_H -# include <io.h> -#endif -#ifdef HAVE_SYS_STAT_H -# include <sys/stat.h> -#endif -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif - -int mkdir(const char *path, mode_t mode); - ) - , - css_cv_mkdir_posix=yes, - css_cv_mkdir_posix=no) - ) - -AS_IF(test "$css_cv_mkdir_posix" = "no", - AC_DEFINE(HAVE_BROKEN_MKDIR, 1, Define if you have a broken mkdir) -) - -dnl -dnl Check the operating system -dnl - -case x"${host_os}" in - xdarwin*) - CFLAGS="${CFLAGS} -no-cpp-precomp" - ;; - x*cygwin* | x*msys*) - CFLAGS="${CFLAGS} -mwin32" - AC_DEFINE(_WIN32_IE, 0x0501, Define to '0x0501' for IE 5.01 (and shell) APIs.) - ;; - xos2*) - LDFLAGS="-Zbin-files" - ;; - x*msvc*) - SYS_MSVC=1 - AC_DEFINE(_WIN32_IE, 0x0501, Define to '0x0501' for IE 5.01 (and shell) APIs.) - ;; - x*mingw* | x*wince* | x*mingwce*) - AC_DEFINE(_WIN32_IE, 0x0501, Define to '0x0501' for IE 5.01 (and shell) APIs.) - ;; - x*) - ;; -esac - -dnl -dnl libdvdcss: check for DVD ioctls -dnl - -dnl default is no -CAN_BUILD_LIBDVDCSS=0 - -dnl for windoze -AC_CHECK_HEADERS(windows.h, - AC_CHECK_HEADERS(winioctl.h, - CAN_BUILD_LIBDVDCSS=1 - ,, - #include <windows.h> - ) -) - -dnl for Unix -AC_CHECK_HEADERS(sys/ioctl.h, - CAN_BUILD_LIBDVDCSS=1 - AC_CHECK_HEADERS(sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h) - BSD_DVD_STRUCT=0 - LINUX_DVD_STRUCT=0 - OPENBSD_DVD_STRUCT=0 - dnl - dnl Old FreeBSD: sys/cdio.h - dnl - AC_EGREP_HEADER(dvd_struct,sys/cdio.h, - AC_DEFINE(DVD_STRUCT_IN_SYS_CDIO_H, 1, - Define if <sys/cdio.h> defines dvd_struct.) - AC_EGREP_HEADER(struct dvd_struct,sys/cdio.h, - BSD_DVD_STRUCT=1,LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1) - ) - dnl - dnl Newer FreeBSD: sys/dvdio.h - dnl - AC_EGREP_HEADER(dvd_struct,sys/dvdio.h, - AC_DEFINE(DVD_STRUCT_IN_SYS_DVDIO_H, 1, - Define if <sys/dvdio.h> defines dvd_struct.) - AC_EGREP_HEADER(struct dvd_struct,sys/dvdio.h, - BSD_DVD_STRUCT=1,LINUX_DVD_STRUCT=1) - ) - dnl - dnl Linux: linux/cdrom.h - dnl - AC_EGREP_HEADER(dvd_struct,linux/cdrom.h, - AC_DEFINE(DVD_STRUCT_IN_LINUX_CDROM_H, 1, - Define if <linux/cdrom.h> defines DVD_STRUCT.) - LINUX_DVD_STRUCT=1 - ) - dnl - dnl Solaris: sys/scsi/scsi_types.h, sys/scsi/impl/uscsi.h - dnl - solaris_uscsi=yes - AC_CHECK_HEADERS(sys/scsi/scsi_types.h sys/scsi/impl/uscsi.h, , - solaris_uscsi=no; break;) - AS_IF(test "$solaris_uscsi" = "yes", - AC_DEFINE(SOLARIS_USCSI, 1, Have userspace SCSI headers.) - ) - dnl - dnl Darwin - dnl - AC_CHECK_HEADER(IOKit/storage/IODVDMediaBSDClient.h, - AC_DEFINE(DARWIN_DVD_IOCTL, 1, Have IOKit DVD IOCTL headers) - DVDCSS_LDFLAGS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,IOKit" - ) - dnl - dnl Final tests to check what was detected - dnl - if test x$LINUX_DVD_STRUCT = x1; then
View file
libdvdcss-1.4.0.tar.bz2/depcomp
Deleted
@@ -1,791 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2013-05-30.07; # UTC - -# Copyright (C) 1999-2014 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: depcomp --help --version PROGRAM ARGS - -Run PROGRAMS ARGS to compile a file, generating dependencies -as side-effects. - -Environment variables: - depmode Dependency tracking mode. - source Source file read by 'PROGRAMS ARGS'. - object Object file output by 'PROGRAMS ARGS'. - DEPDIR directory where to store dependencies. - depfile Dependency file to output. - tmpdepfile Temporary file to use when outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to <bug-automake@gnu.org>. -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -# Get the directory component of the given path, and save it in the -# global variables '$dir'. Note that this directory component will -# be either empty or ending with a '/' character. This is deliberate. -set_dir_from () -{ - case $1 in - */*) dir=`echo "$1" | sed -e 's|/^/*$|/|'`;; - *) dir=;; - esac -} - -# Get the suffix-stripped basename of the given path, and save it the -# global variable '$base'. -set_base_from () -{ - base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.^.*$//'` -} - -# If no dependency file was actually created by the compiler invocation, -# we still have to create a dummy depfile, to avoid errors with the -# Makefile "include basename.Plo" scheme. -make_dummy_depfile () -{ - echo "#dummy" > "$depfile" -} - -# Factor out some common post-processing of the generated depfile. -# Requires the auxiliary global variable '$tmpdepfile' to be set. -aix_post_process_depfile () -{ - # If the compiler actually managed to produce a dependency file, - # post-process it. - if test -f "$tmpdepfile"; then - # Each line is of the form 'foo.o: dependency.h'. - # Do two passes, one to just change these to - # $object: dependency.h - # and one to simply output - # dependency.h: - # which is needed to avoid the deleted-header problem. - { sed -e "s,^.*\.$lower*:,$object:," < "$tmpdepfile" - sed -e "s,^.*\.$lower*:$tab *,," -e 's,$,:,' < "$tmpdepfile" - } > "$depfile" - rm -f "$tmpdepfile" - else - make_dummy_depfile - fi -} - -# A tabulation character. -tab=' ' -# A newline character. -nl=' -' -# Character ranges might be problematic outside the C locale. -# These definitions help. -upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ -lower=abcdefghijklmnopqrstuvwxyz -digits=0123456789 -alpha=${upper}${lower} - -if test -z "$depmode" || test -z "$source" || test -z "$object"; then - echo "depcomp: Variables source, object and depmode must be set" 1>&2 - exit 1 -fi - -# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. -depfile=${depfile-`echo "$object" | - sed 's|^\\/*$|'${DEPDIR-.deps}'/&|;s|\.\(^.*\)$|.P\1|;s|Pobj$|Po|'`} -tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\(^.*\)$/.T\1/'`} - -rm -f "$tmpdepfile" - -# Avoid interferences from the environment. -gccflag= dashmflag= - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. - gccflag=-qmakedep=gcc,-MF - depmode=gcc -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; -
View file
libdvdcss-1.4.0.tar.bz2/install-sh
Deleted
@@ -1,501 +0,0 @@ -#!/bin/sh -# install - install a program, script, or datafile - -scriptversion=2013-12-25.23; # UTC - -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# 'make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. - -tab=' ' -nl=' -' -IFS=" $tab$nl" - -# Set DOITPROG to "echo" to test this script. - -doit=${DOITPROG-} -doit_exec=${doit:-exec} - -# Put in absolute file names if you don't have them in your path; -# or use environment vars. - -chgrpprog=${CHGRPPROG-chgrp} -chmodprog=${CHMODPROG-chmod} -chownprog=${CHOWNPROG-chown} -cmpprog=${CMPPROG-cmp} -cpprog=${CPPROG-cp} -mkdirprog=${MKDIRPROG-mkdir} -mvprog=${MVPROG-mv} -rmprog=${RMPROG-rm} -stripprog=${STRIPPROG-strip} - -posix_mkdir= - -# Desired mode of installed file. -mode=0755 - -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -is_target_a_directory=possibly - -usage="\ -Usage: $0 OPTION... -T SRCFILE DSTFILE - or: $0 OPTION... SRCFILES... DIRECTORY - or: $0 OPTION... -t DIRECTORY SRCFILES... - or: $0 OPTION... -d DIRECTORIES... - -In the 1st form, copy SRCFILE to DSTFILE. -In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. -In the 4th, create DIRECTORIES. - -Options: - --help display this help and exit. - --version display version info and exit. - - -c (ignored) - -C install only if different (preserve the last data modification time) - -d create directories instead of installing files. - -g GROUP $chgrpprog installed files to GROUP. - -m MODE $chmodprog installed files to MODE. - -o USER $chownprog installed files to USER. - -s $stripprog installed files. - -t DIRECTORY install into DIRECTORY. - -T report an error if DSTFILE is a directory. - -Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG - RMPROG STRIPPROG -" - -while test $# -ne 0; do - case $1 in - -c) ;; - - -C) copy_on_change=true;; - - -d) dir_arg=true;; - - -g) chgrpcmd="$chgrpprog $2" - shift;; - - --help) echo "$usage"; exit $?;; - - -m) mode=$2 - case $mode in - *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *''*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -s) stripcmd=$stripprog;; - - -t) - is_target_a_directory=always - dst_arg=$2 - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | =\(\)!) dst_arg=./$dst_arg;; - esac - shift;; - - -T) is_target_a_directory=never;; - - --version) echo "$0 $scriptversion"; exit $?;; - - --) shift - break;; - - -*) echo "$0: invalid option: $1" >&2 - exit 1;; - - *) break;; - esac - shift -done - -# We allow the use of options -d and -T together, by making -d -# take the precedence; this is for compatibility with GNU install. - -if test -n "$dir_arg"; then - if test -n "$dst_arg"; then - echo "$0: target directory not allowed when installing a directory." >&2 - exit 1 - fi -fi - -if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then - # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dst_arg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dst_arg" - shift # fnord - fi - shift # arg - dst_arg=$arg - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | =\(\)!) dst_arg=./$dst_arg;; - esac - done -fi - -if test $# -eq 0; then - if test -z "$dir_arg"; then - echo "$0: no input file specified." >&2 - exit 1
View file
libdvdcss-1.4.0.tar.bz2/libdvdcss.spec
Deleted
@@ -1,181 +0,0 @@ -%define name libdvdcss -%define version 1.4.0 -%define release 1 - -%define major 2 -%define libname %{name}%{major} - -%define buildfor_rh9 %( -e /etc/mandrake-release && echo 0 || echo 1) - -%if %buildfor_rh9 -# some mdk macros that do not exist in rh -%define configure2_5x %configure -%define make %__make -%define makeinstall_std %makeinstall -# adjust define for Red Hat. -%endif - - -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Summary: Library for accessing DVDs like block devices with transparent decryption -Source: %{name}-%{version}.tar.bz2 -License: GPL -Group: System/Libraries -URL: https://www.videolan.org/developers/libdvdcss.html -Packager: Yves Duret <yves@zarb.org> -BuildRoot: %_tmppath/%name-%version-%release-root -Conflicts: libdvdcss0.0.1, libdvdcss0.0.2 - -%description -libdvdcss is a simple library designed for accessing DVDs like a block device -without having to bother about the decryption. The important features are: - * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD, - OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later. - * Adaptability: Unlike most similar projects, libdvdcss does not require the - region of your drive to be set and will try its best to read from the disc - even in the case of a region mismatch. - * Simplicity: A DVD player can be built around the libdvdcss API using no - more than 4 or 5 library calls. - -%package -n %{libname} -Summary: Library for accessing DVDs like block devices with transparent decryption -Group: System/Libraries -Provides: %name = %version-%release - -%description -n %{libname} -libdvdcss is a simple library designed for accessing DVDs like a block device -without having to bother about the decryption. The important features are: - * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD, - OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later. - * Adaptability: Unlike most similar projects, libdvdcss does not require the - region of your drive to be set and will try its best to read from the disc - even in the case of a region mismatch. - * Simplicity: A DVD player can be built around the libdvdcss API using no - more than 4 or 5 library calls. - -%package -n %{libname}-devel -Summary: Development tools for programs which will use the %{name} library -Group: Development/C -Requires: %{libname} = %version-%release -Provides: %{name}-devel = %version-%release - -%description -n %{libname}-devel -The %{name}-devel package includes the header files and static libraries -necessary for developing programs which will manipulate DVDs files using -the %{name} library. - -If you are going to develop programs which will manipulate DVDs, you -should install %{name}-devel. You will also need to have the %{name} -package installed. - -%prep -%setup -q - -%build -%configure2_5x -%make - -%install -%makeinstall_std - -%clean - %buildroot != "/" && rm -Rf %buildroot - -%post -n %{libname} -p /sbin/ldconfig - -%postun -n %{libname} -p /sbin/ldconfig - -%files -n %{libname} -%defattr(-,root,root) -%doc AUTHORS COPYING NEWS -%{_docdir}/libdvdcss -%{_libdir}/*.so.* - -%files -n %{libname}-devel -%defattr(-,root,root) -%doc ChangeLog COPYING -%{_libdir}/*.a -%{_libdir}/*.so -%{_libdir}/*.la -%{_libdir}/pkgconfig/* -%{_includedir}/* - -%changelog -* Mon Jul 11 2005 Sam Hocevar <sam@zoy.org> 1.2.9-1 -- new upstream release - -* Tue Jul 29 2003 Sam Hocevar <sam@zoy.org> 1.2.8-1 -- new upstream release - -* Fri Jun 13 2003 Sam Hocevar <sam@zoy.org> 1.2.7-1 -- new upstream release -- key cache activated by default - -* Mon Mar 10 2003 Alexis de Lattre <alexis@videolan.org> 1.2.6-1 -- new upstream release -- small bug fixes - -* Tue Jan 28 2003 Sam Hocevar <sam@zoy.org> 1.2.5-1 -- new upstream release -- improved robustness in case of read errors -- key cache support -- added more macros to fix Red Hat build - -* Mon Nov 18 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-2 -- Changes in .spec file for Red Hat and RPM 4.1 - -* Thu Nov 14 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-1 -- new upstream release -- fixes for Win32 - -* Sun Oct 13 2002 Sam Hocevar <sam@zoy.org> 1.2.3-1 -- new upstream release -- fix for drives not allowing to read their disc key - -* Sat Aug 10 2002 Sam Hocevar <sam@zoy.org> 1.2.2-1 -- new upstream release -- even more fixes for the disc/drive region mismatch problem - -* Sun Jun 02 2002 Sam Hocevar <sam@zoy.org> 1.2.1-1 -- new upstream release -- fix for a crash on disc/drive region mismatch - -* Mon May 20 2002 Sam Hocevar <sam@zoy.org> 1.2.0-1 -- new upstream release -- weird libxalf dependency is gone - -* Sun Apr 07 2002 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2plf -- major version is 2 (aka guillaume sux). -- spec clean up: do not rm in %%prep, %%buildroot, %%makeinstall_std, %%provides %%version-%%release -- added doc in devel -- sync with the CVS one (%%description,%%files, conflicts). -- fix URL - -* Sat Apr 06 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.1.1-1plf -- 1.1.1 - -* Wed Jan 30 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.0.0-3plf -- new plf extension - -* Wed Dec 05 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-3mdk -- removed conflict - -* Tue Dec 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-2mdk -- contributed to PLF by Yves Duret <yduret@mandrakesoft.com> -- Conflicts: libdvdcss-ogle -- more doc files -- no doc file for devel package - -* Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 1.0.0-1mdk -- version 1.0.0 - -* Thu Aug 23 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.3-1mdk -- version 0.0.3 - -* Mon Aug 13 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.2-1mdk -- version 0.0.2 - -* Tue Jun 19 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.1-1mdk -- first release and first mdk release
View file
libdvdcss-1.4.0.tar.bz2/libdvdcss.spec.in
Deleted
@@ -1,181 +0,0 @@ -%define name @PACKAGE_NAME@ -%define version @PACKAGE_VERSION@ -%define release 1 - -%define major 2 -%define libname %{name}%{major} - -%define buildfor_rh9 %( -e /etc/mandrake-release && echo 0 || echo 1) - -%if %buildfor_rh9 -# some mdk macros that do not exist in rh -%define configure2_5x %configure -%define make %__make -%define makeinstall_std %makeinstall -# adjust define for Red Hat. -%endif - - -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Summary: Library for accessing DVDs like block devices with transparent decryption -Source: %{name}-%{version}.tar.bz2 -License: GPL -Group: System/Libraries -URL: @PACKAGE_URL@ -Packager: Yves Duret <yves@zarb.org> -BuildRoot: %_tmppath/%name-%version-%release-root -Conflicts: libdvdcss0.0.1, libdvdcss0.0.2 - -%description -libdvdcss is a simple library designed for accessing DVDs like a block device -without having to bother about the decryption. The important features are: - * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD, - OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later. - * Adaptability: Unlike most similar projects, libdvdcss does not require the - region of your drive to be set and will try its best to read from the disc - even in the case of a region mismatch. - * Simplicity: A DVD player can be built around the libdvdcss API using no - more than 4 or 5 library calls. - -%package -n %{libname} -Summary: Library for accessing DVDs like block devices with transparent decryption -Group: System/Libraries -Provides: %name = %version-%release - -%description -n %{libname} -libdvdcss is a simple library designed for accessing DVDs like a block device -without having to bother about the decryption. The important features are: - * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD, - OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later. - * Adaptability: Unlike most similar projects, libdvdcss does not require the - region of your drive to be set and will try its best to read from the disc - even in the case of a region mismatch. - * Simplicity: A DVD player can be built around the libdvdcss API using no - more than 4 or 5 library calls. - -%package -n %{libname}-devel -Summary: Development tools for programs which will use the %{name} library -Group: Development/C -Requires: %{libname} = %version-%release -Provides: %{name}-devel = %version-%release - -%description -n %{libname}-devel -The %{name}-devel package includes the header files and static libraries -necessary for developing programs which will manipulate DVDs files using -the %{name} library. - -If you are going to develop programs which will manipulate DVDs, you -should install %{name}-devel. You will also need to have the %{name} -package installed. - -%prep -%setup -q - -%build -%configure2_5x -%make - -%install -%makeinstall_std - -%clean - %buildroot != "/" && rm -Rf %buildroot - -%post -n %{libname} -p /sbin/ldconfig - -%postun -n %{libname} -p /sbin/ldconfig - -%files -n %{libname} -%defattr(-,root,root) -%doc AUTHORS COPYING NEWS -%{_docdir}/libdvdcss -%{_libdir}/*.so.* - -%files -n %{libname}-devel -%defattr(-,root,root) -%doc ChangeLog COPYING -%{_libdir}/*.a -%{_libdir}/*.so -%{_libdir}/*.la -%{_libdir}/pkgconfig/* -%{_includedir}/* - -%changelog -* Mon Jul 11 2005 Sam Hocevar <sam@zoy.org> 1.2.9-1 -- new upstream release - -* Tue Jul 29 2003 Sam Hocevar <sam@zoy.org> 1.2.8-1 -- new upstream release - -* Fri Jun 13 2003 Sam Hocevar <sam@zoy.org> 1.2.7-1 -- new upstream release -- key cache activated by default - -* Mon Mar 10 2003 Alexis de Lattre <alexis@videolan.org> 1.2.6-1 -- new upstream release -- small bug fixes - -* Tue Jan 28 2003 Sam Hocevar <sam@zoy.org> 1.2.5-1 -- new upstream release -- improved robustness in case of read errors -- key cache support -- added more macros to fix Red Hat build - -* Mon Nov 18 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-2 -- Changes in .spec file for Red Hat and RPM 4.1 - -* Thu Nov 14 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-1 -- new upstream release -- fixes for Win32 - -* Sun Oct 13 2002 Sam Hocevar <sam@zoy.org> 1.2.3-1 -- new upstream release -- fix for drives not allowing to read their disc key - -* Sat Aug 10 2002 Sam Hocevar <sam@zoy.org> 1.2.2-1 -- new upstream release -- even more fixes for the disc/drive region mismatch problem - -* Sun Jun 02 2002 Sam Hocevar <sam@zoy.org> 1.2.1-1 -- new upstream release -- fix for a crash on disc/drive region mismatch - -* Mon May 20 2002 Sam Hocevar <sam@zoy.org> 1.2.0-1 -- new upstream release -- weird libxalf dependency is gone - -* Sun Apr 07 2002 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2plf -- major version is 2 (aka guillaume sux). -- spec clean up: do not rm in %%prep, %%buildroot, %%makeinstall_std, %%provides %%version-%%release -- added doc in devel -- sync with the CVS one (%%description,%%files, conflicts). -- fix URL - -* Sat Apr 06 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.1.1-1plf -- 1.1.1 - -* Wed Jan 30 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.0.0-3plf -- new plf extension - -* Wed Dec 05 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-3mdk -- removed conflict - -* Tue Dec 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-2mdk -- contributed to PLF by Yves Duret <yduret@mandrakesoft.com> -- Conflicts: libdvdcss-ogle -- more doc files -- no doc file for devel package - -* Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 1.0.0-1mdk -- version 1.0.0 - -* Thu Aug 23 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.3-1mdk -- version 0.0.3 - -* Mon Aug 13 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.2-1mdk -- version 0.0.2 - -* Tue Jun 19 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.1-1mdk -- first release and first mdk release
View file
libdvdcss-1.4.0.tar.bz2/ltmain.sh
Deleted
@@ -1,11140 +0,0 @@ -#! /bin/sh -## DO NOT EDIT - This file generated from ./build-aux/ltmain.in -## by inline-source v2014-01-03.01 - -# libtool (GNU libtool) 2.4.5 -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 - -# Copyright (C) 1996-2015 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - - -PROGRAM=libtool -PACKAGE=libtool -VERSION=2.4.5 -package_revision=2.4.5 - - -## ------ ## -## Usage. ## -## ------ ## - -# Run './libtool --help' for help with using this script from the -# command line. - - -## ------------------------------- ## -## User overridable command paths. ## -## ------------------------------- ## - -# After configure completes, it has a better idea of some of the -# shell tools we need than the defaults used by the functions shared -# with bootstrap, so set those here where they can still be over- -# ridden by the user, but otherwise take precedence. - -: ${AUTOCONF="autoconf"} -: ${AUTOMAKE="automake"} - - -## -------------------------- ## -## Source external libraries. ## -## -------------------------- ## - -# Much of our low-level functionality needs to be sourced from external -# libraries, which are installed to $pkgauxdir. - -# Set a version string for this script. -scriptversion=2014-01-03.01; # UTC - -# General shell script boiler plate, and helper functions. -# Written by Gary V. Vaughan, 2004 - -# Copyright (C) 2004-2015 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. - -# As a special exception to the GNU General Public License, if you distribute -# this file as part of a program or library that is built using GNU Libtool, -# you may include this file under the same distribution terms that you use -# for the rest of that program. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# Please report bugs or propose patches to gary@gnu.org. - - -## ------ ## -## Usage. ## -## ------ ## - -# Evaluate this file near the top of your script to gain access to -# the functions and variables defined here: -# -# . `echo "$0" | ${SED-sed} 's|^/*$||'`/build-aux/funclib.sh -# -# If you need to override any of the default environment variable -# settings, do that before evaluating this file. - - -## -------------------- ## -## Shell normalisation. ## -## -------------------- ## - -# Some shells need a little help to be as Bourne compatible as possible. -# Before doing anything else, make sure all that help has been provided! - -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac -fi - -# NLS nuisances: We save the old values in case they are required later. -_G_user_locale= -_G_safe_locale= -for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test set = \"\${$_G_var+set}\"; then - save_$_G_var=\$$_G_var - $_G_var=C - export $_G_var - _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" - _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" - fi" -done - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Make sure IFS has a sensible default -sp=' ' -nl=' -' -IFS="$sp $nl" - -# There are apparently some retarded systems that use ';' as a PATH separator! -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - - -## ------------------------- ## -## Locate command utilities. ## -## ------------------------- ## - - -# func_executable_p FILE -# ---------------------- -# Check that FILE is an executable regular file. -func_executable_p () -{ - test -f "$1" && test -x "$1" -} - - -# func_path_progs PROGS_LIST CHECK_FUNC PATH -# -------------------------------------------- -# Search for either a program that responds to --version with output -# containing "GNU", or else returned by CHECK_FUNC otherwise, by -# trying all the directories in PATH with each of the elements of -# PROGS_LIST. -# -# CHECK_FUNC should accept the path to a candidate program, and -# set $func_check_prog_result if it truncates its output less than -# $_G_path_prog_max characters. -func_path_progs () -{ - _G_progs_list=$1 - _G_check_func=$2 - _G_PATH=${3-"$PATH"} - - _G_path_prog_max=0 - _G_path_prog_found=false - _G_save_IFS=$IFS; IFS=$PATH_SEPARATOR - for _G_dir in $_G_PATH; do - IFS=$_G_save_IFS - test -z "$_G_dir" && _G_dir=. - for _G_prog_name in $_G_progs_list; do
View file
libdvdcss-1.4.0.tar.bz2/m4
Deleted
-(directory)
View file
libdvdcss-1.4.0.tar.bz2/m4/attributes.m4
Deleted
@@ -1,295 +0,0 @@ -dnl Macros to check the presence of generic (non-typed) symbols. -dnl Copyright (c) 2006-2007 Diego Pettenò <flameeyes@gmail.com> -dnl Copyright (c) 2006-2007 xine project -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2, or (at your option) -dnl any later version. -dnl -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -dnl 02110-1301, USA. -dnl -dnl As a special exception, the copyright owners of the -dnl macro gives unlimited permission to copy, distribute and modify the -dnl configure scripts that are the output of Autoconf when processing the -dnl Macro. You need not follow the terms of the GNU General Public -dnl License when using or distributing such scripts, even though portions -dnl of the text of the Macro appear in them. The GNU General Public -dnl License (GPL) does govern all other use of the material that -dnl constitutes the Autoconf Macro. -dnl -dnl This special exception to the GPL applies to versions of the -dnl Autoconf Macro released by this project. When you make and -dnl distribute a modified version of the Autoconf Macro, you may extend -dnl this special exception to the GPL to apply to your modified version as -dnl well. - -dnl Check if the flag is supported by compiler -dnl CC_CHECK_CFLAGS_SILENT(FLAG, ACTION-IF-FOUND,ACTION-IF-NOT-FOUND) - -AC_DEFUN(CC_CHECK_CFLAGS_SILENT, - AC_CACHE_VAL(AS_TR_SH(cc_cv_cflags_$1), - ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $1" - AC_LINK_IFELSE(AC_LANG_SOURCE(int main(void) { return 0; }), - eval "AS_TR_SH(cc_cv_cflags_$1)='yes'", - eval "AS_TR_SH(cc_cv_cflags_$1)='no'") - CFLAGS="$ac_save_CFLAGS" - ) - - AS_IF(eval test x$AS_TR_SH(cc_cv_cflags_$1) = xyes, - $2, $3) -) - -dnl Check if the flag is supported by compiler (cacheable) -dnl CC_CHECK_CFLAGS(FLAG, ACTION-IF-FOUND,ACTION-IF-NOT-FOUND) - -AC_DEFUN(CC_CHECK_CFLAGS, - AC_CACHE_CHECK(if $CC supports $1 flag, - AS_TR_SH(cc_cv_cflags_$1), - CC_CHECK_CFLAGS_SILENT($1) dnl Don't execute actions here! - ) - - AS_IF(eval test x$AS_TR_SH(cc_cv_cflags_$1) = xyes, - $2, $3) -) - -dnl CC_CHECK_CFLAG_APPEND(FLAG, action-if-found, action-if-not-found) -dnl Check for CFLAG and appends them to CFLAGS if supported -AC_DEFUN(CC_CHECK_CFLAG_APPEND, - AC_CACHE_CHECK(if $CC supports $1 flag, - AS_TR_SH(cc_cv_cflags_$1), - CC_CHECK_CFLAGS_SILENT($1) dnl Don't execute actions here! - ) - - AS_IF(eval test x$AS_TR_SH(cc_cv_cflags_$1) = xyes, - CFLAGS="$CFLAGS $1"; $2, $3) -) - -dnl CC_CHECK_CFLAGS_APPEND(FLAG1 FLAG2, action-if-found, action-if-not) -AC_DEFUN(CC_CHECK_CFLAGS_APPEND, - for flag in $1; do - CC_CHECK_CFLAG_APPEND($flag, $2, $3) - done -) - -dnl Check if the flag is supported by linker (cacheable) -dnl CC_CHECK_LDFLAGS(FLAG, ACTION-IF-FOUND,ACTION-IF-NOT-FOUND) - -AC_DEFUN(CC_CHECK_LDFLAGS, - AC_CACHE_CHECK(if $CC supports $1 flag, - AS_TR_SH(cc_cv_ldflags_$1), - ac_save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $1" - AC_LINK_IFELSE(AC_LANG_SOURCE(int main(void) { return 1; }), - eval "AS_TR_SH(cc_cv_ldflags_$1)='yes'", - eval "AS_TR_SH(cc_cv_ldflags_$1)=") - LDFLAGS="$ac_save_LDFLAGS" - ) - - AS_IF(eval test x$AS_TR_SH(cc_cv_ldflags_$1) = xyes, - $2, $3) -) - -dnl Check for a -Werror flag or equivalent. -Werror is the GCC -dnl and ICC flag that tells the compiler to treat all the warnings -dnl as fatal. We usually need this option to make sure that some -dnl constructs (like attributes) are not simply ignored. -dnl -dnl Other compilers don't support -Werror per se, but they support -dnl an equivalent flag: -dnl - Sun Studio compiler supports -errwarn=%all -AC_DEFUN(CC_CHECK_WERROR, - AC_CACHE_CHECK( - for $CC way to treat warnings as errors, - cc_cv_werror, - CC_CHECK_CFLAGS_SILENT(-Werror, cc_cv_werror=-Werror, - CC_CHECK_CFLAGS_SILENT(-errwarn=%all, cc_cv_werror=-errwarn=%all)) - ) -) - -AC_DEFUN(CC_CHECK_ATTRIBUTE, - AC_REQUIRE(CC_CHECK_WERROR) - AC_CACHE_CHECK(if $CC supports __attribute__(( ifelse($2, , $1, $2) )), - AS_TR_SH(cc_cv_attribute_$1), - ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $cc_cv_werror" - AC_COMPILE_IFELSE(AC_LANG_SOURCE($3), - eval "AS_TR_SH(cc_cv_attribute_$1)='yes'", - eval "AS_TR_SH(cc_cv_attribute_$1)='no'") - CFLAGS="$ac_save_CFLAGS" - ) - - AS_IF(eval test x$AS_TR_SH(cc_cv_attribute_$1) = xyes, - AC_DEFINE( - AS_TR_CPP(SUPPORT_ATTRIBUTE_$1), 1, - Define this if the compiler supports __attribute__((ifelse($2, , $1, $2)))) - $4, - $5) -) - -AC_DEFUN(CC_ATTRIBUTE_CONSTRUCTOR, - CC_CHECK_ATTRIBUTE( - constructor,, - extern void foo(); - void __attribute__((constructor)) ctor() { foo(); }, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_DESTRUCTOR, - CC_CHECK_ATTRIBUTE( - destructor,, - extern void foo(); - void __attribute__((destructor)) dtor() { foo(); }, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_FORMAT, - CC_CHECK_ATTRIBUTE( - format, format(printf, n, n), - void __attribute__((format(printf, 1, 2))) printflike(const char *fmt, ...) { fmt = (void *)0; }, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_FORMAT_ARG, - CC_CHECK_ATTRIBUTE( - format_arg, format_arg(printf), - char *__attribute__((format_arg(1))) gettextlike(const char *fmt) { fmt = (void *)0; }, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_VISIBILITY, - CC_CHECK_ATTRIBUTE( - visibility_$1, visibility("$1"), - void __attribute__((visibility("$1"))) $1_function() { }, - $2, $3) -) - -AC_DEFUN(CC_ATTRIBUTE_NONNULL, - CC_CHECK_ATTRIBUTE( - nonnull, nonnull(), - void __attribute__((nonnull())) some_function(void *foo, void *bar) { foo = (void*)0; bar = (void*)0; }, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_UNUSED, - CC_CHECK_ATTRIBUTE( - unused, , - void some_function(void *foo, __attribute__((unused)) void *bar);, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_SENTINEL, - CC_CHECK_ATTRIBUTE( - sentinel, , - void some_function(void *foo, ...) __attribute__((sentinel));, - $1, $2) -) - -AC_DEFUN(CC_ATTRIBUTE_DEPRECATED, - CC_CHECK_ATTRIBUTE( - deprecated, ,
View file
libdvdcss-1.4.0.tar.bz2/m4/libtool.m4
Deleted
@@ -1,8364 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define(_LT_COPYING, dnl -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -) - -# serial 58 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun(LT_PREREQ, -m4_if(m4_version_compare(m4_defn(LT_PACKAGE_VERSION), $1), -1, - m4_default($3, - m4_fatal(Libtool version $1 or higher is required, - 63)), - $2)) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun(_LT_CHECK_BUILDDIR, -case `pwd` in - *\ * | *\ *) - AC_MSG_WARN(Libtool does not cope well with whitespace in `pwd`) ;; -esac -) - - -# LT_INIT(OPTIONS) -# ------------------ -AC_DEFUN(LT_INIT, -AC_PREREQ(2.62)dnl We use AC_PATH_PROGS_FEATURE_CHECK -AC_REQUIRE(AC_CONFIG_AUX_DIR_DEFAULT)dnl -AC_BEFORE($0, LT_LANG)dnl -AC_BEFORE($0, LT_OUTPUT)dnl -AC_BEFORE($0, LTDL_INIT)dnl -m4_require(_LT_CHECK_BUILDDIR)dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid(^_?LT_A-Z_+$)dnl -m4_pattern_allow(^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$)dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE(LTOPTIONS_VERSION)dnl -AC_REQUIRE(LTSUGAR_VERSION)dnl -AC_REQUIRE(LTVERSION_VERSION)dnl -AC_REQUIRE(LTOBSOLETE_VERSION)dnl -m4_require(_LT_PROG_LTMAIN)dnl - -_LT_SHELL_INIT(SHELL=${CONFIG_SHELL-/bin/sh}) - -dnl Parse OPTIONS -_LT_SET_OPTIONS($0, $1) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define(LT_INIT) -)# LT_INIT - -# Old names: -AU_ALIAS(AC_PROG_LIBTOOL, LT_INIT) -AU_ALIAS(AM_PROG_LIBTOOL, LT_INIT) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN(AC_PROG_LIBTOOL, ) -dnl AC_DEFUN(AM_PROG_LIBTOOL, ) - - -# _LT_PREPARE_CC_BASENAME -# ----------------------- -m4_defun(_LT_PREPARE_CC_BASENAME, -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in @S|@*""; do - case $cc_temp in - compile | *\\/compile | ccache | *\\/ccache ) ;; - distcc | *\\/distcc | purify | *\\/purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} -)# _LT_PREPARE_CC_BASENAME - - -# _LT_CC_BASENAME(CC) -# ------------------- -# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, -# but that macro is also expanded into generated libtool script, which -# arranges for $SED and $ECHO to be set by different means. -m4_defun(_LT_CC_BASENAME, -m4_require(_LT_PREPARE_CC_BASENAME)dnl -AC_REQUIRE(_LT_DECL_SED)dnl -AC_REQUIRE(_LT_PROG_ECHO_BACKSLASH)dnl -func_cc_basename $1 -cc_basename=$func_cc_basename_result -) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after 'm4_require(_LT_FILEUTILS_DEFAULTS)'. -m4_defun(_LT_FILEUTILS_DEFAULTS, -: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -)# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun(_LT_SETUP, -AC_REQUIRE(AC_CANONICAL_HOST)dnl -AC_REQUIRE(AC_CANONICAL_BUILD)dnl -AC_REQUIRE(_LT_PREPARE_SED_QUOTE_VARS)dnl -AC_REQUIRE(_LT_PROG_ECHO_BACKSLASH)dnl - -_LT_DECL(, PATH_SEPARATOR, 1, The PATH separator for the build system)dnl -dnl -_LT_DECL(, host_alias, 0, The host system)dnl -_LT_DECL(, host, 0)dnl -_LT_DECL(, host_os, 0)dnl -dnl -_LT_DECL(, build_alias, 0, The build system)dnl -_LT_DECL(, build, 0)dnl -_LT_DECL(, build_os, 0)dnl -dnl -AC_REQUIRE(AC_PROG_CC)dnl -AC_REQUIRE(LT_PATH_LD)dnl -AC_REQUIRE(LT_PATH_NM)dnl -dnl -AC_REQUIRE(AC_PROG_LN_S)dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL(, LN_S, 1, Whether we need soft or hard links)dnl -dnl -AC_REQUIRE(LT_CMD_MAX_LEN)dnl -_LT_DECL(objext, ac_objext, 0, Object file suffix (normally "o"))dnl -_LT_DECL(, exeext, 0, Executable file suffix (normally ""))dnl -dnl -m4_require(_LT_FILEUTILS_DEFAULTS)dnl -m4_require(_LT_CHECK_SHELL_FEATURES)dnl -m4_require(_LT_PATH_CONVERSION_FUNCTIONS)dnl -m4_require(_LT_CMD_RELOAD)dnl -m4_require(_LT_CHECK_MAGIC_METHOD)dnl -m4_require(_LT_CHECK_SHAREDLIB_FROM_LINKLIB)dnl -m4_require(_LT_CMD_OLD_ARCHIVE)dnl -m4_require(_LT_CMD_GLOBAL_SYMBOLS)dnl -m4_require(_LT_WITH_SYSROOT)dnl -m4_require(_LT_CMD_TRUNCATE)dnl - -_LT_CONFIG_LIBTOOL_INIT( -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi -) -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST
View file
libdvdcss-1.4.0.tar.bz2/m4/ltoptions.m4
Deleted
@@ -1,437 +0,0 @@ -# Helper functions for option handling. -*- Autoconf -*- -# -# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software -# Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 8 ltoptions.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN(LTOPTIONS_VERSION, m4_if(1)) - - -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) -# ------------------------------------------ -m4_define(_LT_MANGLE_OPTION, -_LT_OPTION_m4_bpatsubst($1__$2, ^a-zA-Z0-9_, _)) - - -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) -# --------------------------------------- -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a -# matching handler defined, dispatch to it. Other OPTION-NAMEs are -# saved as a flag. -m4_define(_LT_SET_OPTION, -m4_define(_LT_MANGLE_OPTION($1, $2))dnl -m4_ifdef(_LT_MANGLE_DEFUN($1, $2), - _LT_MANGLE_DEFUN($1, $2), - m4_warning(Unknown $1 option '$2'))dnl -) - - -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, IF-NOT-SET) -# ------------------------------------------------------------ -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -m4_define(_LT_IF_OPTION, -m4_ifdef(_LT_MANGLE_OPTION($1, $2), $3, $4)) - - -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) -# ------------------------------------------------------- -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME -# are set. -m4_define(_LT_UNLESS_OPTIONS, -m4_foreach(_LT_Option, m4_split(m4_normalize($2)), - m4_ifdef(_LT_MANGLE_OPTION($1, _LT_Option), - m4_define($0_found)))dnl -m4_ifdef($0_found, m4_undefine($0_found), $3 -)dnl -) - - -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) -# ---------------------------------------- -# OPTION-LIST is a space-separated list of Libtool options associated -# with MACRO-NAME. If any OPTION has a matching handler declared with -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about -# the unknown option and exit. -m4_defun(_LT_SET_OPTIONS, -# Set options -m4_foreach(_LT_Option, m4_split(m4_normalize($2)), - _LT_SET_OPTION($1, _LT_Option)) - -m4_if($1,LT_INIT, - dnl - dnl Simply set some default values (i.e off) if boolean options were not - dnl specified: - _LT_UNLESS_OPTIONS(LT_INIT, dlopen, enable_dlopen=no - ) - _LT_UNLESS_OPTIONS(LT_INIT, win32-dll, enable_win32_dll=no - ) - dnl - dnl If no reference was made to various pairs of opposing options, then - dnl we run the default mode handler for the pair. For example, if neither - dnl 'shared' nor 'disable-shared' was passed, we enable building of shared - dnl archives by default: - _LT_UNLESS_OPTIONS(LT_INIT, shared disable-shared, _LT_ENABLE_SHARED) - _LT_UNLESS_OPTIONS(LT_INIT, static disable-static, _LT_ENABLE_STATIC) - _LT_UNLESS_OPTIONS(LT_INIT, pic-only no-pic, _LT_WITH_PIC) - _LT_UNLESS_OPTIONS(LT_INIT, fast-install disable-fast-install, - _LT_ENABLE_FAST_INSTALL) - _LT_UNLESS_OPTIONS(LT_INIT, aix-soname=aix aix-soname=both aix-soname=svr4, - _LT_WITH_AIX_SONAME(aix)) - ) -)# _LT_SET_OPTIONS - - -## --------------------------------- ## -## Macros to handle LT_INIT options. ## -## --------------------------------- ## - -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) -# ----------------------------------------- -m4_define(_LT_MANGLE_DEFUN, -_LT_OPTION_DEFUN_m4_bpatsubst(m4_toupper($1__$2), ^A-Z0-9_, _)) - - -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) -# ----------------------------------------------- -m4_define(LT_OPTION_DEFINE, -m4_define(_LT_MANGLE_DEFUN($1, $2), $3)dnl -)# LT_OPTION_DEFINE - - -# dlopen -# ------ -LT_OPTION_DEFINE(LT_INIT, dlopen, enable_dlopen=yes -) - -AU_DEFUN(AC_LIBTOOL_DLOPEN, -_LT_SET_OPTION(LT_INIT, dlopen) -AC_DIAGNOSE(obsolete, -$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.) -) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN(AC_LIBTOOL_DLOPEN, ) - - -# win32-dll -# --------- -# Declare package support for building win32 dll's. -LT_OPTION_DEFINE(LT_INIT, win32-dll, -enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -esac - -test -z "$AS" && AS=as -_LT_DECL(, AS, 1, Assembler program)dnl - -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL(, DLLTOOL, 1, DLL creation program)dnl - -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL(, OBJDUMP, 1, Object dumper program)dnl -)# win32-dll - -AU_DEFUN(AC_LIBTOOL_WIN32_DLL, -AC_REQUIRE(AC_CANONICAL_HOST)dnl -_LT_SET_OPTION(LT_INIT, win32-dll) -AC_DIAGNOSE(obsolete, -$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.) -) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN(AC_LIBTOOL_WIN32_DLL, ) - - -# _LT_ENABLE_SHARED(DEFAULT) -# ---------------------------- -# implement the --enable-shared flag, and supports the 'shared' and -# 'disable-shared' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define(_LT_ENABLE_SHARED, -m4_define(_LT_ENABLE_SHARED_DEFAULT, m4_if($1, no, no, yes))dnl -AC_ARG_ENABLE(shared, - AS_HELP_STRING(--enable-shared@<:@=PKGS@:>@, - build shared libraries @<:@default=_LT_ENABLE_SHARED_DEFAULT@:>@), - p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac, - enable_shared=_LT_ENABLE_SHARED_DEFAULT) - - _LT_DECL(build_libtool_libs, enable_shared, 0, - Whether or not to build shared libraries) -)# _LT_ENABLE_SHARED - -LT_OPTION_DEFINE(LT_INIT, shared, _LT_ENABLE_SHARED(yes)) -LT_OPTION_DEFINE(LT_INIT, disable-shared, _LT_ENABLE_SHARED(no)) - -# Old names: -AC_DEFUN(AC_ENABLE_SHARED, -_LT_SET_OPTION(LT_INIT, m4_if($1, no, disable-)shared) -)
View file
libdvdcss-1.4.0.tar.bz2/m4/ltsugar.m4
Deleted
@@ -1,124 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software -# Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltsugar.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN(LTSUGAR_VERSION, m4_if(0.1)) - - -# lt_join(SEP, ARG1, ARG2...) -# ----------------------------- -# Produce ARG1SEPARG2...SEPARGn, omitting arguments and their -# associated separator. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier -# versions in m4sugar had bugs. -m4_define(lt_join, -m4_if($#, 1, , - $#, 2, $2, - m4_if($2, , , $2_)$0($1, m4_shift(m4_shift($@))))) -m4_define(_lt_join, -m4_if($#$2, 2, , - m4_if($2, , , $1$2)$0($1, m4_shift(m4_shift($@))))) - - -# lt_car(LIST) -# lt_cdr(LIST) -# ------------ -# Manipulate m4 lists. -# These macros are necessary as long as will still need to support -# Autoconf-2.59, which quotes differently. -m4_define(lt_car, $1) -m4_define(lt_cdr, -m4_if($#, 0, m4_fatal($0: cannot be called without arguments), - $#, 1, , - m4_dquote(m4_shift($@)))) -m4_define(lt_unquote, $1) - - -# lt_append(MACRO-NAME, STRING, SEPARATOR) -# ------------------------------------------ -# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. -# Note that neither SEPARATOR nor STRING are expanded; they are appended -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). -# No SEPARATOR is output if MACRO-NAME was previously undefined (different -# than defined and empty). -# -# This macro is needed until we can rely on Autoconf 2.62, since earlier -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. -m4_define(lt_append, -m4_define($1, - m4_ifdef($1, m4_defn($1)$3)$2)) - - - -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, SUFFIX2...) -# ---------------------------------------------------------- -# Produce a SEP delimited list of all paired combinations of elements of -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list -# has the form PREFIXmINFIXSUFFIXn. -# Needed until we can rely on m4_combine added in Autoconf 2.62. -m4_define(lt_combine, -m4_if(m4_eval($# > 3), 1, - m4_pushdef(_Lt_sep, m4_define(_Lt_sep, m4_defn(lt_car)))dnl -m4_foreach(_Lt_prefix, $2, - m4_foreach(_Lt_suffix, - m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@))))), - _Lt_sep($1)m4_defn(_Lt_prefix)$3m4_defn(_Lt_suffix))))) - - -# lt_if_append_uniq(MACRO-NAME, VARNAME, SEPARATOR, UNIQ, NOT-UNIQ) -# ----------------------------------------------------------------------- -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. -m4_define(lt_if_append_uniq, -m4_ifdef($1, - m4_if(m4_index($3m4_defn($1)$3, $3$2$3), -1, - lt_append($1, $2, $3)$4, - $5), - lt_append($1, $2, $3)$4)) - - -# lt_dict_add(DICT, KEY, VALUE) -# ----------------------------- -m4_define(lt_dict_add, -m4_define($1($2), $3)) - - -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) -# -------------------------------------------- -m4_define(lt_dict_add_subkey, -m4_define($1($2:$3), $4)) - - -# lt_dict_fetch(DICT, KEY, SUBKEY) -# ---------------------------------- -m4_define(lt_dict_fetch, -m4_ifval($3, - m4_ifdef($1($2:$3), m4_defn($1($2:$3))), - m4_ifdef($1($2), m4_defn($1($2))))) - - -# lt_if_dict_fetch(DICT, KEY, SUBKEY, VALUE, IF-TRUE, IF-FALSE) -# ----------------------------------------------------------------- -m4_define(lt_if_dict_fetch, -m4_if(lt_dict_fetch($1, $2, $3), $4, - $5, - $6)) - - -# lt_dict_filter(DICT, SUBKEY, VALUE, SEPARATOR, KEY, ...) -# -------------------------------------------------------------- -m4_define(lt_dict_filter, -m4_if($5, , , - lt_join(m4_quote(m4_default($4, , )), - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car(m4_shiftn(4, $@)), - lt_if_dict_fetch($1, _Lt_key, $2, $3, _Lt_key )))))))dnl -)
View file
libdvdcss-1.4.0.tar.bz2/m4/ltversion.m4
Deleted
@@ -1,23 +0,0 @@ -# ltversion.m4 -- version numbers -*- Autoconf -*- -# -# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. -# Written by Scott James Remnant, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# @configure_input@ - -# serial 4171 ltversion.m4 -# This file is part of GNU Libtool - -m4_define(LT_PACKAGE_VERSION, 2.4.5) -m4_define(LT_PACKAGE_REVISION, 2.4.5) - -AC_DEFUN(LTVERSION_VERSION, -macro_version='2.4.5' -macro_revision='2.4.5' -_LT_DECL(, macro_version, 0, Which release of libtool.m4 was used?) -_LT_DECL(, macro_revision, 0) -)
View file
libdvdcss-1.4.0.tar.bz2/m4/lt~obsolete.m4
Deleted
@@ -1,99 +0,0 @@ -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software -# Foundation, Inc. -# Written by Scott James Remnant, 2004. -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 5 lt~obsolete.m4 - -# These exist entirely to fool aclocal when bootstrapping libtool. -# -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), -# which have later been changed to m4_define as they aren't part of the -# exported API, or moved to Autoconf or Automake where they belong. -# -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us -# using a macro with the same name in our local m4/libtool.m4 it'll -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define -# and doesn't know about Autoconf macros at all.) -# -# So we provide this file, which has a silly filename so it's always -# included after everything else. This provides aclocal with the -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything -# because those macros already exist, or will be overwritten later. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. -# -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. -# Yes, that means every name once taken will need to remain here until -# we give up compatibility with versions before 1.7, at which point -# we need to keep only those names which we still refer to. - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN(LTOBSOLETE_VERSION, m4_if(1)) - -m4_ifndef(AC_LIBTOOL_LINKER_OPTION, AC_DEFUN(AC_LIBTOOL_LINKER_OPTION)) -m4_ifndef(AC_PROG_EGREP, AC_DEFUN(AC_PROG_EGREP)) -m4_ifndef(_LT_AC_PROG_ECHO_BACKSLASH, AC_DEFUN(_LT_AC_PROG_ECHO_BACKSLASH)) -m4_ifndef(_LT_AC_SHELL_INIT, AC_DEFUN(_LT_AC_SHELL_INIT)) -m4_ifndef(_LT_AC_SYS_LIBPATH_AIX, AC_DEFUN(_LT_AC_SYS_LIBPATH_AIX)) -m4_ifndef(_LT_PROG_LTMAIN, AC_DEFUN(_LT_PROG_LTMAIN)) -m4_ifndef(_LT_AC_TAGVAR, AC_DEFUN(_LT_AC_TAGVAR)) -m4_ifndef(AC_LTDL_ENABLE_INSTALL, AC_DEFUN(AC_LTDL_ENABLE_INSTALL)) -m4_ifndef(AC_LTDL_PREOPEN, AC_DEFUN(AC_LTDL_PREOPEN)) -m4_ifndef(_LT_AC_SYS_COMPILER, AC_DEFUN(_LT_AC_SYS_COMPILER)) -m4_ifndef(_LT_AC_LOCK, AC_DEFUN(_LT_AC_LOCK)) -m4_ifndef(AC_LIBTOOL_SYS_OLD_ARCHIVE, AC_DEFUN(AC_LIBTOOL_SYS_OLD_ARCHIVE)) -m4_ifndef(_LT_AC_TRY_DLOPEN_SELF, AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF)) -m4_ifndef(AC_LIBTOOL_PROG_CC_C_O, AC_DEFUN(AC_LIBTOOL_PROG_CC_C_O)) -m4_ifndef(AC_LIBTOOL_SYS_HARD_LINK_LOCKS, AC_DEFUN(AC_LIBTOOL_SYS_HARD_LINK_LOCKS)) -m4_ifndef(AC_LIBTOOL_OBJDIR, AC_DEFUN(AC_LIBTOOL_OBJDIR)) -m4_ifndef(AC_LTDL_OBJDIR, AC_DEFUN(AC_LTDL_OBJDIR)) -m4_ifndef(AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH, AC_DEFUN(AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH)) -m4_ifndef(AC_LIBTOOL_SYS_LIB_STRIP, AC_DEFUN(AC_LIBTOOL_SYS_LIB_STRIP)) -m4_ifndef(AC_PATH_MAGIC, AC_DEFUN(AC_PATH_MAGIC)) -m4_ifndef(AC_PROG_LD_GNU, AC_DEFUN(AC_PROG_LD_GNU)) -m4_ifndef(AC_PROG_LD_RELOAD_FLAG, AC_DEFUN(AC_PROG_LD_RELOAD_FLAG)) -m4_ifndef(AC_DEPLIBS_CHECK_METHOD, AC_DEFUN(AC_DEPLIBS_CHECK_METHOD)) -m4_ifndef(AC_LIBTOOL_PROG_COMPILER_NO_RTTI, AC_DEFUN(AC_LIBTOOL_PROG_COMPILER_NO_RTTI)) -m4_ifndef(AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE, AC_DEFUN(AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE)) -m4_ifndef(AC_LIBTOOL_PROG_COMPILER_PIC, AC_DEFUN(AC_LIBTOOL_PROG_COMPILER_PIC)) -m4_ifndef(AC_LIBTOOL_PROG_LD_SHLIBS, AC_DEFUN(AC_LIBTOOL_PROG_LD_SHLIBS)) -m4_ifndef(AC_LIBTOOL_POSTDEP_PREDEP, AC_DEFUN(AC_LIBTOOL_POSTDEP_PREDEP)) -m4_ifndef(LT_AC_PROG_EGREP, AC_DEFUN(LT_AC_PROG_EGREP)) -m4_ifndef(LT_AC_PROG_SED, AC_DEFUN(LT_AC_PROG_SED)) -m4_ifndef(_LT_CC_BASENAME, AC_DEFUN(_LT_CC_BASENAME)) -m4_ifndef(_LT_COMPILER_BOILERPLATE, AC_DEFUN(_LT_COMPILER_BOILERPLATE)) -m4_ifndef(_LT_LINKER_BOILERPLATE, AC_DEFUN(_LT_LINKER_BOILERPLATE)) -m4_ifndef(_AC_PROG_LIBTOOL, AC_DEFUN(_AC_PROG_LIBTOOL)) -m4_ifndef(AC_LIBTOOL_SETUP, AC_DEFUN(AC_LIBTOOL_SETUP)) -m4_ifndef(_LT_AC_CHECK_DLFCN, AC_DEFUN(_LT_AC_CHECK_DLFCN)) -m4_ifndef(AC_LIBTOOL_SYS_DYNAMIC_LINKER, AC_DEFUN(AC_LIBTOOL_SYS_DYNAMIC_LINKER)) -m4_ifndef(_LT_AC_TAGCONFIG, AC_DEFUN(_LT_AC_TAGCONFIG)) -m4_ifndef(AC_DISABLE_FAST_INSTALL, AC_DEFUN(AC_DISABLE_FAST_INSTALL)) -m4_ifndef(_LT_AC_LANG_CXX, AC_DEFUN(_LT_AC_LANG_CXX)) -m4_ifndef(_LT_AC_LANG_F77, AC_DEFUN(_LT_AC_LANG_F77)) -m4_ifndef(_LT_AC_LANG_GCJ, AC_DEFUN(_LT_AC_LANG_GCJ)) -m4_ifndef(AC_LIBTOOL_LANG_C_CONFIG, AC_DEFUN(AC_LIBTOOL_LANG_C_CONFIG)) -m4_ifndef(_LT_AC_LANG_C_CONFIG, AC_DEFUN(_LT_AC_LANG_C_CONFIG)) -m4_ifndef(AC_LIBTOOL_LANG_CXX_CONFIG, AC_DEFUN(AC_LIBTOOL_LANG_CXX_CONFIG)) -m4_ifndef(_LT_AC_LANG_CXX_CONFIG, AC_DEFUN(_LT_AC_LANG_CXX_CONFIG)) -m4_ifndef(AC_LIBTOOL_LANG_F77_CONFIG, AC_DEFUN(AC_LIBTOOL_LANG_F77_CONFIG)) -m4_ifndef(_LT_AC_LANG_F77_CONFIG, AC_DEFUN(_LT_AC_LANG_F77_CONFIG)) -m4_ifndef(AC_LIBTOOL_LANG_GCJ_CONFIG, AC_DEFUN(AC_LIBTOOL_LANG_GCJ_CONFIG)) -m4_ifndef(_LT_AC_LANG_GCJ_CONFIG, AC_DEFUN(_LT_AC_LANG_GCJ_CONFIG)) -m4_ifndef(AC_LIBTOOL_LANG_RC_CONFIG, AC_DEFUN(AC_LIBTOOL_LANG_RC_CONFIG)) -m4_ifndef(_LT_AC_LANG_RC_CONFIG, AC_DEFUN(_LT_AC_LANG_RC_CONFIG)) -m4_ifndef(AC_LIBTOOL_CONFIG, AC_DEFUN(AC_LIBTOOL_CONFIG)) -m4_ifndef(_LT_AC_FILE_LTDLL_C, AC_DEFUN(_LT_AC_FILE_LTDLL_C)) -m4_ifndef(_LT_REQUIRED_DARWIN_CHECKS, AC_DEFUN(_LT_REQUIRED_DARWIN_CHECKS)) -m4_ifndef(_LT_AC_PROG_CXXCPP, AC_DEFUN(_LT_AC_PROG_CXXCPP)) -m4_ifndef(_LT_PREPARE_SED_QUOTE_VARS, AC_DEFUN(_LT_PREPARE_SED_QUOTE_VARS)) -m4_ifndef(_LT_PROG_ECHO_BACKSLASH, AC_DEFUN(_LT_PROG_ECHO_BACKSLASH)) -m4_ifndef(_LT_PROG_F77, AC_DEFUN(_LT_PROG_F77)) -m4_ifndef(_LT_PROG_FC, AC_DEFUN(_LT_PROG_FC)) -m4_ifndef(_LT_PROG_CXX, AC_DEFUN(_LT_PROG_CXX))
View file
libdvdcss-1.4.0.tar.bz2/missing
Deleted
@@ -1,215 +0,0 @@ -#! /bin/sh -# Common wrapper for a few potentially missing GNU programs. - -scriptversion=2013-10-28.13; # UTC - -# Copyright (C) 1996-2014 Free Software Foundation, Inc. -# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -if test $# -eq 0; then - echo 1>&2 "Try '$0 --help' for more information" - exit 1 -fi - -case $1 in - - --is-lightweight) - # Used by our autoconf macros to check whether the available missing - # script is modern enough. - exit 0 - ;; - - --run) - # Back-compat with the calling convention used by older automake. - shift - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 OPTION... PROGRAM ARGUMENT... - -Run 'PROGRAM ARGUMENT...', returning a proper advice when this fails due -to PROGRAM being missing or too old. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - -Supported PROGRAM values: - aclocal autoconf autoheader autom4te automake makeinfo - bison yacc flex lex help2man - -Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and -'g' are ignored when checking the name. - -Send bug reports to <bug-automake@gnu.org>." - exit $? - ;; - - -v|--v|--ve|--ver|--vers|--versi|--versio|--version) - echo "missing $scriptversion (GNU Automake)" - exit $? - ;; - - -*) - echo 1>&2 "$0: unknown '$1' option" - echo 1>&2 "Try '$0 --help' for more information" - exit 1 - ;; - -esac - -# Run the given program, remember its exit status. -"$@"; st=$? - -# If it succeeded, we are done. -test $st -eq 0 && exit 0 - -# Also exit now if we it failed (or wasn't found), and '--version' was -# passed; such an option is passed most likely to detect whether the -# program is present and works. -case $2 in --version|--help) exit $st;; esac - -# Exit code 63 means version mismatch. This often happens when the user -# tries to use an ancient version of a tool on a file that requires a -# minimum version. -if test $st -eq 63; then - msg="probably too old" -elif test $st -eq 127; then - # Program was missing. - msg="missing on your system" -else - # Program was found and executed, but failed. Give up. - exit $st -fi - -perl_URL=http://www.perl.org/ -flex_URL=http://flex.sourceforge.net/ -gnu_software_URL=http://www.gnu.org/software - -program_details () -{ - case $1 in - aclocal|automake) - echo "The '$1' program is part of the GNU Automake package:" - echo "<$gnu_software_URL/automake>" - echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/autoconf>" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - autoconf|autom4te|autoheader) - echo "The '$1' program is part of the GNU Autoconf package:" - echo "<$gnu_software_URL/autoconf/>" - echo "It also requires GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - esac -} - -give_advice () -{ - # Normalize program name to check for. - normalized_program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - - printf '%s\n' "'$1' is $msg." - - configure_deps="'configure.ac' or m4 files included by 'configure.ac'" - case $normalized_program in - autoconf*) - echo "You should only need it if you modified 'configure.ac'," - echo "or m4 files included by it." - program_details 'autoconf' - ;; - autoheader*) - echo "You should only need it if you modified 'acconfig.h' or" - echo "$configure_deps." - program_details 'autoheader' - ;; - automake*) - echo "You should only need it if you modified 'Makefile.am' or" - echo "$configure_deps." - program_details 'automake' - ;; - aclocal*) - echo "You should only need it if you modified 'acinclude.m4' or" - echo "$configure_deps." - program_details 'aclocal' - ;; - autom4te*) - echo "You might have modified some maintainer files that require" - echo "the 'autom4te' program to be rebuilt." - program_details 'autom4te' - ;; - bison*|yacc*) - echo "You should only need it if you modified a '.y' file." - echo "You may want to install the GNU Bison package:" - echo "<$gnu_software_URL/bison/>" - ;; - lex*|flex*) - echo "You should only need it if you modified a '.l' file." - echo "You may want to install the Fast Lexical Analyzer package:" - echo "<$flex_URL>" - ;; - help2man*) - echo "You should only need it if you modified a dependency" \ - "of a man page." - echo "You may want to install the GNU Help2man package:" - echo "<$gnu_software_URL/help2man/>" - ;; - makeinfo*) - echo "You should only need it if you modified a '.texi' file, or" - echo "any other file indirectly affecting the aspect of the manual." - echo "You might want to install the Texinfo package:" - echo "<$gnu_software_URL/texinfo/>" - echo "The spurious makeinfo call might also be the consequence of" - echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" - echo "want to install GNU make:" - echo "<$gnu_software_URL/make/>" - ;; - *) - echo "You might have modified some files without having the proper" - echo "tools for further handling them. Check the 'README' file, it" - echo "often tells you about the needed prerequisites for installing" - echo "this package. You may also peek at any GNU archive site, in" - echo "case some other package contains this missing '$1' program." - ;; - esac
View file
libdvdcss-1.4.0.tar.bz2/msvc
Deleted
-(directory)
View file
libdvdcss-1.4.0.tar.bz2/msvc/config.h
Deleted
@@ -1,44 +0,0 @@ -/* config.h. Generated by hand. */ - -/* #undef DARWIN_DVD_IOCTL */ -/* #undef DVD_STRUCT_IN_DVD_H */ -/* #undef DVD_STRUCT_IN_LINUX_CDROM_H */ -/* #undef DVD_STRUCT_IN_SYS_CDIO_H */ -/* #undef DVD_STRUCT_IN_SYS_DVDIO_H */ -/* #undef HAVE_BSD_DVD_STRUCT */ -#define HAVE_DLFCN_H 1 -/* #undef HAVE_DVD_H */ -/* #undef HAVE_INTTYPES_H */ -/* #undef HAVE_LINUX_CDROM_H */ -/* #undef HAVE_LINUX_DVD_STRUCT */ -#define HAVE_MEMORY_H 1 -/* #undef HAVE_OPENBSD_DVD_STRUCT */ -#define HAVE_STDLIB_H 1 -#define HAVE_STRINGS_H 1 -#define HAVE_STRING_H 1 -/* #undef HAVE_SYS_CDIO_H */ -/* #undef HAVE_SYS_DVDIO_H */ -#define HAVE_SYS_IOCTL_H 1 -/* #undef HAVE_SYS_PARAM_H */ -#define HAVE_SYS_STAT_H 1 -#define HAVE_SYS_TYPES_H 1 -/* #undef HAVE_UNISTD_H */ -#define HAVE_WINDOWS_H 1 -#define HAVE_WINIOCTL_H 1 -/* #undef HAVE__SYS_DEV_SCSI_SCSI_IOCTL_H */ -#define PACKAGE "libdvdcss" -#define PACKAGE_BUGREPORT "" -#define PACKAGE_NAME "libdvdcss" -#define PACKAGE_STRING "libdvdcss 1.3.0" -#define PACKAGE_TARNAME "libdvdcss" -#define PACKAGE_VERSION "1.3.0" -/* #undef SOLARIS_USCSI */ -#define STDC_HEADERS 1 -#define VERSION "1.3.0" -#define _WIN32_IE 0x0501 -/* #undef const */ -/* #undef inline */ -/* #undef size_t */ -#define HAVE_BROKEN_MKDIR 1 -#define _CRT_SECURE_NO_WARNINGS 1 -#define LIBDVDCSS_EXPORTS 1
View file
libdvdcss-1.4.0.tar.bz2/msvc/csstest.dsp
Deleted
@@ -1,104 +0,0 @@ -# Microsoft Developer Studio Project File - Name="csstest" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=csstest - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "csstest.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "csstest.mak" CFG="csstest - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "csstest - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "csstest - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "csstest - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /I "." /I "..\src" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 - -!ELSEIF "$(CFG)" == "csstest - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "csstest___Win32_Debug" -# PROP BASE Intermediate_Dir "csstest___Win32_Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "csstest___Win32_Debug" -# PROP Intermediate_Dir "csstest___Win32_Debug" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "..\src" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept - -!ENDIF - -# Begin Target - -# Name "csstest - Win32 Release" -# Name "csstest - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=..\test\csstest.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\src\dvdcss\dvdcss.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# End Group -# End Target -# End Project
View file
libdvdcss-1.4.0.tar.bz2/msvc/libdvdcss.dsp
Deleted
@@ -1,144 +0,0 @@ -# Microsoft Developer Studio Project File - Name="libdvdcss" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Static Library" 0x0104 - -CFG=libdvdcss - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "libdvdcss.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "libdvdcss.mak" CFG="libdvdcss - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "libdvdcss - Win32 Release" (based on "Win32 (x86) Static Library") -!MESSAGE "libdvdcss - Win32 Debug" (based on "Win32 (x86) Static Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "libdvdcss - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c -# ADD CPP /nologo /W3 /GX /O2 /I "." /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D PATH_MAX=2048 /YX /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo - -!ELSEIF "$(CFG)" == "libdvdcss - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c -# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D PATH_MAX=2048 /YX /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LIB32=link.exe -lib -# ADD BASE LIB32 /nologo -# ADD LIB32 /nologo - -!ENDIF - -# Begin Target - -# Name "libdvdcss - Win32 Release" -# Name "libdvdcss - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=..\src\css.c -# End Source File -# Begin Source File - -SOURCE=..\src\device.c -# End Source File -# Begin Source File - -SOURCE=..\src\error.c -# End Source File -# Begin Source File - -SOURCE=..\src\ioctl.c -# End Source File -# Begin Source File - -SOURCE=..\src\libdvdcss.c -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\src\common.h -# End Source File -# Begin Source File - -SOURCE=.\config.h -# End Source File -# Begin Source File - -SOURCE=..\src\css.h -# End Source File -# Begin Source File - -SOURCE=..\src\csstables.h -# End Source File -# Begin Source File - -SOURCE=..\src\device.h -# End Source File -# Begin Source File - -SOURCE=..\src\dvdcss\dvdcss.h -# End Source File -# Begin Source File - -SOURCE=..\src\ioctl.h -# End Source File -# Begin Source File - -SOURCE=..\src\libdvdcss.h -# End Source File -# End Group -# End Target -# End Project
View file
libdvdcss-1.4.0.tar.bz2/msvc/libdvdcss.vcxproj
Deleted
@@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <SccProjectName /> - <SccLocalPath /> - <ProjectGuid>{50F2BF62-8520-4B37-97DD-578EA282EC04}</ProjectGuid> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> - <ConfigurationType>StaticLibrary</ConfigurationType> - <PlatformToolset>v110</PlatformToolset> - <UseOfMfc>false</UseOfMfc> - <CharacterSet>MultiByte</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>StaticLibrary</ConfigurationType> - <PlatformToolset>v110</PlatformToolset> - <UseOfMfc>false</UseOfMfc> - <CharacterSet>MultiByte</CharacterSet> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - <Import Project="$(VCTargetsPath)Microsoft.Cpp.UpgradeFromVC60.props" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <OutDir>.\Release\</OutDir> - <IntDir>.\Release\</IntDir> - <LinkIncremental>false</LinkIncremental> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <OutDir>.\Debug\</OutDir> - <IntDir>.\Debug\</IntDir> - <LinkIncremental>true</LinkIncremental> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <RuntimeLibrary>MultiThreaded</RuntimeLibrary> - <InlineFunctionExpansion>Default</InlineFunctionExpansion> - <StringPooling>true</StringPooling> - <FunctionLevelLinking>true</FunctionLevelLinking> - <Optimization>MaxSpeed</Optimization> - <SuppressStartupBanner>true</SuppressStartupBanner> - <WarningLevel>Level3</WarningLevel> - <AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;WIN32;_LIB;PATH_MAX=2048;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AssemblerListingLocation>.\Release\</AssemblerListingLocation> - <PrecompiledHeaderOutputFile>.\Release\libdvdcss.pch</PrecompiledHeaderOutputFile> - <ObjectFileName>.\Release\</ObjectFileName> - <ProgramDataBaseFileName>.\Release\</ProgramDataBaseFileName> - </ClCompile> - <ResourceCompile> - <Culture>0x0409</Culture> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ResourceCompile> - <Bscmake> - <SuppressStartupBanner>true</SuppressStartupBanner> - <OutputFile>.\Release\libdvdcss.bsc</OutputFile> - </Bscmake> - <Lib> - <SuppressStartupBanner>true</SuppressStartupBanner> - <OutputFile>.\Release\libdvdcss.lib</OutputFile> - </Lib> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> - <InlineFunctionExpansion>Default</InlineFunctionExpansion> - <FunctionLevelLinking>false</FunctionLevelLinking> - <Optimization>Disabled</Optimization> - <SuppressStartupBanner>true</SuppressStartupBanner> - <WarningLevel>Level3</WarningLevel> - <MinimalRebuild>true</MinimalRebuild> - <DebugInformationFormat>EditAndContinue</DebugInformationFormat> - <AdditionalIncludeDirectories>.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;WIN32;_LIB;PATH_MAX=2048;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AssemblerListingLocation>.\Debug\</AssemblerListingLocation> - <PrecompiledHeaderOutputFile>.\Debug\libdvdcss.pch</PrecompiledHeaderOutputFile> - <ObjectFileName>.\Debug\</ObjectFileName> - <ProgramDataBaseFileName>.\Debug\</ProgramDataBaseFileName> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - </ClCompile> - <ResourceCompile> - <Culture>0x0409</Culture> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - </ResourceCompile> - <Bscmake> - <SuppressStartupBanner>true</SuppressStartupBanner> - <OutputFile>.\Debug\libdvdcss.bsc</OutputFile> - </Bscmake> - <Lib> - <SuppressStartupBanner>true</SuppressStartupBanner> - <OutputFile>.\Debug\libdvdcss.lib</OutputFile> - </Lib> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="..\src\css.c" /> - <ClCompile Include="..\src\device.c" /> - <ClCompile Include="..\src\error.c" /> - <ClCompile Include="..\src\ioctl.c" /> - <ClCompile Include="..\src\libdvdcss.c" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="..\src\common.h" /> - <ClInclude Include="config.h" /> - <ClInclude Include="..\src\css.h" /> - <ClInclude Include="..\src\csstables.h" /> - <ClInclude Include="..\src\device.h" /> - <ClInclude Include="..\src\dvdcss\dvdcss.h" /> - <ClInclude Include="..\src\ioctl.h" /> - <ClInclude Include="..\src\libdvdcss.h" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project>
View file
libdvdcss-1.4.0.tar.bz2/msvc/workspace.dsw
Deleted
@@ -1,44 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "csstest"=.\csstest.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ - Begin Project Dependency - Project_Dep_Name libdvdcss - End Project Dependency -}}} - -############################################################################### - -Project: "libdvdcss"=.\libdvdcss.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### -
View file
libdvdcss-1.4.0.tar.bz2/src/dvdcss/version.h
Deleted
@@ -1,37 +0,0 @@ -/* - * This file is part of libdvdcss - * Copyright (C) 2015 VideoLAN - * - * This file is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This file is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see - * <http://www.gnu.org/licenses/>. - */ - -#ifndef DVDCSS_VERSION_H_ -#define DVDCSS_VERSION_H_ - -#define DVDCSS_VERSION_CODE(major, minor, micro) \ - (((major) * 10000) + \ - ((minor) * 100) + \ - ((micro) * 1)) - -#define DVDCSS_VERSION_MAJOR 1 -#define DVDCSS_VERSION_MINOR 4 -#define DVDCSS_VERSION_MICRO 0 - -#define DVDCSS_VERSION_STRING "1.4.0" - -#define DVDCSS_VERSION \ - DVDCSS_VERSION_CODE(DVDCSS_VERSION_MAJOR, DVDCSS_VERSION_MINOR, DVDCSS_VERSION_MICRO) - -#endif /* DVDCSS_VERSION_H_ */
View file
libdvdcss-1.4.0.tar.bz2/src/libdvdcss.pc.in
Deleted
@@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: libdvdcss -Description: DVD access and decryption library. -Version: @VERSION@ -Libs: -L${libdir} -ldvdcss -Cflags: -I${includedir} -I${includedir}/dvdcss
View file
libdvdcss-1.6.0.tar.xz/.gitignore
Added
@@ -0,0 +1,39 @@ +/.libs +/ChangeLog +/Makefile +/Makefile.in +/aclocal.m4 +/autom4te.cache +/compile +/config.* +/configure +/depcomp +/install-sh +/libdvdcss.la +/libdvdcss.spec +/libdvdcss*.tar.* +/libtool +/ltmain.sh +/missing +/stamp-* +/doc/doxygen.cfg +/doc/doxygen_sqlite3.db +/doc/html +/m4/libtool.m4 +/m4/lt*.m4 +/src/*.lo +/src/*.o +/src/.deps +/src/.dirstamp +/src/.libs +/src/libdvdcss.pc +/test/*.exe +/test/*.o +/test/.deps +/test/.dirstamp +/test/.libs +/test/csstest +/test/dvd_region +/build* +/releases* +/tarballs*
View file
libdvdcss-1.6.0.tar.xz/.gitlab-ci.yml
Added
@@ -0,0 +1,84 @@ +stages: + - build + +variables: + GIT_SUBMODULE_STRATEGY: normal + +.build-common: + stage: build + except: + - schedules + +.build-docker: + extends: .build-common + tags: + - docker + - amd64 + script: + - meson setup build + - meson compile -C build + +.build-cross: + extends: .build-docker + script: + - meson setup build --cross-file package/crossfiles/${CROSSFILE}.meson + - meson compile -C build + +build-debian: + extends: .build-docker + image: registry.videolan.org/dav1d-debian-unstable:20250207200301 + +build-raspberry: + extends: .build-cross + image: registry.videolan.org/vlc-ubuntu-raspberry:20250323132008 + before_script: + - python3 -m venv .venv + - . .venv/bin/activate + - pip install --upgrade pip + - pip install meson==1.9.0 + variables: + CROSSFILE: arm-linux-gnueabihf + +build-macos-arm64: + extends: .build-docker + tags: + - macos-m1 + before_script: + - python3 -m venv .venv + - . .venv/bin/activate + - pip install --upgrade pip + - pip install meson==1.9.0 ninja==1.13.0 + +build-macos: + extends: .build-docker + tags: + - amd64 + - macos + +build-win: + extends: .build-cross + image: registry.videolan.org/dav1d-debian-unstable:20250207200301 + parallel: + matrix: + - CROSSFILE: i686-w64-mingw32, x86_64-w64-mingw32 + +build-win-arm: + extends: .build-cross + image: registry.videolan.org/vlc-debian-llvm-ucrt:20250826105319 + parallel: + matrix: + - CROSSFILE: armv7-w64-mingw32, aarch64-w64-mingw32 + +pages: + extends: .build-docker + image: registry.videolan.org/dav1d-debian-unstable:20250207200301 + script: + - meson setup build -Denable_docs=true + - meson compile -C build docs + - mv build/doc/html public + artifacts: + paths: + - public + only: + - schedules + except:
View file
libdvdcss-1.4.0.tar.bz2/COPYING -> libdvdcss-1.6.0.tar.xz/COPYING
Changed
@@ -1,8 +1,8 @@ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -15,7 +15,7 @@ General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to +the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not @@ -55,7 +55,7 @@ The precise terms and conditions for copying, distribution and modification follow. - + GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION @@ -110,7 +110,7 @@ License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) - + These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in @@ -168,7 +168,7 @@ access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. - + 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is @@ -225,7 +225,7 @@ This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. - + 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License @@ -278,7 +278,7 @@ POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS - + How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest @@ -303,17 +303,16 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: - Gnomovision version 69, Copyright (C) year name of author + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. @@ -336,5 +335,5 @@ This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General +library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.
View file
libdvdcss-1.4.0.tar.bz2/INSTALL -> libdvdcss-1.6.0.tar.xz/INSTALL
Changed
@@ -4,22 +4,19 @@ Configuring libdvdcss ===================== -A typical way to configure libdvdcss is: +libdvdcss uses the Meson build system. A typical way to configure it is: - ./configure --prefix=/usr + meson setup build --prefix=/usr -See `./configure --help' for more information. - - -If you got libdvdcss from its version control system, please bootstrap first: - - autoreconf -i +The `build' directory can be set to whatever you want, but in-tree builds +are not allowed. See `meson configure' for all the available options. Building libdvdcss ================== -Once configured, run `make' to build libdvdcss. +Once configured, change to the build directory and run `ninja' +to build libdvdcss. If you have player keys, you need to put them in the file csskeys.h, before configuring libdvdcss to enable the "key" method (the one from libcss). @@ -28,9 +25,8 @@ Installing libdvdcss ==================== -You can install libdvdcss by typing: - - make install +You can install libdvdcss by running `meson install' inside the build +directory. Building libdvdcss for Windows @@ -38,13 +34,23 @@ There are two alternative ways to build libdvdcss for Windows. -- on a Linux host with the mingw.org or mingw-w64 cross-compilers: +- on a host with the mingw-w64 cross-compilers: + + You need a cross file to tell Meson about the compiler to use. Some + generic cross files are provided in the `package/crossfiles' directory, + which can be customized for your needs. If you run, for example, Debian, + Ubuntu, or Cygwin under Windows with the necessary mingw64 packages + installed, it would be: - Tell configure about the compiler to use. If you run, for example, Debian or - Ubuntu with the mingw32 packages installed, it would be: + for a 32-bit target platform: + meson setup build-w32 --cross-file package/crossfiles/i686-w64-mingw32.meson + cd build-w32 + ninja - ./configure --host=i586-mingw32msvc - make + or for a 64-bit target platform: + meson setup build-w64 --cross-file package/crossfiles/i686-w64-mingw32.meson + cd build-w64 + ninja - natively on Windows with MSYS + MinGW (www.mingw.org): @@ -55,7 +61,8 @@ To build libdvdcss you just have to run the following commands: - ./configure - make + meson setup build + cd build + ninja More about MSYS on our wiki: http://wiki.videolan.org/Win32CompileMSYS
View file
libdvdcss-1.4.0.tar.bz2/NEWS -> libdvdcss-1.6.0.tar.xz/NEWS
Changed
@@ -1,22 +1,82 @@ +Changes between 1.5.0 and 1.6.0: +-------------------------------- + + * Add support for CPRM (Content Protection for Recordable Media) decryption + for CPRM-protected DVD media (DVD-RW for example) + * Add dvdcss_get_encryption_type function to the public API + This allows querying the disc's copyright protection system type (CPST) + to detect CSS/CPPM and CPRM protected media + * Update dvdcpxm_setup to allow context reuse via NULL arguments and to + accept a raw CPRM key in place of the MKB + * Improve CPXM/CPPM/CPRM error handling, context lifetime, and cleanup + * Fix CPRM decryption and Darwin CPRM ioctl paths + * Fix CPPM decryption cache teardown and copy-control handling + * Fix OS/2 build issues and add CPRM media ID/MKB pack ioctl support + * Fix FreeBSD and PATH_MAX build issues + * Improve Windows drive opening support + * Add proper Haiku support + + +Changes between 1.4.3 and 1.5.0: +-------------------------------- + + * Add support for DVD-Audio disc decryption via libdvdcpxm integration + Add new dvdcpxm.h header for dvdcpxm function calls + Add dvdcpxm_read, dvdcpxm_readv, and dvdcpxm_seek functions + Add initialization and cleanup functions: dvdcpxm_init, dvdcpxm_close + * Switch build system to Meson and remove autotools and Visual Studio files + * Fix public header include paths + * Fix build issues with older compilers and scsi/sg.h detection + * Miscellaneous CI, documentation, and platform cleanups + + +Changes between 1.4.2 and 1.4.3: +-------------------------------- + + * Fix opening non-ASCII paths in Windows + * Avoid potential buffer overflow if PATH_MAX is reached + + +Changes between 1.4.1 and 1.4.2: +-------------------------------- + + * Fix buffer overflow when region mask is 0x0 + * Fix invalid free on Open + + +Changes between 1.4.0 and 1.4.1: +-------------------------------- + + * Fix crashes in cache directory creation and usage, including DVDCSS_CACHE + and empty home directory cases + * Fix key cache storage in ~/.dvdcss + * Avoid closing callback stream handles + + Changes between 1.3.99 and 1.4.0: --------------------------------- + * Add key caching on Android - * Fix leaks, win32 build breakage, file descriptor initialization + * Fix leaks, Win32 build breakage, readv buffer initialization, and file + descriptor handling * Expose version.h Changes between 1.3.0 and 1.3.99: --------------------------------- + * Drop support for HP-UX. * Drop support for Windows 9x and Windows NT. Windows 2000 is now required. * Replace BeOS support by Haiku support. - * Add dvdcss_open_stream() to public API. This allows installing custom + * Add dvdcss_open_stream() to the public API. This allows installing custom callback functions for accessing DVD, e.g. over the network. - * dvdcss_error() now returns "const char *" instad of "char *". + * dvdcss_error() now returns "const char *" instead of "char *". * Drop support for MSVC versions before 2010. * Raw device access now errors out if the device cannot be opened. - * Miscellaneous cleanups to code, documentation, build system. + * Add support for building under MSYS2 and fix MinGW-CE detection. + * Improve cache directory handling and error checking. + * Miscellaneous cleanups to code, documentation, and build system. Changes between 1.2.13 and 1.3.0: @@ -28,7 +88,8 @@ - the variable dvdcss_interface_2 * Drop support for Windows 98 and Windows NT 4.0. Windows 98 SE with IE 5.0 and Windows NT 4.0 SP4 with IE 5.0 are required. - * Support for Android + * Add support for Android. + * Fix MSVC and Solaris build issues and update Doxygen Changes between 1.2.12 and 1.2.13:
View file
libdvdcss-1.6.0.tar.xz/README.md
Added
@@ -0,0 +1,79 @@ +# Goals and features + +**Libdvdcss** is a portable abstraction **lib**rary for **DVD** decryption. + +It is part of the **VideoLAN** project, which among other things produces **VLC**, a full video client/server streaming solution. +**VLC** can also be used as a standalone program to **play video streams** from a hard disk or a DVD. + +**Libdvdcss** is cross-platform and currently supports **GNU/Linux**, **FreeBSD**, **NetBSD**, **OpenBSD**, **Haiku**, +**Mac OS X**, **Solaris**, **QNX**, **OS/2**, and **Windows** (XP or later). + +**Libdvdcss** supports the CSS decryption scheme for DVD-Video, but incorporates the CPXM decryption for DVD-Audio too. + +**Libdvdcss** is small (5K LoC) and written in C, to be more portable. + +## Building and installing instructions for Libdvdcss + +See the INSTALL file(https://code.videolan.org/videolan/libdvdcss/-/blob/master/INSTALL) for full instructions. + + +## Running libdvdcss + + +The behavior of the library can be changed by setting two environment variables : + +`DVDCSS_METHOD={title|disc|key}`: method for **key decryption** : + +- **title** : By default the decrypted title key is guessed from the encrypted + sectors of the stream. Thus it should work with a file as well as + the DVD device. But decrypting a title key may take too much time + or even fail. With the **title method**, the key is only checked at + the **beginning of each title**, so it will not work if the key + changes in the middle of a title. + +- **disc** : The disc key is **cracked first**. Afterwards all title keys can be + decrypted **instantly**, which allows checking them often. + +- **key** : The same as the "disc" method if you do not have a file with player + keys at compile time. If you do, disc key decryption will be faster. + This is the **default method** also employed by libcss. + + +`DVDCSS_VERBOSE={0|1|2}`: libdvdcss **verbosity** + +- **0**: no error messages, no debug messages (this is the default) +- **1**: only error messages +- **2**: error and debug messages + + +## Troubleshooting + + +A **mailing-list** has been set up for support and discussion about +libdvdcss. Its address is: + + <libdvdcss-devel@videolan.org> + +To subscribe or unsubscribe, go here(http://mailman.videolan.org/). + + +When reporting **bugs**, try to be as **precise** as possible (which OS, which +distribution, what plugins you were trying, and so on). + +## CoC + +The VideoLAN Code of Conduct(https://wiki.videolan.org/CoC) applies to this project. + +## Licence + +**Libdvdcss** is released under the **General Public License**, ensuring it will stay free, and used only for free software products. + +## Resources + + +The VideoLAN web site(https://www.videolan.org/) is a good start for +information about MPEG and DVD playback. + +Have a look at the support section(https://www.videolan.org/support/) to look for answers. + +You can also have a look to the documentation(https://videolan.videolan.me/libdvdcss/).
View file
libdvdcss-1.4.0.tar.bz2/doc/doxygen.cfg.in -> libdvdcss-1.6.0.tar.xz/doc/doxygen.cfg.in
Changed
@@ -144,7 +144,7 @@ # will be relative from the directory where doxygen is started. # This tag requires that the tag FULL_PATH_NAMES is set to YES. -STRIP_FROM_PATH = +STRIP_FROM_PATH = @STRIP_FROM_PATH@ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the # path mentioned in the documentation of a class, which tells the reader which @@ -1065,7 +1065,7 @@ # defined cascading style sheet that is included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the -# standard style sheet and is therefor more robust against future updates. +# standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet file to the output directory. For an example # see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES.
View file
libdvdcss-1.6.0.tar.xz/doc/meson.build
Added
@@ -0,0 +1,27 @@ +if not get_option('enable_docs') + subdir_done() +endif + +doxygen = find_program('doxygen', required: true) + +doxyfile_conf = configuration_data() +doxyfile_conf.set('abs_builddir', meson.current_build_dir()) +doxyfile_conf.set('abs_top_srcdir', dvdcss_src_root) +doxyfile_conf.set('STRIP_FROM_PATH', f'@dvdcss_src_root@/src \\\n @dvdcss_build_root@/src') +doxyfile_conf.set('PACKAGE_NAME', meson.project_name()) +doxyfile_conf.set('PACKAGE_VERSION', meson.project_version()) + +doxyfile = configure_file( + input: 'doxygen.cfg.in', + output: 'Doxyfile', + configuration: doxyfile_conf, +) + +custom_target('docs', + depend_files: dvdcss_api_headers, + command: doxygen, '-q', doxyfile, + output: 'html', + install: true, + install_dir: get_option('datadir') / 'doc/libdvdcss', + install_tag: 'doc', +)
View file
libdvdcss-1.6.0.tar.xz/meson.build
Added
@@ -0,0 +1,138 @@ +project('libdvdcss', 'c', + version: '1.6.0', + meson_version: '>= 0.60.0', + default_options: 'buildtype=debugoptimized', + 'c_std=c17', + 'default_library=both', + 'warning_level=2') + +dvdcss_src_root = meson.current_source_dir() +dvdcss_build_root = meson.current_build_dir() +cc = meson.get_compiler('c') + +# Configuration data for config.h +cdata = configuration_data() + +# Include directories +dvdcss_inc_dirs = include_directories('.', 'src', 'src/dvdcss') + +# The version number for the shared library +dvdcss_soname_version = '2.4.0' + +dvdcss_version = meson.project_version() +dvdcss_version_split = dvdcss_version.split('.') +cdata.set_quoted('PACKAGE_VERSION', dvdcss_version) + +# +# OS/Compiler checks and defines +# + +# Arguments in test_args will be used even on feature tests +test_args = '-D_DEFAULT_SOURCE' +extra_dependencies = + +if host_machine.system() == 'windows' and cc.get_argument_syntax() == 'msvc' + test_args += '-D_CRT_SECURE_NO_WARNINGS', '-D_CRT_NONSTDC_NO_WARNINGS', + '-D_WIN32_IE=0x0501', '-DWIN32_LEAN_AND_MEAN', '-DPATH_MAX=2048' +elif host_machine.system() == 'sunos' + test_args += '-D_POSIX_C_SOURCE=200809L' +endif + +# Header checks + +check_headers = + 'errno.h', + 'fcntl.h', + 'io.h', + 'pwd.h', + 'scsi/sg.h', + 'cam/scsi/scsi_sg.h', + 'sys/ioctl.h', + 'sys/param.h', + 'sys/stat.h', + 'sys/types.h', + 'sys/uio.h', + 'unistd.h', + + +foreach h : check_headers + if cc.has_header(h, args: test_args) + define_name = 'HAVE_' + h.underscorify().to_upper() + cdata.set(define_name, 1) + endif +endforeach + +# DVD ioctl support (OS-specific) + +if host_machine.system() == 'windows'\ + and cc.has_header('winioctl.h', args: test_args) + # Windows is supported as long as winioctl.h is found +elif host_machine.system() == 'darwin' + add_project_arguments(cc.get_supported_arguments('-no-cpp-precomp'), language: 'c') + cdata.set('DARWIN_DVD_IOCTL', 1) + extra_dependencies += dependency('appleframeworks', modules: 'CoreFoundation', 'IOKit') +elif host_machine.system() == 'sunos' \ + and cc.has_header('sys/scsi/scsi_types.h', args: test_args) \ + and cc.has_header('sys/scsi/impl/uscsi.h', args: test_args) + cdata.set('SOLARIS_USCSI', 1) +elif host_machine.system() == 'haiku' \ + and cc.has_header('scsi.h', args: test_args) + # Haiku is supported as long as scsi.h is found +elif host_machine.system() == 'openbsd' \ + and cc.has_header('sys/cdio.h', args: test_args) + cdata.set('DVD_STRUCT_IN_SYS_CDIO_H', 1) + cdata.set('HAVE_LINUX_DVD_STRUCT', 1) + cdata.set('HAVE_OPENBSD_DVD_STRUCT', 1) +elif host_machine.system() in 'linux', 'android' \ + or cc.has_header_symbol('linux/cdrom.h', 'dvd_struct', args: test_args) + cdata.set('DVD_STRUCT_IN_LINUX_CDROM_H', 1) + cdata.set('HAVE_LINUX_DVD_STRUCT', 1) +elif cc.has_header_symbol('sys/dvdio.h', 'dvd_struct', + prefix: '#include <sys/types.h>', args: test_args) # NetBSD + cdata.set('DVD_STRUCT_IN_SYS_DVDIO_H', 1) + cdata.set('HAVE_LINUX_DVD_STRUCT', 1) +elif cc.has_header_symbol('sys/dvdio.h', 'struct dvd_struct', + prefix: '#include <sys/types.h>', args: test_args) # FreeBSD + cdata.set('DVD_STRUCT_IN_SYS_DVDIO_H', 1) + cdata.set('HAVE_BSD_DVD_STRUCT', 1) +else + warning('No DVD ioctls found for this system. libdvdcss will probably fail to build.') +endif + +posix_mkdir = '' +foreach h: 'io.h', 'sys/stat.h', 'sys/types.h' + if cdata.has('HAVE_' + h.underscorify().to_upper()) + posix_mkdir += f'#include <@h@>\n' + endif +endforeach + +posix_mkdir += ''' +int mkdir(const char *path, mode_t mode); +int main() { } +''' + +if not cc.compiles(posix_mkdir, args: test_args, name: 'POSIX mkdir') + cdata.set('HAVE_BROKEN_MKDIR', 1) +endif + +cdata.set('SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT', cc.has_function_attribute('visibility:default')) + +add_project_arguments(test_args, language: 'c') + +# Generate config.h +configure_file(output: 'config.h', configuration: cdata) + +install_data('AUTHORS', 'COPYING', 'NEWS', 'README.md', + install_dir: get_option('datadir') / 'doc/libdvdcss', + install_tag: 'doc') + +# Include subdir meson.build files +# The order is important! + +subdir('src/dvdcss') + +subdir('src') + +subdir('test') + +subdir('doc')
View file
libdvdcss-1.6.0.tar.xz/meson_options.txt
Added
@@ -0,0 +1,11 @@ +# General options + +option('enable_docs', + type: 'boolean', + value: false, + description: 'Build (with Doxygen) and install API documentation') + +option('enable_examples', + type: 'boolean', + value: false, + description: 'Build libdvdnav examples') \ No newline at end of file
View file
libdvdcss-1.6.0.tar.xz/package
Added
+(directory)
View file
libdvdcss-1.6.0.tar.xz/package/crossfiles
Added
+(directory)
View file
libdvdcss-1.6.0.tar.xz/package/crossfiles/aarch64-w64-mingw32.meson
Added
@@ -0,0 +1,16 @@ +binaries +c = 'aarch64-w64-mingw32-clang' +cpp = 'aarch64-w64-mingw32-clang++' +ar = 'aarch64-w64-mingw32-ar' +strip = 'aarch64-w64-mingw32-strip' +windres = 'aarch64-w64-mingw32-windres' +pkgconfig = 'pkg-config' + +built-in options +c_link_args = '-static-libgcc' + +host_machine +system = 'windows' +cpu_family = 'aarch64' +cpu = 'aarch64' +endian = 'little'
View file
libdvdcss-1.6.0.tar.xz/package/crossfiles/arm-linux-gnueabihf.meson
Added
@@ -0,0 +1,15 @@ +binaries +c = 'arm-linux-gnueabihf-gcc' +cpp = 'arm-linux-gnueabihf-gcc++' +ar = 'arm-linux-gnueabihf-ar' +strip = 'arm-linux-gnueabihf-strip' +pkg-config = 'pkg-config' + +built-in options +c_link_args = '-static-libgcc' + +host_machine +system = 'linux' +cpu_family = 'arm' +cpu = 'arm' +endian = 'little'
View file
libdvdcss-1.6.0.tar.xz/package/crossfiles/armv7-w64-mingw32.meson
Added
@@ -0,0 +1,16 @@ +binaries +c = 'armv7-w64-mingw32-clang' +cpp = 'armv7-w64-mingw32-clang++' +ar = 'armv7-w64-mingw32-ar' +strip = 'armv7-w64-mingw32-strip' +windres = 'armv7-w64-mingw32-windres' +pkgconfig = 'pkg-config' + +built-in options +c_link_args = '-static-libgcc' + +host_machine +system = 'windows' +cpu_family = 'arm' +cpu = 'armv7' +endian = 'little'
View file
libdvdcss-1.6.0.tar.xz/package/crossfiles/i686-w64-mingw32.meson
Added
@@ -0,0 +1,17 @@ +binaries +c = 'i686-w64-mingw32-gcc' +cpp = 'i686-w64-mingw32-g++' +ar = 'i686-w64-mingw32-ar' +strip = 'i686-w64-mingw32-strip' +windres = 'i686-w64-mingw32-windres' +pkgconfig = 'i686-w64-mingw32-pkg-config' +exe_wrapper = 'wine' + +built-in options +c_link_args = '-static-libgcc' + +host_machine +system = 'windows' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little'
View file
libdvdcss-1.6.0.tar.xz/package/crossfiles/x86_64-w64-mingw32.meson
Added
@@ -0,0 +1,17 @@ +binaries +c = 'x86_64-w64-mingw32-gcc' +cpp = 'x86_64-w64-mingw32-g++' +ar = 'x86_64-w64-mingw32-ar' +strip = 'x86_64-w64-mingw32-strip' +windres = 'x86_64-w64-mingw32-windres' +pkgconfig = 'x86_64-w64-mingw32-pkg-config' +exe_wrapper = 'wine' + +built-in options +c_link_args = '-static-libgcc' + +host_machine +system = 'windows' +cpu_family = 'x86_64' +cpu = 'x86_64' +endian = 'little'
View file
libdvdcss-1.6.0.tar.xz/src/bswap.h
Added
@@ -0,0 +1,137 @@ +/* + * Copyright (C) 2000, 2001 Billy Biggs <vektor@dumbterm.net>, + * Håkan Hjort <d95hjort@dtek.chalmers.se> + * + * This file was taken from the libdvdread library + * + * libdvdread is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * libdvdread is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with libdvdread; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef LIBDVDREAD_BSWAP_H +#define LIBDVDREAD_BSWAP_H + +#include <config.h> + +#if defined(WORDS_BIGENDIAN) +/* All bigendian systems are fine, just ignore the swaps. */ +#define B2N_16(x) (void)(x) +#define B2N_32(x) (void)(x) +#define B2N_64(x) (void)(x) + +#else /* WORDS_BIGENDIAN */ + +#if defined(__clang__) +# if __has_builtin (__builtin_bswap16) +# define BSWAP_BUILTIN 1 +# endif + +#elif defined (__GNUC__) && ((__GNUC__ > (4)) || (__GNUC__ == (4) && __GNUC_MINOR__ >= (8))) +# define BSWAP_BUILTIN 1 +#endif + +#if defined(BSWAP_BUILTIN) + +#define B2N_16(x) x = __builtin_bswap16(x) +#define B2N_32(x) x = __builtin_bswap32(x) +#define B2N_64(x) x = __builtin_bswap64(x) + +#else /* BSWAP_BUILTIN */ + +/* For __FreeBSD_version */ +#if defined(HAVE_SYS_PARAM_H) +#include <sys/param.h> +#endif + +#if defined(__linux__) || defined(__GLIBC__) +#include <byteswap.h> +#define B2N_16(x) x = bswap_16(x) +#define B2N_32(x) x = bswap_32(x) +#define B2N_64(x) x = bswap_64(x) + +#elif defined(__APPLE__) +#include <libkern/OSByteOrder.h> +#define B2N_16(x) x = OSSwapBigToHostInt16(x) +#define B2N_32(x) x = OSSwapBigToHostInt32(x) +#define B2N_64(x) x = OSSwapBigToHostInt64(x) + +#elif defined(__NetBSD__) +#include <sys/endian.h> +#define B2N_16(x) BE16TOH(x) +#define B2N_32(x) BE32TOH(x) +#define B2N_64(x) BE64TOH(x) + +#elif defined(__OpenBSD__) +#include <sys/endian.h> +#define B2N_16(x) x = swap16(x) +#define B2N_32(x) x = swap32(x) +#define B2N_64(x) x = swap64(x) + +#elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 +#include <sys/endian.h> +#define B2N_16(x) x = be16toh(x) +#define B2N_32(x) x = be32toh(x) +#define B2N_64(x) x = be64toh(x) + +#elif defined(__QNXNTO__) +#include <gulliver.h> +#define B2N_16(x) x = ENDIAN_RET16(x) +#define B2N_32(x) x = ENDIAN_RET32(x) +#define B2N_64(x) x = ENDIAN_RET64(x) + +#elif defined(__DragonFly__) +#include <sys/endian.h> +#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 <byteswap.h> or any other such + * functionality! + */ + +#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(_WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__) +#define B2N_16(x) \ + x = ((((x) & 0xff00) >> 8) | \ + (((x) & 0x00ff) << 8)) +#define B2N_32(x) \ + x = ((((x) & 0xff000000) >> 24) | \ + (((x) & 0x00ff0000) >> 8) | \ + (((x) & 0x0000ff00) << 8) | \ + (((x) & 0x000000ff) << 24)) +#define B2N_64(x) \ + x = ((((x) & 0xff00000000000000ULL) >> 56) | \ + (((x) & 0x00ff000000000000ULL) >> 40) | \ + (((x) & 0x0000ff0000000000ULL) >> 24) | \ + (((x) & 0x000000ff00000000ULL) >> 8) | \ + (((x) & 0x00000000ff000000ULL) << 8) | \ + (((x) & 0x0000000000ff0000ULL) << 24) | \ + (((x) & 0x000000000000ff00ULL) << 40) | \ + (((x) & 0x00000000000000ffULL) << 56)) + +#else + +/* If there isn't a header provided with your system with this functionality + * add the relevant || define( ) to the portable implementation above. + */ +#error "You need to add endian swap macros for your system" + +#endif + +#endif /* BSWAP_BUILTIN */ + +#endif /* WORDS_BIGENDIAN */ + +#endif /* LIBDVDREAD_BSWAP_H */
View file
libdvdcss-1.6.0.tar.xz/src/cpxm.c
Added
@@ -0,0 +1,102 @@ +/** + * \file cpxm.c + * \author Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * \author Saifelden Ismail <saifeldenmi@gmail.com> + * + * \brief Integration of libdvdcpxm functionality into libdvdcss. + * + * This file adapts core logic from libdvdcpxm for use in libdvdcss, allowing + * improved support for CPPM-protected DVD-Audio discs. + */ + +/* + * Copyright (C) 1999-2025 VideoLAN + * Copyright (C) Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * Copyright (C) 2025 Saifelden Ismail <saifeldenmi@gmail.com> + * + * This file is part of libdvdcss. + * + * libdvdcss is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * libdvdcss is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with libdvdcss; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include "cpxm.h" +#include "libdvdcpxm.h" +#include "ioctl.h" +#include "css.h" +#include "libdvdcss.h" +#include <stddef.h> + +/****************************************************************************** + * From dvdcss_disckey, Grab the album ID for cppm + *****************************************************************************/ +int cppm_set_id_album( dvdcss_t dvdcss ) +{ + unsigned char p_buffer DVD_DISCKEY_SIZE ; + + if( GetBusKey( dvdcss ) < 0 ) + { + return -1; + } + + /* Get encrypted disc key */ + if( ioctl_ReadDiscKey( dvdcss->i_fd, &dvdcss->css.i_agid, p_buffer ) < 0 ) + { + print_error( dvdcss, "ioctl ReadDiscKey failed" ); + return -1; + } + + /* This should have invalidated the AGID and got us ASF=1. */ + if( GetASF( dvdcss ) != 1 ) + { + /* Region mismatch (or region not set) is the most likely source. */ + print_error( dvdcss, "authentication success flag (ASF) not 1 after " + "reading disc key (region mismatch?)" ); + ioctl_InvalidateAgid( dvdcss->i_fd, &dvdcss->css.i_agid ); + return -1; + } + + /* Shuffle disc key using bus key */ + for( int i = 0 ; i < DVD_DISCKEY_SIZE ; i++ ) + { + p_bufferi ^= dvdcss->css.p_bus_key4 - (i % DVD_KEY_SIZE); + } + + READ64_BE( dvdcss->cpxm->id_album, &p_buffer80 ); + return 0; +} + +/****************************************************************************** + * From dvdcss_disckey, Grab the album ID for CPRM + *****************************************************************************/ +int cprm_set_id_media( dvdcss_t dvdcss ) +{ + uint8_t p_bufferCPRM_MEDIA_ID_SIZE + 4; + + if( GetBusKey( dvdcss ) < 0 ) + { + return -1; + } + + if( ioctl_ReadCPRMMediaId( dvdcss->i_fd, &dvdcss->css.i_agid, p_buffer ) ) + return -1; + + READ64_BE( dvdcss->cpxm->id_media, + p_buffer + offsetof(cprm_media_id_t, id_media) + ); + + return 0; +} + +
View file
libdvdcss-1.6.0.tar.xz/src/cpxm.h
Added
@@ -0,0 +1,64 @@ +/** + * \file cpxm.h + * \author Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * \author Saifelden Ismail <saifeldenmi@gmail.com> + * + * \brief Integration of libdvdcpxm functionality into libdvdcss. + * + * This file adapts core logic from libdvdcpxm for use in libdvdcss, allowing + * improved support for CPPM-protected DVD-Audio discs. + */ + +/* + * Copyright (C) 1999-2025 VideoLAN + * Copyright (C) Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * Copyright (C) 2025 Saifelden Ismail <saifeldenmi@gmail.com> + * + * This file is part of libdvdcss. + * + * libdvdcss is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * libdvdcss is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with libdvdcss; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#ifndef CPXM_H +#define CPXM_H + +#include "dvdcss/dvdcss.h" +#include "bswap.h" +#include <string.h> + +#define READ64_BE(dest, src) \ + do { \ + uint64_t __tmp; \ + memcpy(&__tmp, (src), sizeof(uint64_t)); \ + B2N_64(__tmp); \ + (dest) = __tmp; \ + } while(0) + +typedef struct cpxm +{ + uint64_t media_key; + uint64_t id_album; + uint64_t id_media; + uint64_t vr_k_t; + uint64_t apstb; +} cpxm_s; + +/* for persistance */ +typedef cpxm_s* p_cpxm; + +/* cpxm uses the same css authentification method when using a usb dvd drive */ +int cppm_set_id_album( dvdcss_t dvdcss ); +int cprm_set_id_media( dvdcss_t dvdcss ); + +#endif // CPXM_H
View file
libdvdcss-1.4.0.tar.bz2/src/css.c -> libdvdcss-1.6.0.tar.xz/src/css.c
Changed
@@ -64,9 +64,6 @@ *****************************************************************************/ static void PrintKey ( dvdcss_t, const char *, const uint8_t * ); -static int GetBusKey ( dvdcss_t ); -static int GetASF ( dvdcss_t ); - static void CryptKey ( int, int, const uint8_t *, uint8_t * ); static void DecryptKey ( uint8_t, const uint8_t *, const uint8_t *, uint8_t * ); @@ -79,7 +76,7 @@ const uint8_t *, const uint8_t *, uint8_t * ); static int CrackTitleKey ( dvdcss_t, int, int, dvd_key ); -static int AttackPattern ( const uint8_t, uint8_t * ); +static int AttackPattern ( const uint8_t p_sec DVDCSS_BLOCK_SIZE , uint8_t * ); #if 0 static int AttackPadding ( const uint8_t ); #endif @@ -101,9 +98,9 @@ int dvdcss_test( dvdcss_t dvdcss ) { const char *psz_type, *psz_rpc; - char psz_region16; + char psz_region17; char *p_region = psz_region; - int i_ret, i_copyright, i_type, i_mask, i_rpc, i_region; + int i_ret, i_copyright = 0, i_type, i_mask, i_rpc, i_region; i_ret = ioctl_ReadCopyright( dvdcss->i_fd, 0 /* i_layer */, &i_copyright ); @@ -132,6 +129,9 @@ #endif /* _WIN32 */ } + /* value may be used in cpxm decryption */ + dvdcss->media_type = i_copyright; + print_debug( dvdcss, "disc reports copyright information 0x%x", i_copyright ); @@ -160,6 +160,7 @@ default: psz_type = "unknown status"; break; } + *p_region = '\0'; for( i_region = 0; i_region < 8; i_region++ ) { if( !( i_mask & ( 1 << i_region ) ) ) @@ -598,7 +599,7 @@ * that ASF=1 from the start and then later fail with a 'read of scrambled * block without authentication' error. *****************************************************************************/ -static int GetBusKey( dvdcss_t dvdcss ) +int GetBusKey( dvdcss_t dvdcss ) { uint8_t p_buffer10; uint8_t p_challenge2 * DVD_KEY_SIZE; @@ -751,7 +752,7 @@ * 0 if the device needs to be authenticated, * 1 either. *****************************************************************************/ -static int GetASF( dvdcss_t dvdcss ) +int GetASF( dvdcss_t dvdcss ) { int i_asf = 0;
View file
libdvdcss-1.4.0.tar.bz2/src/css.h -> libdvdcss-1.6.0.tar.xz/src/css.h
Changed
@@ -62,4 +62,8 @@ int dvdcss_disckey ( dvdcss_t ); int dvdcss_unscramble ( uint8_t *, uint8_t * ); +/* exported for USB authentification in CPXM */ +int GetBusKey ( dvdcss_t ); +int GetASF ( dvdcss_t ); + #endif /* DVDCSS_CSS_H */
View file
libdvdcss-1.4.0.tar.bz2/src/device.c -> libdvdcss-1.6.0.tar.xz/src/device.c
Changed
@@ -63,6 +63,10 @@ # include <fcntl.h> /* O_BINARY */ #endif +#ifdef _WIN32 +# include <windows.h> +#endif + #include "dvdcss/dvdcss.h" #include "common.h" @@ -71,6 +75,10 @@ #include "ioctl.h" #include "device.h" +#ifndef O_BINARY +#define O_BINARY 0 +#endif + /***************************************************************************** * Device reading prototypes *****************************************************************************/ @@ -406,6 +414,11 @@ int dvdcss_close_device ( dvdcss_t dvdcss ) { + if( dvdcss->p_stream ) + { + return 0; + } + #if defined( _WIN32 ) /* Free readv temporary buffer */ free( dvdcss->p_readv_buffer ); @@ -437,7 +450,22 @@ *****************************************************************************/ static int libc_open ( dvdcss_t dvdcss, const char *psz_device ) { +#ifdef _WIN32 + int wlen; + dvdcss->i_fd = -1; + wlen = MultiByteToWideChar( CP_UTF8, 0, psz_device, -1, NULL, 0 ); + if( wlen > 0 ) { + wchar_t *wpath = (wchar_t*)malloc( sizeof(wchar_t) * wlen ); + if( wpath ) { + if( MultiByteToWideChar(CP_UTF8, 0, psz_device, -1, wpath, wlen ) ) { + dvdcss->i_fd = _wopen( wpath, O_BINARY ); + } + free( wpath ); + } + } +#else dvdcss->i_fd = open( psz_device, O_BINARY ); +#endif if( dvdcss->i_fd == -1 ) { @@ -452,7 +480,8 @@ #if defined( _WIN32 ) static int win2k_open ( dvdcss_t dvdcss, const char *psz_device ) { - char psz_dvd7 = "\\\\.\\\0:"; + HANDLE h_fd; + WCHAR psz_dvd7 = L"\\\\.\\\0:"; psz_dvd4 = psz_device0; /* To work around an M$ bug in IOCTL_DVD_READ_STRUCTURE, we need read @@ -463,24 +492,42 @@ * won't send back the right result). * (See Microsoft Q241374: Read and Write Access Required for SCSI * Pass Through Requests) */ - dvdcss->i_fd = (int) - CreateFile( psz_dvd, GENERIC_READ | GENERIC_WRITE, +#if _WIN32_WINNT < 0x0602 /* _WIN32_WINNT_WIN8 */ + h_fd = + CreateFileW( psz_dvd, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_RANDOM_ACCESS, NULL ); - if( (HANDLE) dvdcss->i_fd == INVALID_HANDLE_VALUE ) - dvdcss->i_fd = (int) - CreateFile( psz_dvd, GENERIC_READ, FILE_SHARE_READ, + if( h_fd == INVALID_HANDLE_VALUE ) + h_fd = + CreateFileW( psz_dvd, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_RANDOM_ACCESS, NULL ); - - if( (HANDLE) dvdcss->i_fd == INVALID_HANDLE_VALUE ) +#else + CREATEFILE2_EXTENDED_PARAMETERS params; + ZeroMemory(¶ms, sizeof(params)); + params.dwSize = sizeof(params); + params.dwFileFlags = FILE_FLAG_RANDOM_ACCESS; + h_fd = + CreateFile2( psz_dvd, GENERIC_READ | GENERIC_WRITE, + FILE_SHARE_READ | FILE_SHARE_WRITE, + OPEN_EXISTING, + ¶ms ); + + if( h_fd == INVALID_HANDLE_VALUE ) + h_fd = + CreateFile2( psz_dvd, GENERIC_READ, FILE_SHARE_READ, + OPEN_EXISTING, + ¶ms ); +#endif + if( h_fd == INVALID_HANDLE_VALUE ) { print_error( dvdcss, "failed to open device %s", psz_device ); return -1; } + dvdcss->i_fd = (int) h_fd; dvdcss->i_pos = 0; return 0;
View file
libdvdcss-1.6.0.tar.xz/src/dvdcss/dvdcpxm.h
Added
@@ -0,0 +1,96 @@ +/** + * \file dvdcpxm.h + * \author Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * \author Saifelden Ismail <saifeldenmi@gmail.com> + * + * \brief Public types and functions that describe the API of the \e libdvdcss library for the DVD-Audio encryption scheme, CPXM. + * + */ + +/* + * Copyright (C) 1999-2025 VideoLAN + * Copyright (C) Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * Copyright (C) 2025 Saifelden Ismail <saifeldenmi@gmail.com> + * + * This file is part of libdvdcss. + * + * libdvdcss is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * libdvdcss is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with libdvdcss; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef _DVDCPXM_H +#define _DVDCPXM_H + +#include <dvdcss/dvdcss.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdint.h> +/* The block size of a DVD. */ +#define DVDCPXM_BLOCK_SIZE 2048 + +/* The encrypted part of the block. */ +#define DVDCPXM_ENCRYPTED_SIZE 1920 + +/* dvdcpxm_init() returns this value when unprotected media is loaded. */ +#define DVDCPXM_MEDIA_UNPR 0 + +/* dvdcpxm_init() returns this value when CPPM protected media is loaded. */ +#define DVDCPXM_MEDIA_CPPM 1 + +/* dvdcpxm_init() returns this value when CPRM protected media is loaded. */ +#define DVDCPXM_MEDIA_CPRM 2 + +/* Flag to ask dvdcpxm_decrypt() to reset CCI byte of the data it processes. */ +#define DVDCPXM_RESET_CCI 1 + +/* Flag to ask dvdcpxm_decrypt() to preserve CCI byte of the data it processes. */ +#define DVDCPXM_PRESERVE_CCI 2 + +#define TITLES_MAX 9 + +/* + * Exported prototypes. + */ + +/* Called after the DVD is opened to initialize the cpxm struct, Must be run after dvdcss_open */ +/* in the case of DVD-Audio, the MKB must be given as input, + * in the case of DVD-VR, the title key should be given as input */ +LIBDVDCSS_EXPORT int dvdcpxm_init(dvdcss_t dvdcss, uint8_t *p_input); + +/* Same as dvdcss_close but frees the cpxm struct as well */ +LIBDVDCSS_EXPORT int dvdcpxm_close ( dvdcss_t dvdcss ); + + +/* Uses dvdcpxm unencrypt instead of dvdcss unsramble */ +LIBDVDCSS_EXPORT int dvdcpxm_read ( dvdcss_t dvdcss, void *p_buffer, + int i_blocks, + int i_flags ); + +/* is just pf_seek since are no title keys in cpxm, the steps from css are not needed */ +LIBDVDCSS_EXPORT int dvdcpxm_seek ( dvdcss_t dvdcss, int i_blocks, int i_flags ); + +/* Uses dvdcpxm unencrypt instead of dvdcss unsramble */ +LIBDVDCSS_EXPORT int dvdcpxm_readv ( dvdcss_t dvdcss, void *p_iovec, + int i_blocks, + int i_flags ); + +#ifdef __cplusplus +} +#endif + +#endif /* <dvdcpxm.h> */ +
View file
libdvdcss-1.4.0.tar.bz2/src/dvdcss/dvdcss.h -> libdvdcss-1.6.0.tar.xz/src/dvdcss/dvdcss.h
Changed
@@ -33,7 +33,7 @@ #include <stdint.h> -#include "version.h" +#include <dvdcss/version.h> #ifdef __cplusplus extern "C" { @@ -106,6 +106,8 @@ LIBDVDCSS_EXPORT int dvdcss_is_scrambled ( dvdcss_t ); +LIBDVDCSS_EXPORT int dvdcss_get_encryption_type ( dvdcss_t ); + #ifdef __cplusplus } #endif
View file
libdvdcss-1.6.0.tar.xz/src/dvdcss/meson.build
Added
@@ -0,0 +1,14 @@ +dvdcss_api_headers = files( + 'dvdcpxm.h', + 'dvdcss.h', +) + +dvdcss_api_headers += configure_file(input: 'version.h.in', + output: 'version.h', + configuration: {'DVDCSS_VERSION_MAJOR': dvdcss_version_split0, + 'DVDCSS_VERSION_MINOR': dvdcss_version_split1, + 'DVDCSS_VERSION_MICRO': dvdcss_version_split2}) + +# Install headers +install_headers(dvdcss_api_headers, + subdir: 'dvdcss')
View file
libdvdcss-1.4.0.tar.bz2/src/ioctl.c -> libdvdcss-1.6.0.tar.xz/src/ioctl.c
Changed
@@ -61,6 +61,14 @@ #ifdef DVD_STRUCT_IN_LINUX_CDROM_H # include <linux/cdrom.h> #endif +#ifdef HAVE_SCSI_SG_H +# include <scsi/sg.h> +# include <stdlib.h> +#endif +#ifdef HAVE_CAM_SCSI_SCSI_SG_H +# include <cam/scsi/scsi_sg.h> +# include <stdlib.h> +#endif #ifdef DVD_STRUCT_IN_DVD_H # include <dvd.h> #endif @@ -84,6 +92,7 @@ #endif #include "dvdcss/dvdcss.h" +#include "libdvdcpxm.h" #include "common.h" #include "css.h" #include "ioctl.h" @@ -94,7 +103,7 @@ * Local prototypes, OS-specific *****************************************************************************/ #if defined( __HAIKU__ ) -static void BeInitRDC ( raw_device_command *, int ); +static void HaikuInitRDC ( raw_device_command *, int ); #elif defined( SOLARIS_USCSI ) static void SolarisInitUSCSI( struct uscsi_cmd *p_sc, int i_type ); static int SolarisSendUSCSI( int fd, struct uscsi_cmd *p_sc ); @@ -140,6 +149,8 @@ rdc.command 7 = DVD_STRUCT_COPYRIGHT; i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; *pi_copyright = p_buffer 4 ; @@ -270,11 +281,8 @@ rdc.command 10 = *pi_agid << 6; i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); - - if( i_ret < 0 ) - { - return i_ret; - } + if( i_ret < 0 || rdc.scsi_status != 0 ) + return -1; memcpy( p_key, p_buffer + 4, DVD_DISCKEY_SIZE ); @@ -398,6 +406,8 @@ rdc.command 10 = DVD_REPORT_TITLE_KEY | (*pi_agid << 6); i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; memcpy( p_key, p_buffer + 5, DVD_KEY_SIZE ); @@ -524,6 +534,8 @@ rdc.command 10 = DVD_REPORT_AGID | (*pi_agid << 6); i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; *pi_agid = p_buffer 7 >> 6; @@ -619,6 +631,8 @@ rdc.command 10 = DVD_REPORT_CHALLENGE | (*pi_agid << 6); i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; memcpy( p_challenge, p_buffer + 4, DVD_CHALLENGE_SIZE ); @@ -727,6 +741,8 @@ rdc.command 10 = DVD_REPORT_ASF; i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; *pi_asf = p_buffer 7 & 1; @@ -837,6 +853,8 @@ rdc.command 10 = DVD_REPORT_KEY1 | (*pi_agid << 6); i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; memcpy( p_key, p_buffer + 4, DVD_KEY_SIZE ); @@ -936,6 +954,8 @@ rdc.command 10 = DVDCSS_INVALIDATE_AGID | (*pi_agid << 6); i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; #elif defined( SOLARIS_USCSI ) INIT_USCSI( GPCMD_REPORT_KEY, 0 ); @@ -991,6 +1011,275 @@ } /***************************************************************************** + * ioctl_ReadCPRMMediaID: Reads the unique album identified used for CPRM decryption + *****************************************************************************/ +int ioctl_ReadCPRMMediaId(int i_fd,int *p_agid, uint8_t *p_data_buffer) +{ + int i_ret; + +#if (defined( HAVE_LINUX_DVD_STRUCT ) && defined( HAVE_SCSI_SG_H )) || (defined( HAVE_BSD_DVD_STRUCT ) && defined( HAVE_CAM_SCSI_SCSI_SG_H )) + struct sg_io_hdr io_hdr; + uint8_t sense32 = {0}; + uint8_t cdb12 = {0}; + uint8_t *data_buf = malloc(CPRM_MEDIA_ID_SIZE + 4); + + if (!data_buf) + return -1; + + memset(&io_hdr, 0, sizeof(io_hdr)); + memset(data_buf, 0, CPRM_MEDIA_ID_SIZE + 4); + + cdb0 = GPCMD_READ_DVD_STRUCTURE; + cdb7 = CPRM_STRUCT_MEDIA_ID; + cdb8 = (uint8_t)((CPRM_MEDIA_ID_SIZE + 4) >> 8); + cdb9 = (uint8_t)((CPRM_MEDIA_ID_SIZE + 4) & 0xff); + cdb10 = (*p_agid << 6); + + io_hdr.interface_id = 'S'; + io_hdr.dxfer_direction = SG_DXFER_FROM_DEV; + io_hdr.cmd_len = sizeof(cdb); + io_hdr.mx_sb_len = sizeof(sense); + io_hdr.dxfer_len = CPRM_MEDIA_ID_SIZE + 4; + io_hdr.dxferp = data_buf; + io_hdr.cmdp = cdb; + io_hdr.sbp = sense; + io_hdr.timeout = 5000; + + i_ret = ioctl(i_fd, SG_IO, &io_hdr); + if (i_ret < 0 || io_hdr.status) { + free(data_buf); + return -1; + } + + memcpy(p_data_buffer, data_buf + 4, CPRM_MEDIA_ID_SIZE); + free(data_buf); + return 0; + +#elif defined( _WIN32 ) + DWORD tmp; + SCSI_PASS_THROUGH_DIRECT sptd = { 0 }; + sptd.Length = sizeof( SCSI_PASS_THROUGH_DIRECT ); + sptd.DataBuffer = p_data_buffer; + sptd.DataTransferLength = CPRM_MEDIA_ID_SIZE + 4 ; + + WinInitSPTD( &sptd, GPCMD_READ_DVD_STRUCTURE ); + + sptd.Cdb7 = CPRM_STRUCT_MEDIA_ID; + sptd.Cdb10 = *p_agid << 6; + + i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_SCSI_PASS_THROUGH_DIRECT, + &sptd, sizeof( sptd ), + &sptd, sizeof( sptd ), + &tmp, NULL ) ? 0 : -1; + + if (i_ret == 0) + memmove(p_data_buffer, + p_data_buffer + 4, + CPRM_MEDIA_ID_SIZE); + +#elif defined( __HAIKU__ ) + raw_device_command rdc = { 0 }; + uint8_t dvdbsCPRM_MEDIA_ID_SIZE + 4; + rdc.data = dvdbs; + rdc.data_length = sizeof(dvdbs); \ + HaikuInitRDC( &rdc, GPCMD_READ_DVD_STRUCTURE ); + + rdc.command 7 = CPRM_STRUCT_MEDIA_ID; + rdc.command 10 = *p_agid << 6; + + i_ret = ioctl( i_fd, B_RAW_DEVICE_COMMAND, &rdc, sizeof(rdc) ); + + if( i_ret < 0 ) + { + return i_ret; + } + if( i_ret == 0 && rdc.scsi_status != 0 ) + i_ret = -1; + if( i_ret == 0 ) + memcpy( p_buffer, dvdbs + 4, CPRM_MEDIA_ID_SIZE); +
View file
libdvdcss-1.4.0.tar.bz2/src/ioctl.h -> libdvdcss-1.6.0.tar.xz/src/ioctl.h
Changed
@@ -37,6 +37,10 @@ int ioctl_SendKey2 ( int, const int *, const uint8_t * ); int ioctl_ReportRPC ( int, int *, int *, int * ); +/* Special Ioctl functions for cpxm decryption */ +int ioctl_ReadCPRMMKBPack ( int, int*, int, uint8_t *, int * ); +int ioctl_ReadCPRMMediaId ( int, int *, uint8_t * ); + #define DVD_DISCKEY_SIZE 2048 /***************************************************************************** @@ -48,7 +52,7 @@ uint8_t p_buffer (SIZE)+1 ; \ rdc.data = (char *)p_buffer; \ rdc.data_length = (SIZE); \ - BeInitRDC( &rdc, (TYPE) ); + HaikuInitRDC( &rdc, (TYPE) ); #elif defined( SOLARIS_USCSI ) #define INIT_USCSI( TYPE, SIZE ) \ struct uscsi_cmd sc = { 0 }; \ @@ -102,6 +106,7 @@ #define GPCMD_READ_DVD_STRUCTURE 0xad #define GPCMD_REPORT_KEY 0xa4 #define GPCMD_SEND_KEY 0xa3 +#ifndef DVD_STRUCT_IN_SYS_DVDIO_H /* DVD struct types */ #define DVD_STRUCT_PHYSICAL 0x00 #define DVD_STRUCT_COPYRIGHT 0x01 @@ -118,6 +123,7 @@ #define DVD_REPORT_ASF 0x05 #define DVD_SEND_RPC 0x06 #define DVD_REPORT_RPC 0x08 +#endif /* ndef DVD_STRUCT_IN_SYS_DVDIO_H */ #define DVDCSS_INVALIDATE_AGID 0x3f /***************************************************************************** @@ -267,7 +273,7 @@ unsigned short flags; // flags unsigned char command16; // Command Buffer for SCSI command -} OS2_ExecSCSICmd; +}; #pragma pack()
View file
libdvdcss-1.6.0.tar.xz/src/libdvdcpxm.c
Added
@@ -0,0 +1,984 @@ +/** + * \file libdvdcpxm.c + * \author Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * \author Saifelden Ismail <saifeldenmi@gmail.com> + * + * \brief Integration of libdvdcpxm functionality into libdvdcss. + * + * This file adapts core logic from libdvdcpxm for use in libdvdcss, allowing + * improved support for CPPM-protected DVD-Audio discs. + */ + +/* + * Copyright (C) 1999-2025 VideoLAN + * Copyright (C) Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * Copyright (C) 2025 Saifelden Ismail <saifeldenmi@gmail.com> + * + * This file is part of libdvdcss. + * + * libdvdcss is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * libdvdcss is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with libdvdcss; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include "config.h" +#include <limits.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/stat.h> + +#include "cpxm.h" +#include "dvdcss/dvdcpxm.h" +#include "ioctl.h" +#include "device.h" +#include "bswap.h" +#include "libdvdcpxm.h" +#include "libdvdcss.h" + +#define IS_SYNC_CODE(word) \ + ( (word)0 == 0x00 && (word)1 == 0x00 && (word)2 == 0x01 && (word)3 == 0xBA ) + +#define PACK_HEADER_SIZE 14 +#define PES_HEADER_SIZE 6 +#define PES_PAYLOAD_OFFSET 9 +#define AUDIO_SUBHEADER_SIZE 13 + +typedef struct cpxm_cache { + p_cpxm cpxm; + dev_t st_dev; + int refcount; + struct cpxm_cache * p_next; +} cpxm_cache; + +cpxm_cache *g_cpxm_cache = NULL; + +static int cpxm_is_cached( p_cpxm cpxm ) +{ + cpxm_cache *it = g_cpxm_cache; + + while ( it != NULL ) + { + if ( it->cpxm == cpxm ) + return 1; + it = it->p_next; + } + return 0; +} + +/* these values are used by libdvdcpxm to process the Media Key Block */ +/* They are present inside DVD-Audio players and are used in conjunction with keys taken from the disc in order to generate the final media_key used by the C2 Cypher */ +uint32_t sbox_f256; + +static uint8_t sbox256 = { + 0x3a, 0xd0, 0x9a, 0xb6, 0xf5, 0xc1, 0x16, 0xb7, + 0x58, 0xf6, 0xed, 0xe6, 0xd9, 0x8c, 0x57, 0xfc, + 0xfd, 0x4b, 0x9b, 0x47, 0x0e, 0x8e, 0xff, 0xf3, + 0xbb, 0xba, 0x0a, 0x80, 0x15, 0xd7, 0x2b, 0x36, + 0x6a, 0x43, 0x5a, 0x89, 0xb4, 0x5d, 0x71, 0x19, + 0x8f, 0xa0, 0x88, 0xb8, 0xe8, 0x8a, 0xc3, 0xae, + 0x7c, 0x4e, 0x3d, 0xb5, 0x96, 0xcc, 0x21, 0x00, + 0x1a, 0x6b, 0x12, 0xdb, 0x1f, 0xe4, 0x11, 0x9d, + 0xd3, 0x93, 0x68, 0xb0, 0x7f, 0x3b, 0x52, 0xb9, + 0x94, 0xdd, 0xa5, 0x1b, 0x46, 0x60, 0x31, 0xec, + 0xc9, 0xf8, 0xe9, 0x5e, 0x13, 0x98, 0xbf, 0x27, + 0x56, 0x08, 0x91, 0xe3, 0x6f, 0x20, 0x40, 0xb2, + 0x2c, 0xce, 0x02, 0x10, 0xe0, 0x18, 0xd5, 0x6c, + 0xde, 0xcd, 0x87, 0x79, 0xaf, 0xa9, 0x26, 0x50, + 0xf2, 0x33, 0x92, 0x6e, 0xc0, 0x3f, 0x39, 0x41, + 0xaa, 0x5b, 0x7d, 0x24, 0x03, 0xd6, 0x2f, 0xeb, + 0x0b, 0x99, 0x86, 0x4c, 0x51, 0x45, 0x8d, 0x2e, + 0xef, 0x07, 0x7b, 0xe2, 0x4d, 0x7a, 0xfe, 0x25, + 0x5c, 0x29, 0xa2, 0xa8, 0xb1, 0xf0, 0xb3, 0xc4, + 0x30, 0x7e, 0x63, 0x38, 0xcb, 0xf4, 0x4f, 0xd1, + 0xdf, 0x44, 0x32, 0xdc, 0x17, 0x5f, 0x66, 0x2a, + 0x81, 0x9e, 0x77, 0x4a, 0x65, 0x67, 0x34, 0xfa, + 0x54, 0x1e, 0x14, 0xbe, 0x04, 0xf1, 0xa7, 0x9c, + 0x8b, 0x37, 0xee, 0x85, 0xab, 0x22, 0x0f, 0x69, + 0xc5, 0xd4, 0x05, 0x84, 0xa4, 0x73, 0x42, 0xa1, + 0x64, 0xe1, 0x70, 0x83, 0x90, 0xc2, 0x48, 0x0d, + 0x61, 0x1c, 0xc6, 0x72, 0xfb, 0x76, 0x74, 0xe7, + 0x01, 0xd8, 0xc8, 0xd2, 0x75, 0xa3, 0xcf, 0x28, + 0x82, 0x1d, 0x49, 0x35, 0xc7, 0xbd, 0xca, 0xa6, + 0xac, 0x0c, 0x62, 0xad, 0xf9, 0x3c, 0xea, 0x2d, + 0x59, 0xda, 0x3e, 0x97, 0x6d, 0x09, 0xf7, 0x55, + 0xe5, 0x23, 0x53, 0x9f, 0x06, 0xbc, 0x95, 0x78, +}; + +static device_key_t cppm_device_keys = +{ + { 0x00, 0x4821, 0x6d05086b755c81 }, + { 0x01, 0x091c, 0x97ace18dd26973 }, + { 0x02, 0x012a, 0xfefc0a25a38d42 }, + { 0x03, 0x469b, 0x0780491970db2c }, + { 0x04, 0x0f9b, 0x0bedd116d43484 }, + { 0x05, 0x59b2, 0x566936bcebe294 }, + { 0x06, 0x5fc8, 0xdc610f649b1fc0 }, + { 0x07, 0x11de, 0x6ee01d3872c2d9 }, + { 0x08, 0x52b6, 0xd0132c376e439b }, + { 0x09, 0x135f, 0x800faa66206922 }, + { 0x0a, 0x3806, 0x9d1aa1460885c2 }, + { 0x0b, 0x2da2, 0x9833f21818ba33 }, + { 0x0c, 0x113f, 0xd50aa7d022045a }, + { 0x0d, 0x11ec, 0x88abee7bb83a32 }, + { 0x0e, 0x071b, 0x9b45eea4e7d140 }, + { 0x0f, 0x5c55, 0x5a49f860cca5cf }, + + { 0x00, 0x0375, 0x1a12793404c279 }, + { 0x01, 0x4307, 0x61418b44cea550 }, + { 0x02, 0x1f70, 0x52bde5b73adcda }, + { 0x03, 0x1bbc, 0x70a031ae493159 }, + { 0x04, 0x1f9d, 0x0a570636aedb61 }, + { 0x05, 0x4e7b, 0xc313563e7883e9 }, + { 0x06, 0x07c4, 0x32c55f7bc42d45 }, + { 0x07, 0x4216, 0x4f854df6c1d721 }, + { 0x08, 0x11c5, 0xc0e3f0f3df33cc }, + { 0x09, 0x0486, 0xbfca7754db5de6 }, + { 0x0a, 0x2f82, 0xa964fc061af87c }, + { 0x0b, 0x236a, 0xb96d68856c45d5 }, + { 0x0c, 0x5beb, 0xd2ca3cbb7d13cc }, + { 0x0d, 0x3db6, 0x58cf827ff3c540 }, + { 0x0e, 0x4b22, 0xbb4037442a869c }, + { 0x0f, 0x59b5, 0x3a83e0ddf37a6e }, +}; + +static device_key_t cprm_device_keys = +{ + { 0x00, 0x0809, 0xd50fe4150d32d2 }, + { 0x01, 0x0719, 0x3131c69e825462 }, + { 0x02, 0x0408, 0x7c2e6878b3a494 }, + { 0x03, 0x040a, 0x3c9f93ec5848a2 }, + { 0x04, 0x03bc, 0x614f4bda9876a5 }, + { 0x05, 0x0812, 0x2e901a9227fc47 }, + { 0x06, 0x090d, 0xeebf4957d53d62 }, + { 0x07, 0x0322, 0x6314ec2ca6b32b }, + { 0x08, 0x0035, 0x14f6d08c096483 }, + { 0x09, 0x07c5, 0x8f7eff1d689a81 }, + { 0x0a, 0x069a, 0xff4b538492c611 }, + { 0x0b, 0x0bd8, 0x909300c14c1467 }, + { 0x0c, 0x01d1, 0xba5826ef832e2b }, + { 0x0d, 0x0583, 0xa92e636998767d }, + { 0x0e, 0x02e8, 0x313f0a51478df8 }, + { 0x0f, 0x08fc, 0xd28ce525a2be4b }, +}; + +/* Functions Used by the C2 Cypher */ +static inline uint32_t rol32( uint32_t code, int n ) +{ + return (code << n) | (code >> (32 - n)); +} + +static inline uint8_t rol8( uint8_t code, int n ) +{ + return (code << n) | (code >> (8 - n)); +} + +static inline uint32_t F( uint32_t code, uint32_t key ) +{ + uint32_t work; + + work = code + key; + work ^= sbox_fwork & 0xff; + work ^= rol32( work, 9 ) ^ rol32( work, 22 ); + return work; +} + +void c2_init() +{ + int i;
View file
libdvdcss-1.6.0.tar.xz/src/libdvdcpxm.h
Added
@@ -0,0 +1,89 @@ +/** + * \file libdvdcpxm.h + * \author Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * \author Saifelden Ismail <saifeldenmi@gmail.com> + * + * \brief Integration of libdvdcpxm functionality into libdvdcss. + * + * This file adapts core logic from libdvdcpxm for use in libdvdcss, allowing + * improved support for CPPM-protected DVD-Audio discs. + */ + +/* + * Copyright (C) 1999-2025 VideoLAN + * Copyright (C) Maxim V.Anisiutkin <Maxim.Anisiutkin@gmail.com> + * Copyright (C) 2025 Saifelden Ismail <saifeldenmi@gmail.com> + * + * This file is part of libdvdcss. + * + * libdvdcss is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * libdvdcss is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with libdvdcss; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef _LIBDVDCPXM_H +#define _LIBDVDCPXM_H + +#define COPYRIGHT_PROTECTION_NONE 0 +#define COPYRIGHT_PROTECTION_CPPM 1 +#define COPYRIGHT_PROTECTION_CPRM 2 + +#define CPRM_STRUCT_MEDIA_ID 0x06 +#define CPRM_STRUCT_MKB 0x07 + +#define CPRM_MEDIA_ID_SIZE 20 +#define CPRM_MKB_PACK_SIZE 24576 +#define CPRM_MKB_SIZE (16 * CPRM_MKB_PACK_SIZE - 16) + +#define CCI_BYTE 0x00 + +#include <stdint.h> +#include "dvdcss/dvdcss.h" +#include "dvdcss/dvdcpxm.h" + +typedef struct +{ + uint8_t col; + uint16_t row; + uint64_t key; +} device_key_t; + +typedef struct +{ + struct + { + uint8_t type:4; + uint8_t reserved:4; + uint8_t manufacturer_id2; + uint8_t serial_number5; + } id_media; + + uint8_t dvd_mac10; +} cprm_media_id_t; + +typedef struct +{ + uint8_t mkb_hash8; + uint8_t reserved8; +} cprm_mkb_desc_t; + +typedef struct +{ + cprm_mkb_desc_t mkb_desc; + uint8_t mkbCPRM_MKB_SIZE; +} cprm_mkb_t; + +/* used to clear dvdcpxm structures, including cache */ +int dvdcpxm_close_internal ( dvdcss_t ); + +#endif
View file
libdvdcss-1.4.0.tar.bz2/src/libdvdcss.c -> libdvdcss-1.6.0.tar.xz/src/libdvdcss.c
Changed
@@ -96,6 +96,7 @@ * Preamble */ #include "config.h" +#include "libdvdcpxm.h" #include <limits.h> #include <stdio.h> @@ -120,6 +121,9 @@ # include <windows.h> # include <shlobj.h> #endif +#ifdef __HAIKU__ +# include <FindDirectory.h> +#endif #include "dvdcss/dvdcss.h" @@ -143,6 +147,19 @@ #define MANUFACTURING_DATE_OFFSET 813 #define MANUFACTURING_DATE_LENGTH 16 +static int exists_or_mkdir( const char *path, int perm ) +{ +#ifdef HAVE_BROKEN_MKDIR + (void) perm; +#endif + /* mkdir() may return an error if making the directory would fail, + * even if the directory exists, so use stat() to test for existence + * before trying to make the directory. */ + struct stat st; + if( stat(path, &st) ) + return mkdir(path, perm); + return 0; +} static dvdcss_t dvdcss_open_common ( const char *psz_target, void *p_stream, dvdcss_stream_cb *p_stream_cb ); @@ -221,7 +238,7 @@ * directory in userland */ char *psz_home = "/sdcard/Android/data/org.videolan.dvdcss"; - int i_ret = mkdir( psz_home, 0755 ); + int i_ret = exists_or_mkdir( psz_home, 0755 ); if( i_ret < 0 && errno != EEXIST ) { print_error( dvdcss, "failed creating home directory" ); @@ -234,7 +251,7 @@ /* Try looking in password file for home dir. */ p_pwd = getpwuid(getuid()); - if( p_pwd ) + if( p_pwd && p_pwd->pw_dir && p_pwd->pw_dir 0 ) { psz_home = p_pwd->pw_dir; } @@ -248,7 +265,7 @@ } /* Cache our keys in ${HOME}/.dvdcss/ */ - if( psz_home ) + if( psz_home && psz_home 0 ) { int home_pos = 0; @@ -267,13 +284,27 @@ } } #endif /* __OS2__ */ +#ifdef __HAIKU__ + { + char buf512; + find_directory(B_USER_CACHE_DIRECTORY, 0, false, buf, 512); + snprintf( dvdcss->psz_cachefile + home_pos, PATH_MAX - home_pos, + "%s/dvdcss", buf ); + } +#else snprintf( dvdcss->psz_cachefile + home_pos, PATH_MAX - home_pos, "%s/.dvdcss", psz_home ); +#endif dvdcss->psz_cachefilePATH_MAX - 1 = '\0'; psz_cache = dvdcss->psz_cachefile; } #endif /* ! defined( _WIN32 ) */ } + else + { + strncpy( dvdcss->psz_cachefile, psz_cache, PATH_MAX ); + dvdcss->psz_cachefilePATH_MAX - 1 = '\0'; + } /* Check that there is enough space for the cache directory path and the * block filename. The +1s are path separators. */ @@ -297,15 +328,27 @@ char psz_tagfilePATH_MAX; int i_fd, i_ret; - i_ret = mkdir( dvdcss->psz_cachefile, 0755 ); + i_ret = exists_or_mkdir( dvdcss->psz_cachefile, 0755 ); if( i_ret < 0 && errno != EEXIST ) { - print_error( dvdcss, "failed creating cache directory" ); + print_error( dvdcss, "failed creating cache directory '%s'", dvdcss->psz_cachefile ); + dvdcss->psz_cachefile0 = '\0'; + return -1; + } + + i_ret = snprintf( psz_tagfile, PATH_MAX, "%s/" CACHE_TAG_NAME, + dvdcss->psz_cachefile ); + if ( i_ret < 0 || i_ret >= PATH_MAX) + { + if ( i_ret < 0) + print_error( dvdcss, "failed to compose cache directory tag path"); + else + print_error( dvdcss, "cache directory tag path too long: %s/" CACHE_TAG_NAME, + dvdcss->psz_cachefile ); dvdcss->psz_cachefile0 = '\0'; return -1; } - sprintf( psz_tagfile, "%s/" CACHE_TAG_NAME, dvdcss->psz_cachefile ); i_fd = open( psz_tagfile, O_RDWR|O_CREAT, 0644 ); if( i_fd >= 0 ) { @@ -418,9 +461,10 @@ } /* We have a disc name or ID, we can create the cache subdirectory. */ - i = sprintf( dvdcss->psz_cachefile, "%s/%s-%s-%s", - dvdcss->psz_cachefile, psz_title, psz_serial, psz_key ); - i_ret = mkdir( dvdcss->psz_cachefile, 0755 ); + i = strlen( dvdcss->psz_cachefile ); + i += sprintf( dvdcss->psz_cachefile + i, "/%s-%s-%s", + psz_title, psz_serial, psz_key ); + i_ret = exists_or_mkdir( dvdcss->psz_cachefile, 0755 ); if( i_ret < 0 && errno != EEXIST ) { print_error( dvdcss, "failed creating cache subdirectory" ); @@ -506,6 +550,7 @@ if( psz_target == NULL && ( p_stream == NULL || p_stream_cb == NULL ) ) { + dvdcss->psz_device = NULL; goto error; } @@ -521,6 +566,10 @@ dvdcss->p_stream = p_stream; dvdcss->p_stream_cb = p_stream_cb; + dvdcss->cpxm = NULL; + dvdcss->cpxm_was_cached = 0; + dvdcss->media_type = COPYRIGHT_PROTECTION_NONE; + /* Set library verbosity from DVDCSS_VERBOSE environment variable. */ set_verbosity( dvdcss ); @@ -817,6 +866,10 @@ i_ret = dvdcss_close_device( dvdcss ); free( dvdcss->psz_device ); + + /* close cpxm related structures if they were used */ + dvdcpxm_close_internal( dvdcss ); + free( dvdcss ); return i_ret; @@ -832,3 +885,13 @@ { return dvdcss->b_scrambled; } + +/** + * \brief Return the type of encryption + * + * \return 0 if the disc is unencrypted, 1 if cppm or css, 2 if cprm + */ +LIBDVDCSS_EXPORT int dvdcss_get_encryption_type ( dvdcss_t dvdcss ) +{ + return dvdcss->media_type; +}
View file
libdvdcss-1.4.0.tar.bz2/src/libdvdcss.h -> libdvdcss-1.6.0.tar.xz/src/libdvdcss.h
Changed
@@ -26,7 +26,13 @@ #include <limits.h> +#include <config.h> +#ifdef HAVE_SYS_PARAM_H +# include <sys/param.h> +#endif + #include "dvdcss/dvdcss.h" +#include "cpxm.h" #include "css.h" #include "device.h" @@ -69,6 +75,16 @@ int b_errors; int b_debug; + /* struct to be used only internally in CPXM */ + p_cpxm cpxm; + /* to check if this was cached, or if it was copied from cache */ + /* will use to check if disc is being closed or if it's just a file */ + int cpxm_was_cached; + + /* i_copyright read from ioctl_copyright used by cpxm to determine type of encryption */ + /* 0 - None, 1 - CPPM, 2 - CPRM */ + int media_type; + #ifdef _WIN32 int b_file; char * p_readv_buffer;
View file
libdvdcss-1.6.0.tar.xz/src/meson.build
Added
@@ -0,0 +1,44 @@ +# libdvdcss source files +dvdcss_src = files( + 'cpxm.c', + 'css.c', + 'device.c', + 'error.c', + 'ioctl.c', + 'libdvdcpxm.c', + 'libdvdcss.c', +) + +# +# Library definitions +# + +if host_machine.system() in 'windows', 'os/2' and get_option('default_library') != 'static' + api_export_flags = '-DLIBDVDCSS_EXPORTS' +else + api_export_flags = +endif + +# The final libdvdcss library +libdvdcss = library('dvdcss', dvdcss_src, + include_directories: dvdcss_inc_dirs, + dependencies: extra_dependencies, + c_args: api_export_flags, + gnu_symbol_visibility: 'hidden', + version: dvdcss_soname_version, + install: true, +) + +# Make the library usable as a dependency in this and other projects +libdvdcss_dep = declare_dependency(link_with: libdvdcss, + include_directories: include_directories('.')) + +meson.override_dependency('libdvdcss', libdvdcss_dep) + +# Generate pkg-config .pc file +pkg_mod = import('pkgconfig') +pkg_mod.generate(libraries: libdvdcss, + version: meson.project_version(), + name: 'libdvdcss', + description: 'DVD access and decryption library', +)
View file
libdvdcss-1.4.0.tar.bz2/test/csstest.c -> libdvdcss-1.6.0.tar.xz/test/csstest.c
Changed
@@ -12,6 +12,8 @@ #include <dvdcss/dvdcss.h> +#define DVDCSS_DSI_PES 0x400 + static int isscrambled( unsigned char * ); static void dumpsector ( unsigned char * ); @@ -67,7 +69,7 @@ } /* Print the sector */ - printf( "requested sector: " ); + printf( "requested sector:\t" ); dumpsector( p_buffer ); /* Check if sector was encrypted */ @@ -93,7 +95,7 @@ } /* Print the decrypted sector */ - printf( "unscrambled sector: " ); + printf( "unscrambled sector:\t" ); dumpsector( p_buffer ); } else @@ -113,14 +115,21 @@ return p_buffer 0x14 & 0x30; } +static void dumpmem( unsigned char *p_buffer, int sz ) +{ + for( ; sz ; sz--, p_buffer++ ) + printf( "%.2x", *p_buffer ); +} + /* Print parts of a 2048 bytes buffer */ static void dumpsector( unsigned char *p_buffer ) { - int i_amount = 4; - for( ; i_amount ; i_amount--, p_buffer++ ) printf( "%.2x", *p_buffer ); + /* print pack header and first PES bytes up to flags */ + dumpmem( &p_buffer0, 21 ); + printf( "..." ); + /* print DSI up to block number */ + dumpmem( &p_bufferDVDCSS_DSI_PES, 17 ); printf( "..." ); - i_amount = 22; - p_buffer += 200; - for( ; i_amount ; i_amount--, p_buffer++ ) printf( "%.2x", *p_buffer ); - printf( "...\n" ); + dumpmem( &p_bufferDVDCSS_BLOCK_SIZE - 8, 8 ); + printf( "\n" ); }
View file
libdvdcss-1.6.0.tar.xz/test/meson.build
Added
@@ -0,0 +1,10 @@ +if not get_option('enable_examples') + subdir_done() +endif + +executable('csstest', 'csstest.c', + dependencies: libdvdcss_dep) + +executable('dvd_region', 'dvd_region.c', + dependencies: libdvdcss_dep, + include_directories: dvdcss_inc_dirs)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.