2019-09-01 10:20:21 +00:00
|
|
|
# Description: An open-source formatting library
|
2021-02-01 11:00:53 +00:00
|
|
|
# URL: https://fmt.dev/latest/index.html
|
2019-09-01 10:20:21 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: cmake
|
|
|
|
|
|
|
|
name=fmt
|
2020-11-25 13:43:44 +00:00
|
|
|
version=7.1.3
|
2019-09-01 10:20:21 +00:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/fmtlib/$name/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2020-11-08 11:08:25 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_FMT+=' -G Ninja'
|
|
|
|
cmake -S $name-$version -B build $PKGMK_FMT \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:53:17 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:08:25 +00:00
|
|
|
-Wno-dev
|
2020-05-10 18:23:52 +00:00
|
|
|
cmake --build build
|
2020-07-08 12:41:38 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-09-01 10:20:21 +00:00
|
|
|
}
|