Browse Source

- libbluray: bump version to 1.3.1; rework build

master
vanhofen 3 years ago
parent
commit
6deedd66d3
  1. 35
      package/libbluray/libbluray.mk
  2. 46
      package/libbluray/patches/libbluray.patch

35
package/libbluray/libbluray.mk

@ -4,13 +4,10 @@
#
################################################################################
LIBBLURAY_VERSION = 0.9.3
LIBBLURAY_VERSION = 1.3.1
LIBBLURAY_DIR = libbluray-$(LIBBLURAY_VERSION)
LIBBLURAY_SOURCE = libbluray-$(LIBBLURAY_VERSION).tar.bz2
LIBBLURAY_SITE = ftp.videolan.org/pub/videolan/libbluray/$(LIBBLURAY_VERSION)
$(DL_DIR)/$(LIBBLURAY_SOURCE):
$(download) $(LIBBLURAY_SITE)/$(LIBBLURAY_SOURCE)
LIBBLURAY_SITE = http://download.videolan.org/pub/videolan/libbluray/$(LIBBLURAY_VERSION)
LIBBLURAY_DEPENDENCIES = freetype
ifeq ($(BOXSERIES),hd2)
@ -21,25 +18,17 @@ LIBBLURAY_CONF_OPTS = \
--enable-shared \
--disable-static \
--disable-extra-warnings \
--disable-doxygen-doc \
--disable-doxygen-dot \
--disable-doxygen-html \
--disable-doxygen-ps \
--disable-doxygen-pdf \
--disable-examples \
--disable-bdjava \
--disable-bdjava-jar \
--with-freetype \
--without-libxml2 \
--without-fontconfig
libbluray: $(LIBBLURAY_DEPENDENCIES) $(DL_DIR)/$(LIBBLURAY_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR))
$(CHDIR)/$(PKG_DIR); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR)
$(REWRITE_LIBTOOL)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
define LIBBLURAY_BOOTSTRAP
$(CHDIR)/$($(PKG)_DIR); \
./bootstrap
endef
LIBBLURAY_POST_PATCH_HOOKS += LIBBLURAY_BOOTSTRAP
libbluray: | $(TARGET_DIR)
$(call autotools-package)

46
package/libbluray/patches/libbluray.patch

@ -1,34 +1,3 @@
diff --git a/src/file/dir_win32.c b/src/file/dir_win32.c
index 2690658..6eb6c04 100644
--- a/src/file/dir_win32.c
+++ b/src/file/dir_win32.c
@@ -86,8 +86,8 @@ static BD_DIR_H *_dir_open_win32(const char* dirname)
dir->internal = priv;
- wchar_t wfilespec[MAX_PATH];
- if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filespec, -1, wfilespec, MAX_PATH))
+ wchar_t wfilespec[4096];
+ if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filespec, -1, wfilespec, 4096))
priv->handle = _wfindfirst(wfilespec, &priv->info);
else
priv->handle = -1;
diff --git a/src/file/file_win32.c b/src/file/file_win32.c
index 5eb52d7..ed8fcec 100644
--- a/src/file/file_win32.c
+++ b/src/file/file_win32.c
@@ -97,9 +97,9 @@ static BD_FILE_H *_file_open(const char* filename, const char *mode)
{
BD_FILE_H *file;
FILE *fp;
- wchar_t wfilename[MAX_PATH], wmode[8];
+ wchar_t wfilename[4096], wmode[8];
- if (!MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filename, -1, wfilename, MAX_PATH) ||
+ if (!MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filename, -1, wfilename, 4096) ||
!MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, mode, -1, wmode, 8)) {
BD_DEBUG(DBG_FILE, "Error opening file %s\n", filename);
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 1aedf2c..e519650 100644
--- a/src/libbluray/bluray.c
@ -94,18 +63,3 @@ index ae9f412..8ce6ddd 100644
* Seek to a chapter. First chapter is 0
*
* @param bd BLURAY object
diff --git a/src/libbluray/decoders/m2ts_filter.c b/src/libbluray/decoders/m2ts_filter.c
index 6b146dc..1b9ac3b 100644
--- a/src/libbluray/decoders/m2ts_filter.c
+++ b/src/libbluray/decoders/m2ts_filter.c
@@ -36,8 +36,8 @@
#include <stdio.h>
#endif
-#define M2TS_TRACE(...) BD_DEBUG(DBG_STREAM,__VA_ARGS__)
-//#define M2TS_TRACE(...) do {} while(0)
+//#define M2TS_TRACE(...) BD_DEBUG(DBG_STREAM,__VA_ARGS__)
+#define M2TS_TRACE(...) do {} while(0)
/*
*

Loading…
Cancel
Save