source: packages/utils/digitemp/Makefile @ 12173

Last change on this file since 12173 was 12173, checked in by florian, 8 years ago

Makefile cleanups, round 4

File size: 1.2 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=digitemp
4PKG_VERSION:=3.5.0
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8PKG_SOURCE_URL:=http://www.digitemp.com/software/linux
9PKG_MD5SUM:=72bda9c8a66b017aa969c19dedb3225b
10PKG_CAT:=zcat
11
12include $(INCLUDE_DIR)/package.mk
13
14define 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
20endef
21
22define 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.
26endef
27
28define 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
36endef
37
38define Package/digitemp/install
39        mkdir -p $(1)/usr/bin/
40        $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/
41endef
42
43$(eval $(call BuildPackage,digitemp))
Note: See TracBrowser for help on using the repository browser.