glib: Update from 2.44.1 to 2.46.2
[termux-packages] / packages / glib / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/glib/
2TERMUX_PKG_DESCRIPTION="Library providing core building blocks for libraries and applications written in C"
a5d4e3d6
FF
3_TERMUX_GLIB_MAJOR_VERSION=2.46
4TERMUX_PKG_VERSION=${_TERMUX_GLIB_MAJOR_VERSION}.2
59f0d218
FF
5TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
6TERMUX_PKG_DEPENDS="libffi, pcre"
7
8# --enable-compile-warnings=no to get rid of format strings causing errors
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-compile-warnings --disable-gtk-doc --disable-gtk-doc-html --cache-file=termux_configure.cache --with-pcre=system"
10TERMUX_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 lib/glib-2.0/include bin/gtester-report bin/glib-mkenums bin/glib-gettextize bin/gdbus-codegen"
11
12# glib checks for __BIONIC__ instead of __ANDROID__
13CFLAGS="$CFLAGS -D__BIONIC__=1"
14
15termux_step_pre_configure () {
16 cd $TERMUX_PKG_BUILDDIR
17 # https://developer.gnome.org/glib/2.37/glib-cross-compiling.html
18 echo "glib_cv_long_long_format=ll" >> termux_configure.cache
19 echo "glib_cv_stack_grows=no" >> termux_configure.cache
20 echo "glib_cv_uscore=yes" >> termux_configure.cache
21 echo "ac_cv_func_posix_getpwuid_r=yes" >> termux_configure.cache
22 echo "ac_cv_func_posix_getgrgid_r=no" >> termux_configure.cache
23 echo "ac_cv_func_posix_getpwnam_r=no" >> termux_configure.cache
24 echo "ac_cv_func_posix_getpwuid_r=no" >> termux_configure.cache
25 echo "ac_cv_header_pwd_h=no" >> termux_configure.cache
26 chmod a-w termux_configure.cache # prevent configure from changing
27}