]> git.sesse.net Git - vlc/commitdiff
Contribs: fix zvbi compilation for Android
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 10 Dec 2014 21:13:45 +0000 (22:13 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 10 Dec 2014 21:13:45 +0000 (22:13 +0100)
contrib/src/zvbi/rules.mak
contrib/src/zvbi/zvbi-android.patch [new file with mode: 0644]

index 5c866a88821b02fb1a27605dfbe6ac2d9cb288d6..aac57f4100a499bf3d055ee1cbf598cbc6e3563a 100644 (file)
@@ -22,6 +22,9 @@ ifdef HAVE_WIN32
 endif
 ifdef HAVE_DARWIN_OS
        $(APPLY) $(SRC)/zvbi/zvbi-fix-clang-support.patch
+endif
+ifdef HAVE_ANDROID
+       $(APPLY) $(SRC)/zvbi/zvbi-android.patch
 endif
        $(MOVE)
 
@@ -33,6 +36,7 @@ ZVBICONF := \
        --disable-nls --disable-proxy \
        --without-doxygen \
        $(HOSTCONF)
+
 ifdef HAVE_MACOSX
 ZVBI_CFLAGS += -fnested-functions
 endif
@@ -41,10 +45,8 @@ ZVBI_CFLAGS += -DPTW32_STATIC_LIB
 endif
 
 .zvbi: zvbi
-        $(UPDATE_AUTOCONFIG)
-ifdef HAVE_WIN32
+       $(UPDATE_AUTOCONFIG)
        $(RECONF)
-endif
        cd $< && $(HOSTVARS) CFLAGS="$(ZVBI_CFLAGS)" ./configure $(ZVBICONF)
        cd $</src && $(MAKE) install
        cd $< && $(MAKE) SUBDIRS=. install
diff --git a/contrib/src/zvbi/zvbi-android.patch b/contrib/src/zvbi/zvbi-android.patch
new file mode 100644 (file)
index 0000000..a33e9e5
--- /dev/null
@@ -0,0 +1,37 @@
+--- zvbi/src/conv.c    2013-08-28 14:10:16.000000000 +0200
++++ zvbi-new/src/conv.c        2014-12-09 11:14:36.948231282 +0100
+@@ -26,7 +26,9 @@
+ #endif
+ #include <errno.h>
+-#include <langinfo.h>
++#ifdef HAVE_LANGINFO_H
++# include <langinfo.h>
++#endif
+ #include "misc.h"
+ #include "conv.h"
+@@ -1234,9 +1236,12 @@
+       const char *dst_format;
+       dst_format = bind_textdomain_codeset (vbi_intl_domainname, NULL);
+-
++#ifdef HAVE_LANGINFO_H
+       if (NULL == dst_format)
+               dst_format = nl_langinfo (CODESET);
++#else
++        dst_format = "UTF-8";
++#endif
+       return dst_format; /* may be NULL */
+ }
+--- zvbi/src/Makefile.am       2013-07-10 11:14:47.000000000 +0200
++++ zvbi-new/src/Makefile.am   2014-12-10 22:09:27.410157237 +0100
+@@ -94,7 +94,6 @@
+       page_table.c page_table.h \
+       pdc.c pdc.h \
+       pfc_demux.c pfc_demux.h \
+-      proxy-client.c proxy-client.h \
+       raw_decoder.c raw_decoder.h \
+       sampling_par.c sampling_par.h \
+       search.c search.h ure.c ure.h \