blob: d2fd7bf7f78a10e8f3e8524437787f070eb72253 (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/atlas/atlas-0.3.1.ebuild,v 1.2 2007/03/12 18:20:22 genone Exp $
inherit eutils games
MY_P="Atlas-${PV}"
DESCRIPTION="Chart Program to use with Flightgear Flight Simulator"
HOMEPAGE="http://atlas.sourceforge.net/"
SRC_URI="mirror://sourceforge/atlas/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=">=games-simulation/flightgear-0.9.4
>=media-libs/libpng-1.2.5
media-libs/jpeg
x11-libs/libXi
x11-libs/libXmu"
S=${WORKDIR}/${MY_P}
src_compile() {
egamesconf --with-fgbase="${GAMES_DATADIR}/FlightGear" \
|| die "egamesconf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
insinto ${GAMES_DATADIR}/FlightGear
doins "${S}/src/AtlasPalette" || die "doins failed"
keepdir "${GAMES_DATADIR}/FlightGear/Atlas/lowres"
dodoc AUTHORS NEWS README
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "You now can make the maps with the following commands:"
elog "${GAMES_BINDIR}/Map --atlas=${GAMES_DATADIR}/FlightGear/Atlas"
elog "${GAMES_BINDIR}/Map --atlas=${GAMES_DATADIR}/FlightGear/Atlas/lowres --size=64"
elog
elog "To run Atlas concurrently with FlightGear use the following:"
elog "Atlas --path=[path of map images] --udp=[port number]"
elog "and start fgfs with the following switch (or in .fgfsrc):"
elog "--nmea=socket,out,0.5,[host that you run Atlas on],[port number],udp"
echo
}
pkg_postrm() {
elog "You must manually remove the maps if you don't want them around."
elog "They are found in the following directory:"
echo
elog "${GAMES_DATADIR}/FlightGear/Atlas"
echo
}
|