source: packages/utils/digitemp/Makefile @ 14049

Last change on this file since 14049 was 14049, checked in by olli, 8 years ago

[packages] utils/digitemp: Update to 3.6.0, fix typo

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2009 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
10include $(TOPDIR)/rules.mk
11
12PKG_NAME:=digitemp
13PKG_VERSION:=3.6.0
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://www.digitemp.com/software/linux
18PKG_MD5SUM:=9be2e48db37920f21925ae6e88f83b84
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/digitemp
23  SECTION:=utils
24  CATEGORY:=Utilities
25  TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices.
26  DEPENDS:=+libusb
27  URL:=http://www.digitemp.com
28endef
29
30define Package/digitemp/description
31        DigiTemp is a simple to use program for reading values from 1-wire devices.
32        Its main use is for reading temperature sensors, but it also reads counters,
33        and understands the 1-wire hubs with devices on different branches of the network.
34endef
35
36define Build/Compile
37        $(MAKE) -C $(PKG_BUILD_DIR) \
38                $(TARGET_CONFIGURE_OPTS) \
39                CFLAGS="$(TARGET_CFLAGS) -DLINUX -I$(STAGING_DIR)/usr/include \
40                        -I./src -I./userial -DOWUSB" \
41                LIBS="-L$(STAGING_DIR)/usr/lib -lusb -lm" \
42                DESTDIR="$(PKG_INSTALL_DIR)" \
43                ds2490
44endef
45
46define Package/digitemp/install
47        mkdir -p $(1)/usr/bin/
48        $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
49endef
50
51$(eval $(call BuildPackage,digitemp))
Note: See TracBrowser for help on using the repository browser.