[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[openwrt/svn-archive/archive.git] / utils / fowsr / Makefile
1 #
2 # Copyright (C) 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:=fowsr
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=20100718
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.gz
15 PKG_SOURCE_URL:=http://fowsr.googlecode.com/files
16 PKG_MD5SUM:=34a53f0ba60a62636feef3e09d9e4312
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/fowsr
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+libusb
24 TITLE:=Fine Offset Wireless Weather Station Reader
25 URL:=http://fowsr.googlecode.com/
26 endef
27
28 define Package/fowsr/description
29 fowsr is a USB Data Collector application for WH1080 compatible
30 weather stations.
31 Output formats includes XML, Wunderground.com and pywws.
32 endef
33
34 CONFIGURE_ARGS += \
35 --with-linux-headers="$(LINUX_DIR)" \
36
37 define Package/fowsr/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/fowsr $(1)/usr/bin/
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/wunderground.sh $(1)/usr/bin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pywws.sh $(1)/usr/bin/
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/xml.sh $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,fowsr))