Created
December 6, 2023 01:56
-
-
Save hansemro/a89cfe91f45996554b2f79c3044dd430 to your computer and use it in GitHub Desktop.
APKBUILD for libffts 0.9.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Hansem Ro <hansemro@outlook.com> | |
pkgname=ffts | |
_pkgver=0.9.0 | |
pkgver="$_pkgver"_git | |
pkgrel=0 | |
arch="all" | |
url="https://github.com/anthonix/ffts" | |
pkgdesc="libffts" | |
license="BSD" | |
makedepends=" | |
make | |
cmake | |
pkgconf | |
" | |
source=" | |
fix-non-sse2.patch | |
" | |
builddir="$srcdir/$pkgname" | |
options="!check" # No tests | |
prepare() { | |
git clone "https://github.com/anthonix/ffts.git" "$srcdir/$pkgname" | |
cd "$srcdir/$pkgname" | |
patch -Nup1 -i "$srcdir/fix-non-sse2.patch" || true | |
} | |
build() { | |
cmake -B build \ | |
-DENABLE_SHARED=ON \ | |
-DCMAKE_INSTALL_PREFIX=/usr | |
cmake --build build | |
} | |
package() { | |
DESTDIR="$pkgdir" cmake --install build | |
# Make abuild's version check happy by removing ffts- from version | |
sed -i "s/ffts-$_pkgver/$_pkgver/" "$pkgdir/usr/lib/pkgconfig/ffts.pc" | |
} | |
sha512sums=" | |
752b189d37e62058a39940601cee75534c9ec520ee7dc027d62bed28daaeae0591068eb1bddae7cf79c9d5e572baa5745cbe65319c952232498c72ca11f2dd14 fix-non-sse2.patch | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e0fe4b14a5cf6d6389df40d92c8505d68ffa042e Mon Sep 17 00:00:00 2001 | |
From: Nishidha Panpaliya <nishidha@us.ibm.com> | |
Date: Wed, 8 Jan 2020 10:22:37 +0000 | |
Subject: [PATCH] Fixed compilation error on Linux ppc64le | |
--- | |
src/ffts_trig.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/src/ffts_trig.c b/src/ffts_trig.c | |
index 1094be4..cd59d9f 100644 | |
--- a/src/ffts_trig.c | |
+++ b/src/ffts_trig.c | |
@@ -881,7 +881,7 @@ int | |
ffts_generate_cosine_sine_pow2_32f(ffts_cpx_32f *const table, int table_size) | |
{ | |
const ffts_cpx_64f *FFTS_RESTRICT ct; | |
- const double_t *FFTS_RESTRICT hs; | |
+ const ffts_double_t *FFTS_RESTRICT hs; | |
ffts_cpx_64f FFTS_ALIGN(16) w[32]; | |
int i, log_2, offset; | |
@@ -1136,4 +1136,4 @@ ffts_generate_table_1d_real_32f(struct _ffts_plan_t *const p, | |
} | |
return 0; | |
-} | |
\ No newline at end of file | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment