2006-10-31 17:37:18 +00:00
|
|
|
#
|
2010-07-11 00:37:05 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-10-31 17:37:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
2006-07-30 22:38:47 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gpsd
|
2010-07-31 22:33:32 +00:00
|
|
|
PKG_VERSION:=2.94
|
2010-01-21 21:04:40 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-30 22:38:47 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
|
2010-07-31 22:33:32 +00:00
|
|
|
PKG_MD5SUM:=ce70bcd707ac1df861d4c72f503c09d1
|
2008-02-13 10:04:45 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2006-10-31 17:37:18 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libncurses
|
2006-07-30 22:38:47 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/gpsd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-07-31 22:33:32 +00:00
|
|
|
DEPENDS:=+libpthread
|
2006-10-31 17:37:18 +00:00
|
|
|
TITLE:=An interface daemon for GPS receivers
|
2007-01-08 11:19:08 +00:00
|
|
|
URL:=http://gpsd.berlios.de/
|
2006-07-30 22:38:47 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-03 16:08:44 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2009-07-26 11:02:37 +00:00
|
|
|
--disable-dbus \
|
|
|
|
--disable-tsip \
|
|
|
|
--disable-fv18 \
|
|
|
|
--disable-tripmate \
|
|
|
|
--disable-earthmate \
|
|
|
|
--disable-itrax \
|
|
|
|
--disable-navcom \
|
|
|
|
--disable-ubx \
|
|
|
|
--disable-evermore \
|
|
|
|
--disable-ntrip \
|
2010-07-31 22:33:32 +00:00
|
|
|
--disable-libgpsmm \
|
2009-07-26 11:02:37 +00:00
|
|
|
--without-x \
|
|
|
|
|
2006-07-30 22:38:47 +00:00
|
|
|
define Build/InstallDev
|
2008-07-29 23:55:44 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(1)/usr/lib/
|
2006-07-30 22:38:47 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-31 17:37:18 +00:00
|
|
|
define Package/gpsd/install
|
2010-07-31 22:33:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/gpsd.config $(1)/etc/config/gpsd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/gpsd.init $(1)/etc/init.d/gpsd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/usb
|
|
|
|
$(INSTALL_DATA) ./files/gpsd.hotplug $(1)/etc/hotplug.d/usb/20-gpsd
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-07-29 23:55:44 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
|
2006-10-31 17:37:18 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-30 22:38:47 +00:00
|
|
|
$(eval $(call BuildPackage,gpsd))
|