packages/ushare: add /etc/config/ushare to conffiles define
[openwrt/svn-archive/archive.git] / net / gpsd / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=3
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 PKG_FIXUP:=libtool
20 PKG_REMOVE_FILES:=aclocal.m4 ltmain.sh
21
22 PKG_BUILD_DEPENDS:=libncurses
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/gpsd
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+libpthread +librt +libusb-1.0
30 TITLE:=An interface daemon for GPS receivers
31 URL:=http://gpsd.berlios.de/
32 endef
33
34 CONFIGURE_CMD =./autogen.sh
35
36 CONFIGURE_ARGS += \
37 --disable-dbus \
38 --disable-tsip \
39 --disable-fv18 \
40 --disable-tripmate \
41 --disable-earthmate \
42 --disable-itrax \
43 --disable-navcom \
44 --disable-ubx \
45 --disable-evermore \
46 --disable-ntrip \
47 --disable-libgpsmm \
48 --without-x \
49
50 EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/libusb-1.0
51
52 EXTRA_LDFLAGS:=-lusb-1.0
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.{a,so*} $(1)/usr/lib/
59 endef
60
61 define Package/gpsd/install
62 $(INSTALL_DIR) $(1)/etc/config
63 $(INSTALL_CONF) ./files/gpsd.config $(1)/etc/config/gpsd
64 $(INSTALL_DIR) $(1)/etc/init.d
65 $(INSTALL_BIN) ./files/gpsd.init $(1)/etc/init.d/gpsd
66 $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
67 $(INSTALL_DATA) ./files/gpsd.hotplug $(1)/etc/hotplug.d/usb/20-gpsd
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.so* $(1)/usr/lib/
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/
72 endef
73
74 $(eval $(call BuildPackage,gpsd))