chiark / gitweb /
glib: Add libandroid-support explicit dependency
authorFredrik Fornwall <fredrik@fornwall.net>
Sun, 16 Oct 2016 19:55:58 +0000 (15:55 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sun, 16 Oct 2016 19:58:59 +0000 (15:58 -0400)
To function well with character encodings glib needs to discover
langinfo.h from libandroid-support.

Test case:
  LC_ALL=C pkg-config --atleast-pkgconfig-version=0.1
should work and not give an error message:
  Conversion from character set 'C' to 'UTF-8' is not supported

packages/glib/build.sh

index b4e449f5d407368b24c485b8ad2ef838f221f3a4..f018d1ea988b79b602027c681245888fb4159ec4 100755 (executable)
@@ -2,8 +2,10 @@ TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/glib/
 TERMUX_PKG_DESCRIPTION="Library providing core building blocks for libraries and applications written in C"
 _TERMUX_GLIB_MAJOR_VERSION=2.50
 TERMUX_PKG_VERSION=${_TERMUX_GLIB_MAJOR_VERSION}.1
+TERMUX_PKG_BUILD_REVISION=1
 TERMUX_PKG_SRCURL=https://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
-TERMUX_PKG_DEPENDS="libffi, pcre"
+# libandroid-support to get langinfo.h in include path.
+TERMUX_PKG_DEPENDS="libffi, pcre, libandroid-support"
 TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc share/locale share/glib-2.0/gettext share/gdb/auto-load share/glib-2.0/codegen share/glib-2.0/gdb bin/gtester-report bin/glib-mkenums bin/glib-gettextize bin/gdbus-codegen"
 # Needed by pkg-config for glib-2.0:
 TERMUX_PKG_DEVPACKAGE_DEPENDS="pcre-dev"