gpsd: Install all libraries
[openwrt/svn-archive/archive.git] / net / gpsd / Makefile
1 #
2 # Copyright (C) 2006-2010 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.94
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download.berlios.de/gpsd/
16 PKG_MD5SUM:=ce70bcd707ac1df861d4c72f503c09d1
17
18 PKG_INSTALL:=1
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
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-tsip \
35 --disable-fv18 \
36 --disable-tripmate \
37 --disable-earthmate \
38 --disable-itrax \
39 --disable-navcom \
40 --disable-ubx \
41 --disable-evermore \
42 --disable-ntrip \
43 --disable-libgpsmm \
44 --without-x \
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.{a,so*} $(1)/usr/lib/
51 endef
52
53 define Package/gpsd/install
54 $(INSTALL_DIR) $(1)/etc/config
55 $(INSTALL_CONF) ./files/gpsd.config $(1)/etc/config/gpsd
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/gpsd.init $(1)/etc/init.d/gpsd
58 $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
59 $(INSTALL_DATA) ./files/gpsd.hotplug $(1)/etc/hotplug.d/usb/20-gpsd
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.so* $(1)/usr/lib/
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
64 endef
65
66 $(eval $(call BuildPackage,gpsd))