net-im/abaddon: Fix build on 32bit arches by optioning out voice support

PR:		296329
Sponsored by:	UNIS Labs
Co-authored-by:	Vladimir Druzenko <vvd@FreeBSD.org>
This commit is contained in:
Amelia Marsh
2026-06-30 04:02:10 +03:00
committed by Vladimir Druzenko
parent b669d2e5ce
commit 7be2604669
+17 -4
View File
@@ -10,16 +10,12 @@ WWW= https://github.com/uowuo/abaddon
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS= libcurl.so:ftp/curl \
libfmt.so:devel/libfmt \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libhandy-1.so:x11-toolkits/libhandy \
libopus.so:audio/opus \
librnnoise.so:audio/rnnoise \
libsecret-1.so:security/libsecret \
libsodium.so:security/libsodium \
libspdlog.so:devel/spdlog
USES= cmake compiler:c++17-lang gnome pkgconfig sqlite ssl
@@ -34,4 +30,21 @@ GH_TUPLE= machinezone:IXWebSocket:bc765e7:ixwebsocket/subprojects/ixwebsocket \
nayuki:QR-Code-generator:22fac31:qrcodegenerator/subprojects/qrcodegen
USE_GNOME= gdkpixbufextra gtkmm30
OPTIONS_DEFINE= VOICE
OPTIONS_DEFAULT= VOICE
# libdave (required for voice) doesn't support 32 bit
OPTIONS_EXCLUDE_armv6= VOICE
OPTIONS_EXCLUDE_armv7= VOICE
OPTIONS_EXCLUDE_i386= VOICE
OPTIONS_EXCLUDE_powerpc= VOICE
OPTIONS_EXCLUDE_powerpcspe= VOICE
VOICE_DESC= Voice chat support
VOICE_BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
VOICE_LIB_DEPENDS= libopus.so:audio/opus \
librnnoise.so:audio/rnnoise \
libsodium.so:security/libsodium
VOICE_CMAKE_BOOL= ENABLE_VOICE
.include <bsd.port.mk>