Changeset 17020


Ignore:
Timestamp:
2009-07-26T19:59:49+02:00 (9 years ago)
Author:
florian
Message:

[package] add serial and usb version of the digitemp package (#4717)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/digitemp/Makefile

    r15480 r17020  
    1111PKG_NAME:=digitemp 
    1212PKG_VERSION:=3.6.0 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    1919include $(INCLUDE_DIR)/package.mk 
    2020 
    21 define Package/digitemp 
     21define Package/digitemp/Default 
    2222  SECTION:=utils 
    2323  CATEGORY:=Utilities 
    2424  TITLE:=DigiTemp is a simple to use program for reading values from 1-wire devices. 
    25   DEPENDS:=+libusb 
    2625  URL:=http://www.digitemp.com 
    2726endef 
    2827 
    29 define Package/digitemp/description 
     28define Package/digitemp/Default/description 
    3029        DigiTemp is a simple to use program for reading values from 1-wire devices. 
    3130        Its main use is for reading temperature sensors, but it also reads counters, 
     
    3332endef 
    3433 
     34define Package/digitemp 
     35$(call Package/digitemp/Default) 
     36  TITLE += (serial version) 
     37endef 
     38 
     39define Package/digitemp/description 
     40$(call Package/digitemp/Default/description) 
     41        This package is build without USB support. 
     42endef 
     43 
     44define Package/digitemp-usb 
     45$(call Package/digitemp/Default) 
     46  TITLE += (USB version) 
     47  DEPENDS += +libusb 
     48endef 
     49 
     50define Package/digitemp-usb/description 
     51$(call Package/digitemp/Default/description) 
     52        This package is build with USB support. 
     53endef 
     54 
    3555define Build/Compile 
     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) -lusb -lm" \ 
     61                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     62                ds9097 
    3663        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    3764                $(TARGET_CONFIGURE_OPTS) \ 
     
    4572define Package/digitemp/install  
    4673        mkdir -p $(1)/usr/bin/ 
    47         $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/ 
     74        $(CP) $(PKG_BUILD_DIR)/digitemp_DS9097 $(1)/usr/bin/ 
     75endef 
     76 
     77define Package/digitemp-usb/install      
     78        mkdir -p $(1)/usr/bin/ 
     79        $(CP) $(PKG_BUILD_DIR)/digitemp_DS9097 $(1)/usr/bin/ 
    4880endef 
    4981 
    5082$(eval $(call BuildPackage,digitemp)) 
     83$(eval $(call BuildPackage,digitemp-usb)) 
Note: See TracChangeset for help on using the changeset viewer.