glib: cross build support.

This commit is contained in:
Juan RP 2013-02-13 10:38:27 +01:00
parent 9358a96f27
commit c6a927b45d
1 changed files with 19 additions and 0 deletions

View File

@ -14,3 +14,22 @@ homepage="http://www.gtk.org/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/glib/2.34/glib-$version.tar.xz"
checksum=855fcbf87cb93065b488358e351774d8a39177281023bae58c286f41612658a7
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
configure_args="${configure_args} glib_cv_long_long_format=I64
glib_cv_stack_grows=no glib_cv_rtldglobal_broken=no
glib_cv_uscore=no blib_cv_use_pid_surrogate=yes
ac_cv_func_vsnprintf_c99=yes
ac_cv_func_printf_unix98=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_posix_getgrgid_r=yes
ac_cv_func_posix_getgrgid_r=yes
PKG_CONFIG_LIBDIR=/usr/$XBPS_CROSS_TRIPLET/lib/pkgconfig
PKG_CONFIG_SYSROOT_DIR=/usr/$XBPS_CROSS_TRIPLET"
makedepends="${makedepends} automake gettext-devel which gtk-doc glib-devel"
crossmakedepends="zlib-devel pcre-devel>=8.30 libffi-devel"
pre_configure() {
sed -e "s|AM_PROG_CC_STDC|AC_PROG_CC|g" -i configure.ac
NOCONFIGURE=1 ./autogen.sh
}
fi