![Maxime Hadjinlian](/assets/img/avatar_default.png)
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
29 lines
770 B
Makefile
29 lines
770 B
Makefile
################################################################################
|
|
#
|
|
# nmon
|
|
#
|
|
################################################################################
|
|
|
|
NMON_VERSION = 16g
|
|
NMON_SITE = https://sourceforge.net/projects/nmon/files
|
|
NMON_SOURCE = lmon$(NMON_VERSION).c
|
|
NMON_LICENSE = GPL-3.0+
|
|
NMON_LICENSE_FILES = $(NMON_SOURCE)
|
|
NMON_DEPENDENCIES = ncurses
|
|
NMON_CFLAGS = $(TARGET_CFLAGS) -D JFS -D GETUSER -D LARGEMEM -D DEBIAN
|
|
|
|
define NMON_EXTRACT_CMDS
|
|
cp $(NMON_DL_DIR)/$(NMON_SOURCE) $(@D)
|
|
endef
|
|
|
|
define NMON_BUILD_CMDS
|
|
$(TARGET_CC) $(NMON_CFLAGS) $(TARGET_LDFLAGS) -o $(@D)/nmon \
|
|
$(@D)/$(NMON_SOURCE) -lncurses -lm
|
|
endef
|
|
|
|
define NMON_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/nmon $(TARGET_DIR)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(generic-package))
|