34 lines
846 B
Bash
34 lines
846 B
Bash
# Template file for 'qbe'
|
|
pkgname=qbe
|
|
version=1.2
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
short_desc="Small embeddable C compiler backend"
|
|
maintainer="Bryce Vandegrift <bryce@brycevandegrift.xyz>"
|
|
license="MIT"
|
|
homepage="https://c9x.me/compile/"
|
|
distfiles="https://c9x.me/compile/release/qbe-${version}.tar.xz"
|
|
checksum=a6d50eb952525a234bf76ba151861f73b7a382ac952d985f2b9af1df5368225d
|
|
|
|
# Currently only riscv64, aarch64 and x86_64 targets are supported and the checks
|
|
# test the compiled binaries.
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) ;;
|
|
aarch64*) make_check_args="TARGET=arm64" ;;
|
|
riscv64*) make_check_args="TARGET=rv64" ;;
|
|
*) make_check=no # no tests for other architectures ;;
|
|
esac
|
|
|
|
post_patch() {
|
|
vsed -e '/^CC/d' -i Makefile
|
|
}
|
|
|
|
post_install() {
|
|
vdoc doc/abi.txt
|
|
vdoc doc/il.txt
|
|
vdoc doc/llvm.txt
|
|
|
|
vlicense LICENSE
|
|
}
|