ucl: Enable aarch64 builds (#23509)
This commit is contained in:
parent
34f6478bfa
commit
26804dbd15
@ -4,22 +4,33 @@ _realname=ucl
|
|||||||
pkgbase=mingw-w64-${_realname}
|
pkgbase=mingw-w64-${_realname}
|
||||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||||
pkgver=1.03
|
pkgver=1.03
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Portable lossless data compression library written in ANSI C (mingw-w64)"
|
pkgdesc="Portable lossless data compression library written in ANSI C (mingw-w64)"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||||
url="https://www.oberhumer.com/opensource/ucl/"
|
url="https://www.oberhumer.com/opensource/ucl/"
|
||||||
license=('GPL')
|
msys2_repository_url="https://github.com/korczis/ucl"
|
||||||
|
license=('spdx:GPL-2.0')
|
||||||
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools"
|
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools"
|
||||||
"${MINGW_PACKAGE_PREFIX}-cc")
|
"${MINGW_PACKAGE_PREFIX}-cc")
|
||||||
source=("https://www.oberhumer.com/opensource/${_realname}/download/${_realname}-${pkgver}.tar.gz"
|
source=("https://www.oberhumer.com/opensource/${_realname}/download/${_realname}-${pkgver}.tar.gz"
|
||||||
"ucl-1.03-autoconf-compat.patch"
|
"ucl-1.03-autoconf-compat.patch"
|
||||||
"ucl-1.03-missing-macros.patch"
|
"ucl-1.03-missing-macros.patch"
|
||||||
"ucl-1.03-no-undefined.patch")
|
"ucl-1.03-no-undefined.patch"
|
||||||
|
"ucl-1.03-aarch64.patch")
|
||||||
sha256sums=('b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348'
|
sha256sums=('b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348'
|
||||||
'0cbd00a8383c098f98d5b022fcb4fa8d1448501e00221a223be04be0383bafc0'
|
'0cbd00a8383c098f98d5b022fcb4fa8d1448501e00221a223be04be0383bafc0'
|
||||||
'ed5425536d98e2097488001e6e73d2ed93da65050a6fded62435bec077bc594b'
|
'ed5425536d98e2097488001e6e73d2ed93da65050a6fded62435bec077bc594b'
|
||||||
'56a110aedab800c0a06cf4fd4dcef8f78691a0d091e2f143a2a8f02cfbb4c172')
|
'56a110aedab800c0a06cf4fd4dcef8f78691a0d091e2f143a2a8f02cfbb4c172'
|
||||||
|
'f94c63c8cfc30d7c8555462564cd1cc82205e1925dd87d83bdf4e8ed4d6b3d05')
|
||||||
|
|
||||||
|
apply_patch_with_msg() {
|
||||||
|
for _patch in "$@"
|
||||||
|
do
|
||||||
|
msg2 "Applying ${_patch}"
|
||||||
|
patch -Nbp1 --binary -i "${srcdir}/${_patch}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}"/${_realname}-${pkgver}
|
cd "${srcdir}"/${_realname}-${pkgver}
|
||||||
@ -27,10 +38,12 @@ prepare() {
|
|||||||
rm -f acinclude.m4
|
rm -f acinclude.m4
|
||||||
rm -f m4/local.m4
|
rm -f m4/local.m4
|
||||||
|
|
||||||
patch -Np1 -i "${srcdir}/ucl-1.03-autoconf-compat.patch"
|
apply_patch_with_msg \
|
||||||
patch -Np1 -i "${srcdir}/ucl-1.03-missing-macros.patch"
|
ucl-1.03-autoconf-compat.patch \
|
||||||
patch -Np1 -i "${srcdir}/ucl-1.03-no-undefined.patch"
|
ucl-1.03-missing-macros.patch \
|
||||||
|
ucl-1.03-no-undefined.patch \
|
||||||
|
ucl-1.03-aarch64.patch
|
||||||
|
|
||||||
touch ChangeLog
|
touch ChangeLog
|
||||||
WANT_AUTOMAKE=latest autoreconf -fiv
|
WANT_AUTOMAKE=latest autoreconf -fiv
|
||||||
}
|
}
|
||||||
@ -41,9 +54,6 @@ build() {
|
|||||||
CFLAGS+=" -std=gnu90"
|
CFLAGS+=" -std=gnu90"
|
||||||
../${_realname}-${pkgver}/configure \
|
../${_realname}-${pkgver}/configure \
|
||||||
--prefix=${MINGW_PREFIX} \
|
--prefix=${MINGW_PREFIX} \
|
||||||
--build=${MINGW_CHOST} \
|
|
||||||
--host=${MINGW_CHOST} \
|
|
||||||
--target=${MINGW_CHOST} \
|
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--enable-shared
|
--enable-shared
|
||||||
|
|
||||||
|
|||||||
13
mingw-w64-ucl/ucl-1.03-aarch64.patch
Normal file
13
mingw-w64-ucl/ucl-1.03-aarch64.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -bur ucl-1.03-orig/acc/acc_arch.h ucl-1.03/acc/acc_arch.h
|
||||||
|
--- ucl-1.03-orig/acc/acc_arch.h 2025-02-25 05:25:26 -0700
|
||||||
|
+++ ucl-1.03/acc/acc_arch.h 2025-02-25 05:37:23 -0700
|
||||||
|
@@ -74,6 +74,9 @@
|
||||||
|
# error "missing define for CPU architecture"
|
||||||
|
#elif (ACC_OS_WIN64)
|
||||||
|
/* # error "missing define for CPU architecture" */
|
||||||
|
+ #if defined(__aarch64__) || defined(_M_ARM64)
|
||||||
|
+ # define ACC_INFO_ARCH "arm64"
|
||||||
|
+ #endif
|
||||||
|
#elif (ACC_OS_TOS) || defined(__m68000__)
|
||||||
|
# define ACC_ARCH_M68K 1
|
||||||
|
# define ACC_INFO_ARCH "m68k"
|
||||||
Loading…
x
Reference in New Issue
Block a user