Add QBE Compiler Backend port (#10038)

This commit is contained in:
erysdren
2024-02-03 10:47:01 -06:00
committed by GitHub
parent a7cc1ec200
commit 039e83a80f

View File

@@ -0,0 +1,43 @@
SUMMARY="A small compiler backend"
DESCRIPTION="QBE is a compiler backend that aims to provide 70% of the \
performance of industrial optimizing compilers in 10% of the code. QBE \
fosters language innovation by offering a compact user-friendly and \
performant backend. The size limit constrains QBE to focus on the essential \
and prevents embarking on a never-ending path of diminishing returns."
HOMEPAGE="http://c9x.me/compile/"
COPYRIGHT="2015-2023 Quentin Carbonneaux"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://c9x.me/compile/release/qbe-1.1.tar.xz"
CHECKSUM_SHA256="7d0a53dd40df48072aae317e11ddde15d1a980673160e514e235b9ecaa1db12c"
ARCHITECTURES="all !x86_gcc2"
PROVIDES="
qbe = $portVersion
cmd:qbe
"
REQUIRES="
haiku
"
BUILD_PREREQUIRES="
haiku_devel
cmd:gcc
cmd:make
"
BUILD()
{
make $jobArgs CC=cc
}
INSTALL()
{
mkdir -p $docDir
cp -r $sourceDir/doc/* $docDir/
mkdir -p $binDir
cp $sourceDir/qbe $binDir/
}