2 # Copyright (C) 2006,2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
17 PKG_MD5SUM:=bb54e89ddb4fdc7af8bbc5534652f9ce
21 PKG_BUILD_DEPENDS=libncurses libnotimpl
23 include $(INCLUDE_DIR)/package.mk
28 DEPENDS:=+libpthread +uclibcxx
29 TITLE:=An interface daemon for GPS receivers
30 URL:=http://gpsd.berlios.de/
49 --disable-reconfigure \
53 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
54 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
55 LIBS="-nodefaultlibs -luClibc++ -lnotimpl" \
57 define Build/Configure
58 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
61 $(call Build/Configure/Default)
64 define Build/InstallDev
65 mkdir -p $(1)/usr/include
66 $(CP) $(PKG_BUILD_DIR)/gps{,d}.h $(1)/usr/include/
67 $(CP) $(PKG_BUILD_DIR)/libgpsmm.h $(1)/usr/include/
69 $(CP) $(PKG_BUILD_DIR)/.libs/libgps.{a,so*} $(1)/usr/lib/
72 define Package/gpsd/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/libgps.so.* $(1)/usr/lib/
75 $(INSTALL_DIR) $(1)/usr/sbin
76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/gpsd $(1)/usr/sbin/
79 $(eval $(call BuildPackage,gpsd))