libxml2: make build with libiconv optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-01-16 12:33:17 +01:00
parent e9bc71b5a9
commit 2780fb8af5
2 changed files with 7 additions and 3 deletions

View File

@ -22,6 +22,10 @@
. config/options $1
if [ "$ICONV" = "libiconv" ]; then
CONFIG_LIBXML="--with-iconv"
fi
cd $PKG_BUILD
mkdir -p .build-target
@ -32,7 +36,7 @@ cd .build-target
--sysconfdir=/etc \
--enable-static \
--enable-shared \
--with-iconv \
$CONFIG_LIBXML \
--disable-ipv6 \
--without-python \
--with-zlib

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="MIT"
PKG_SITE="http://xmlsoft.org"
PKG_URL="ftp://xmlsoft.org/libxml2/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="libiconv"
PKG_BUILD_DEPENDS="toolchain libiconv"
PKG_DEPENDS="$ICONV"
PKG_BUILD_DEPENDS="toolchain $ICONV"
PKG_PRIORITY="optional"
PKG_SECTION="textproc"
PKG_SHORTDESC="libxml: XML parser library for Gnome"