forked from ports/contrib
ebook-tools: updated cmake syntax
This commit is contained in:
parent
32a48203ab
commit
498d216b0c
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user