libssh: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 11:48:59 +00:00
parent 29334fbd80
commit 90f7de16dc
2 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF31jOy4BNqqTZ6KpBpPZ5vDYDDKr8egL1oGbQJkB6pJ8uAbgsMcXzeDXw52i710iq1nEOy/rcJH2ZFsSIdBbWDQg=
SHA256 (Pkgfile) = 91acd7fdf73c1db22e3255bafb0c4e4eb85bd8195b1ff4f2a8d97ed44986b463
RWSagIOpLGJF3y1GDne3Qh4rZ0z3wtImhEI0tlxOZg56jHOnO++W81IpM0YVCaCfVcMhLL9hzNSK9q3xW0Qakjx8suxiNmRb0QQ=
SHA256 (Pkgfile) = c825614dd757d64dc027a8094ed62d0f60afa0acc43ffa2be867bc2038a47af7
SHA256 (.footprint) = e0c3d8111cb8ca80e1187c09d29fec2f28c3e523b30f3a9264a88c28de6173af
SHA256 (libssh-0.9.5.tar.xz) = acffef2da98e761fc1fd9c4fddde0f3af60ab44c4f5af05cd1b2d60a3fa08718

View File

@ -9,10 +9,14 @@ release=1
source=(https://www.libssh.org/files/${version%.*}/libssh-${version}.tar.xz)
build() {
cmake -S$name-$version -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release
[[ -e /usr/bin/ninja ]] && PKGMK_LIBSSH+=' -G Ninja'
cmake -S $name-$version -B build $PKGMK_LIBSSH \
-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
}