2015-11-18 11:42:07 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# rabbitmq-c
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-06-04 22:59:48 +02:00
|
|
|
RABBITMQ_C_VERSION = v0.9.0
|
2016-04-13 13:49:25 +02:00
|
|
|
RABBITMQ_C_SITE = $(call github,alanxz,rabbitmq-c,$(RABBITMQ_C_VERSION))
|
2015-11-18 11:42:07 +01:00
|
|
|
RABBITMQ_C_LICENSE = MIT
|
|
|
|
RABBITMQ_C_LICENSE_FILES = LICENSE-MIT
|
|
|
|
RABBITMQ_C_INSTALL_STAGING = YES
|
|
|
|
RABBITMQ_C_CONF_OPTS = \
|
|
|
|
-DBUILD_API_DOCS=OFF \
|
|
|
|
-DBUILD_TOOLS_DOCS=OFF
|
|
|
|
|
2018-06-04 22:59:48 +02:00
|
|
|
# Before CMake 3.10, passing THREADS_PTHREAD_ARG=OFF was needed to
|
|
|
|
# disable a try_run() call in the FindThreads tests, which caused a
|
|
|
|
# build failure when cross-compiling.
|
|
|
|
RABBITMQ_C_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
|
|
|
|
2018-01-04 13:28:28 +01:00
|
|
|
# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable
|
2019-02-18 12:44:34 +01:00
|
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
2018-01-04 13:28:28 +01:00
|
|
|
RABBITMQ_C_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
2015-11-18 11:42:07 +01:00
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
2018-01-04 13:28:28 +01:00
|
|
|
RABBITMQ_C_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
2015-11-18 11:42:07 +01:00
|
|
|
endif
|
|
|
|
|
2019-02-18 12:44:34 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2015-11-18 11:42:07 +01:00
|
|
|
RABBITMQ_C_CONF_OPTS += -DENABLE_SSL_SUPPORT=ON
|
|
|
|
RABBITMQ_C_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
RABBITMQ_C_CONF_OPTS += -DENABLE_SSL_SUPPORT=OFF
|
|
|
|
endif
|
|
|
|
|
2019-02-18 12:44:34 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_POPT),y)
|
2015-11-18 11:42:07 +01:00
|
|
|
RABBITMQ_C_CONF_OPTS += -DBUILD_TOOLS=ON
|
|
|
|
RABBITMQ_C_DEPENDENCIES += popt
|
|
|
|
else
|
|
|
|
RABBITMQ_C_CONF_OPTS += -DBUILD_TOOLS=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|