Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:=2014-08-01
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE:=$(PKG_NAME)-$(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:=1c31c99edd9de9dcb403750b04041eccc751ac5e
  16. PKG_MAINTAINER:=John Crispin <[email protected]>
  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. define Package/ugps/install
  27. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
  29. $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
  30. $(INSTALL_BIN) ./files/gps.config $(1)/etc/config/gps
  31. endef
  32. $(eval $(call BuildPackage,ugps))