1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:=2
  10. PKG_SOURCE_URL=$(PROJECT_GIT)/ugps.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2021-06-08
  13. PKG_SOURCE_VERSION:=5e88403fc0d39ae8a270d2c6c6e9c8a4d5232cf3
  14. PKG_MIRROR_HASH:=a3dfc2cc6def3b634d8b7cda9139926be3d876cf2faa5251c4821987954442a5
  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:=libreCMC GPS Daemon
  23. DEPENDS:=+libubox +libubus
  24. endef
  25. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  26. define Package/ugps/conffiles
  27. /etc/config/gps
  28. endef
  29. define Package/ugps/install
  30. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ugps $(1)/usr/sbin/
  32. $(INSTALL_BIN) ./files/ugps.init $(1)/etc/init.d/ugps
  33. $(INSTALL_CONF) ./files/gps.config $(1)/etc/config/gps
  34. endef
  35. $(eval $(call BuildPackage,ugps))