2006-10-31 17:37:18 +00:00
|
|
|
#
|
2009-07-26 11:02:37 +00:00
|
|
|
# Copyright (C) 2006,2009 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-01-21 21:04:40 +00:00
|
|
|
PKG_VERSION:=2.90
|
|
|
|
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-01-21 21:04:40 +00:00
|
|
|
PKG_MD5SUM:=a23c728b8734c542d559c485857238d2
|
2008-02-13 10:04:45 +00:00
|
|
|
|
2009-07-26 11:02:37 +00:00
|
|
|
PKG_FIXUP:=libtool-ucxx
|
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
|
2009-07-26 11:02:37 +00:00
|
|
|
DEPENDS:=+libpthread +uclibcxx
|
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 \
|
|
|
|
--without-x \
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
|
2010-01-21 21:04:40 +00:00
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib" \
|
2009-07-26 11:02:37 +00:00
|
|
|
LIBS="-nodefaultlibs -luClibc++ -lm -lgcc" \
|
2010-01-21 21:04:40 +00:00
|
|
|
CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \
|
2007-09-03 16:08:44 +00:00
|
|
|
|
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
|
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))
|