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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.digitemp.com
/software
/linux
17 PKG_MD5SUM
:=9be2e48db37920f21925ae6e88f83b84
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/digitemp
24 TITLE
:=DigiTemp is a simple to use program for reading values from
1-wire devices.
26 URL
:=http
://www.digitemp.com
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.
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS) -DLINUX -I$(STAGING_DIR)/usr/include \
39 -I./src -I./userial -DOWUSB" \
40 LIBS
="-L$(STAGING_DIR)/usr/lib -lusb -lm" \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
45 define Package
/digitemp
/install
46 mkdir
-p
$(1)/usr
/bin
/
47 $(CP
) $(PKG_BUILD_DIR
)/digitemp_DS2490
$(1)/usr
/bin
/
50 $(eval
$(call BuildPackage
,digitemp
))