summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/Kconfig1
-rw-r--r--rules/gpsd.in182
-rw-r--r--rules/gpsd.make274
3 files changed, 457 insertions, 0 deletions
diff --git a/rules/Kconfig b/rules/Kconfig
index e46dfdde4..cd0e2ce45 100644
--- a/rules/Kconfig
+++ b/rules/Kconfig
@@ -166,6 +166,7 @@ source "rules/db44.in"
source "rules/expat.in"
source "rules/gettext-dummy.in"
source "rules/gettext.in"
+source "rules/gpsd.in"
source "rules/hrtimers-support.in"
source "rules/inotify-tools.in"
source "rules/libconfuse.in"
diff --git a/rules/gpsd.in b/rules/gpsd.in
new file mode 100644
index 000000000..700259f3e
--- /dev/null
+++ b/rules/gpsd.in
@@ -0,0 +1,182 @@
+menuconfig GPSD
+ tristate
+ select NCURSES if GPSD_CGPS
+ select NCURSES if GPSD_SIFRMON
+ prompt "gpsd"
+ help
+ gpsd is a daemon that listens to a GPS or Loran receiver
+ and translates the positional data into a simplified format
+ that can be more easily used by other programs, like chart plotters.
+ The package comes with a sample client that plots the location
+ of the currently visible GPS satellites (if available)
+ and a speedometer. It can also use DGPS/ip.
+
+if GPSD
+
+config GPSD_PYTHON_BINDINGS
+ bool
+ prompt "python bindings"
+ depends on BROKEN
+ select PYTHON24
+ help
+ Enables the python bindings.
+
+config GPSD_PROFILING
+ bool
+ prompt "enable profiling"
+
+config GPSD_NTPSHM
+ bool
+ prompt "ntpshm"
+
+config GPSD_PPS
+ bool
+ prompt "pps"
+
+config GPSD_PPS_ON_CTS
+ bool
+ prompt "pps_on_cts"
+
+config GPSD_USER
+ string
+ default "root"
+ prompt "gpsd user"
+ help
+ This user is used for privilege separation.
+
+config GPSD_FIXED_PORT_SPEED
+ string
+ prompt "fixed port speed"
+
+config GPSD_DBUS
+ bool
+ prompt "dbus bindings"
+
+config GPSD_MAX_CLIENTS
+ string
+ prompt "max clients"
+
+config GPSD_MAX_DEVICES
+ string
+ prompt "max devices"
+
+menu "drivers"
+
+ config GPSD_DRIVER_NMEA
+ bool
+ prompt "nmea"
+
+ config GPSD_DRIVER_SIRF
+ bool
+ prompt "sirf"
+
+ config GPSD_DRIVER_TSIP
+ bool
+ prompt "tsip"
+
+ config GPSD_DRIVER_VF18
+ bool
+ prompt "vf18"
+
+ config GPSD_DRIVER_TRIPMATE
+ bool
+ prompt "tripmate"
+
+ config GPSD_DRIVER_EARTHMATE
+ bool
+ prompt "earthmate"
+
+ config GPSD_DRIVER_ITRAX
+ bool
+ prompt "itrax"
+
+ config GPSD_DRIVER_ASHTECH
+ bool
+ prompt "ashtech"
+
+ config GPSD_DRIVER_NAVCOM
+ bool
+ prompt "navcom"
+
+ config GPSD_DRIVER_GARMIN
+ bool
+ prompt "garmin"
+
+ config GPSD_DRIVER_GARMINTXT
+ bool
+ prompt "garmintxt"
+
+ config GPSD_DRIVER_TNT
+ bool
+ prompt "tnt"
+
+ config GPSD_DRIVER_UBX
+ bool
+ prompt "ubx"
+
+ config GPSD_DRIVER_EVERMORE
+ bool
+ prompt "evermore"
+
+ config GPSD_DRIVER_GPSCLOCK
+ bool
+ prompt "gpsclock"
+
+ config GPSD_DRIVER_RTCM104
+ bool
+ prompt "rtcm104"
+
+ config GPSD_DRIVER_NTRIP
+ bool
+ prompt "ntrip"
+
+endmenu
+
+menu "install options"
+
+ config GPSD_GPSD
+ bool
+ prompt "gpsd"
+ help
+ FIXME
+
+ config GPSD_GPSCTL
+ bool
+ prompt "gpsctl"
+ help
+ FIXME
+
+ config GPSD_GPSPIPE
+ bool
+ prompt "gpspipe"
+ help
+ FIXME
+
+ config GPSD_GPSFLASH
+ bool
+ prompt "gpsflash"
+ help
+ FIXME
+
+ config GPSD_CGPXLOGGER
+ bool
+ prompt "cgpxlogger"
+ help
+ FIXME
+
+ config GPSD_CGPS
+ bool
+ prompt "cgps"
+ help
+ FIXME
+
+ config GPSD_SIRFMON
+ bool
+ prompt "sirfmon"
+ select NCURSES
+ help
+ FIXME
+endmenu
+
+endif
+
diff --git a/rules/gpsd.make b/rules/gpsd.make
new file mode 100644
index 000000000..363931d35
--- /dev/null
+++ b/rules/gpsd.make
@@ -0,0 +1,274 @@
+# -*-makefile-*-
+# $Id: template-make 8509 2008-06-12 12:45:40Z mkl $
+#
+# Copyright (C) 2008 by J.Kilb
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_GPSD) += gpsd
+
+#
+# Paths and names
+#
+GPSD_VERSION := 2.37
+GPSD := gpsd-$(GPSD_VERSION)
+GPSD_SUFFIX := tar.gz
+GPSD_URL := http://download.berlios.de/gpsd/$(GPSD).$(GPSD_SUFFIX)
+GPSD_SOURCE := $(SRCDIR)/$(GPSD).$(GPSD_SUFFIX)
+GPSD_DIR := $(BUILDDIR)/$(GPSD)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(GPSD_SOURCE):
+ @$(call targetinfo)
+ @$(call get, GPSD)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gpsd.extract:
+ @$(call targetinfo)
+ @$(call clean, $(GPSD_DIR))
+ @$(call extract, GPSD)
+ @$(call patchin, GPSD)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+GPSD_PATH := PATH=$(CROSS_PATH)
+GPSD_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+GPSD_AUTOCONF := \
+ $(CROSS_AUTOCONF_USR) \
+ --without-x
+
+ifdef PTXCONF_GPSD_PYTHON
+GPSD_AUTOCONF += --enable-python
+else
+GPSD_AUTOCONF += --disable-python
+endif
+ifdef PTXCONF_GPSD_PROFILING
+GPSD_AUTOCONF += --enable-profiling
+else
+GPSD_AUTOCONF += --disable-disable-profiling
+endif
+ifdef PTXCONF_GPSD_NTPSHM
+GPSD_AUTOCONF += --enable-ntpshm
+else
+GPSD_AUTOCONF += --disable-ntpshm
+endif
+ifdef PTXCONF_GPSD_PPS
+GPSD_AUTOCONF += --enable-pps
+else
+GPSD_AUTOCONF += --disable-pps
+endif
+ifdef PTXCONF_GPSD_PPS_ON_CTS
+GPSD_AUTOCONF += --enable-pps-on-cts
+else
+GPSD_AUTOCONF += --disable-pps-on-cts
+endif
+ifneq ($(call remove_quotes,$(PTXCONF_GPSD_DRIVER_USER)),)
+GPSD_AUTOCONF += --enable-gpsd-user=$(PTXCONF_GPSD_DRIVER_USER)
+endif
+ifneq ($(call remove_quotes,$(PTXCONF_GPSD_FIXED_PORT_SPEED)),)
+GPSD_AUTOCONF += --enable-fixed-port-speed=$(PTXCONF_GPSD_FIXED_PORT_SPEED)
+endif
+ifdef PTXCONF_GPSD_DBUS
+GPSD_AUTOCONF += --enable-dbus
+else
+GPSD_AUTOCONF += --disable-dbus
+endif
+ifneq ($(call remove_quotes,$(PTXCONF_GPSD_MAX_CLIENTS)),)
+GPSD_AUTOCONF += --enable-max-clients=$(PTXCONF_GPSD_MAX_CLIENTS)
+endif
+ifneq ($(call remove_quotes,$(PTXCONF_GPSD_MAX_DEVICES)),)
+GPSD_AUTOCONF += --enable-max-devices=$(PTXCONF_GPSD_MAX_DEVICES)
+endif
+ifdef PTXCONF_GPSD_DRIVER_NMEA
+GPSD_AUTOCONF += --enable-nmea
+else
+GPSD_AUTOCONF += --disable-nmea
+endif
+ifdef PTXCONF_GPSD_DRIVER_SIRF
+GPSD_AUTOCONF += --enable-sirf
+else
+GPSD_AUTOCONF += --disable-sirf
+endif
+ifdef PTXCONF_GPSD_DRIVER_TSIP
+GPSD_AUTOCONF += --enable-tsip
+else
+GPSD_AUTOCONF += --disable-tsip
+endif
+ifdef PTXCONF_GPSD_DRIVER_FV18
+GPSD_AUTOCONF += --enable-fv18
+else
+GPSD_AUTOCONF += --disable-fv18
+endif
+ifdef PTXCONF_GPSD_DRIVER_TRIPMATE
+GPSD_AUTOCONF += --enable-tripmate
+else
+GPSD_AUTOCONF += --disable-tripmate
+endif
+ifdef PTXCONF_GPSD_DRIVER_EARTHMATE
+GPSD_AUTOCONF += --enable-earthmate
+else
+GPSD_AUTOCONF += --disable-earthmate
+endif
+ifdef PTXCONF_GPSD_DRIVER_ITRAX
+GPSD_AUTOCONF += --enable-itrax
+else
+GPSD_AUTOCONF += --disable-itrax
+endif
+ifdef PTXCONF_GPSD_DRIVER_ASHTECH
+GPSD_AUTOCONF += --enable-ashtech
+else
+GPSD_AUTOCONF += --disable-ashtech
+endif
+ifdef PTXCONF_GPSD_DRIVER_NAVCOM
+GPSD_AUTOCONF += --enable-navcom
+else
+GPSD_AUTOCONF += --disable-navcom
+endif
+ifdef PTXCONF_GPSD_DRIVER_GARMIN
+GPSD_AUTOCONF += --enable-garmin
+else
+GPSD_AUTOCONF += --disable-garmin
+endif
+ifdef PTXCONF_GPSD_DRIVER_GARMINTXT
+GPSD_AUTOCONF += --enable-garmintxt
+else
+GPSD_AUTOCONF += --disable-garmintxt
+endif
+ifdef PTXCONF_GPSD_DRIVER_TNT
+GPSD_AUTOCONF += --enable-tnt
+else
+GPSD_AUTOCONF += --disable-tnt
+endif
+ifdef PTXCONF_GPSD_DRIVER_UBX
+GPSD_AUTOCONF += --enable-ubx
+else
+GPSD_AUTOCONF += --disable-ubx
+endif
+ifdef PTXCONF_GPSD_DRIVER_EVERMORE
+GPSD_AUTOCONF += --enable-evermore
+else
+GPSD_AUTOCONF += --disable-evermore
+endif
+ifdef PTXCONF_GPSD_DRIVER_GPSCLOCK
+GPSD_AUTOCONF += --enable-gpsclock
+else
+GPSD_AUTOCONF += --disable-gpsclock
+endif
+ifdef PTXCONF_GPSD_DRIVER_RTCM104
+GPSD_AUTOCONF += --enable-rtcm104
+else
+GPSD_AUTOCONF += --disable-rtcm104
+endif
+ifdef PTXCONF_GPSD_DRIVER_NTRIP
+GPSD_AUTOCONF += --enable-ntrip
+else
+GPSD_AUTOCONF += --disable-ntrip
+endif
+
+$(STATEDIR)/gpsd.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(GPSD_DIR)/config.cache)
+ cd $(GPSD_DIR) && \
+ $(GPSD_PATH) $(GPSD_ENV) \
+ ./configure $(GPSD_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gpsd.compile:
+ @$(call targetinfo)
+ cd $(GPSD_DIR) && $(GPSD_PATH) $(MAKE) $(PARALLELMFLAGS_BROKEN)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gpsd.install:
+ @$(call targetinfo)
+ @$(call install, GPSD)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/gpsd.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, gpsd)
+ @$(call install_fixup, gpsd,PACKAGE,gpsd)
+ @$(call install_fixup, gpsd,PRIORITY,optional)
+ @$(call install_fixup, gpsd,VERSION,$(GPSD_VERSION))
+ @$(call install_fixup, gpsd,SECTION,base)
+ @$(call install_fixup, gpsd,AUTHOR,"Jürgen Kilb <j.kilb\@phytec.de>")
+ @$(call install_fixup, gpsd,DEPENDS,)
+ @$(call install_fixup, gpsd,DESCRIPTION,missing)
+
+ @$(call install_copy, gpsd, 0, 0, 0644, \
+ $(GPSD_DIR)/.libs/libgps.so.17.0.0, \
+ /usr/lib/libgps.so.17.0.0)
+ @$(call install_link, gpsd, libgps.so.17.0.0, /usr/lib/libgps.so)
+ @$(call install_link, gpsd, libgps.so.17.0.0, /usr/lib/libgps.so.17)
+
+ifdef PTXCONF_GPSD_GPSD
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/gpsd, /usr/sbin/gpsd)
+endif
+ifdef PTXCONF_GPSD_GPSCTL
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/gpsctl, /usr/bin/gpsctl)
+endif
+ifdef PTXCONF_GPSD_GPSPIPE
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/gpspipe, /usr/bin/gpspipe)
+endif
+ifdef PTXCONF_GPSD_GPSFLASH
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/gpsflash, /usr/bin/gpsflash)
+endif
+ifdef PTXCONF_GPSD_CGXLOGGER
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/cgpxlogger, /usr/bin/cgxlogger)
+endif
+ifdef PTXCONF_GPSD_CGPS
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/cgps, /usr/bin/cgps)
+endif
+ifdef PTXCONF_GPSD_SIRFMON
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/sirfmon, /usr/bin/sirfmon)
+endif
+ifdef PTXCONF_GPSD_DRIVER_RTCM104
+ @$(call install_copy, gpsd, 0, 0, 0755, $(GPSD_DIR)/rtcmdecode, /usr/bin/rtcmdecode)
+endif
+
+ @$(call install_finish, gpsd)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+gpsd_clean:
+ rm -rf $(STATEDIR)/gpsd.*
+ rm -rf $(PKGDIR)/gpsd_*
+ rm -rf $(GPSD_DIR)
+
+# vim: syntax=make