Files
Arch-R/packages/textproc/libxml2/package.mk
Rudi Heitbaum 09af2d28fb Revert "libxml2: update to 2.14.4"
This reverts commit 7f84ab88d6.

error with:

CMake Error at /build/build.LibreELEC-H3.arm-13.0-devel/toolchain/lib/cmake/libxml2-2.14.4/libxml2-export.cmake:61 (set_target_properties):
  The link interface of target "LibXml2::LibXml2" contains:

    Iconv::Iconv

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.
2025-06-19 02:10:41 +00:00

32 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libxml2"
PKG_VERSION="2.14.3"
PKG_SHA256="9d5805e78055a4507e30944b99fb554f98142f540a092836b01d68ab344fd703"
PKG_LICENSE="MIT"
PKG_SITE="http://xmlsoft.org"
PKG_URL="https://gitlab.gnome.org/GNOME/${PKG_NAME}/-/archive/v${PKG_VERSION}/${PKG_NAME}-v${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_HOST="zlib:host ninja:host Python3:host"
PKG_DEPENDS_TARGET="toolchain zlib"
PKG_LONGDESC="The libxml package contains an XML library, which allows you to manipulate XML files."
PKG_TOOLCHAIN="cmake"
PKG_CMAKE_OPTS_ALL="-DBUILD_SHARED_LIBS=ON \
-DLIBXML2_WITH_LZMA=OFF \
-DLIBXML2_WITH_TESTS=OFF"
PKG_CMAKE_OPTS_HOST="${PKG_CMAKE_OPTS_ALL} \
-DLIBXML2_WITH_PYTHON=ON"
PKG_CMAKE_OPTS_TARGET="${PKG_CMAKE_OPTS_ALL} \
-DLIBXML2_WITH_PYTHON=OFF"
post_makeinstall_target() {
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xml2-config
rm -rf ${INSTALL}/usr/bin
rm -rf ${INSTALL}/usr/lib/xml2Conf.sh
}