[package] fix ucmb compilation (#4711)
[openwrt/svn-archive/archive.git] / utils / digitemp / Makefile
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
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=digitemp
13 PKG_VERSION:=3.6.0
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://www.digitemp.com/software/linux
18 PKG_MD5SUM:=9be2e48db37920f21925ae6e88f83b84
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define 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
28 endef
29
30 define 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.
34 endef
35
36 define 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
44 endef
45
46 define Package/digitemp/install
47 mkdir -p $(1)/usr/bin/
48 $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,digitemp))