2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_REV:=ffcc14068ada0d565f237efa56c7cd723847ca04
12 PKG_VERSION:=3.5-20120414
13 #PKG_VERSION:=20110917
16 #PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/gpsd/
17 #PKG_MD5SUM:=c01353459faa68834309109d4e868460
19 #PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_SOURCE_URL:=git://git.sv.gnu.org/gpsd.git
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
23 PKG_SOURCE_VERSION:=$(PKG_REV)
24 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
26 PKG_BUILD_DEPENDS:=libncurses
28 include $(INCLUDE_DIR)/package.mk
29 include $(INCLUDE_DIR)/scons.mk
31 define Package/gpsd/Default
33 URL:=http://catb.org/gpsd/
36 define Package/gpsd/Default/description
37 gpsd is a userland daemon acting as a translator between GPS and AIS receivers
38 and their clients. gpsd listens on port 2947 for clients requesting
39 position/time/velocity information. The receivers are expected to generate
40 position information in a well-known format -- as NMEA-0183 sentences, SiRF
41 binary, Rockwell binary, Garmin binary format, or other vendor binary
42 protocols. gpsd takes this information from the GPS and translates it into
43 something uniform and easier to understand for clients.
47 $(call Package/gpsd/Default)
50 DEPENDS+= +libgps +libgpsd
51 TITLE:=An interface daemon for GPS receivers
54 define Package/gpsd/conffiles
58 define Package/gpsd/description
59 $(call Package/gpsd/Default/description)
60 This package contains the GPS daemon.
64 $(call Package/gpsd/Default)
67 DEPENDS+= +libgps +libncurses
68 TITLE:=Test client for gpsd
71 define Package/cgps/description
72 $(call Package/gpsd/Default/description)
73 This package contains a GPS test client.
77 $(call Package/gpsd/Default)
80 TITLE:=C service library for communicating with the GPS daemon
83 define Package/libgps/description
84 $(call Package/gpsd/Default/description)
85 This package contains the libgps library.
88 define Package/libgpsd
89 $(call Package/gpsd/Default)
92 TITLE:=C service library for GPS applications
95 define Package/libgpsd/description
96 $(call Package/gpsd/Default/description)
97 This package contains the libgpsd library.
119 define Build/InstallDev
120 $(INSTALL_DIR) $(1)/usr/include
121 $(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
122 $(INSTALL_DIR) $(1)/usr/lib
123 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.so* $(1)/usr/lib/
124 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
126 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libgps*.pc \
127 $(1)/usr/lib/pkgconfig/
130 define Package/gpsd/install
131 $(INSTALL_DIR) $(1)/etc/config
132 $(INSTALL_CONF) ./files/gpsd.config $(1)/etc/config/gpsd
133 $(INSTALL_DIR) $(1)/etc/init.d
134 $(INSTALL_BIN) ./files/gpsd.init $(1)/etc/init.d/gpsd
135 $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
136 $(INSTALL_DATA) ./files/gpsd.hotplug $(1)/etc/hotplug.d/usb/20-gpsd
137 $(INSTALL_DIR) $(1)/usr/sbin
138 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
141 define Package/cgps/install
142 $(INSTALL_DIR) $(1)/usr/bin
143 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgps $(1)/usr/bin/
146 define Package/libgps/install
147 $(INSTALL_DIR) $(1)/usr/lib
148 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
151 define Package/libgpsd/install
152 $(INSTALL_DIR) $(1)/usr/lib
153 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpsd.so.* $(1)/usr/lib/
156 $(eval $(call BuildPackage,gpsd))
157 $(eval $(call BuildPackage,cgps))
158 $(eval $(call BuildPackage,libgps))
159 $(eval $(call BuildPackage,libgpsd))