ugps: add a minimal gps daemon
[openwrt/svn-archive/archive.git] / package / utils / ugps / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ugps
11 PKG_VERSION:=2014-08-01
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://git.openwrt.org/project/ugps.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=1c31c99edd9de9dcb403750b04041eccc751ac5e
19
20 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/ugps
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=OpenWrt GPS Daemon
29 DEPENDS:=+libubox +libubus
30 endef
31
32 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
33
34 define Package/ugps/install
35 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
37 $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
38 $(INSTALL_BIN) ./files/gps.config $(1)/etc/config/gps
39 endef
40
41 $(eval $(call BuildPackage,ugps))