[packages] gpsd: update to 3.6
authorStephen Walker <stephendwalker@gmail.com>
Thu, 24 May 2012 04:29:36 +0000 (04:29 +0000)
committerStephen Walker <stephendwalker@gmail.com>
Thu, 24 May 2012 04:29:36 +0000 (04:29 +0000)
 * add staging prefix patch for the pkg-config wrapper variables
 * re-enable libusb support
 * add a gpsd-clients package (#7879)
 * drop obsolete patches

SVN-Revision: 31853

net/gpsd/Makefile
net/gpsd/patches/0001-_XOPEN_SOURCE-breaks-CLOCK_REALTIME-in-uclibc.patch [deleted file]
net/gpsd/patches/001-add-staging-dir.patch [deleted file]
net/gpsd/patches/001-add-staging-prefix.patch [new file with mode: 0644]
net/gpsd/patches/002-no_chrpath.patch [deleted file]
net/gpsd/patches/002-no_rpath.patch [new file with mode: 0644]

index 07bc2c25447941ab793d4640180e10fb24f44ce7..47dd2792aae30057c593965cdfb3ed3aee3bb494 100644 (file)
@@ -1,5 +1,5 @@
 #
 #
-# Copyright (C) 2006-2011 OpenWrt.org
+# Copyright (C) 2006-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,22 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gpsd
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gpsd
-PKG_REV:=ffcc14068ada0d565f237efa56c7cd723847ca04
-PKG_VERSION:=3.5-20120414
-#PKG_VERSION:=20110917
-PKG_RELEASE:=5
-
-#PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/gpsd/
-#PKG_MD5SUM:=c01353459faa68834309109d4e868460
-
-#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=git://git.sv.gnu.org/gpsd.git
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=$(PKG_REV)
+PKG_VERSION:=3.6
+PKG_RELEASE:=1
+
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/gpsd
+PKG_MD5SUM:=064a5ad75593f8c3ea3fe85010647832
 
 
-PKG_BUILD_DEPENDS:=libncurses
+PKG_BUILD_DEPENDS:=libncurses libusb-1.0
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/scons.mk
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/scons.mk
@@ -60,23 +52,25 @@ define Package/gpsd/description
   This package contains the GPS daemon.
 endef
 
   This package contains the GPS daemon.
 endef
 
-define Package/cgps
+define Package/gpsd-clients
   $(call Package/gpsd/Default)
   SECTION:=net
   CATEGORY:=Network
   $(call Package/gpsd/Default)
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS+= +libgps +libncurses
-  TITLE:=Test client for gpsd
+  DEPENDS+= +libgps +libgpsd +libncurses
+  TITLE:=GPS tools and clients
 endef
 
 endef
 
-define Package/cgps/description
+define Package/gpsd-clients/description
   $(call Package/gpsd/Default/description)
   $(call Package/gpsd/Default/description)
-  This package contains a GPS test client.
+  This package contains auxiliary tools and example clients for monitoring and
+  testing the GPS daemon.
 endef
 
 define Package/libgps
   $(call Package/gpsd/Default)
   SECTION:=libs
   CATEGORY:=Libraries
 endef
 
 define Package/libgps
   $(call Package/gpsd/Default)
   SECTION:=libs
   CATEGORY:=Libraries
+  DEPENDS+= +libcap
   TITLE:=C service library for communicating with the GPS daemon
 endef
 
   TITLE:=C service library for communicating with the GPS daemon
 endef
 
@@ -89,6 +83,7 @@ define Package/libgpsd
   $(call Package/gpsd/Default)
   SECTION:=libs
   CATEGORY:=Libraries
   $(call Package/gpsd/Default)
   SECTION:=libs
   CATEGORY:=Libraries
+  DEPENDS+= +libcap +libusb-1.0
   TITLE:=C service library for GPS applications
 endef
 
   TITLE:=C service library for GPS applications
 endef
 
@@ -113,8 +108,8 @@ SCONS_OPTIONS += \
        bluez=no \
        strip=no \
        python=no \
        bluez=no \
        strip=no \
        python=no \
-       usb=no \
-       implicit_link=no
+       implicit_link=no \
+       chrpath=no
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
@@ -138,9 +133,14 @@ define Package/gpsd/install
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
 endef
 
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
 endef
 
-define Package/cgps/install
+define Package/gpsd-clients/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_DIR) $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgps $(1)/usr/bin/
+       $(INSTALL_BIN) \
+               $(PKG_INSTALL_DIR)/usr/bin/cgps \
+               $(PKG_INSTALL_DIR)/usr/bin/gps{ctl,decode,mon,pipe} \
+               $(PKG_INSTALL_DIR)/usr/bin/gpxlogger \
+               $(PKG_INSTALL_DIR)/usr/bin/lcdgps \
+               $(1)/usr/bin/
 endef
 
 define Package/libgps/install
 endef
 
 define Package/libgps/install
@@ -154,6 +154,6 @@ define Package/libgpsd/install
 endef
 
 $(eval $(call BuildPackage,gpsd))
 endef
 
 $(eval $(call BuildPackage,gpsd))
-$(eval $(call BuildPackage,cgps))
+$(eval $(call BuildPackage,gpsd-clients))
 $(eval $(call BuildPackage,libgps))
 $(eval $(call BuildPackage,libgpsd))
 $(eval $(call BuildPackage,libgps))
 $(eval $(call BuildPackage,libgpsd))
