mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/gf2x: adopt aport
This commit is contained in:
parent
254df081bf
commit
8aaec1ff6e
@ -1,15 +1,17 @@
|
||||
# Contributor: Alex Yam <alex@alexyam.com>
|
||||
# Maintainer: Alex Yam <alex@alexyam.com>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=gf2x
|
||||
pkgver=1.3.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="library for multiplying polynomials over the binary field"
|
||||
url="https://gitlab.inria.fr/gf2x/gf2x/"
|
||||
arch="all"
|
||||
license="GPL-3.0-or-later"
|
||||
makedepends="autoconf automake libtool"
|
||||
subpackages="$pkgname-dev"
|
||||
source="https://gitlab.inria.fr/gf2x/gf2x/-/archive/gf2x-$pkgver/gf2x-gf2x-$pkgver.tar.bz2"
|
||||
source="https://gitlab.inria.fr/gf2x/gf2x/-/archive/gf2x-$pkgver/gf2x-gf2x-$pkgver.tar.bz2
|
||||
gcc14.patch
|
||||
"
|
||||
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
@ -24,6 +26,9 @@ build() {
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--localstatedir=/var \
|
||||
--enable-fft-interface
|
||||
make
|
||||
}
|
||||
@ -36,4 +41,7 @@ package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="2872d8ddeb1fd3966f8711573d6c090975fcd9acfa302f7537ebfa3350e83af224bfd18a33ea1106d81ab900c96413e413c04ba506d8bf928bb92b670c24d857 gf2x-gf2x-1.3.0.tar.bz2"
|
||||
sha512sums="
|
||||
2872d8ddeb1fd3966f8711573d6c090975fcd9acfa302f7537ebfa3350e83af224bfd18a33ea1106d81ab900c96413e413c04ba506d8bf928bb92b670c24d857 gf2x-gf2x-1.3.0.tar.bz2
|
||||
2ca5c8c22eedda1b2e0d39927de922ccc152b924ae4e140f147a7883386cc65ef57fc369b246ed6d8ae6fc52d118554a1b7ee1a04385fd2e956aef3ae668b345 gcc14.patch
|
||||
"
|
||||
|
15
testing/gf2x/gcc14.patch
Normal file
15
testing/gf2x/gcc14.patch
Normal file
@ -0,0 +1,15 @@
|
||||
../lowlevel/gen_bb_mul_code.c: In function 'main':
|
||||
../lowlevel/gen_bb_mul_code.c:95:17: error: C++ style comments are not allowed in ISO C90
|
||||
95 | // continue; /* mul_1_n is no longer used */
|
||||
| ^
|
||||
|
||||
--- a/lowlevel/gen_bb_mul_code.c
|
||||
+++ b/lowlevel/gen_bb_mul_code.c
|
||||
@@ -92,7 +92,6 @@
|
||||
printf("GF2X_STORAGE_CLASS_mul1 void\n");
|
||||
printf("gf2x_mul1 (unsigned long *c, unsigned long a, unsigned long b)\n");
|
||||
} else if (fn == 1) {
|
||||
- // continue; /* mul_1_n is no longer used */
|
||||
printf("GF2X_STORAGE_CLASS_mul_1_n unsigned long\n");
|
||||
printf
|
||||
("gf2x_mul_1_n (unsigned long *cp, const unsigned long *bp, long sb, unsigned long a)\n");
|
Loading…
Reference in New Issue
Block a user