hc
2023-12-04 f33f61bdb7ca6d5ebe7a78f9d8694b91360279ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
################################################################################
#
# 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 $(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))