# # Copyright (c) 2019 Amazon.com, Inc. # Copyright (c) 2019 Luxoft Sweden AB # # SPDX-License-Identifier: Apache-2.0 # SUMMARY = "An SDK for commercial device makers to integrate Alexa directly into connected products." HOMEPAGE = "https://developer.amazon.com/avs/sdk" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d92e60ee98664c54f68aa515a6169708" DEPENDS = "curl nghttp2 sqlite3 openssl gstreamer1.0 gstreamer1.0-plugins-base libopus portaudio libarchive" SRC_URI = "git://xajhuang.com:3100/avs/avs-device-sdk.git;protocol=https;branch=master" SRCREV = "${AUTOREV}" COMPATIBLE_HOST = "aarch64-poky-linux" S = "${WORKDIR}/git" EXTRA_OECMAKE = "${S} -DCMAKE_SKIP_RPATH=TRUE \ -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DCMAKE_BUILD_TYPE=DEBUG -DPKCS11=OFF \ -DPORTAUDIO_LIB_PATH=${STAGING_DIR_HOST}${libdir}/libportaudio.so \ -DPORTAUDIO_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir} \ -DCURL_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir}/curl \ -DCURL_LIBRARY=${STAGING_DIR_HOST}${libdir}/libcurl.so \ -DLibArchive_INCLUDE_DIR=${STAGING_DIR_HOST}${includedir} \ -DLibArchive_LIBRARY=${STAGING_DIR_HOST}${libdir}/libarchive.so \ " inherit cmake FILES_${PN}-sampleapp = "${bindir}/SampleApp" BBCLASSEXTEND = "native" do_compile() { make -j8 SampleApp } do_install() { install -d ${B}${libdir} make install DESTDIR=${B}${libdir} } do_install_append() { # Install Sample application to test Alexa Voice Service install -d ${D}${bindir} install -d ${D}${libdir} install -d ${D}${libdir}/pkgconfig install -m 0755 ${B}/SampleApp/src/SampleApp ${D}${bindir} install -m 0755 ${B}${libdir}/usr/lib/*.so ${D}${libdir} install -m 0755 ${B}${libdir}/usr/lib/pkgconfig/AlexaClientSDK.pc ${D}${libdir}/pkgconfig/AlexaClientSDK.pc chrpath -d ${D}${bindir}/SampleApp }