2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=2014-08-01
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
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 PKG_MIRROR_HASH
:=46bd7acf9a0f8fec1858496844ba0ef2f9525a22ac8c5c61b3fc4f2dc5881f33
21 PKG_MAINTAINER
:=Zoltan HERPAI
<wigyori@uid0.hu
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/pps-tools
32 define Package
/pps-tools
/description
33 Userland tools for GPS and DCF-77 Clock synchronization. PPS support in Kernel must be enabled.
36 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
38 define Build
/InstallDev
39 $(INSTALL_DIR
) $(1)/usr
/include
40 $(CP
) $(PKG_BUILD_DIR
)/timepps.h
$(1)/usr
/include/
43 define Package
/pps-tools
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ppsctl
$(1)/usr
/sbin
/
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ppstest
$(1)/usr
/sbin
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ppswatch
$(1)/usr
/sbin
/
50 $(eval
$(call BuildPackage
,pps-tools
))