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