blob: fc21dca1b8a2996107d9077a70d3678bda1af259 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/splat/splat-1.1.0.ebuild,v 1.2 2005/02/28 01:18:14 xmerlin Exp $
inherit toolchain-funcs
DESCRIPTION="SPLAT! is an RF Signal Propagation, Loss, And Terrain analysis tool for the spectrum between 20 MHz and 20 GHz."
HOMEPAGE="http://www.qsl.net/kd2bd/splat.html"
SRC_URI="ftp://ftp.ibiblio.org/pub/linux/apps/ham/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="virtual/libc
sys-libs/zlib
app-arch/bzip2
"
RDEPEND=""
src_compile() {
local CC=$(tc-getCC) CXX=$(tc-getCXX)
local STRIP=""
if ! has nostrip ${FEATURES} ; then
local STRIP="-s"
fi
${CXX} -Wall ${CXXFLAGS} -lm -lbz2 itm.cpp splat.cpp -o splat || die
cd utils
${CC} -Wall ${CFLAGS} citydecoder.c -o citydecoder
${CC} -Wall ${CFLAGS} usgs2sdf.c -o usgs2sdf
${CC} -Wall ${CFLAGS} -lz fontdata.c -o fontdata
}
src_install() {
# splat binary
dobin splat || die
# utilities
dobin utils/{citydecoder,usgs2sdf,postdownload} || die
newman docs/man/splat.man splat.1
dodoc CHANGES README utils/fips.txt sample.lrp
newdoc utils/README README.UTILS
}
|