Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_VERSION:=2015-08-17
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.bz2
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=git://git.openwrt.org/project/ugps.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=971e6703eb9bed936cc62cd335105bd2acca14ef
  16. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  17. PKG_LICENSE:=GPL-2.0+
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/ugps
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=OpenWrt GPS Daemon
  24. DEPENDS:=+libubox +libubus
  25. endef
  26. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  27. ifneq ($(CONFIG_USE_GLIBC),)
  28. TARGET_CFLAGS += -D_DEFAULT_SOURCE
  29. endif
  30. define Package/ugps/conffiles
  31. /etc/config/gps
  32. endef
  33. define Package/ugps/install
  34. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
  36. $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
  37. $(INSTALL_CONF) ./files/gps.config $(1)/etc/config/gps
  38. endef
  39. $(eval $(call BuildPackage,ugps))