Update gpsd to 2.37 (#3622)
[openwrt/svn-archive/archive.git] / net / gpsd / Makefile
1 #
2 # Copyright (C) 2006,2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gpsd
12 PKG_VERSION:=2.37
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
17 PKG_MD5SUM:=6c96cc0b2df0279cb7baac1ebc5881d3
18
19 PKG_FIXUP = libtool
20
21 PKG_BUILD_DEPENDS=libncurses libnotimpl
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gpsd
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpthread +uclibcxx
29 TITLE:=An interface daemon for GPS receivers
30 URL:=http://gpsd.berlios.de/
31 endef
32
33 CONFIGURE_ARGS += \
34 --disable-python \
35 --disable-sirf \
36 --disable-tsip \
37 --disable-fv18 \
38 --disable-tripmate \
39 --disable-earthmate \
40 --disable-itrax \
41 --disable-navcom \
42 --disable-garmin \
43 --disable-ubx \
44 --disable-evermore \
45 --disable-rtcm104 \
46 --disable-ntrip \
47 --disable-ntpshm \
48 --disable-pps \
49 --disable-reconfigure \
50 --without-x \
51
52 CONFIGURE_VARS += \
53 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
54 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
55 LIBS="-nodefaultlibs -luClibc++ -lnotimpl" \
56
57 define Build/Configure
58 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
59 ./autogen.sh \
60 );
61 $(call Build/Configure/Default)
62 endef
63
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/
68 mkdir -p $(1)/usr/lib
69 $(CP) $(PKG_BUILD_DIR)/.libs/libgps.{a,so*} $(1)/usr/lib/
70 endef
71
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/
77 endef
78
79 $(eval $(call BuildPackage,gpsd))