Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ugps
  9. PKG_RELEASE:=3
  10. PKG_SOURCE_URL=$(LEDE_GIT)/project/ugps.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2016-10-24
  13. PKG_SOURCE_VERSION:=32a6b2b702c3b9f8c425f3d9dc9f4273e276029c
  14. PKG_MIRROR_HASH:=41d24ef335e9b2847895b04cee4d1c7efa56fc207798f5858e7a1f229a33c5eb
  15. PKG_MAINTAINER:=John Crispin <john@phrozen.org>
  16. PKG_LICENSE:=GPL-2.0+
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/ugps
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=OpenWrt GPS Daemon
  23. DEPENDS:=+libubox +libubus
  24. endef
  25. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  26. ifneq ($(CONFIG_USE_GLIBC),)
  27. TARGET_CFLAGS += -D_DEFAULT_SOURCE
  28. endif
  29. define Package/ugps/conffiles
  30. /etc/config/gps
  31. endef
  32. define Package/ugps/install
  33. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
  35. $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
  36. $(INSTALL_CONF) ./files/gps.config $(1)/etc/config/gps
  37. endef
  38. $(eval $(call BuildPackage,ugps))