2019-09-01 10:20:30 +00:00
|
|
|
# Description: Fast C++ logging library
|
|
|
|
# URL: https://github.com/gabime/spdlog
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-09-22 10:54:07 +02:00
|
|
|
# Depends on: fmt meson ninja
|
2019-09-01 10:20:30 +00:00
|
|
|
|
|
|
|
name=spdlog
|
2019-10-09 21:31:32 +02:00
|
|
|
version=1.4.2
|
2019-12-20 21:34:30 +01:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/gabime/spdlog/archive/v$version/$name-$version.tar.gz
|
|
|
|
include-cassert.patch)
|
2019-09-01 10:20:30 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2019-12-20 21:34:30 +01:00
|
|
|
# https://github.com/gabime/spdlog/issues/1340
|
|
|
|
patch -Np1 -i $SRC/include-cassert.patch
|
2019-09-01 10:20:30 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2019-09-21 19:51:02 +00:00
|
|
|
meson .. \
|
|
|
|
--prefix=/usr \
|
|
|
|
-D external_fmt=true \
|
|
|
|
-D enable_examples=false \
|
|
|
|
-D library_type=static
|
|
|
|
ninja
|
|
|
|
DESTDIR=$PKG ninja install
|
2019-09-01 10:20:30 +00:00
|
|
|
}
|