Skip to content

Instantly share code, notes, and snippets.

@Nikoli
Created May 22, 2012 18:55
Show Gist options
  • Save Nikoli/2770939 to your computer and use it in GitHub Desktop.
Save Nikoli/2770939 to your computer and use it in GitHub Desktop.
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit cmake-utils
DESCRIPTION="View and upload map files, track and waypoint data to your Garmin GPS."
HOMEPAGE="http://www.qlandkarte.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dbus dmtx exif gps +gpsbabel +gpx-extensions -mikrokopter opengl +rmap"
RDEPEND="
>=sci-libs/gdal-1.6
>=sci-libs/proj-4.7
sys-libs/zlib
x11-libs/qt-gui:4[dbus?]
x11-libs/qt-script:4
x11-libs/qt-sql:4[sqlite]
x11-libs/qt-webkit:4
dmtx? ( media-libs/libdmtx )
exif? ( media-libs/libexif )
gps? ( >=sci-geosciences/gpsd-2.90 )
gpsbabel? ( sci-geosciences/gpsbabel )
opengl? ( x11-libs/qt-opengl:4 )
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
$(cmake-utils_use dbus DBUS)
$(cmake-utils_use dmtx WITH_DMTX)
$(cmake-utils_use exif WITH_EXIF)
$(cmake-utils_use gps WITH_GPSD)
$(cmake-utils_use gpx-extensions GPX_EXTENSIONS)
$(cmake-utils_use mikrokopter MIKROKOPTER)
$(cmake-utils_use opengl WITH_OPENGL)
$(cmake-utils_use opengl PLOT_3D)
$(cmake-utils_use rmap RMAP)
)
# Build fails if GEO_DB is disabled
# $(cmake-utils_use sqlite GEO_DB)
cmake-utils_src_configure
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment