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:=pps-tools
  9. PKG_VERSION:=2014-08-01
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/ago/pps-tools
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=0deb9c7e135e9380a6d09e9d2e938a146bb698c8
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
  17. PKG_LICENSE:=GPL-2.0
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/pps-tools
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=PPS-tools
  23. endef
  24. define Package/pps-tools/description
  25. Userland tools for GPS and DCF-77 Clock synchronization. PPS support in Kernel must be enabled.
  26. endef
  27. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_BUILD_DIR)/timepps.h $(1)/usr/include/
  31. endef
  32. define Package/pps-tools/install
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ppsctl $(1)/usr/sbin/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ppstest $(1)/usr/sbin/
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ppswatch $(1)/usr/sbin/
  37. endef
  38. $(eval $(call BuildPackage,pps-tools))