2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2018-09-19 10:25:22 +01:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:41:35 +01:00
|
|
|
|
2010-11-14 17:09:01 +01:00
|
|
|
PKG_NAME="libxml2"
|
2022-10-15 01:54:18 +00:00
|
|
|
PKG_VERSION="2.10.3"
|
|
|
|
|
PKG_SHA256="302bbb86400b8505bebfbf7b3d1986e9aa05073198979f258eed4be481ff5f83"
|
2010-11-14 17:09:01 +01:00
|
|
|
PKG_LICENSE="MIT"
|
|
|
|
|
PKG_SITE="http://xmlsoft.org"
|
2021-05-15 03:49:12 +00:00
|
|
|
PKG_URL="https://gitlab.gnome.org/GNOME/${PKG_NAME}/-/archive/v${PKG_VERSION}/${PKG_NAME}-v${PKG_VERSION}.tar.bz2"
|
2021-01-02 07:20:00 +00:00
|
|
|
PKG_DEPENDS_HOST="zlib:host Python3:host"
|
2014-01-30 14:30:26 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="The libxml package contains an XML library, which allows you to manipulate XML files."
|
2021-05-15 03:49:12 +00:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2013-12-14 20:35:24 +02:00
|
|
|
|
2016-03-28 12:31:09 +02:00
|
|
|
PKG_CONFIGURE_OPTS_ALL="ac_cv_header_ansidecl_h=no \
|
2022-02-12 09:20:00 +00:00
|
|
|
--enable-static \
|
|
|
|
|
--enable-shared \
|
|
|
|
|
--disable-silent-rules \
|
|
|
|
|
--enable-ipv6 \
|
|
|
|
|
--without-lzma"
|
2013-12-14 20:35:24 +02:00
|
|
|
|
2022-02-12 09:20:00 +00:00
|
|
|
PKG_CONFIGURE_OPTS_HOST="${PKG_CONFIGURE_OPTS_ALL} \
|
|
|
|
|
--with-zlib=${TOOLCHAIN} \
|
|
|
|
|
--with-python"
|
2016-03-28 12:31:09 +02:00
|
|
|
|
2022-02-12 09:20:00 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="${PKG_CONFIGURE_OPTS_ALL} \
|
|
|
|
|
--with-zlib=${SYSROOT_PREFIX}/usr \
|
|
|
|
|
--without-python \
|
|
|
|
|
--with-sysroot=${SYSROOT_PREFIX}"
|
2016-03-28 12:31:09 +02:00
|
|
|
|
2013-12-14 20:35:24 +02:00
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:34:17 +00:00
|
|
|
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xml2-config
|
2013-12-14 20:35:24 +02:00
|
|
|
|
2021-01-19 19:34:17 +00:00
|
|
|
rm -rf ${INSTALL}/usr/bin
|
|
|
|
|
rm -rf ${INSTALL}/usr/lib/xml2Conf.sh
|
2013-12-14 20:35:24 +02:00
|
|
|
}
|