mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
abaddon: add a portaudio interface (#12740)
This commit is contained in:
@@ -5,13 +5,11 @@ To Log In, you either have to use the mobile app or extract the login token from
|
||||
web client.
|
||||
|
||||
Please note that alternative discord clients have a higher risk of tripping discord's spam \
|
||||
filter. If you should get caught in the spam filter, you can usually appeal at discord.
|
||||
|
||||
NOTE: currently this port does not support sound!"
|
||||
filter. If you should get caught in the spam filter, you can usually appeal at discord."
|
||||
HOMEPAGE="https://github.com/uowuo/abaddon/"
|
||||
COPYRIGHT="2025 uowuo"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
srcGitRev="b749075df62c36a2f95c162ca3e44507c2ff512f"
|
||||
SOURCE_URI="https://github.com/uowuo/abaddon/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="537f196abe8dd2b932bad06ab54f35b40a81048580f62990b7b361f6c10f82df"
|
||||
@@ -20,17 +18,13 @@ SOURCE_DIR="abaddon-$srcGitRev"
|
||||
SOURCE_URI_2="https://github.com/machinezone/IXWebSocket/archive/refs/tags/v11.4.5.tar.gz"
|
||||
CHECKSUM_SHA256_2="c5fc225edec32bf7d583e55347ef2c9c4940d005c13ef5e848354a85602f5fd6"
|
||||
SOURCE_DIR_2="IXWebSocket-11.4.5"
|
||||
SOURCE_URI_3="https://github.com/mackron/miniaudio/archive/refs/tags/0.11.22.tar.gz"
|
||||
CHECKSUM_SHA256_3="bcb07bfb27e6fa94d34da73ba2d5642d4940b208ec2a660dbf4e52e6b7cd492f"
|
||||
SOURCE_DIR_3="miniaudio-0.11.22"
|
||||
srcGitRev_4="22fac31bdf81da68730c177c0e931c93234d2a30"
|
||||
SOURCE_URI_4="https://github.com/nayuki/QR-Code-generator/archive/$srcGitRev_4.tar.gz"
|
||||
CHECKSUM_SHA256_4="218e3e96ded7880d05f47c668aad6541a08e63303ac4d783720389087da6f4ed"
|
||||
SOURCE_FILENAME_4="QR-Code-generator-$srcGitRev.tar.gz"
|
||||
SOURCE_DIR_4="QR-Code-generator-$srcGitRev_4"
|
||||
srcGitRev_3="22fac31bdf81da68730c177c0e931c93234d2a30"
|
||||
SOURCE_URI_3="https://github.com/nayuki/QR-Code-generator/archive/$srcGitRev_3.tar.gz"
|
||||
CHECKSUM_SHA256_3="218e3e96ded7880d05f47c668aad6541a08e63303ac4d783720389087da6f4ed"
|
||||
SOURCE_FILENAME_3="QR-Code-generator-$srcGitRev.tar.gz"
|
||||
SOURCE_DIR_3="QR-Code-generator-$srcGitRev_3"
|
||||
|
||||
PATCHES="abaddon-$portVersion.patchset"
|
||||
PATCHES_3="abaddon-$portVersion-source3.patchset"
|
||||
ADDITIONAL_FILES="abaddon.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -67,6 +61,7 @@ REQUIRES="
|
||||
lib:libopus$secondaryArchSuffix
|
||||
lib:libpango_1.0$secondaryArchSuffix
|
||||
lib:libpangomm_1.4$secondaryArchSuffix
|
||||
lib:libportaudio$secondaryArchSuffix
|
||||
lib:librnnoise$secondaryArchSuffix
|
||||
lib:libsigc_2.0$secondaryArchSuffix
|
||||
lib:libsodium$secondaryArchSuffix
|
||||
@@ -100,6 +95,7 @@ BUILD_REQUIRES="
|
||||
devel:libopus$secondaryArchSuffix
|
||||
devel:libpango_1.0$secondaryArchSuffix
|
||||
devel:libpangomm_1.4$secondaryArchSuffix
|
||||
devel:libportaudio$secondaryArchSuffix
|
||||
devel:librnnoise$secondaryArchSuffix
|
||||
devel:libsigc_2.0$secondaryArchSuffix
|
||||
devel:libsodium$secondaryArchSuffix
|
||||
@@ -117,16 +113,15 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD() {
|
||||
mkdir -p subprojects/ixwebsocket/
|
||||
mkdir -p subprojects/miniaudio/
|
||||
mkdir -p subprojects/qrcodegen/
|
||||
cp -r $sourceDir2/* subprojects/ixwebsocket/
|
||||
cp -r $sourceDir3/* subprojects/miniaudio/
|
||||
cp -r $sourceDir4/* subprojects/qrcodegen/
|
||||
cp -r $sourceDir3/* subprojects/qrcodegen/
|
||||
|
||||
cmake -Bbuild \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DUSE_KEYCHAIN=0 \
|
||||
-DENABLE_VOICE=OFF
|
||||
-DUSE_PORTAUDIO=true \
|
||||
-DENABLE_NOTIFICATION_SOUNDS=false
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
From 6326ccbcb0fe69192f8ca41faa650900e66e4444 Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Thu, 10 Apr 2025 09:20:08 +0200
|
||||
Subject: pthread_attr_setinheritsched, disable for Haiku
|
||||
|
||||
|
||||
diff --git a/miniaudio.h b/miniaudio.h
|
||||
index c74bebe..fbabf56 100644
|
||||
--- a/miniaudio.h
|
||||
+++ b/miniaudio.h
|
||||
@@ -16244,7 +16244,7 @@ static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority
|
||||
|
||||
/* I'm not treating a failure of setting the priority as a critical error so not aborting on failure here. */
|
||||
if (pthread_attr_setschedparam(&attr, &sched) == 0) {
|
||||
- #if !defined(MA_ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 28)
|
||||
+ #if !defined(__HAIKU__) && !defined(MA_ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 28)
|
||||
{
|
||||
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
|
||||
}
|
||||
--
|
||||
2.48.1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user