clucene: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-08 09:43:58 +00:00
parent dc22fa6c3d
commit f5a46afb3c
2 changed files with 13 additions and 10 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF357Rw4/N4bycQNBT47KbtPPLez9Oi7St4bJxAobPwE/gHtqIB/DQuJOU7a85OAiaUiPLxDqoUv224JFhDyWf2wo=
SHA256 (Pkgfile) = a85ee27ddb292c039c9add30b863ba5fbf8b760e87052f12228195d10e33cf92
RWSagIOpLGJF31ggKvXQmip56w8EgkQp7dZ+V7XWwwUYY9qGEvrpLysoxraRsobxWDYRaKxmmkxQopUXnz3P8+Y19efm2WMCkA0=
SHA256 (Pkgfile) = ebbfdcb71b6c755af926c1867acbcbb7221e83de68612605a74ee298cdcd8faf
SHA256 (.footprint) = a90f1fa99e0d767eabd4549e23d941298085272b3cb5e0a93f0f2b267befd22f
SHA256 (clucene-core-2.3.3.4.tar.gz) = ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
SHA256 (fix_zlib_detections.diff) = e1a6a58dc344d8d5e3218137a5e7a689900eb6ea4cce1dc426e861706ab78889

View File

@ -11,7 +11,7 @@ source=(https://downloads.sourceforge.net/project/clucene/clucene-core-unstable/
fix_zlib_detections.diff clucene-core-2.3.3.4-install_contribs_lib.patch clucene-narrowing-conversions.patch clucene-warnings.patch clucene-debug.patch clucene-gcc-atomics.patch clucene-multimap-put.patch clucene-2.3.3.4-contribs_lib-1.patch cmake.patch contribs-lib-makefile.patch)
build() {
[[ -e /usr/bin/ninja ]] && PKGMK_CLUCENE_OPTIONS=' -GNinja'
[[ -e /usr/bin/ninja ]] && PKGMK_CLUCENE_OPTIONS=' -G Ninja'
patch -Np1 -d $name-core-$version -i $SRC/cmake.patch
patch -Np1 -d $name-core-$version -i $SRC/clucene-2.3.3.4-contribs_lib-1.patch
@ -23,13 +23,16 @@ build() {
patch -Np0 -d $name-core-$version -i $SRC/clucene-narrowing-conversions.patch
patch -Np0 -d $name-core-$version -i $SRC/clucene-multimap-put.patch
cmake -S$name-core-$version -Bbuild $PKGMK_CLUCENE_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_CONTRIBS_LIB=ON \
-DENABLE_ASCII_MODE=OFF \
-DENABLE_PACKAGING=OFF \
-DDISABLE_MULTITHREADING=OFF
cmake -S $name-core-$version -B build $PKGMK_CLUCENE_OPTIONS \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D BUILD_CONTRIBS_LIB=ON \
-D ENABLE_ASCII_MODE=OFF \
-D ENABLE_PACKAGING=OFF \
-D DISABLE_MULTITHREADING=OFF \
-W no-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}