42 lines
1.6 KiB
BlitzBasic
42 lines
1.6 KiB
BlitzBasic
SUMMARY = "wolfMQTT Client Library"
|
|
DESCRIPTION = "wolfMQTT is a client library implementation of the MQTT \
|
|
protocol, written in ANSI C and targeted for embedded, RTOS, \
|
|
and resource-constrained environments. It has been built from \
|
|
the ground up to be multi-platform, space conscious, and \
|
|
extensible. It includes support for the MQTT v5.0 protocol."
|
|
HOMEPAGE = "https://www.wolfssl.com/products/wolfmqtt"
|
|
BUGTRACKER = "https://github.com/wolfssl/wolfmqtt/issues"
|
|
SECTION = "libs"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=2c1c00f9d3ed9e24fa69b932b7e7aff2"
|
|
|
|
DEPENDS += "wolfssl"
|
|
|
|
SRC_URI = "git://github.com/wolfssl/wolfMQTT.git;nobranch=1;protocol=https;rev=90790bace462d554fe35cd3d973bfe3d95d75d61"
|
|
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
EXTRA_OECONF = "--with-libwolfssl-prefix=${COMPONENTS_DIR}/${PACKAGE_ARCH}/wolfssl/usr"
|
|
|
|
python() {
|
|
distro_version = d.getVar('DISTRO_VERSION', True)
|
|
autogen_command = 'cd ${S}; ./autogen.sh'
|
|
if distro_version and (distro_version.startswith('2.') or distro_version.startswith('3.')):
|
|
# For Dunfell and earlier
|
|
d.appendVar('do_configure_prepend', autogen_command)
|
|
else:
|
|
# For Kirkstone and later
|
|
d.appendVar('do_configure:prepend', autogen_command)
|
|
}
|
|
|
|
# Add reproducible build flags
|
|
export CFLAGS += ' -g0 -O2 -ffile-prefix-map=${WORKDIR}=.'
|
|
export CXXFLAGS += ' -g0 -O2 -ffile-prefix-map=${WORKDIR}=.'
|
|
export LDFLAGS += ' -Wl,--build-id=none'
|
|
|
|
# Ensure consistent locale
|
|
export LC_ALL = "C"
|