[Lunar-commits] <moonbase> gpsd: Adding a CONFIGURE to allow a user more flexibility over what

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Wed Nov 30 19:23:53 CET 2011


commit f9b4d7f13a2bf0f2dcaeedc556369bb6f79bacb0
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Wed Nov 30 13:23:53 2011 -0500

    gpsd: Adding a CONFIGURE to allow a user more flexibility over what
    
    devices they want compiled. Fleshing out the DEPENDS to provide control
    over enabling/disabling the depends.
    
    Needed to disable implicit links else the make will fail on those items
    identified in the BUILD.
---
 science/gpsd/BUILD     |   12 +++++++++++-
 science/gpsd/CONFIGURE |   38 ++++++++++++++++++++++++++++++++++++++
 science/gpsd/DEPENDS   |   15 +++++++++------
 3 files changed, 58 insertions(+), 7 deletions(-)

diff --git a/science/gpsd/BUILD b/science/gpsd/BUILD
index 1e7361e..555cbb3 100644
--- a/science/gpsd/BUILD
+++ b/science/gpsd/BUILD
@@ -1,6 +1,16 @@
 (
 
-  scons prefix=/usr &&
+  if in_depends $MODULE qt4 ; then
+    . /etc/profile.d/qt4.rc
+  fi &&
+
+# implicit_link=no is required else ntpshm sirf garmin options
+# will cause the make to fail with linking errors like this;
+# defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
+  scons prefix=/usr              \
+               implicit_link=no  \
+               $OPTS            &&
+
   prepare_install   &&
   scons install     &&
 
diff --git a/science/gpsd/CONFIGURE b/science/gpsd/CONFIGURE
new file mode 100644
index 0000000..8273a3e
--- /dev/null
+++ b/science/gpsd/CONFIGURE
@@ -0,0 +1,38 @@
+mquery USE_AIVDM "Enable AIVDM support?" y "aivdm=yes" "aivdm=no"
+mquery USE_ASHTECH "Enable Ashtech support?" y "ashtech=yes" "ashtech=no"
+mquery USE_CHEAP "Enable cheap floats; float ops are cheap, compute error estimates?" y "cheapfloats=yes" "cheapfloats=no"
+mquery USE_CLIENT_DEBUG "Use client debugging support?" n "clientdebug=yes" "clientdebug=no"
+mquery USE_SOCK "Use control socket for hotplug notifications?" y "control_socket=yes" "control_socket=no"
+mquery USE_CNTL_SEND "Allow gpsctl/gpsmon to change device settings?" y "controlsend=yes" "controlsend=no"
+mquery USE_DEEBUG "Enable debug?" n "debug=yes" "debug=no"
+mquery ENBL_EARTH "Enable DeLorme EarthMate Zodiac support" y "earthmate=yes" "earthmate=no"
+mquery ENBL_EVER "Enable EverMore binary support?" y "evermore=yes" "evermore=no"
+mquery ENBL_FURY "Enable Jackson Labs Fury and Firefly support?" y "fury=yes" "fury=no"
+mquery ENBL_FV18 "Enable San Jose Navigation FV-18 support?" y "fv18=yes" "fv18=no"
+mquery ENBL_GARM "Enable Garmin printf ${PROBLEM_COLOR}kernel driver${DEFAULT_COLOR} support?" y "garmin=yes" "garmin=no"
+mquery ENBL_GARM_TXT "Enable Garmin Simple Text support?" y "garmintxt=yes" "garmintxt=no"
+mquery ENBL_GEOSTAR "Enable Geostar Protocol support?" y "geostar=yes" "geostar=no"
+mquery ENBL_GPS_CLK "Enable GPSClock support?" y "gpsclock=yes" "gpsclock=no"
+mquery ENBL_IVP6 "Enable IPv6 support?" n "ipv6=yes" "ipv6=no"
+mquery ENBL_TRAX "Enable iTrax hardware support?" y "itrax=yes" "itrax=no"
+mquery ENBL_CPP "Enable C++ bindings?" y "libgpsmm=yes" "libgpsmm=no"
+mquery ENBL_MTK "Enable MTK-3301 support?" y "mtk3301=yes" "mtk3301=no"
+mquery ENBL_NAV "Enable Navcom support?" y "navcom=yes" "navcom=no"
+mquery ENBL_TCP "Enable support for handling TCP/IP data sources?" y "netfeed=yes" "netfeed=no"
+mquery ENBL_NEMA "Enable NMEA support?" y "nema=yes" "nema=no"
+mquery ENBL_OSC "Enable OceanServer support?" y "oceanserver=yes" "oceanserver=no"
+mquery ENBL_OLD_J "Enable oldstyle (pre-JSON) protocol support?" y "oldstyle=yes" "oldstyle=no"
+mquery ENBL_ONCORE "Enable Motorola OnCore chipset support?" y "oncore=yes" "oncore=no"
+mquery ENBL_PPS "Enable PPS time syncing support?" y "pps=yes"  "pps=no"
+mquery ENBL_RECONFIG "Allow gpsd to change device settings?" y "reconfigure=yes" "reconfigure=no"
+mquery ENBL_RTCMV2 "Enable rtcm104v2 support?" y "rtcm104v2=yes" "rtcm104v2=no"
+mquery ENBL_RTCMV3 "Enable rtcm104v3 support?" y "rtcm104v3=yes" "rtcm104v3=no"
+mquery ENBL_SIRF "Enable SiRF chipset support?" y "sirf=yes" "sirf=no"
+mquery ENBL_EXP_SOCK "Enable data export over sockets?" y "socket_export=yes" "socket_export=no"
+mquery ENBL_SQUELCH "Enable squelch gpsd_report/gpsd_hexdump to save cpu?" y "squelch=yes" "squelch=no"
+mquery ENBL_SUPERSTAR "Enable Novatel SuperStarII chipset support?" y "superstar2=yes" "superstar2=no"
+mquery ENBL_LATE_TIME "Enable latency timing support?" y "timing=yes" "timing=no"
+mquery ENBL_TNT "Enable True North Technologies support?" y "tnt=yes" "tnt=no"
+mquery ENBL_TRIPMATE "Enable DeLorme TripMate support?" y "tripmate=yes" "tripmate=no"
+mquery ENBL_TSIP "Enable Trimble TSIP support?" y "tsip=yes" "tsip=no"
+mquery ENBL_UBX "Enable UBX Protocol support?" y "ubx=yes" "ubx=no"
diff --git a/science/gpsd/DEPENDS b/science/gpsd/DEPENDS
index f4e2c2b..1d996ea 100644
--- a/science/gpsd/DEPENDS
+++ b/science/gpsd/DEPENDS
@@ -1,11 +1,14 @@
 depends chrpath
 depends scons
 
-optional_depends "ncurses"       "" "" "for ncurses terminal support"
+optional_depends "ntp"           "ntpshm=yes" "ntpshm=no" "for NTP time hinting support"
+optional_depends "Python"        "python=yes" "pythonno" "Python support and modules"
+optional_depends "ncurses"       "ncurses=yes" "ncurses=no" "for ncurses terminal support"
 optional_depends "udev"          "" "" "for udev (hotplug) support"
-optional_depends "dbus"          "" "" "for dbus support"
-optional_depends "libusb-compat" "" "" "for usb device support"
-optional_depends "qt4"           "" "" "for Qt C++ wrapper support"
-optional_depends "docbook-xsl"   "" "" "for man page document support"
+optional_depends "dbus"          "dbus_export=yes" "dbus_export=no" "for dbus support"
+optional_depends "libusb-compat" "usb=yes" "usb=no" "for usb device support"
+optional_depends "qt4"           "libQgpsmm=yes" "libQgpsmm=no" "for Qt C++ wrapper support"
+optional_depends "libxslt"       "" "" "for man page document support"
 optional_depends "%PHP"          "" "" "for web page display support"
-optional_depends "systemd"       "" "" "for systemd support (gpsd by default is systemd capable)"
+optional_depends "bluez"         "bluez=yes" "bluez=no" "for bluetooth support"
+optional_depends "systemd"       "systemd=yes" "systemd=no" "for systemd support (gpsd by default is systemd capable)"


More information about the Lunar-commits mailing list