fmt: new package

Signed-off-by: Semyon Kolganov <semenak94@mail.ru>
[Thomas:
 - add entry to DEVELOPERS file
 - add missing wchar dependency
 - minor tweaks.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Semyon Kolganov
2017-04-06 18:41:17 +03:00
committed by Thomas Petazzoni
parent b2fa3dd459
commit 81fe75c855
5 changed files with 35 additions and 0 deletions

11
package/fmt/Config.in Normal file
View File

@@ -0,0 +1,11 @@
config BR2_PACKAGE_FMT
bool "fmt"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
help
fmt is an open-source formatting library for C++. It can be used
as a safe alternative to printf or as a fast alternative to
IOStreams.
comment "fmt needs a toolchain w/ C++, wchar"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR

2
package/fmt/fmt.hash Executable file
View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 dce62ab75a161dd4353a98364feb166d35e7eea382169d59d9ce842c49c55bad fmt-3.0.1.tar.gz

18
package/fmt/fmt.mk Executable file
View File

@@ -0,0 +1,18 @@
################################################################################
#
# fmt
#
################################################################################
FMT_VERSION = 3.0.1
FMT_SITE = $(call github,fmtlib,fmt,$(FMT_VERSION))
FMT_LICENSE = BSD-2-Clause
FMT_LICENSE_FILES = LICENSE.rst
FMT_INSTALL_STAGING = YES
FMT_CONF_OPTS = \
-DHAVE_OPEN=ON \
-DFMT_INSTALL=ON \
-DFMT_TEST=OFF
$(eval $(cmake-package))