fmt: updated cmake syntax
This commit is contained in:
parent
905ef9525c
commit
48ff218626
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF39cjaNbBgFMjiO4QMPRE70xLr9rTycxm/vmowqowr/8MoInv0cdL6v6eeW4vJIuQhET7+E1XxRohsxj19YWxhwk=
|
||||
SHA256 (Pkgfile) = 46824573f6d4ac245cad683a7bc35d96c333befabaf1b7ec7613f387fa375e62
|
||||
RWSagIOpLGJF302ToHWJwYywASlXN80CtgBSpi1LXNl83OEn/SxOzDU2yv5VFSPouVDg72hIEWLcT1aB1unzrP0Yw4Nmtz3esAo=
|
||||
SHA256 (Pkgfile) = 3119eacf919d0aeaf5bcb750c91711eb45caeaa19bc65c376f4ed8600df11909
|
||||
SHA256 (.footprint) = 4b890f044167a1c6f8594cf4019b1cf0eb9b8fd3eb6b7779f0e88c18b757a456
|
||||
SHA256 (fmt-7.1.2.tar.gz) = 4119a1c34dff91631e1d0a3707428f764f1ea22fe3cd5e70af5b4ccd5513831c
|
||||
|
12
fmt/Pkgfile
12
fmt/Pkgfile
@ -9,10 +9,14 @@ release=1
|
||||
source=(https://github.com/fmtlib/$name/archive/$version/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_FMT_OPTIONS=' -GNinja'
|
||||
cmake -S$name-$version -Bbuild $PKGMK_FMT_OPTIONS \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
[[ -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 \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user