1################################################################################ 2# 3# openzwave 4# 5################################################################################ 6 7OPENZWAVE_VERSION = 62444b0f979c337d2091d77d89cf63c2ae9775cf 8OPENZWAVE_SITE = $(call github,OpenZWave,open-zwave,$(OPENZWAVE_VERSION)) 9OPENZWAVE_LICENSE = LGPL-3.0+, GPL-3.0 (examples), Apache-2.0 (sh2ju.sh) 10OPENZWAVE_LICENSE_FILES = LICENSE licenses/license.txt licenses/lgpl.txt \ 11 licenses/gpl.txt licenses/Apache-License-2.0.txt 12OPENZWAVE_DEPENDENCIES = tinyxml 13 14OPENZWAVE_INSTALL_STAGING = YES 15 16# Set instlibdir to install libopenzwave.so* in the correct directory 17# otherwise openzwave will check that /lib64 exists (on the host) to 18# know if the library should be installed in $(PREFIX)/lib or $(PREFIX)/lib64. 19# Set pkgconfigdir to /lib/pkgconfig to install libopenzwave.pc in the 20# correct directory otherwise openzwave will call 21# "pkg-config --variable pc_path pkg-config" which returns an incorrect value. 22# Set sysconfdir to /etc/openzwave to install openzwave configuration files in 23# the correct directory otherwise openzwave will install configuration files in 24# $(PREFIX)/etc/openzwave. 25# Disable doxygen documentation. 26# Set {DEBUG,RELEASE}_CFLAGS to remove -Werror. 27OPENZWAVE_MAKE_OPTS = \ 28 CROSS_COMPILE="$(TARGET_CROSS)" \ 29 PREFIX=/usr \ 30 instlibdir=/usr/lib \ 31 pkgconfigdir=/usr/lib/pkgconfig \ 32 sysconfdir=/etc/openzwave \ 33 DOXYGEN= \ 34 DEBUG_CFLAGS="-fPIC -std=c++11" \ 35 RELEASE_CFLAGS="-fPIC -std=c++11" \ 36 USE_BI_TXML=0 37 38ifeq ($(BR2_PACKAGE_HAS_UDEV),y) 39OPENZWAVE_DEPENDENCIES += host-pkgconf udev 40OPENZWAVE_MAKE_OPTS += USE_HID=1 41else 42OPENZWAVE_MAKE_OPTS += USE_HID=0 43endif 44 45define OPENZWAVE_BUILD_CMDS 46 $(TARGET_MAKE_ENV) $(MAKE) $(OPENZWAVE_MAKE_OPTS) -C $(@D) 47endef 48 49define OPENZWAVE_INSTALL_STAGING_CMDS 50 $(TARGET_MAKE_ENV) $(MAKE) $(OPENZWAVE_MAKE_OPTS) -C $(@D) \ 51 DESTDIR=$(STAGING_DIR) install 52endef 53 54# Delete unneeded ozw_config binary from target directory as this is an utility 55# application used to get the openzwave build configuration. 56define OPENZWAVE_INSTALL_TARGET_CMDS 57 $(TARGET_MAKE_ENV) $(MAKE) $(OPENZWAVE_MAKE_OPTS) -C $(@D) \ 58 DESTDIR=$(TARGET_DIR) install 59 rm -f $(TARGET_DIR)/usr/bin/ozw_config 60endef 61 62$(eval $(generic-package)) 63