2 # Copyright (C) 2014 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
13 PKG_SOURCE_URL=$(LEDE_GIT)/project/ugps.git
15 PKG_SOURCE_DATE:=2016-10-24
16 PKG_SOURCE_VERSION:=32a6b2b702c3b9f8c425f3d9dc9f4273e276029c
17 PKG_MIRROR_HASH:=41d24ef335e9b2847895b04cee4d1c7efa56fc207798f5858e7a1f229a33c5eb
19 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
28 TITLE:=OpenWrt GPS Daemon
29 DEPENDS:=+libubox +libubus
32 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
34 ifneq ($(CONFIG_USE_GLIBC),)
35 TARGET_CFLAGS += -D_DEFAULT_SOURCE
38 define Package/ugps/conffiles
42 define Package/ugps/install
43 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
45 $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
46 $(INSTALL_CONF) ./files/gps.config $(1)/etc/config/gps
49 $(eval $(call BuildPackage,ugps))