distribution/packages/textproc/libxslt/package.mk

39 lines
1.5 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# 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)
2023-05-09 19:21:47 +00:00
# Copyright (C) 2023-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME="libxslt"
2023-05-09 19:21:47 +00:00
PKG_VERSION="1.1.38"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="MIT"
PKG_SITE="http://xmlsoft.org/xslt/"
2022-09-05 10:23:19 +00:00
PKG_URL="https://gitlab.gnome.org/GNOME/${PKG_NAME}/-/archive/v${PKG_VERSION}/${PKG_NAME}-v${PKG_VERSION}.tar.bz2"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_HOST="libxml2:host"
PKG_DEPENDS_TARGET="toolchain libxml2"
PKG_LONGDESC="A XSLT C library."
PKG_BUILD_FLAGS="+pic"
2022-09-05 10:23:19 +00:00
PKG_TOOLCHAIN="autotools"
2022-02-05 14:23:32 +00:00
PKG_CONFIGURE_OPTS_HOST=" ac_cv_header_ansidecl_h=no \
ac_cv_header_xlocale_h=no \
--enable-static \
--disable-shared \
--without-python \
2022-09-05 10:23:19 +00:00
--with-libxml-prefix=${TOOLCHAIN} \
2022-02-05 14:23:32 +00:00
--without-crypto"
PKG_CONFIGURE_OPTS_TARGET="ac_cv_header_ansidecl_h=no \
ac_cv_header_xlocale_h=no \
--enable-static \
--disable-shared \
--without-python \
2022-09-05 10:23:19 +00:00
--with-libxml-prefix=${SYSROOT_PREFIX}/usr \
2022-02-05 14:23:32 +00:00
--without-crypto"
post_makeinstall_target() {
2022-09-05 10:23:19 +00:00
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/xslt-config
2022-02-05 14:23:32 +00:00
2022-09-05 10:23:19 +00:00
rm -rf ${INSTALL}/usr/bin/xsltproc
rm -rf ${INSTALL}/usr/lib/xsltConf.sh
2022-02-05 14:23:32 +00:00
}