1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools subversion
8 DESCRIPTION="An open-source car navigation system with a routing engine."
9 HOMEPAGE="http://www.navit-project.org"
15 IUSE="dbus garmin gps gtk nls python sdl speechd"
17 RDEPEND="dev-libs/glib:2
18 garmin? ( dev-libs/libgarmin )
19 gtk? ( x11-libs/gtk+:2
21 sdl? ( media-libs/libsdl
25 python? ( dev-lang/python )
26 dbus? ( sys-apps/dbus )
27 gps? ( sci-geosciences/gpsd )
28 speechd? ( app-accessibility/speechd )"
34 ESVN_REPO_URI="http://navit.svn.sourceforge.net/svnroot/navit/trunk/navit"
38 autopoint -f || die "autopoint failed"
43 econf $(use_enable garmin) \
44 $(use_enable gps libgps) \
45 $(use_enable gtk gui-gtk) \
46 $(use_enable sdl gui-sdl) \
48 $(use_enable dbus binding-dbus) \
49 $(use_enable python binding-python) \
50 $(use_enable speechd speech-speechd) \
51 --disable-graphics-qt-painter \
55 emake || die "Make failed"
59 emake DESTDIR="${D}" install || die "Install failed"