glib: fixed cross build.
This commit is contained in:
parent
3b7af30c7c
commit
3cdd6bfce8
1 changed files with 6 additions and 13 deletions
|
@ -4,7 +4,7 @@ version=2.40.0
|
|||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-fam --with-pcre=system --enable-static"
|
||||
hostmakedepends="pkg-config perl python libxslt docbook-xsl which"
|
||||
hostmakedepends="automake libtool pkg-config perl python libxslt docbook-xsl which"
|
||||
makedepends="zlib-devel pcre-devel>=8.30 libffi-devel>=3.1 dbus-devel"
|
||||
short_desc="The GNU library of C routines"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -14,18 +14,7 @@ distfiles="${GNOME_SITE}/glib/${version%.*}/glib-$version.tar.xz"
|
|||
checksum=0d27f195966ecb1995dcce0754129fd66ebe820c7cd29200d264b02af1aa28b5
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
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"
|
||||
hostmakedepends+=" libtool glib-devel"
|
||||
pre_configure() {
|
||||
libtoolize -f
|
||||
}
|
||||
hostmakedepends+=" glib-devel"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
|
@ -34,6 +23,10 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
*) configure_args+=" --enable-libelf"; makedepends+=" elfutils-devel";;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
libglib-devel_package() {
|
||||
depends="zlib-devel pcre-devel libffi-devel glib>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
|
Loading…
Reference in a new issue