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
20 PKG_MAINTAINER
:= Zoltan HERPAI
<wigyori@uid0.hu
>
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/pps-tools
31 define Package
/pps-tools
/description
32 Userland tools for GPS and DCF-77 Clock syncronization. PPS support in Kernel must be enabled.
35 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
37 define Build
/InstallDev
38 $(INSTALL_DIR
) $(1)/usr
/include
39 $(CP
) $(PKG_BUILD_DIR
)/timepps.h
$(1)/usr
/include/
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
/
49 $(eval
$(call BuildPackage
,pps-tools
))