paroli should wait until the xserver (and window manager) started
[openwrt/svn-archive/archive.git] / utils / digitemp / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=digitemp
4 PKG_VERSION:=3.5.0
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://www.digitemp.com/software/linux
9 PKG_MD5SUM:=72bda9c8a66b017aa969c19dedb3225b
10 PKG_CAT:=zcat
11
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/digitemp
15 SECTION:=utils
16 CATEGORY:=Utilities
17 TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices.
18 DEPENDS:=+libusb
19 URL:=http://www.digitemp.com
20 endef
21
22 define Package/digitemp/description
23 DigiTemp is a simple to use program for reading values from 1-wire devices.
24 Its main use is for reading temperature sensors, but it also reads counters,
25 and understands the 1-wire hubs with devices on different branches of the network.
26 endef
27
28 define Build/Compile
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS) -DLINUX -I$(STAGING_DIR)/usr/include \
32 -I/.src -I./userial -DOWUSB" \
33 LIBS="-L$(STAGING_DIR)/usr/lib -lusb -lm" \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
35 ds2490
36 endef
37
38 define Package/digitemp/install
39 mkdir -p $(1)/usr/bin/
40 $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,digitemp))