ghc, ghc-bin: Add aarch64* support
This commit is contained in:
parent
b6e43cbe8f
commit
1c135efa57
|
@ -2,7 +2,7 @@
|
|||
pkgname=ghc-bin
|
||||
version=9.0.2
|
||||
revision=1
|
||||
archs="i686 x86_64* ppc64le* ppc64"
|
||||
archs="i686 x86_64* ppc64le* ppc64 aarch64*"
|
||||
wrksrc="ghc-${version%[!0-9]}"
|
||||
hostmakedepends="perl libffi libnuma"
|
||||
depends="ncurses perl gcc libffi-devel gmp-devel"
|
||||
|
@ -39,6 +39,16 @@ ppc64)
|
|||
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64-void-linux.tar.xz"
|
||||
checksum=6eb8684fdbede0cded7e3f7b93574b968f5f66dd2fcd4ec30ac5f0c402af6602
|
||||
;;
|
||||
aarch64)
|
||||
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux.tar.xz"
|
||||
checksum=44a20a896246dce64392b7d0feedd0a28a9d733245a803e95dbe4b4b7e15b4fd
|
||||
depends+=" llvm"
|
||||
;;
|
||||
aarch64-musl)
|
||||
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-aarch64-void-linux-musl.tar.xz"
|
||||
checksum=de98e2ff33a25cb32a28c738066fecacb736a33cac12688876eec4eb96d88607
|
||||
depends+=" llvm"
|
||||
;;
|
||||
*)
|
||||
broken="No distfiles available for this target"
|
||||
;;
|
||||
|
|
|
@ -54,6 +54,14 @@ elif [ "${XBPS_MACHINE%-*}" != "${XBPS_TARGET_MACHINE%-*}" ]; then
|
|||
configure_args+=" --host=${XBPS_TRIPLET} --target=${XBPS_CROSS_TRIPLET}"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
aarch64*)
|
||||
# GHC uses LLVM to generate code on aarch64
|
||||
hostmakedepends+=" llvm"
|
||||
depends+=" llvm"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Recent safe to use tarball
|
||||
# GHC's bundled tarball is from 2017, buggy on some archs
|
||||
_ffi_rev=4d6d2866ae43e55325e8ee96561221804602cd7a
|
||||
|
|
Loading…
Reference in New Issue