diff --git a/net/gpsd/patches/0001-_XOPEN_SOURCE-breaks-CLOCK_REALTIME-in-uclibc.patch b/net/gpsd/patches/0001-_XOPEN_SOURCE-breaks-CLOCK_REALTIME-in-uclibc.patch
deleted file mode 100644 (file)
index 69cf03c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-From c7a6bf126c17e997428ee925aad62b2fd70dc316 Mon Sep 17 00:00:00 2001
-From: Dave Taht <dave.taht@bufferbloat.net>
-Date: Fri, 13 Apr 2012 23:14:06 -0700
-Subject: [PATCH] _XOPEN_SOURCE breaks CLOCK_REALTIME in uclibc
-
-Since you can't tell what library you are using...
-until after you include features.h
-which after you would set _XOPEN_SOURCE
-and if you set _XOPEN_SOURCE you can't re-include features.h
-we have a recursive dependency.
-
-I have no idea how to handle this, so I'll just carry a patch
-in openwrt.
----
- gpsutils.c |    4 ----
- 1 files changed, 0 insertions(+), 4 deletions(-)
-
-diff --git a/gpsutils.c b/gpsutils.c
-index 60c4ae9..95ab456 100644
---- a/gpsutils.c
-+++ b/gpsutils.c
-@@ -4,10 +4,6 @@
-  * BSD terms apply: see the file COPYING in the distribution root for details.
-  */
--/* The strptime prototype is not provided unless explicitly requested.
-- *  So add the define that POSIX says to to avoid: */
--#define _XOPEN_SOURCE
--
- #include <stdio.h>
- #include <time.h>
- #include <sys/time.h>
--- 
-1.7.5.4
-
diff --git a/net/gpsd/patches/001-add-staging-dir.patch b/net/gpsd/patches/001-add-staging-dir.patch
deleted file mode 100644 (file)
index d690e8e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/SConstruct
-+++ b/SConstruct
-@@ -199,6 +199,7 @@ import_env = (
-     'PATH',            # Required for ccache and Coverity scan-build
-     'PKG_CONFIG_PATH', # Set .pc file directory in a crossbuild
-     'STAGING_PREFIX',  # Required by the OpenWRT build.
-+    'STAGING_DIR',     # Required by the OpenWRT build.
-     )
- envs = {}
- for var in import_env:
diff --git a/net/gpsd/patches/001-add-staging-prefix.patch b/net/gpsd/patches/001-add-staging-prefix.patch
new file mode 100644 (file)
index 0000000..b88171b
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -200,6 +200,7 @@ import_env = (
+     'PATH',            # Required for ccache and Coverity scan-build
+     'PKG_CONFIG_PATH', # Set .pc file directory in a crossbuild
+     'STAGING_DIR',     # Required by the OpenWRT build.
++    'STAGING_PREFIX',  # Required by the OpenWRT build.
+     )
+ envs = {}
+ for var in import_env:
diff --git a/net/gpsd/patches/002-no_chrpath.patch b/net/gpsd/patches/002-no_chrpath.patch
deleted file mode 100644 (file)
index 489fa70..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
---- a/SConstruct
-+++ b/SConstruct
-@@ -270,8 +270,6 @@ def installdir(dir, add_destdir=True):
- # Honor the specified installation prefix in link paths.
- env.Prepend(LIBPATH=[installdir('libdir')])
--if env["shared"]:
--    env.Prepend(RPATH=[installdir('libdir')])
- # Give deheader a way to set compiler flags
- if 'MORECFLAGS' in os.environ:
-@@ -390,17 +388,6 @@ config = Configure(env, custom_tests = {
-                                          'CheckXsltproc' : CheckXsltproc})
- env.Prepend(LIBPATH=[os.path.realpath(os.curdir)])
--if config.CheckExecutable('$CHRPATH -v', 'chrpath'):
--    # Tell generated binaries to look in the current directory for
--    # shared libraries so we can run tests without hassle. Should be
--    # handled sanely by scons on all systems.  Not good to use '.' or
--    # a relative path here; it's a security risk.  At install time we
--    # use chrpath to edit this out of RPATH.
--    if env["shared"]:
--        env.Prepend(RPATH=[os.path.realpath(os.curdir)])
--else:
--    print "chrpath is not available, forcing static linking."
--    env["shared"] = False
- confdefs = ["/* gpsd_config.h.  Generated by scons, do not hand-hack.  */\n"]
-@@ -1147,11 +1134,6 @@ binaryinstall.append(LibraryInstall(env,
- if qt_env:
-     binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib))
--# We don't use installdir here in order to avoid having DESTDIR affect the rpath
--if env["shared"]:
--    env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \
--                      % (installdir('libdir', False), ))
--
- if not env['debug'] and not env['profiling'] and env['strip']:
-     env.AddPostAction(binaryinstall, '$STRIP $TARGET')
diff --git a/net/gpsd/patches/002-no_rpath.patch b/net/gpsd/patches/002-no_rpath.patch
new file mode 100644 (file)
index 0000000..38ba782
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -269,8 +269,6 @@ def installdir(dir, add_destdir=True):
+ # Honor the specified installation prefix in link paths.
+ env.Prepend(LIBPATH=[installdir('libdir')])
+-if env["shared"]:
+-    env.Prepend(RPATH=[installdir('libdir')])
+ # Give deheader a way to set compiler flags
+ if 'MORECFLAGS' in os.environ: