2 # Copyright (C) 2009-2011 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
/Default
24 TITLE
:=DigiTemp is a simple to use program for reading values from
1-wire devices.
25 URL
:=http
://www.digitemp.com
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.
34 define Package
/digitemp
35 $(call Package
/digitemp
/Default
)
36 TITLE
+= (serial version
)
39 define Package
/digitemp
/description
40 $(call Package
/digitemp
/Default
/description
)
41 This package is build without USB support.
44 define Package
/digitemp-usb
45 $(call Package
/digitemp
/Default
)
46 TITLE
+= (USB version
)
50 define Package
/digitemp-usb
/description
51 $(call Package
/digitemp
/Default
/description
)
52 This package is build with USB support.
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)" \
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)" \
72 define Package
/digitemp
/install
73 $(INSTALL_DIR
) $(1)/usr
/bin
/
74 $(CP
) $(PKG_BUILD_DIR
)/digitemp_
{DS9097
,DS9097U
} $(1)/usr
/bin
/
77 define Package
/digitemp-usb
/install
78 $(INSTALL_DIR
) $(1)/usr
/bin
/
79 $(CP
) $(PKG_BUILD_DIR
)/digitemp_DS2490
$(1)/usr
/bin
/
82 $(eval
$(call BuildPackage
,digitemp
))
83 $(eval
$(call BuildPackage
,digitemp-usb
))