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="xz"
|
2023-05-09 19:21:47 +00:00
|
|
|
PKG_VERSION="5.4.3"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_SITE="https://tukaani.org/xz/"
|
|
|
|
PKG_URL="https://tukaani.org/xz/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_HOST="ccache:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_LONGDESC="A free general-purpose data compression software with high compression ratio."
|
|
|
|
PKG_BUILD_FLAGS="+pic +pic:host"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_TOOLCHAIN="configure"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# never build shared or k0p happens when building
|
|
|
|
# on fedora due to host selinux/liblzma
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--disable-shared --enable-static \
|
|
|
|
--disable-lzmadec \
|
|
|
|
--disable-lzmainfo \
|
|
|
|
--enable-lzma-links \
|
2023-02-25 00:39:48 +00:00
|
|
|
--disable-nls \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-scripts \
|
2023-02-25 00:39:48 +00:00
|
|
|
--enable-symbol-versions=no"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static \
|
|
|
|
--enable-symbol-versions=no"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
rm -rf ${INSTALL}
|
|
|
|
}
|