2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://www.digitemp.com
/software
/linux
18 PKG_MD5SUM
:=9be2e48db37920f21925ae6e88f83b84
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/digitemp
25 TITLE
:=DigiTemp is a simple to use program for reading values from
1-wire devices.
27 URL
:=http
://www.digitemp.com
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.
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)" \
46 define Package
/digitemp
/install
47 mkdir
-p
$(1)/usr
/bin
/
48 $(CP
) $(PKG_BUILD_DIR
)/digitemp_DS2490
$(1)/usr
/bin
/
51 $(eval
$(call BuildPackage
,digitemp
))