Fix libtiff install (this time for real).
[openwrt/svn-archive/archive.git] / utils / wx200d / 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:=wx200d
12 PKG_VERSION:=1.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/wx200d
17 PKG_MD5SUM:=0f90c099dddcdd46ac568d707822ec4c
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/wx200d
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libpq
25 TITLE:=weather station data collector
26 URL:=http://wx200d.sourceforge.net/
27 endef
28
29 define Package/wx200d/description
30 wx200d is a weather station data collector and server daemon
31 for the WX200, WM918, WMR918 and WMR968 weather station
32 hardware.
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/wx200d/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(CP) $(PKG_INSTALL_DIR)/usr/bin/wx200 \
46 $(PKG_INSTALL_DIR)/usr/bin/wxstdout \
47 $(PKG_INSTALL_DIR)/usr/bin/wxfilter \
48 $(PKG_INSTALL_DIR)/usr/bin/wxdebug \
49 $(1)/usr/bin/
50 $(INSTALL_DIR) $(1)/usr/sbin/
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/wx200d \
52 $(PKG_INSTALL_DIR)/usr/sbin/wxread \
53 $(1)/usr/sbin/
54 endef
55
56 $(eval $(call BuildPackage,wx200d))