From 53cc891faebca6b5fa51d810bd33b90d87207085 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 25 Nov 2010 18:19:31 +0100 Subject: [PATCH] glib: add autoreconf support Signed-off-by: Stephan Raue --- packages/devel/glib/build | 12 +++++++++--- packages/devel/glib/meta | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/devel/glib/build b/packages/devel/glib/build index 9e14f6a736..341d1c253f 100755 --- a/packages/devel/glib/build +++ b/packages/devel/glib/build @@ -2,11 +2,14 @@ . config/options $1 +# Fails to compile with GCC link time optimization, outputing the error: +# "mem-overflow.c:137:1: sorry, unimplemented: gimple bytecode streams do not support the optimization attribute". +# CFLAGS=`echo $CFLAGS | sed -e "s|-flto||"` +# LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||"` + cd $PKG_BUILD +mkdir -p .build-target && cd .build-target -mkdir -p .build-target - -cd .build-target ac_cv_func_posix_getpwuid_r='yes' \ ac_cv_func_posix_getgrgid_r='yes' \ glib_cv_uscore='no' \ @@ -42,3 +45,6 @@ $MAKEINSTALL # cp glib/glibconfig.h $SYSROOT_PREFIX/usr/include/glib-2.0 mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig cp g*-2.0.pc $SYSROOT_PREFIX/usr/lib/pkgconfig + +mkdir -p $SYSROOT_PREFIX/usr/share/aclocal + cp ../m4macros/glib-gettext.m4 $SYSROOT_PREFIX/usr/share/aclocal \ No newline at end of file diff --git a/packages/devel/glib/meta b/packages/devel/glib/meta index f29743588d..908ff7a58f 100644 --- a/packages/devel/glib/meta +++ b/packages/devel/glib/meta @@ -6,9 +6,11 @@ PKG_LICENSE="LGPL" PKG_SITE="http://www.gtk.org/" PKG_URL="http://ftp.gnome.org/pub/gnome/sources/glib/2.27/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_DEPENDS="zlib dbus" -PKG_BUILD_DEPENDS="toolchain zlib dbus glib-host" +PKG_BUILD_DEPENDS="toolchain zlib dbus gtk-doc glib-host" PKG_PRIORITY="optional" PKG_SECTION="devel" PKG_SHORTDESC="glib: C support library" PKG_LONGDESC="GLib is a library which includes support routines for C such as lists, trees, hashes, memory allocation, and many other things." PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes"