1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

devel/qbe: add port qbe - an embeddable compiler backend

The qbe program translates intermediate language (IL) code into
assembler code of supported processors (amd64, arm64, and riscv64).
This commit is contained in:
Stefan Eßer 2022-04-28 17:17:40 +02:00
parent 5c352cfbb4
commit 67e8adc75d
5 changed files with 43 additions and 0 deletions

View File

@ -5544,6 +5544,7 @@
SUBDIR += pysvn
SUBDIR += pythontidy
SUBDIR += pytype
SUBDIR += qbe
SUBDIR += qbs
SUBDIR += qca
SUBDIR += qconf

25
devel/qbe/Makefile Normal file
View File

@ -0,0 +1,25 @@
PORTNAME= qbe
DISTVERSION= g20220411
CATEGORIES= devel
MASTER_SITES= https://c9x.me/git/qbe.git/snapshot/
DISTNAME= qbe-2caa26e388b
MAINTAINER= se@FreeBSD.org
COMMENT= Embeddable compiler backend for C type languages
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC}; ${GMAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/obj/qbe ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>

3
devel/qbe/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1651151683
SHA256 (qbe-2caa26e388b.tar.gz) = 508b22d9792016627b56a04c9167e16cd9303c7d35c2630edefdd57a2bfaec4d
SIZE (qbe-2caa26e388b.tar.gz) = 351810

8
devel/qbe/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
QBE aims to be a pure C embeddable backend that provides 70% of
the performance of advanced compilers in 10% of the code.
Its small size serves both its aspirations of correctness and
our ability to understand, fix, and improve it. It also serves
its users by providing trivial integration and great flexibility.
WWW: https://c9x.me/compile/

6
devel/qbe/pkg-plist Normal file
View File

@ -0,0 +1,6 @@
bin/qbe
%%PORTDOCS%%%%DOCSDIR%%/abi.txt
%%PORTDOCS%%%%DOCSDIR%%/il.txt
%%PORTDOCS%%%%DOCSDIR%%/llvm.txt
%%PORTDOCS%%%%DOCSDIR%%/rv64.txt
%%PORTDOCS%%%%DOCSDIR%%/win.txt