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
:=2015-08-17
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
14 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_SOURCE_URL
:=git
://git.openwrt.org
/project
/ugps.git
17 PKG_SOURCE_VERSION
:=971e6703eb9bed936cc62cd335105bd2acca14ef
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.bz2
20 PKG_MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/cmake.mk
29 TITLE
:=OpenWrt GPS Daemon
30 DEPENDS
:=+libubox
+libubus
33 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
35 ifneq ($(CONFIG_USE_GLIBC
),)
36 TARGET_CFLAGS
+= -D_DEFAULT_SOURCE
39 define Package
/ugps
/conffiles
43 define Package
/ugps
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
$(1)/etc
/config
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ugps
$(1)/usr
/sbin
/
46 $(INSTALL_BIN
) .
/files
/ugps.init
$(1)/etc
/init.d
/ugps
47 $(INSTALL_CONF
) .
/files
/gps.config
$(1)/etc
/config
/gps
50 $(eval
$(call BuildPackage
,ugps
))