You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
55 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI="7"
|
||
|
|
||
7 years ago
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Shows currently transmitting beacons of the International Beacon Project (IBP)"
|
||
5 years ago
|
HOMEPAGE="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/ibp.html"
|
||
7 years ago
|
SRC_URI="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/${P}.tgz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="amd64 x86"
|
||
7 years ago
|
IUSE="X"
|
||
|
|
||
3 years ago
|
RDEPEND="sys-libs/ncurses:0=
|
||
7 years ago
|
X? ( x11-libs/libX11 )"
|
||
|
DEPEND="${RDEPEND}
|
||
3 years ago
|
X? ( >=x11-misc/imake-1.0.8-r1 )"
|
||
3 years ago
|
BDEPEND="virtual/pkgconfig"
|
||
7 years ago
|
|
||
|
src_prepare() {
|
||
3 years ago
|
# Respect CFLAGS if built without USE=X
|
||
7 years ago
|
sed -i -e "s/= -D/+= -D/" Makefile || die
|
||
3 years ago
|
|
||
|
# Fix compile if ncurses is built with separate libtinfo
|
||
|
sed -i -e "s:-lcurses:$($(tc-getPKG_CONFIG) --libs ncurses):" Imakefile Makefile || die
|
||
7 years ago
|
|
||
|
eapply_user
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
if use X ;then
|
||
3 years ago
|
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
|
||
|
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
|
||
7 years ago
|
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
|
||
|
}
|