glib-host: add support to build before toolchain is built, detect libffi if pkg-config is not built

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-11-04 11:34:01 +01:00
parent 83f518bff1
commit 0e29536713
2 changed files with 3 additions and 3 deletions

View File

@ -27,10 +27,10 @@ $SCRIPTS/unpack glib
setup_toolchain host
export ZLIB_CFLAGS=""
export ZLIB_LIBS=""
export LIBFFI_CFLAGS="-I$ROOT/$TOOLCHAIN/include/libffi"
export LIBFFI_LIBS="-L$ROOT/$TOOLCHAIN/lib -lffi"
cd $BUILD/glib*
do_autoreconf
mkdir -p .build-host && cd .build-host
../configure --host=$HOST_NAME \
--build=$HOST_NAME \

View File

@ -26,7 +26,7 @@ PKG_LICENSE="LGPL"
PKG_SITE="http://www.gtk.org/"
PKG_URL=""
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain libffi-host zlib-host"
PKG_BUILD_DEPENDS="ccache libffi-host zlib-host"
PKG_PRIORITY="optional"
PKG_SECTION="devel"
PKG_SHORTDESC="glib-host: C support library"