Changeset 27280


Ignore:
Timestamp:
2011-06-25T02:28:46+02:00 (7 years ago)
Author:
nbd
Message:

i2c-tools: make the python dependency optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/i2c-tools/Makefile

    r24912 r27280  
    1717PKG_MD5SUM:=511376eed04455cdb277ef19c5f73bb4 
    1818 
    19 PKG_BUILD_DEPENDS:=python 
     19PKG_BUILD_DEPENDS:=PACKAGE_python-smbus:python 
    2020 
    2121include $(INCLUDE_DIR)/package.mk 
     
    3636  TITLE:=Python bindings for the SMBUS 
    3737  URL:=http://www.lm-sensors.org/wiki/I2CTools 
    38   DEPENDS:= +python-mini +i2c-tools 
     38  DEPENDS:= +PACKAGE_python-smbus:python-mini +i2c-tools 
    3939endef 
    4040 
     
    5757TARGET_CPPFLAGS += -I$(LINUX_DIR)/include 
    5858 
     59ifdef CONFIG_PACKAGE_python-smbus 
     60  define Build/Compile/python-smbus 
     61        $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false) 
     62        $(call Build/Compile/PyMod,./py-smbus/, \ 
     63                install --prefix="$(PKG_INSTALL_DIR)/usr", \ 
     64        ) 
     65  endef 
     66endif 
     67 
    5968define Build/Compile 
    6069        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     
    6271                CC="$(TARGET_CC)" \ 
    6372                STAGING_DIR="$(STAGING_DIR)" 
    64         $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false) 
    65         $(call Build/Compile/PyMod,./py-smbus/, \ 
    66                 install --prefix="$(PKG_INSTALL_DIR)/usr", \ 
    67         ) 
     73        $(Build/Compile/python-smbus) 
    6874endef 
    6975 
Note: See TracChangeset for help on using the changeset viewer.