# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.09.ebuild,v 1.6 2005/01/01 15:05:04 eradicator Exp $ inherit flag-o-matic DESCRIPTION="displays GPS position on a map" HOMEPAGE="http://gpsdrive.kraftvoll.at" SRC_URI="http://ostertag.name/tweety/Projekte/gpsdrive/${P/_/}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ppc" IUSE="nls mysql garmin" DEPEND="sys-devel/gettext >=x11-libs/gtk+-2.0 mysql? ( dev-db/mysql ) >=dev-libs/libpcre-4.2" S="${WORKDIR}/${P/_/}" src_unpack() { unpack ${A} cd ${S} append-flags "-fno-strict-aliasing" } src_compile() { local myconf use nls \ && myconf="${myconf} --enable-nls" \ || myconf="${myconf} --disable-nls" use garmin \ && myconf="${myconf} --enable-garmin" \ || myconf="${myconf} --disable-garmin" econf ${myconf} || die "econf failed" emake || die "compile failed" } src_install() { make DESTDIR=${D} install || die }