# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="1" inherit base subversion DESCRIPTION="An open-source car navigation system with a routing engine." HOMEPAGE="http://www.navit-project.org" SRC_URI="" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="dbus garmin gps gtk nls python sdl gd opengl speech qt samplemap static svg postgres freetype fontconfig opengl" # cvs is required for compilation by autopoint COMMON_DEPEND="dev-libs/glib:2 dev-util/cvs garmin? ( dev-libs/libgarmin ) gtk? ( x11-libs/gtk+:2 ) opengl? ( media-libs/quesoglc virtual/glut ) gd? ( media-libs/gd ) sdl? ( media-libs/libsdl media-libs/sdl-image media-libs/freetype ) !sdl? ( freetype? ( media-libs/freetype ) ) python? ( dev-lang/python ) opengl? ( media-libs/mesa ) fontconfig? ( media-libs/fontconfig ) postgres? ( virtual/postgresql-base ) gps? ( || ( sci-geosciences/gpsd sci-geoscience/fsogpsd ) ) speech? ( app-accessibility/speech-dispatcher ) !static? ( dev-libs/glib ) qt? ( x11-libs/qt-core )" DEPEND="${COMMON_DEPEND} gnome-base/librsvg dev-util/pkgconfig" RDEPEND="${COMMON_DEPEND} dbus? ( sys-apps/dbus ) svg? ( gnome-base/librsvg ) " ESVN_REPO_URI="https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit" ESVN_BOOTSTRAP="./autogen.sh" src_unpack() { subversion_src_unpack cd ${S} # devs forgot to make the script accept the option speech-speech-dispatcher... epatch ${FILESDIR}/${P}-configure-speech-dispatcher.patch } src_compile() { use static && my_config="--disable-glib" use gps && my_config="$my_config $(use_enable dbus vehicle-gypsy) " use sdl && my_config="$my_config --enable-font-freetype " use sdl || my_config="$my_config $(use_enable freetype font-freetype ) " use svg && my_config="$my_config --disable-svg2png --enable-svg" use svg || my_config="$my_config --enable-svg2png --with-svg2png-use-rsvg-convert --disable-svg" use static && my_config="$my_config --enable-static --disable-shared" use static || my_config="$my_config --disable-static --enable-shared" econf $my_config \ $(use_enable garmin ) \ $(use_enable gps vehicle-gpsd ) \ $(use_enable gd graphics-gd) \ $(use_enable gtk graphics-gtk-drawing-area) \ $(use_enable qt graphics-qt-qpainter ) \ $(use_enable sdl graphics-sdl) \ $(use_enable gtk gui-gtk ) \ $(use_enable sdl gui-sdl) \ $(use_enable nls ) \ $(use_enable dbus binding-dbus ) \ $(use_enable python binding-python ) \ $(use_enable speech speech-speech_dispatcher) \ $(use_enable samplemap ) \ $(use_enable postgres postgresql ) \ $(use_enable fontconfig) \ $(use_enable opengl graphics-opengl) emake || die }