From 498d216b0c787408243aedee02eab05b747c83f6 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 8 Nov 2020 10:59:50 +0000 Subject: [PATCH] ebook-tools: updated cmake syntax --- ebook-tools/.signature | 4 ++-- ebook-tools/Pkgfile | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ebook-tools/.signature b/ebook-tools/.signature index fc5c8e3c7..bf95ead55 100644 --- a/ebook-tools/.signature +++ b/ebook-tools/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF34oJotPW+G4sy5ZbT+vg0S5DEBhTgeAty6lvHaQgJcZjyttunfEkHOFWOJAoQ2iv53fLz1sWsefK2xAO7yzmOAA= -SHA256 (Pkgfile) = ad626d54c3858e744f528567b72544594b01efd3bfeaedd70abe30cbd5ae2d64 +RWSagIOpLGJF330sXLDRkxc3CwCJV23CawbRmlOmXuwuq3XHpHOni89DHDsIwvgG0/j3mTiTvYaDL8uAj8JJcqZPL8F+Z8+Tdgg= +SHA256 (Pkgfile) = f112a07bfa2c2c1a9f7854f14dfaa75899302ae62ac3fdfc1497617bb6a46f63 SHA256 (.footprint) = 5b8b4f54bb379770a3b81c2a5a4f2ca1913a2799ffed0a2c5f5defa3154a7d41 SHA256 (ebook-tools-0.2.2.tar.gz) = cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae diff --git a/ebook-tools/Pkgfile b/ebook-tools/Pkgfile index 50ee31385..2a63c07ab 100644 --- a/ebook-tools/Pkgfile +++ b/ebook-tools/Pkgfile @@ -9,9 +9,13 @@ release=1 source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.gz) build() { - cmake -S$name-$version -Bbuild \ - -DCMAKE_BUILD_TYPE=RELEASE \ - -DCMAKE_INSTALL_PREFIX=/usr + [[ -e /usr/bin/ninja ]] && PKGMK_EBOOKTOOLS+=' -G Ninja' + cmake -S $name-$version -B build $PKGMK_EBOOKTOOLS \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -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