Files
overlay/net-wireless/dump1090/dump1090-9999.ebuild
2017-06-26 20:33:31 +02:00

48 lines
988 B
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs eutils git-r3
DESCRIPTION="simple Mode S decoder for RTLSDR and SDRPlay devices"
#Original repo
#HOMEPAGE="https://github.com/antirez/dump1090"
#Repo that has actually been touched recenly
HOMEPAGE="https://github.com/SDRplay/dump1090"
EGIT_REPO_URI="https://github.com/SDRplay/dump1090.git"
KEYWORDS=""
LICENSE="BSD"
SLOT="0"
IUSE=""
RDEPEND="net-wireless/rtl-sdr
virtual/libusb:1"
DEPEND="${RDEPEND}"
src_prepare() {
eapply ${FILESDIR}/htmlpath.patch
eapply_user
}
src_compile() {
emake CC="$(tc-getCC)" \
UNAME="Linux"
CFLAGS="$($(tc-getPKG_CONFIG) --cflags librtlsdr) ${CFLAGS}" \
LIBS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs librtlsdr) -lm -lpthread"
}
src_install() {
dobin ${PN}
dobin view1090
dodoc README.md
insinto /usr/share/${PN}/html
doins -r public_html/*
insinto /usr/share/${PN}/tools
doins -r tools/*
}