0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-05 19:47:57 +00:00
2023-09-09 12:30:12 +00:00

40 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="nmon"
PKG_VERSION="16p"
PKG_SHA256="5dc6045f6725e3249a969918fae69663a1d669162087720babcdb90fce9e6b2a"
PKG_LICENSE="GPL"
PKG_SITE="https://nmon.sourceforge.net/pmwiki.php?n=Site.CompilingNmon"
PKG_URL="https://sourceforge.net/projects/nmon/files/lmon${PKG_VERSION}.c"
PKG_DEPENDS_TARGET="toolchain ncurses"
PKG_LONGDESC="Systems administrator, tuner, benchmark tool gives you a huge amount of important performance information in one go."
PKG_TOOLCHAIN="manual"
PKG_BUILD_FLAGS="-sysroot"
unpack() {
mkdir -p ${PKG_BUILD}
cp -p ${SOURCES}/nmon/${PKG_SOURCE_NAME} ${PKG_BUILD}
}
make_target() {
case ${ARCH} in
x86_64)
arch="X86"
;;
*)
arch="arm"
;;
esac
# original makefile is located at
# - https://downloads.sourceforge.net/project/nmon/makefile
CFLAGS+=" -g -O3 -Wall -D JFS -D GETUSER -D LARGEMEM"
LDFLAGS+=" -lncurses -lm -g"
${CC} -o nmon nmon-${PKG_VERSION}.c ${CFLAGS} ${LDFLAGS} -D ${arch} -DUBUNTU
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp -p nmon ${INSTALL}/usr/bin
}