2006-10-31 17:37:18 +00:00
|
|
|
#
|
2008-02-13 10:04:45 +00:00
|
|
|
# Copyright (C) 2006,2008 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.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
2006-07-30 22:38:47 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gpsd
|
2008-02-13 10:04:45 +00:00
|
|
|
PKG_VERSION:=2.36
|
2006-07-30 22:38:47 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
|
2008-02-13 10:04:45 +00:00
|
|
|
PKG_MD5SUM:=bb54e89ddb4fdc7af8bbc5534652f9ce
|
|
|
|
|
|
|
|
PKG_FIXUP = libtool
|
2006-10-31 17:37:18 +00:00
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS=libncurses libnotimpl
|
2006-07-30 22:38:47 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/gpsd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-10-31 17:37:18 +00:00
|
|
|
DEPENDS:=+libpthread +uclibcxx
|
|
|
|
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 += \
|
2007-12-16 13:12:11 +00:00
|
|
|
--disable-python \
|
|
|
|
--disable-sirf \
|
|
|
|
--disable-tsip \
|
|
|
|
--disable-fv18 \
|
|
|
|
--disable-tripmate \
|
|
|
|
--disable-earthmate \
|
|
|
|
--disable-itrax \
|
|
|
|
--disable-navcom \
|
|
|
|
--disable-garmin \
|
|
|
|
--disable-ubx \
|
|
|
|
--disable-evermore \
|
|
|
|
--disable-rtcm104 \
|
|
|
|
--disable-ntrip \
|
|
|
|
--disable-ntpshm \
|
|
|
|
--disable-pps \
|
|
|
|
--disable-reconfigure \
|
2008-02-13 10:04:45 +00:00
|
|
|
--without-x \
|
2007-09-03 16:08:44 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
LIBS="-nodefaultlibs -luClibc++ -lnotimpl" \
|
2006-07-30 22:38:47 +00:00
|
|
|
|
2007-12-16 13:12:11 +00:00
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
|
|
|
|
./autogen.sh \
|
|
|
|
);
|
|
|
|
$(call Build/Configure/Default)
|
2006-07-30 22:38:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
2007-12-16 13:12:11 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/gps{,d}.h $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libgpsmm.h $(1)/usr/include/
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/lib
|
2007-12-16 13:12:11 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/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
|
2007-12-16 13:12:11 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/libgps.so.* $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-16 13:12:11 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/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))
|