summaryrefslogtreecommitdiff
path: root/repo/fmt/fmt.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/fmt/fmt.xibuild')
-rw-r--r--repo/fmt/fmt.xibuild32
1 files changed, 22 insertions, 10 deletions
diff --git a/repo/fmt/fmt.xibuild b/repo/fmt/fmt.xibuild
index 5c17a60..acaa5b8 100644
--- a/repo/fmt/fmt.xibuild
+++ b/repo/fmt/fmt.xibuild
@@ -1,17 +1,29 @@
#!/bin/sh
-MAKEDEPS="make"
-DEPS="musl sh"
+NAME="fmt"
+DESC="Open-source formatting library for C++"
-PKG_VER=0.8.6
-SOURCE=http://landley.net/toybox/downloads/toybox-$PKG_VER.tar.gz
-DESC="fmt from toybox"
+MAKEDEPS="cmake doxygen python ninja"
-build () {
- ./configure
- make fmt
+PKG_VER=8.1.1
+SOURCE="https://github.com/fmtlib/fmt/releases/download/$PKG_VER/fmt-$PKG_VER.zip"
+
+build() {
+ cmake -B . -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ $CMAKE_CROSSOPTS
+ cmake --build .
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
-package () {
- install -Dm755 fmt $PKG_DEST/usr/bin/
+package() {
+ DESTDIR="$PKG_DEST" cmake --install .
}
+