2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="procps-ng"
|
2022-08-30 10:33:48 +00:00
|
|
|
PKG_VERSION="3.3.17"
|
|
|
|
PKG_SHA256="8374d281f91e5fc9bb9ea8dc991b25331e3a2b0299b46f22c633f7fb6bcb0764"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://gitlab.com/procps-ng/procps"
|
|
|
|
PKG_URL="https://gitlab.com/procps-ng/procps/-/archive/v${PKG_VERSION}/procps-v${PKG_VERSION}.tar.bz2"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain ncurses"
|
|
|
|
PKG_LONGDESC="Command line and full screen utilities for browsing procfs."
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes \
|
|
|
|
--disable-shared \
|
|
|
|
--disable-modern-top \
|
|
|
|
--enable-static"
|
|
|
|
|
|
|
|
PKG_MAKE_OPTS_TARGET="free top/top proc/libprocps.la proc/libprocps.pc"
|
|
|
|
|
2022-08-30 10:33:48 +00:00
|
|
|
PKG_MAKEINSTALL_OPTS_TARGET="install-libLTLIBRARIES install-pkgconfigDATA install-proc_libprocps_la_includeHEADERS"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-08-30 10:33:48 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp -P ${PKG_BUILD}/.${TARGET_NAME}/free ${INSTALL}/usr/bin
|
|
|
|
cp -P ${PKG_BUILD}/.${TARGET_NAME}/top/top ${INSTALL}/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-08-30 10:33:48 +00:00
|
|
|
make DESTDIR=${SYSROOT_PREFIX} -j1 ${PKG_MAKEINSTALL_OPTS_TARGET}
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|