25ced23d35b67cf5d2dca3390cfaf32da175538c
[packages.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 PKG_MD5SUM:=0f90c099dddcdd46ac568d707822ec4c
15
16 PKG_SOURCE_URL:=@SF/wx200d
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/wx200d
26   SECTION:=utils
27   CATEGORY:=Utilities
28   DEPENDS:=+libpq
29   TITLE:=weather station data collector
30   DESCRIPTION:=wx200d is a weather station data collector and server daemon\\\
31   for the WX200, WM918, WMR918 and WMR968 weather station\\\
32   hardware.\\\
33   URL:=http://wx200d.sourceforge.net/
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,--without-libiconv-prefix \
38                         --without-libintl-prefix)
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
43                 all install)
44 endef
45
46 define Package/wx200d/install   
47         install -d -m0755 $(1)/usr/bin
48         $(CP) $(PKG_INSTALL_DIR)/usr/bin/wx200 \
49                 $(PKG_INSTALL_DIR)/usr/bin/wxstdout \
50                 $(PKG_INSTALL_DIR)/usr/bin/wxfilter \
51                 $(PKG_INSTALL_DIR)/usr/bin/wxdebug $(1)/usr/bin/
52         install -d -m0755 $(1)/usr/sbin/
53         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/wx200d \
54                 $(PKG_INSTALL_DIR)/usr/sbin/wxread $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,wx200d))