mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
Merge pull request #8514 from heitbaum/xml
Migrate xml, xslt builds to cmake
This commit is contained in:
commit
29734a7cbd
@ -8,26 +8,19 @@ PKG_SHA256="5c3dbade38b64d7fecf628b92b3485868d21516a4a86465294e5919e6aa309a4"
|
|||||||
PKG_LICENSE="MIT"
|
PKG_LICENSE="MIT"
|
||||||
PKG_SITE="http://xmlsoft.org"
|
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_URL="https://gitlab.gnome.org/GNOME/${PKG_NAME}/-/archive/v${PKG_VERSION}/${PKG_NAME}-v${PKG_VERSION}.tar.bz2"
|
||||||
PKG_DEPENDS_HOST="zlib:host Python3:host"
|
PKG_DEPENDS_HOST="zlib:host ninja:host Python3:host"
|
||||||
PKG_DEPENDS_TARGET="toolchain zlib"
|
PKG_DEPENDS_TARGET="toolchain zlib"
|
||||||
PKG_LONGDESC="The libxml package contains an XML library, which allows you to manipulate XML files."
|
PKG_LONGDESC="The libxml package contains an XML library, which allows you to manipulate XML files."
|
||||||
PKG_TOOLCHAIN="autotools"
|
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_ALL="ac_cv_header_ansidecl_h=no \
|
PKG_CMAKE_OPTS_ALL="-DBUILD_SHARED_LIBS=ON \
|
||||||
--enable-static \
|
-DLIBXML2_WITH_LZMA=OFF \
|
||||||
--enable-shared \
|
-DLIBXML2_WITH_TESTS=OFF"
|
||||||
--disable-silent-rules \
|
|
||||||
--enable-ipv6 \
|
|
||||||
--without-lzma"
|
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_HOST="${PKG_CONFIGURE_OPTS_ALL} \
|
PKG_CMAKE_OPTS_HOST="${PKG_CMAKE_OPTS_ALL} \
|
||||||
--with-zlib=${TOOLCHAIN} \
|
-DLIBXML2_WITH_PYTHON=ON"
|
||||||
--with-python"
|
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="${PKG_CONFIGURE_OPTS_ALL} \
|
PKG_CMAKE_OPTS_TARGET="${PKG_CMAKE_OPTS_ALL} \
|
||||||
--with-zlib=${SYSROOT_PREFIX}/usr \
|
-DLIBXML2_WITH_PYTHON=OFF"
|
||||||
--without-python \
|
|
||||||
--with-sysroot=${SYSROOT_PREFIX}"
|
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xml2-config
|
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xml2-config
|
||||||
|
@ -12,23 +12,21 @@ PKG_DEPENDS_HOST="libxml2:host"
|
|||||||
PKG_DEPENDS_TARGET="toolchain libxml2"
|
PKG_DEPENDS_TARGET="toolchain libxml2"
|
||||||
PKG_LONGDESC="A XSLT C library."
|
PKG_LONGDESC="A XSLT C library."
|
||||||
PKG_BUILD_FLAGS="+pic"
|
PKG_BUILD_FLAGS="+pic"
|
||||||
PKG_TOOLCHAIN="autotools"
|
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_HOST=" ac_cv_header_ansidecl_h=no \
|
PKG_CMAKE_OPTS_ALL="-DBUILD_SHARED_LIBS=ON \
|
||||||
ac_cv_header_xlocale_h=no \
|
-DLIBXSLT_WITH_DEBUGGER=ON \
|
||||||
--enable-static \
|
-DLIBXSLT_WITH_CRYPTO=OFF \
|
||||||
--disable-shared \
|
-DLIBXSLT_WITH_MEM_DEBUG=OFF \
|
||||||
--without-python \
|
-DLIBXSLT_WITH_MODULES=ON \
|
||||||
--with-libxml-prefix=${TOOLCHAIN} \
|
-DLIBXSLT_WITH_PROFILER=ON \
|
||||||
--without-crypto"
|
-DLIBXSLT_WITH_PYTHON=OFF \
|
||||||
|
-DLIBXSLT_WITH_TESTS=OFF \
|
||||||
|
-DLIBXSLT_WITH_THREADS=ON \
|
||||||
|
-DLIBXSLT_WITH_XSLT_DEBUG=ON"
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="ac_cv_header_ansidecl_h=no \
|
PKG_CMAKE_OPTS_HOST=${PKG_CMAKE_OPTS_ALL}
|
||||||
ac_cv_header_xlocale_h=no \
|
|
||||||
--enable-static \
|
PKG_CMAKE_OPTS_TARGET=${PKG_CMAKE_OPTS_ALL}
|
||||||
--disable-shared \
|
|
||||||
--without-python \
|
|
||||||
--with-libxml-prefix=${SYSROOT_PREFIX}/usr \
|
|
||||||
--without-crypto"
|
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xslt-config
|
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xslt-config
|
||||||
|
@ -13,7 +13,6 @@ PKG_LONGDESC="XMLStarlet is a command-line XML utility which allows the modifica
|
|||||||
|
|
||||||
PKG_CONFIGURE_OPTS_HOST=" ac_cv_func_malloc_0_nonnull=yes \
|
PKG_CONFIGURE_OPTS_HOST=" ac_cv_func_malloc_0_nonnull=yes \
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
ac_cv_func_realloc_0_nonnull=yes \
|
||||||
--enable-static-libs \
|
|
||||||
LIBXML_CONFIG=${TOOLCHAIN}/bin/xml2-config \
|
LIBXML_CONFIG=${TOOLCHAIN}/bin/xml2-config \
|
||||||
LIBXSLT_CONFIG=${TOOLCHAIN}/bin/xslt-config \
|
LIBXSLT_CONFIG=${TOOLCHAIN}/bin/xslt-config \
|
||||||
--with-libxml-include-prefix=${TOOLCHAIN}/include/libxml2 \
|
--with-libxml-include-prefix=${TOOLCHAIN}/include/libxml2 \
|
||||||
@ -23,7 +22,6 @@ PKG_CONFIGURE_OPTS_HOST=" ac_cv_func_malloc_0_nonnull=yes \
|
|||||||
|
|
||||||
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
|
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
ac_cv_func_realloc_0_nonnull=yes \
|
||||||
--enable-static-libs \
|
|
||||||
LIBXML_CONFIG=${SYSROOT_PREFIX}/usr/bin/xml2-config \
|
LIBXML_CONFIG=${SYSROOT_PREFIX}/usr/bin/xml2-config \
|
||||||
LIBXSLT_CONFIG=${SYSROOT_PREFIX}/usr/bin/xslt-config \
|
LIBXSLT_CONFIG=${SYSROOT_PREFIX}/usr/bin/xslt-config \
|
||||||
--with-libxml-include-prefix=${SYSROOT_PREFIX}/usr/include/libxml2 \
|
--with-libxml-include-prefix=${SYSROOT_PREFIX}/usr/include/libxml2 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user