2011-01-09 18:41:35 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:41:35 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:41:35 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:41:35 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:41:35 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:41:35 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:41:35 +01:00
################################################################################
2010-11-14 17:09:01 +01:00
PKG_NAME = "libxml2"
2016-06-14 01:13:33 -07:00
PKG_VERSION = "2.9.4"
2017-07-17 20:49:22 +02:00
PKG_SHA256 = "ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c"
2010-11-14 17:09:01 +01:00
PKG_ARCH = "any"
PKG_LICENSE = "MIT"
PKG_SITE = "http://xmlsoft.org"
PKG_URL = " ftp://xmlsoft.org/libxml2/ $PKG_NAME - $PKG_VERSION .tar.gz "
2017-08-17 11:39:15 +02:00
PKG_DEPENDS_HOST = "zlib:host"
2014-01-30 14:30:26 +01:00
PKG_DEPENDS_TARGET = "toolchain zlib"
2010-11-14 17:09:01 +01:00
PKG_SECTION = "textproc"
PKG_SHORTDESC = "libxml: XML parser library for Gnome"
PKG_LONGDESC = "The libxml package contains an XML library, which allows you to manipulate XML files. XML (eXtensible Markup Language) is a data format for structured document interchange via the Web."
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 \
2014-08-15 21:18:13 +02:00
--enable-static \
2013-12-14 20:35:24 +02:00
--enable-shared \
--disable-silent-rules \
--enable-ipv6 \
--without-python \
2017-02-17 06:40:16 +00:00
--with-zlib= $TOOLCHAIN \
2013-12-14 20:35:24 +02:00
--without-lzma"
2017-02-17 06:40:16 +00:00
PKG_CONFIGURE_OPTS_HOST = " $PKG_CONFIGURE_OPTS_ALL --with-zlib= $TOOLCHAIN "
2016-03-28 12:31:09 +02:00
PKG_CONFIGURE_OPTS_TARGET = " $PKG_CONFIGURE_OPTS_ALL --with-zlib= $SYSROOT_PREFIX /usr --with-sysroot= $SYSROOT_PREFIX "
2013-12-14 20:35:24 +02:00
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
2016-01-07 03:28:14 +01:00
$SED " s:\(['= ]\)/usr:\\1 $SYSROOT_PREFIX /usr:g " $SYSROOT_PREFIX /usr/bin/xml2-config
2013-12-14 20:35:24 +02:00
rm -rf $INSTALL /usr/bin
rm -rf $INSTALL /usr/lib/xml2Conf.sh
}