Merge pull request #270 from TimothyGu/dvd2

DVD/Blu-ray packages
This commit is contained in:
Tony Theodore 2013-11-10 12:58:55 -08:00
commit 7c0d379122
4 changed files with 87 additions and 0 deletions

View File

@ -1517,6 +1517,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libass</td>
<td class="website"><a href="http://code.google.com/p/libass/">libass</a></td>
</tr>
<tr>
<td class="package">libbluray</td>
<td class="website"><a href="http://www.videolan.org/developers/libbluray.html">libbluray</a></td>
</tr>
<tr>
<td class="package">libcroco</td>
<td class="website"><a href="http://www.freespiders.org/projects/libcroco/">Libcroco</a></td>
@ -1525,6 +1529,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<td class="package">libdnet</td>
<td class="website"><a href="http://libdnet.sourceforge.net/">libdnet</a></td>
</tr>
<tr>
<td class="package">libdvdcss</td>
<td class="website"><a href="http://www.videolan.org/developers/libdvdcss.html">libdvdcss</a></td>
</tr>
<tr>
<td class="package">libevent</td>
<td class="website"><a href="http://libevent.org/">libevent</a></td>

View File

@ -0,0 +1,20 @@
This file is part of MXE.
See index.html for further information.
diff -Naur a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
--- a/src/libbluray/bdnav/meta_parse.c 2013-04-26 13:42:38.000000000 -0700
+++ b/src/libbluray/bdnav/meta_parse.c 2013-11-09 15:41:29.000000000 -0800
@@ -29,6 +29,13 @@
#include "meta_parse.h"
#include "libbluray/register.h"
+#if (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
+#define strncasecmp _strnicmp
+#ifdef __STRICT_ANSI__
+#undef __STRICT_ANSI__
+#endif
+#endif
+
#include <stdlib.h>
#include <string.h>
#include <errno.h>

31
src/libbluray.mk Normal file
View File

@ -0,0 +1,31 @@
# This file is part of MXE.
# See index.html for further information.
PKG := libbluray
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.4.0
$(PKG)_CHECKSUM := 39984aae77efde2e0917ed7e183ebf612813d7f3
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
$(PKG)_URL := ftp://ftp.videolan.org/pub/videolan/libbluray/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := freetype gcc libxml2
define $(PKG)_UPDATE
$(WGET) -q -O- 'ftp://ftp.videolan.org/pub/videolan/libbluray/last/' | \
$(SED) -n 's,.*libbluray-\([0-9][^<]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-examples \
--with-freetype \
--with-libxml2 \
--disable-bdjava
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef

28
src/libdvdcss.mk Normal file
View File

@ -0,0 +1,28 @@
# This file is part of MXE.
# See index.html for further information.
PKG := libdvdcss
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2.13
$(PKG)_CHECKSUM := 1a4a5e55c7529da46386c1c333340eee2c325a77
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
$(PKG)_URL := http://download.videolan.org/pub/libdvdcss/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://download.videolan.org/pub/libdvdcss/last/' | \
$(SED) -n 's,.*libdvdcss-\([0-9][^<]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-doc
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef