BitTorrent btpd 0.13 package
[openwrt/svn-archive/archive.git] / net / gpsd / Makefile
1 #
2 # Copyright (C) 2006 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.35
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:=fdd16502f68b997858edd5a9f2fcf9dc
18
19 PKG_BUILD_DEPENDS=libncurses libnotimpl
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gpsd
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpthread +uclibcxx
27 TITLE:=An interface daemon for GPS receivers
28 URL:=http://gpsd.berlios.de/
29 endef
30
31 CONFIGURE_ARGS += \
32 --disable-python \
33 --disable-sirf \
34 --disable-tsip \
35 --disable-fv18 \
36 --disable-tripmate \
37 --disable-earthmate \
38 --disable-itrax \
39 --disable-navcom \
40 --disable-garmin \
41 --disable-ubx \
42 --disable-evermore \
43 --disable-rtcm104 \
44 --disable-ntrip \
45 --disable-ntpshm \
46 --disable-pps \
47 --disable-reconfigure \
48 --without-x
49
50 CONFIGURE_VARS += \
51 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClic++" \
52 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
53 LIBS="-nodefaultlibs -luClibc++ -lnotimpl" \
54
55 define Build/Configure
56 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
57 ./autogen.sh \
58 );
59 $(call Build/Configure/Default)
60 endef
61
62 define Build/InstallDev
63 mkdir -p $(1)/usr/include
64 $(CP) $(PKG_BUILD_DIR)/gps{,d}.h $(1)/usr/include/
65 $(CP) $(PKG_BUILD_DIR)/libgpsmm.h $(1)/usr/include/
66 mkdir -p $(1)/usr/lib
67 $(CP) $(PKG_BUILD_DIR)/.libs/libgps.{a,so*} $(1)/usr/lib/
68 endef
69
70 define Package/gpsd/install
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/libgps.so.* $(1)/usr/lib/
73 $(INSTALL_DIR) $(1)/usr/sbin
74 $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/gpsd $(1)/usr/sbin/
75 endef
76
77 $(eval $(call BuildPackage,gpsd))