Disable jbt6k74 mode setting. The kernel driver takes care of it now.
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gpsd
11 PKG_VERSION:=2.37
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
16 PKG_MD5SUM:=6c96cc0b2df0279cb7baac1ebc5881d3
17
18 PKG_FIXUP = libtool
19
20 PKG_BUILD_DEPENDS=libncurses
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/gpsd
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpthread +libstdcpp
28 TITLE:=An interface daemon for GPS receivers
29 URL:=http://gpsd.berlios.de/
30 endef
31
32 CONFIGURE_ARGS += \
33 --disable-dbus \
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 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 endef
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(1)/usr/lib/
63 endef
64
65 define Package/gpsd/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
68 $(INSTALL_DIR) $(1)/usr/sbin
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
70 endef
71
72 $(eval $(call BuildPackage,gpsd))