65d891efc2
The upstream project http://pistache.io/ does not provide release tarballs. However, commit 73f248acd6db4c53 has been successfully used for some time now. The use of BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 is for C++14 support. Tested it with gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi and buildroot's ./utils/test-pkg Pistache does not build with uClibc, the macro RUSAGE_THREAD for getrusage() is not properly declared. This is an upstream issue: https://github.com/oktal/pistache/issues/175 Hence the dependecy !BR2_TOOLCHAIN_USES_UCLIBC Signed-off-by: Thomas Ruschival <thomas@ruschival.de> [yann.morin.1998@free.fr: - fix PISTACHE_LICENSE_FILES (missing trailing 'S') - add hash for license file - two spaces in license file - tweaks in commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
22 lines
591 B
Makefile
22 lines
591 B
Makefile
################################################################################
|
|
#
|
|
# pistache
|
|
#
|
|
################################################################################
|
|
|
|
PISTACHE_VERSION = 73f248acd6db4c53e6604577b7e13fd5e756f96f
|
|
PISTACHE_SITE = $(call github,oktal,pistache,$(PISTACHE_VERSION))
|
|
PISTACHE_LICENSE = Apache-2.0
|
|
PISTACHE_LICENSE_FILES = LICENSE
|
|
|
|
PISTACHE_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
PISTACHE_DEPENDENCIES += openssl
|
|
PISTACHE_CONF_OPTS += -DPISTACHE_USE_SSL=ON
|
|
else
|
|
PISTACHE_CONF_OPTS += -DPISTACHE_USE_SSL=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|