mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
libxml2: add support for host build
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
c57700c72e
commit
10b0fa5d82
@ -23,6 +23,7 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="MIT"
|
PKG_LICENSE="MIT"
|
||||||
PKG_SITE="http://xmlsoft.org"
|
PKG_SITE="http://xmlsoft.org"
|
||||||
PKG_URL="ftp://xmlsoft.org/libxml2/$PKG_NAME-$PKG_VERSION.tar.gz"
|
PKG_URL="ftp://xmlsoft.org/libxml2/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||||
|
PKG_DEPENDS_HOST="toolchain zlib:host"
|
||||||
PKG_DEPENDS_TARGET="toolchain zlib"
|
PKG_DEPENDS_TARGET="toolchain zlib"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="textproc"
|
PKG_SECTION="textproc"
|
||||||
@ -32,16 +33,19 @@ PKG_IS_ADDON="no"
|
|||||||
|
|
||||||
PKG_AUTORECONF="yes"
|
PKG_AUTORECONF="yes"
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="ac_cv_header_ansidecl_h=no \
|
PKG_CONFIGURE_OPTS_ALL="ac_cv_header_ansidecl_h=no \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--without-python \
|
--without-python \
|
||||||
--with-zlib=$SYSROOT_PREFIX/usr \
|
--with-zlib=$ROOT/$TOOLCHAIN \
|
||||||
--with-sysroot=$SYSROOT_PREFIX \
|
|
||||||
--without-lzma"
|
--without-lzma"
|
||||||
|
|
||||||
|
PKG_CONFIGURE_OPTS_HOST="$PKG_CONFIGURE_OPTS_ALL --with-zlib=$ROOT/$TOOLCHAIN"
|
||||||
|
|
||||||
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_ALL --with-zlib=$SYSROOT_PREFIX/usr --with-sysroot=$SYSROOT_PREFIX"
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $SYSROOT_PREFIX/usr/bin/xml2-config
|
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $SYSROOT_PREFIX/usr/bin/xml2-config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user