blob: 2c6e57d1171f089c27667a7b9961e043df8d8461 (
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
58
59
60
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/splat/splat-1.2.2-r1.ebuild,v 1.2 2009/09/23 20:00:57 patrick Exp $
inherit toolchain-funcs eutils
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="http://www.qsl.net/kd2bd/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc linguas_es"
DEPEND="sys-libs/zlib
app-arch/bzip2"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-gcc43.patch"
}
src_compile() {
local CC=$(tc-getCC) CXX=$(tc-getCXX)
${CXX} -Wall ${CXXFLAGS} ${LDFLAGS} itm.cpp splat.cpp -o splat -lm -lbz2 || die
cd utils
${CC} -Wall ${CFLAGS} ${LDFLAGS} citydecoder.c -o citydecoder
${CC} -Wall ${CFLAGS} ${LDFLAGS} usgs2sdf.c -o usgs2sdf
${CC} -Wall ${CFLAGS} ${LDFLAGS} srtm2sdf.c -o srtm2sdf -lbz2
#${CC} -Wall ${CFLAGS} ${LDFLAGS} fontdata.c -o fontdata -lz
${CC} -Wall ${CFLAGS} ${LDFLAGS} bearing.c -o bearing -lm
}
src_install() {
local SPLAT_LANG="english"
use linguas_es && SPLAT_LANG="spanish"
# splat binary
dobin splat || die
# utilities
dobin utils/{citydecoder,usgs2sdf,srtm2sdf,postdownload,bearing} || die
newman docs/${SPLAT_LANG}/man/splat.man splat.1 || die
dodoc CHANGES README utils/fips.txt || die
newdoc utils/README README.UTILS || die
if use doc; then
dodoc docs/${SPLAT_LANG}/{pdf/splat.pdf,postscript/splat.ps} || die
fi
#sample data
docinto sample_data
dodoc sample_data/* || die
}
|