# -*-makefile-*- # # Copyright (C) 2008 by J.Kilb # 2009 by Marc Kleine-Budde # # 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.39 GPSD_MD5 := 3db437196a6840c252fca99b6c19d4d0 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) # ---------------------------------------------------------------------------- # 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-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_USER)),) GPSD_AUTOCONF += --enable-gpsd-user=$(PTXCONF_GPSD_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_RTCM104V2 GPSD_AUTOCONF += --enable-rtcm104v2 else GPSD_AUTOCONF += --disable-rtcm104v2 endif ifdef PTXCONF_GPSD_DRIVER_RTCM104V3 GPSD_AUTOCONF += --enable-rtcm104v3 else GPSD_AUTOCONF += --disable-rtcm104v3 endif ifdef PTXCONF_GPSD_DRIVER_NTRIP GPSD_AUTOCONF += --enable-ntrip else GPSD_AUTOCONF += --disable-ntrip endif ifdef PTXCONF_GPSD_DRIVER_SUPERSTAR2 GPSD_AUTOCONF += --enable-superstar2 else GPSD_AUTOCONF += --disable-superstar2 endif ifdef PTXCONF_GPSD_DRIVER_OCEANSERVER GPSD_AUTOCONF += --enable-oceanserver else GPSD_AUTOCONF += --disable-oceanserver endif ifdef PTXCONF_GPSD_DRIVER_MKT3301 GPSD_AUTOCONF += --enable-mkt3301 else GPSD_AUTOCONF += --disable-mkt3301 endif # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/gpsd.targetinstall: @$(call targetinfo) @$(call install_init, gpsd) @$(call install_fixup, gpsd,PRIORITY,optional) @$(call install_fixup, gpsd,SECTION,base) @$(call install_fixup, gpsd,AUTHOR,"Jürgen Kilb ") @$(call install_fixup, gpsd,DESCRIPTION,missing) @$(call install_lib, gpsd, 0, 0, 0644, libgps) ifdef PTXCONF_GPSD_GPSD @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/sbin/gpsd) endif ifdef PTXCONF_GPSD_GPSCTL @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsctl) endif ifdef PTXCONF_GPSD_GPSPIPE @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpspipe) endif ifdef PTXCONF_GPSD_GPSFLASH @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsflash) endif ifdef PTXCONF_GPSD_GPXLOGGER @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpxlogger) endif ifdef PTXCONF_GPSD_CGPS @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/cgps) endif ifdef PTXCONF_GPSD_GPSMON @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsmon) endif ifdef PTXCONF_GPSD_GPSDECODE @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsdecode) endif ifdef PTXCONF_GPSD_GPSCAT @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpscat) endif ifdef PTXCONF_GPSD_GPSFAKE @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsfake) endif ifdef PTXCONF_GPSD_GPSPROF @$(call install_copy, gpsd, 0, 0, 0755, -, /usr/bin/gpsprof) endif ifdef PTXCONF_GPSD_PYTHON @cd $(GPSD_PKGDIR) && \ find ./usr/lib/python$(PYTHON_MAJORMINOR) \ -name "*.so" -o -name "*.pyc" | \ while read file; do \ $(call install_copy, gpsd, 0, 0, 644, -, $${file##.}); \ done endif @$(call install_finish, gpsd) @$(call touch) # vim: syntax=make