summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2013-11-09 23:46:32 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2013-11-10 18:07:36 (GMT)
commit777ed2bc3658080a36ae100cff056978093b582a (patch)
tree0b7f73c4da92cc486f75517a70566b89152903db
parent4faed86b0521553de0d7b039028fa7044bb0ab71 (diff)
downloadmxe-777ed2bc3658080a36ae100cff056978093b582a.zip
mxe-777ed2bc3658080a36ae100cff056978093b582a.tar.gz
mxe-777ed2bc3658080a36ae100cff056978093b582a.tar.bz2
Add libbluray package
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--index.html4
-rw-r--r--src/libbluray-1-fix-strncasecmp.patch20
-rw-r--r--src/libbluray.mk31
3 files changed, 55 insertions, 0 deletions
diff --git a/index.html b/index.html
index 767570f..ef98486 100644
--- a/index.html
+++ b/index.html
@@ -1518,6 +1518,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<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>
</tr>
diff --git a/src/libbluray-1-fix-strncasecmp.patch b/src/libbluray-1-fix-strncasecmp.patch
new file mode 100644
index 0000000..befe435
--- /dev/null
+++ b/src/libbluray-1-fix-strncasecmp.patch
@@ -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>
diff --git a/src/libbluray.mk b/src/libbluray.mk
new file mode 100644
index 0000000..59cfb82
--- /dev/null
+++ b/src/libbluray.mk
@@ -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