forked from ports/contrib
clucene: fixed cmake flags
This commit is contained in:
parent
33ed0d81f0
commit
60ba698998
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF33VGq1m2IRaiToP/vSnymP7fZucs6tq1jZMndyncB8hcGxAdaQSN7O80RCClHIoiRI2OytJXPHvG8AsL6e7lRwo=
|
||||
SHA256 (Pkgfile) = ca24d9216bc39b534ed5913155d1ed9ddee91c89c9a57057ea5617ac1229c10d
|
||||
RWSagIOpLGJF32YShWD6rWLj/EOArdtePQoAypE47TECPxdq+GTO39iMPBs7s7D6JaGNwBAYMsmZN5AK9qB2DqBbF4HmhCr4Tgg=
|
||||
SHA256 (Pkgfile) = 007d2dbe76fbd40631572660ba32e394c0d0b6efbe9e7c4acfe21487509d8fb9
|
||||
SHA256 (.footprint) = a90f1fa99e0d767eabd4549e23d941298085272b3cb5e0a93f0f2b267befd22f
|
||||
SHA256 (clucene-core-2.3.3.4.tar.gz) = ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
|
||||
SHA256 (fix_zlib_detections.diff) = e1a6a58dc344d8d5e3218137a5e7a689900eb6ea4cce1dc426e861706ab78889
|
||||
|
@ -8,10 +8,12 @@ name=clucene
|
||||
version=2.3.3.4
|
||||
release=1
|
||||
source=(https://downloads.sourceforge.net/project/clucene/clucene-core-unstable/2.3/$name-core-$version.tar.gz
|
||||
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)
|
||||
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=' -G Ninja'
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_CLUCENE=' -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,11 +25,11 @@ 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 -B build $PKGMK_CLUCENE_OPTIONS \
|
||||
cmake -S $name-core-$version -B build $PKGMK_CLUCENE \
|
||||
-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 CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-D BUILD_CONTRIBS_LIB=ON \
|
||||
-D ENABLE_ASCII_MODE=OFF \
|
||||
-D ENABLE_PACKAGING=OFF \
|
||||
|
Loading…
x
Reference in New Issue
Block a user