apt: Update from 1.2.1 to 1.2.3
[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
9158a301 5TERMUX_PKG_BUILD_REVISION=1
59f0d218
FF
6TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
7TERMUX_PKG_DEPENDS="libffi, pcre"
8
9# --enable-compile-warnings=no to get rid of format strings causing errors
10TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-compile-warnings --disable-gtk-doc --disable-gtk-doc-html --cache-file=termux_configure.cache --with-pcre=system"
11TERMUX_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"
12
13# glib checks for __BIONIC__ instead of __ANDROID__
14CFLAGS="$CFLAGS -D__BIONIC__=1"
15
16termux_step_pre_configure () {
17 cd $TERMUX_PKG_BUILDDIR
18 # https://developer.gnome.org/glib/2.37/glib-cross-compiling.html
19 echo "glib_cv_long_long_format=ll" >> termux_configure.cache
20 echo "glib_cv_stack_grows=no" >> termux_configure.cache
21 echo "glib_cv_uscore=yes" >> termux_configure.cache
22 echo "ac_cv_func_posix_getpwuid_r=yes" >> termux_configure.cache
23 echo "ac_cv_func_posix_getgrgid_r=no" >> termux_configure.cache
24 echo "ac_cv_func_posix_getpwnam_r=no" >> termux_configure.cache
25 echo "ac_cv_func_posix_getpwuid_r=no" >> termux_configure.cache
26 echo "ac_cv_header_pwd_h=no" >> termux_configure.cache
27 chmod a-w termux_configure.cache # prevent configure from changing
28}