[packages] libaudiofile: update to 0.2.7
[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
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=digitemp
12 PKG_VERSION:=3.6.0
13 PKG_RELEASE:=3
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/Default
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices.
25 URL:=http://www.digitemp.com
26 endef
27
28 define Package/digitemp/Default/description
29 DigiTemp is a simple to use program for reading values from 1-wire devices.
30 Its main use is for reading temperature sensors, but it also reads counters,
31 and understands the 1-wire hubs with devices on different branches of the network.
32 endef
33
34 define Package/digitemp
35 $(call Package/digitemp/Default)
36 TITLE += (serial version)
37 endef
38
39 define Package/digitemp/description
40 $(call Package/digitemp/Default/description)
41 This package is build without USB support.
42 endef
43
44 define Package/digitemp-usb
45 $(call Package/digitemp/Default)
46 TITLE += (USB version)
47 DEPENDS += +libusb
48 endef
49
50 define Package/digitemp-usb/description
51 $(call Package/digitemp/Default/description)
52 This package is build with USB support.
53 endef
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 $(TARGET_CONFIGURE_OPTS) \
58 CFLAGS="$(TARGET_CFLAGS) -DLINUX $(TARGET_CPPFLAGS) \
59 -I./src -I./userial" \
60 LIBS="$(TARGET_LDFLAGS)" \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 ds9097
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 $(TARGET_CONFIGURE_OPTS) \
65 CFLAGS="$(TARGET_CFLAGS) -DLINUX $(TARGET_CPPFLAGS) \
66 -I./src -I./userial -DOWUSB" \
67 LIBS="$(TARGET_LDFLAGS) -lusb -lm -DOWUSB" \
68 DESTDIR="$(PKG_INSTALL_DIR)" \
69 clean ds2490
70 endef
71
72 define Package/digitemp/install
73 $(INSTALL_DIR) $(1)/usr/bin/
74 $(CP) $(PKG_BUILD_DIR)/digitemp_DS9097 $(1)/usr/bin/
75 endef
76
77 define Package/digitemp-usb/install
78 $(INSTALL_DIR) $(1)/usr/bin/
79 $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
80 endef
81
82 $(eval $(call BuildPackage,digitemp))
83 $(eval $(call BuildPackage,digitemp-usb))