blob: 87772836d601a9032a473b2fedf4895d4bda45c6 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
MY_P="lmon${PV}"
DESCRIPTION="Nigel's performance MONitor for CPU, memory, network, disks, etc"
HOMEPAGE="http://nmon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.c"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
RDEPEND="sys-libs/ncurses:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-16n-musl.patch
)
src_unpack() {
cp "${DISTDIR}"/${MY_P}.c "${S}"/${PN}.c || die
}
src_configure() {
local cflags=(
# Recommended by upstream to be always on
-DGETUSER
-DJFS
-DLARGEMEM
-DKERNEL_2_6_18
# Arches
$(usex amd64 -DX86 '')
$(usex x86 -DX86 '')
$(usex arm -DARM '')
$(usex ppc64 -DPOWER '')
)
append-cflags "${cflags[@]}"
append-libs "$($(tc-getPKG_CONFIG) --libs ncurses) -lm"
}
src_compile() {
tc-export CC
emake ${PN} LDLIBS="${LIBS}"
}
src_install() {
dobin ${PN}
}
|