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