Skip to content
Snippets Groups Projects
Commit 7b79c0c1 authored by Duncan Bellamy's avatar Duncan Bellamy :speech_balloon: Committed by Leo
Browse files

community/rspamd: add hyperscan support for x86 and x86_64

move arch specific below variable delaration
parent dcb1a015
No related branches found
No related tags found
No related merge requests found
Pipeline #54078 skipped
......@@ -6,7 +6,7 @@
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
pkgname=rspamd
pkgver=2.6
pkgrel=0
pkgrel=1
pkgdesc="Fast, free and open-source spam filtering system"
url="https://rspamd.com/"
arch="all"
......@@ -52,6 +52,14 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/rspamd/rspamd/archive/$pkgve
10-control_socket.patch
"
case "$CARCH" in
x86|x86_64)
makedepends="$makedepends hyperscan-dev"
_hm="ON" ;;
*)
_hm="OFF" ;;
esac
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
......@@ -66,6 +74,7 @@ build() {
-DENABLE_REDIRECTOR=ON \
-DENABLE_URL_INCLUDE=ON \
-DENABLE_PCRE2=ON \
-DENABLE_HYPERSCAN="$_hm" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
"$CMAKE_CROSSOPTS" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment