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
:=@SAVANNAH
/$(PKG_NAME
)
16 PKG_MD5SUM
:=68691b5de4c94f82ec4062b042b5eb63
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
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 TITLE
:=An interface daemon for GPS receivers
49 define Package
/gpsd
/conffiles
53 define Package
/gpsd
/description
54 $(call Package
/gpsd
/Default
/description
)
55 This package contains the GPS daemon.
58 define Package
/gpsd-clients
59 $(call Package
/gpsd
/Default
)
63 TITLE
:=GPS tools and clients
66 define Package
/gpsd-clients
/description
67 $(call Package
/gpsd
/Default
/description
)
68 This package contains auxiliary tools and example clients for monitoring and
69 testing the GPS daemon.
73 $(call Package
/gpsd
/Default
)
76 TITLE
:=C service library for communicating with the GPS daemon
79 define Package
/libgps
/description
80 $(call Package
/gpsd
/Default
/description
)
81 This package contains the libgps library.
85 LINKFLAGS
="$(TARGET_LDFLAGS)"
106 target
="$(TARGET_CROSS:-=)"
108 define Build
/InstallDev
109 $(INSTALL_DIR
) $(1)/usr
/include
110 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gps.h
$(1)/usr
/include/
111 $(INSTALL_DIR
) $(1)/usr
/lib
112 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgps
*.so
* $(1)/usr
/lib
/
113 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
115 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libgps
*.
pc \
116 $(1)/usr
/lib
/pkgconfig
/
119 define Package
/gpsd
/install
120 $(INSTALL_DIR
) $(1)/etc
/config
121 $(INSTALL_CONF
) .
/files
/gpsd.config
$(1)/etc
/config
/gpsd
122 $(INSTALL_DIR
) $(1)/etc
/init.d
123 $(INSTALL_BIN
) .
/files
/gpsd.init
$(1)/etc
/init.d
/gpsd
124 $(INSTALL_DIR
) $(1)/usr
/sbin
125 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/gpsd
$(1)/usr
/sbin
/
128 define Package
/gpsd-clients
/install
129 $(INSTALL_DIR
) $(1)/usr
/bin
131 $(PKG_INSTALL_DIR
)/usr
/bin
/cgps \
132 $(PKG_INSTALL_DIR
)/usr
/bin
/gps
{ctl
,decode
,mon
,pipe
} \
133 $(PKG_INSTALL_DIR
)/usr
/bin
/gpxlogger \
134 $(PKG_INSTALL_DIR
)/usr
/bin
/lcdgps \
138 define Package
/libgps
/install
139 $(INSTALL_DIR
) $(1)/usr
/lib
140 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgps.so.
* $(1)/usr
/lib
/
143 $(eval
$(call BuildPackage
,gpsd
))
144 $(eval
$(call BuildPackage
,gpsd-clients
))
145 $(eval
$(call BuildPackage
,libgps
))