diff options
author | davidovski <david@davidovski.xyz> | 2022-06-06 21:25:48 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-06 21:25:48 +0000 |
commit | ccc722b7ed330198d82a3cf28ead76d6d107a70a (patch) | |
tree | 7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/fmt | |
parent | 9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff) |
added java
Diffstat (limited to 'repo/fmt')
-rw-r--r-- | repo/fmt/fmt.xibuild | 32 |
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 . } + |