tcsh: move to github
[openwrt.org/packages.git] / utils / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 
# Copyright (C) 2010 segal.ubi.pt
# Copyright (C) 2014 nunojpg@gmail.com
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=open2300
PKG_VERSION:=1.12
PKG_RELEASE:=3
 
PKG_SOURCE_PROTO:=svn
PKG_SOURCE_URL:=http://www.lavrsen.dk/svn/open2300/trunk
PKG_SOURCE_VERSION:=r12
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 
PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
 
include $(INCLUDE_DIR)/package.mk
 
define Package/open2300
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=WS23XX weather station utilities
  URL:=http://www.lavrsen.dk/foswiki/bin/view/Open2300
endef
 
define Package/open2300/description
  This is an utility suite used to communicate with and collect data from a WS23XX wheather station.
endef
 
MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS) -DVERSION=\"$(PKG_VERSION)\""
 
define Package/open2300/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin2300         $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/cw2300          $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump2300        $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/fetch2300       $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/histlog2300     $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/history2300     $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/interval2300    $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/light2300       $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/log2300         $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/minmax2300      $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/open2300        $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/wu2300          $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/xml2300         $(1)/usr/bin/
 
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/open2300.conf $(1)/etc/
 
        $(INSTALL_DIR) $(1)/usr/lib
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib2300.so.1.11 $(1)/usr/lib/
        ln -sf /usr/lib/lib2300.so.1.11 $(1)/usr/lib/lib2300.so
endef
 
$(eval $(call BuildPackage,open2300))
 
comments