From: Jean-Baptiste Kempf Date: Wed, 10 Dec 2014 21:13:45 +0000 (+0100) Subject: Contribs: fix zvbi compilation for Android X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=be0c8c647577b61574bd212c5afb1d7992e89236;p=vlc Contribs: fix zvbi compilation for Android --- diff --git a/contrib/src/zvbi/rules.mak b/contrib/src/zvbi/rules.mak index 5c866a8882..aac57f4100 100644 --- a/contrib/src/zvbi/rules.mak +++ b/contrib/src/zvbi/rules.mak @@ -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 $ +-#include ++#ifdef HAVE_LANGINFO_H ++# include ++#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 \