2 # Copyright (C) 2006-2015 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://download-mirror.savannah.gnu.org
/releases
/gpsd
/
16 PKG_MD5SUM
:=afd79b87337fadf38ee2a7c4314dac79
18 PKG_MAINTAINER
:=Pushpal Sidhu
<psidhu.devel@gmail.com
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING
22 PKG_BUILD_DEPENDS
:=libncurses libusb-1.0
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/scons.mk
27 define Package
/gpsd
/Default
28 DEPENDS
:=+librt
+libncurses
29 URL
:=http
://catb.org
/gpsd
/
32 define Package
/gpsd
/Default
/description
33 gpsd is a userland daemon acting
as a translator between GPS and AIS receivers
34 and their clients. gpsd listens on port
2947 for clients requesting
35 position
/time
/velocity information. The receivers are expected to generate
36 position information in a well-known format
-- as NMEA-0183 sentences
, SiRF
37 binary
, Rockwell binary
, Garmin binary format
, or other vendor binary
38 protocols. gpsd takes this information from the GPS and translates it into
39 something uniform and easier to understand for clients.
43 $(call Package
/gpsd
/Default
)
46 DEPENDS
+= +libgps
+libusb-1.0
47 TITLE
:=An interface daemon for GPS receivers
50 define Package
/gpsd
/conffiles
54 define Package
/gpsd
/description
55 $(call Package
/gpsd
/Default
/description
)
56 This package contains the GPS daemon.
59 define Package
/gpsd-clients
60 $(call Package
/gpsd
/Default
)
63 DEPENDS
+= +libgps
+libncurses
+libusb-1.0
64 TITLE
:=GPS tools and clients
67 define Package
/gpsd-clients
/description
68 $(call Package
/gpsd
/Default
/description
)
69 This package contains auxiliary tools and example clients for monitoring and
70 testing the GPS daemon.
74 $(call Package
/gpsd
/Default
)
78 TITLE
:=C service library for communicating with the GPS daemon
81 define Package
/libgps
/description
82 $(call Package
/gpsd
/Default
/description
)
83 This package contains the libgps library.
87 LINKFLAGS
="$(TARGET_LDFLAGS)"
107 target
="$(TARGET_CROSS:-=)"
109 define Build
/InstallDev
110 $(INSTALL_DIR
) $(1)/usr
/include
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gps.h
$(1)/usr
/include/
112 $(INSTALL_DIR
) $(1)/usr
/lib
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgps
*.so
* $(1)/usr
/lib
/
114 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
116 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libgps
*.
pc \
117 $(1)/usr
/lib
/pkgconfig
/
120 define Package
/gpsd
/install
121 $(INSTALL_DIR
) $(1)/etc
/config
122 $(INSTALL_CONF
) .
/files
/gpsd.config
$(1)/etc
/config
/gpsd
123 $(INSTALL_DIR
) $(1)/etc
/init.d
124 $(INSTALL_BIN
) .
/files
/gpsd.init
$(1)/etc
/init.d
/gpsd
125 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/usb
126 $(INSTALL_DATA
) .
/files
/gpsd.hotplug
$(1)/etc
/hotplug.d
/usb
/20-gpsd
127 $(INSTALL_DIR
) $(1)/usr
/sbin
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/gpsd
$(1)/usr
/sbin
/
131 define Package
/gpsd-clients
/install
132 $(INSTALL_DIR
) $(1)/usr
/bin
134 $(PKG_INSTALL_DIR
)/usr
/bin
/cgps \
135 $(PKG_INSTALL_DIR
)/usr
/bin
/gps
{ctl
,decode
,mon
,pipe
} \
136 $(PKG_INSTALL_DIR
)/usr
/bin
/gpxlogger \
137 $(PKG_INSTALL_DIR
)/usr
/bin
/lcdgps \
141 define Package
/libgps
/install
142 $(INSTALL_DIR
) $(1)/usr
/lib
143 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgps.so.
* $(1)/usr
/lib
/
146 $(eval
$(call BuildPackage
,gpsd
))
147 $(eval
$(call BuildPackage
,gpsd-clients
))
148 $(eval
$(call BuildPackage
,libgps
))