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
|
2022-08-29 21:17:34 +02:00
|
|
|
version=9.1.0
|
2021-07-13 14:47:50 +02:00
|
|
|
release=1
|
2019-09-01 10:20:21 +00:00
|
|
|
source=(https://github.com/fmtlib/$name/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2022-01-03 14:38:08 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2020-11-08 11:08:25 +00:00
|
|
|
-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" \
|
2021-07-13 14:47:50 +02:00
|
|
|
-D BUILD_SHARED_LIBS=ON \
|
|
|
|
-D CMAKE_POSITION_INDEPENDENT_CODE=ON \
|
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
|
|
|
}
|