git: 7be26046690c - main - net-im/abaddon: Fix build on 32bit arches by optioning out voice support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jun 2026 01:04:38 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7be26046690c45b3259a2a8789e6c6fb2dec5544
commit 7be26046690c45b3259a2a8789e6c6fb2dec5544
Author: Amelia Marsh <seafork@disroot.org>
AuthorDate: 2026-06-30 01:02:10 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-06-30 01:02:10 +0000
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>
---
net-im/abaddon/Makefile | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/net-im/abaddon/Makefile b/net-im/abaddon/Makefile
index 21aaaa2f2e66..1f5116612b46 100644
--- a/net-im/abaddon/Makefile
+++ b/net-im/abaddon/Makefile
@@ -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>