/[gentoo-x86]/sci-electronics/splat/splat-1.3.0.ebuild
Gentoo

Contents of /sci-electronics/splat/splat-1.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 22 08:25:57 2015 UTC (4 years, 7 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x762053D5)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/splat/splat-1.3.0.ebuild,v 1.2 2014/08/10 20:28:42 slyfox Exp $
4
5 inherit toolchain-funcs eutils
6
7 DESCRIPTION="RF Signal Propagation, Loss, And Terrain analysis tool for the spectrum between 20 MHz and 20 GHz"
8 HOMEPAGE="http://www.qsl.net/kd2bd/splat.html"
9 SRC_URI="http://www.qsl.net/kd2bd/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE="doc linguas_es"
15
16 DEPEND="sys-libs/zlib
17 app-arch/bzip2"
18
19 RDEPEND="${DEPEND}"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 epatch "${FILESDIR}/${PN}-1.2.2-gcc43.patch"
25 }
26
27 src_compile() {
28 # fake resulting file from interactive configuration script
29 # using default resolution
30 cat <<- EOF > "${S}/splat.h"
31 /* Parameters for 3 arc-second standard resolution mode of operation */
32 #define MAXPAGES 9
33 #define HD_MODE 0
34 EOF
35
36 local CC=$(tc-getCC) CXX=$(tc-getCXX)
37
38 ${CXX} -Wall ${CXXFLAGS} ${LDFLAGS} itm.cpp splat.cpp -o rfsplat -lm -lbz2 || die
39
40 cd utils
41 ${CC} -Wall ${CFLAGS} ${LDFLAGS} citydecoder.c -o citydecoder
42 ${CC} -Wall ${CFLAGS} ${LDFLAGS} usgs2sdf.c -o usgs2sdf
43 ${CC} -Wall ${CFLAGS} ${LDFLAGS} srtm2sdf.c -o srtm2sdf -lbz2
44 #${CC} -Wall ${CFLAGS} ${LDFLAGS} fontdata.c -o fontdata -lz
45 ${CC} -Wall ${CFLAGS} ${LDFLAGS} bearing.c -o bearing -lm
46 }
47
48 src_install() {
49 local SPLAT_LANG="english"
50 use linguas_es && SPLAT_LANG="spanish"
51 # splat binary
52 dobin rfsplat || die
53
54 # utilities
55 dobin utils/{citydecoder,usgs2sdf,srtm2sdf,postdownload,bearing} || die
56 newman docs/${SPLAT_LANG}/man/splat.man rfsplat.1 || die
57
58 dodoc CHANGES README utils/fips.txt || die
59 newdoc utils/README README.UTILS || die
60
61 if use doc; then
62 dodoc docs/${SPLAT_LANG}/{pdf/splat.pdf,postscript/splat.ps} || die
63 fi
64 #sample data
65 docinto sample_data
66 dodoc sample_data/* || die
67 }
68
69 pkg_postinst() {
70 elog "The original SPLAT! command got renamed to 'rfsplat' to avoid"
71 elog "filename collission with app-portage/splat."
72 elog ""
73 elog "Be aware that it is still referenced as 'splat' in the documentation."
74 }

  ViewVC Help
Powered by ViewVC 1.1.20