php: Update to 5.6.17 and enable socket extension
[termux-packages] / packages / glib / build.sh
1 TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/glib/
2 TERMUX_PKG_DESCRIPTION="Library providing core building blocks for libraries and applications written in C"
3 _TERMUX_GLIB_MAJOR_VERSION=2.46
4 TERMUX_PKG_VERSION=${_TERMUX_GLIB_MAJOR_VERSION}.2
5 TERMUX_PKG_BUILD_REVISION=1
6 TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
7 TERMUX_PKG_DEPENDS="libffi, pcre"
8
9 # --enable-compile-warnings=no to get rid of format strings causing errors
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-compile-warnings --disable-gtk-doc --disable-gtk-doc-html --cache-file=termux_configure.cache --with-pcre=system"
11 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 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__
14 CFLAGS="$CFLAGS -D__BIONIC__=1"
15
16 termux_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 }