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-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="elfutils"
|
2023-05-09 19:21:47 +00:00
|
|
|
PKG_VERSION="0.189"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://sourceware.org/elfutils/"
|
|
|
|
PKG_URL="https://sourceware.org/elfutils/ftp/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_DEPENDS_HOST="autoconf:host automake:host m4:host make:host zlib:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib elfutils:host"
|
|
|
|
PKG_LONGDESC="A collection of utilities to handle ELF objects."
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
2022-06-30 10:28:25 +00:00
|
|
|
if [ "${LIBREELEC_VERSION}" = "devel" ]; then
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_PROGRAMS="--enable-programs --program-prefix="
|
|
|
|
PKG_PROGRAMS_LIST="readelf"
|
|
|
|
else
|
|
|
|
PKG_PROGRAMS="--disable-programs"
|
|
|
|
PKG_PROGRAMS_LIST=
|
|
|
|
fi
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="utrace_cv_cc_biarch=false \
|
|
|
|
--disable-programs \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-debuginfod \
|
|
|
|
--disable-libdebuginfod \
|
|
|
|
--with-zlib \
|
|
|
|
--without-bzlib \
|
|
|
|
--without-lzma"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="utrace_cv_cc_biarch=false \
|
|
|
|
${PKG_PROGRAMS} \
|
|
|
|
--disable-nls \
|
2023-08-24 09:53:35 +00:00
|
|
|
--disable-demangler \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-debuginfod \
|
|
|
|
--disable-libdebuginfod \
|
|
|
|
--with-zlib \
|
|
|
|
--without-bzlib \
|
|
|
|
--without-lzma"
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
# don't install progs into sysroot
|
|
|
|
rm -fr ${SYSROOT_PREFIX}/usr/bin
|
|
|
|
|
|
|
|
if [ -n "${PKG_PROGRAMS_LIST}" ]; then
|
|
|
|
for PKG_TEMP in $(find ${INSTALL}/usr/bin -type f); do
|
|
|
|
listcontains "${PKG_PROGRAMS_LIST}" ${PKG_TEMP#${INSTALL}/usr/bin/} || rm ${PKG_TEMP}
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|