From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/rabbitmq-c/rabbitmq-c.xibuild | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 repo/rabbitmq-c/rabbitmq-c.xibuild (limited to 'repo/rabbitmq-c') diff --git a/repo/rabbitmq-c/rabbitmq-c.xibuild b/repo/rabbitmq-c/rabbitmq-c.xibuild new file mode 100644 index 0000000..996fd53 --- /dev/null +++ b/repo/rabbitmq-c/rabbitmq-c.xibuild @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME="rabbitmq-c" +DESC="RabbitMQ C client" + +MAKEDEPS="popt openssl cmake xmlto doxygen ninja" + +PKG_VER=0.11.0 +SOURCE="https://github.com/alanxz/rabbitmq-c/archive/v$PKG_VER.tar.gz" + +build() { + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DBUILD_STATIC_LIBS=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DENABLE_SSL_SUPPORT=ON \ + -DBUILD_TESTS=ON \ + -DBUILD_TOOLS=ON + cmake --build build +} + +package() { + DESTDIR="$PKG_DEST" cmake --build build --target install + rm -f "$PKG_DEST"/usr/lib/*.a +} + -- cgit v1.2.1