libxml2: split into 'host' and 'target' package

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-13 18:03:41 +02:00
parent 71bd4c2fe6
commit 1c3b87c9ec
4 changed files with 35 additions and 10 deletions

View File

@ -0,0 +1,21 @@
#!/bin/sh
. config/options $1
$SCRIPTS/build toolchain
$SCRIPTS/build Python
$SCRIPTS/unpack libxml2
setup_toolchain host
cd $BUILD/libxml2-*
mkdir -p .build-host
cd .build-host
../configure --prefix=$ROOT/$TOOLCHAIN \
--disable-ipv6 \
--with-python \
--with-zlib
make
make install

View File

@ -0,0 +1 @@
ftp://xmlsoft.org/libxml2/libxml2-2.7.7.tar.gz

View File

@ -5,15 +5,18 @@
$SCRIPTS/build toolchain $SCRIPTS/build toolchain
cd $PKG_BUILD cd $PKG_BUILD
./configure --host=$TARGET_NAME \ mkdir -p .build-target
--build=$HOST_NAME \
--prefix=/usr \ cd .build-target
--sysconfdir=/etc \ ../configure --host=$TARGET_NAME \
--disable-static \ --build=$HOST_NAME \
--enable-shared \ --prefix=/usr \
--disable-ipv6 \ --sysconfdir=/etc \
--without-python \ --disable-static \
--with-zlib --enable-shared \
--disable-ipv6 \
--without-python \
--with-zlib
make make

View File

@ -3,4 +3,4 @@
. config/options $1 . config/options $1
mkdir -p $INSTALL/usr/lib mkdir -p $INSTALL/usr/lib
cp -PR $PKG_BUILD/.libs/libxml2*.so* $INSTALL/usr/lib cp -P $PKG_BUILD/.build-target/.libs/libxml2*.so* $INSTALL/usr/lib