Files
Arch-R/packages/textproc/libxml2/build
Stephan Raue 1c3b87c9ec libxml2: split into 'host' and 'target' package
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2010-10-13 18:03:41 +02:00

29 lines
564 B
Bash
Executable File

#!/bin/sh
. config/options $1
$SCRIPTS/build toolchain
cd $PKG_BUILD
mkdir -p .build-target
cd .build-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--enable-shared \
--disable-ipv6 \
--without-python \
--with-zlib
make
$MAKEINSTALL
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \
$SYSROOT_PREFIX/usr/bin/xml2-config
mv $SYSROOT_PREFIX/usr/bin/xml2-config $ROOT/$TOOLCHAIN/bin