ossia-score: Enable aarch64 builds
This commit is contained in:
committed by
Christoph Reiter
parent
685e3eda15
commit
9618e5d982
11
mingw-w64-ossia-score/001-aarch64.patch
Normal file
11
mingw-w64-ossia-score/001-aarch64.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -bur ossia-score-3.5.3-orig/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp ossia-score-3.5.3/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp
|
||||
--- ossia-score-3.5.3-orig/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp 2025-07-15 09:37:43.080018200 -0600
|
||||
+++ ossia-score-3.5.3/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp 2025-07-15 09:37:27.191279800 -0600
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <immintrin.h>
|
||||
#define ossia_rwlock_pause() _mm_pause()
|
||||
#elif defined(_M_ARM64)
|
||||
#include <intrin.h>
|
||||
+#include <Windows.h>
|
||||
#define ossia_rwlock_pause() YieldProcessor()
|
||||
#elif defined(__i386__)
|
||||
@@ -4,10 +4,10 @@ _realname=ossia-score
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=3.5.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="ossia score, an interactive sequencer for the intermedia arts"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url="https://ossia.io"
|
||||
msys2_repository_url="https://github.com/ossia/score"
|
||||
license=('spdx:GPL-3.0-or-later')
|
||||
@@ -41,14 +41,29 @@ makedepends=(
|
||||
"${MINGW_PACKAGE_PREFIX}-boost"
|
||||
"git"
|
||||
)
|
||||
source=("https://github.com/ossia/score/releases/download/v${pkgver}/ossia.score-${pkgver}-src.tar.xz")
|
||||
sha512sums=('ba20cda52f00782fb30b4319b2154eec0e3d692be865839f83095d28294894a289b383f1dbf6277345ec5c93284f96795e25bb62c5e3e2c3fe4290d607f0a702')
|
||||
source=("https://github.com/ossia/score/releases/download/v${pkgver}/ossia.score-${pkgver}-src.tar.xz"
|
||||
"001-aarch64.patch")
|
||||
sha512sums=('ba20cda52f00782fb30b4319b2154eec0e3d692be865839f83095d28294894a289b383f1dbf6277345ec5c93284f96795e25bb62c5e3e2c3fe4290d607f0a702'
|
||||
'b3450fa7cac0c1de6ff88b69f30f61d47919927136f57ea23ff71862d7600c379d2f0f632f7e7dff0f597a82ea18ea5b07e8518a805a90f6659e5478e3d4fadb')
|
||||
noextract=(ossia.score-${pkgver}-src.tar.xz)
|
||||
|
||||
apply_patch_with_msg() {
|
||||
for _patch in "$@"
|
||||
do
|
||||
msg2 "Applying ${_patch}"
|
||||
patch -Nbp1 -i "${srcdir}/${_patch}"
|
||||
done
|
||||
}
|
||||
|
||||
prepare() {
|
||||
[[ -d "${srcdir}"/${_realname}-${pkgver} ]] && rm -rf "${srcdir}"/${_realname}-${pkgver}
|
||||
MSYS=winsymlinks:native \
|
||||
tar -xJf "${srcdir}"/ossia.score-${pkgver}-src.tar.xz -C "${srcdir}" || true
|
||||
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
apply_patch_with_msg \
|
||||
001-aarch64.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user