2006-10-31 17:37:18 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
PKG_VERSION:=2.30
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
|
|
|
|
PKG_MD5SUM:=dde177174878e8ae6db15f8010da46dd
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-10-31 17:37:18 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
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
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-31 17:37:18 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--without-x \
|
|
|
|
, \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
LIBS="-nodefaultlibs -luClibc++ -lnotimpl -lm -lc" \
|
|
|
|
)
|
2006-07-30 22:38:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-31 17:37:18 +00:00
|
|
|
CXXLINK="\$$$$(LINK)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2006-07-30 22:38:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
2006-10-31 17:37:18 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/gps{,d}.h $(STAGING_DIR)/usr/include/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libgpsmm.h $(STAGING_DIR)/usr/include/
|
2006-07-30 22:38:47 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2006-10-31 17:37:18 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(STAGING_DIR)/usr/lib/
|
2006-07-30 22:38:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
2006-10-31 17:37:18 +00:00
|
|
|
rm -rf $(STAGING_DIR)/usr/include/gps{,d}.h \
|
2006-07-30 22:38:47 +00:00
|
|
|
$(STAGING_DIR)/usr/include/libgpsmm.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libgps.{a,so*}
|
|
|
|
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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(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))
|