2019-09-01 12:20:21 +02:00
|
|
|
# Description: An open-source formatting library
|
2021-02-01 12:00:53 +01:00
|
|
|
# URL: https://fmt.dev/latest/index.html
|
2019-09-01 12:20:21 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: cmake
|
|
|
|
|
|
|
|
name=fmt
|
2022-07-08 19:32:44 +02:00
|
|
|
version=9.0.0
|
2021-07-13 14:47:50 +02:00
|
|
|
release=1
|
2019-09-01 12:20:21 +02:00
|
|
|
source=(https://github.com/fmtlib/$name/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2021-07-13 14:47:50 +02:00
|
|
|
prt-get isinst ninja && PKGMK_FMT+=' -G Ninja'
|
2020-11-08 12:08:25 +01:00
|
|
|
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-07 00:53:17 +01: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 12:08:25 +01:00
|
|
|
-Wno-dev
|
2020-05-10 20:23:52 +02:00
|
|
|
cmake --build build
|
2020-07-08 14:41:38 +02:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-09-01 12:20:21 +02:00
|
|
|
}
|