blob: 08a4b2b5fa4a14fa3f472ca0b73a54fb1034f875 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit toolchain-funcs
DESCRIPTION="Shows currently transmitting beacons of the International Beacon Project (IBP)"
HOMEPAGE="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/ibp.html"
SRC_URI="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="X"
RDEPEND="sys-libs/ncurses:0=
X? ( x11-libs/libX11 )"
DEPEND="${RDEPEND}
X? ( >=x11-misc/imake-1.0.8-r1 )"
BDEPEND="virtual/pkgconfig"
src_prepare() {
# Respect CFLAGS if built without USE=X
sed -i -e "s/= -D/+= -D/" Makefile || die
# Fix compile if ncurses is built with separate libtinfo
sed -i -e "s:-lcurses:$($(tc-getPKG_CONFIG) --libs ncurses):" Imakefile Makefile || die
eapply_user
}
src_configure() {
if use X ;then
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
fi
}
src_compile() {
if use X ; then
emake \
CC="$(tc-getCC)" \
LOCAL_LDFLAGS="${LDFLAGS}" \
CDEBUGFLAGS="${CFLAGS}"
else
emake CC="$(tc-getCC)"
fi
}
src_install() {
dobin ${PN}
doman ${PN}.1
}
|