1871fbf4218e45fc09a2c4baea4dae3ca901f4f8
[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:=3
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
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gpsd
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpthread +libstdcpp
29 TITLE:=An interface daemon for GPS receivers
30 URL:=http://gpsd.berlios.de/
31 endef
32
33 CONFIGURE_ARGS += \
34 --disable-dbus \
35 --disable-python \
36 --disable-sirf \
37 --disable-tsip \
38 --disable-fv18 \
39 --disable-tripmate \
40 --disable-earthmate \
41 --disable-itrax \
42 --disable-navcom \
43 --disable-garmin \
44 --disable-ubx \
45 --disable-evermore \
46 --disable-rtcm104 \
47 --disable-ntrip \
48 --disable-ntpshm \
49 --disable-pps \
50 --disable-reconfigure \
51 --without-x \
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(1)/usr/lib/
64 endef
65
66 define Package/gpsd/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/sbin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
71 endef
72
73 $(eval $(call BuildPackage,gpsd))