gpsd fixes:
- linking against uClibc++ alone doesn't work (because of libtool), so use libstdc++ instead (closes: #3139) - uClibc now has the necessary math functions, don't use libnotimpl anymore - explicitly disable dbus - use PKG_INSTALL_DIR and make install git-svn-id: svn://svn.openwrt.org/openwrt/packages@12000 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6b56cd6da6
commit
b9d4d6f85f
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=gpsd
|
PKG_NAME:=gpsd
|
||||||
PKG_VERSION:=2.37
|
PKG_VERSION:=2.37
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
|
PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
|
||||||
@ -18,19 +18,20 @@ PKG_MD5SUM:=6c96cc0b2df0279cb7baac1ebc5881d3
|
|||||||
|
|
||||||
PKG_FIXUP = libtool
|
PKG_FIXUP = libtool
|
||||||
|
|
||||||
PKG_BUILD_DEPENDS=libncurses libnotimpl
|
PKG_BUILD_DEPENDS=libncurses
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/gpsd
|
define Package/gpsd
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+libpthread +uclibcxx
|
DEPENDS:=+libpthread +libstdcpp
|
||||||
TITLE:=An interface daemon for GPS receivers
|
TITLE:=An interface daemon for GPS receivers
|
||||||
URL:=http://gpsd.berlios.de/
|
URL:=http://gpsd.berlios.de/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
|
--disable-dbus \
|
||||||
--disable-python \
|
--disable-python \
|
||||||
--disable-sirf \
|
--disable-sirf \
|
||||||
--disable-tsip \
|
--disable-tsip \
|
||||||
@ -49,31 +50,24 @@ CONFIGURE_ARGS += \
|
|||||||
--disable-reconfigure \
|
--disable-reconfigure \
|
||||||
--without-x \
|
--without-x \
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
define Build/Compile
|
||||||
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
LIBS="-nodefaultlibs -luClibc++ -lnotimpl" \
|
all install
|
||||||
|
|
||||||
define Build/Configure
|
|
||||||
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
|
|
||||||
./autogen.sh \
|
|
||||||
);
|
|
||||||
$(call Build/Configure/Default)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
mkdir -p $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_BUILD_DIR)/gps{,d}.h $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
|
||||||
$(CP) $(PKG_BUILD_DIR)/libgpsmm.h $(1)/usr/include/
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
mkdir -p $(1)/usr/lib
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(1)/usr/lib/
|
||||||
$(CP) $(PKG_BUILD_DIR)/.libs/libgps.{a,so*} $(1)/usr/lib/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gpsd/install
|
define Package/gpsd/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/libgps.so.* $(1)/usr/lib/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/gpsd $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gpsd))
|
$(eval $(call BuildPackage,gpsd))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user