bcallah 87d135f263 Import lang/qbe, a small, quick compiler backend.
ok op@

QBE is a compiler backend. It 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.
2022-04-13 14:11:36 +00:00

38 lines
818 B
Makefile

# Probably builds on all archs, but only generates assembly for these three
ONLY_FOR_ARCHS = amd64 arm64 riscv64
COMMENT = small, quick compiler backend
DISTNAME = qbe-0.0.0
PKGNAME = ${DISTNAME}pl20220411
CATEGORIES = lang devel
# No releases yet, so I set up a mirror for easy package maintenance
GH_ACCOUNT = ibara
GH_PROJECT = qbe
GH_TAGNAME = 2caa26e388b1c904d2f12fb09f84df7e761d8331
HOMEPAGE = https://c9x.me/compile/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# MIT
PERMIT_PACKAGE = Yes
WANTLIB += c
DEBUG_PACKAGES = ${BUILD_PACKAGES}
USE_GMAKE = Yes
ALL_TARGET = obj/qbe
MAKE_FLAGS = V=
FAKE_FLAGS = DESTDIR=
TEST_TARGET = check
# Install documentation
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/qbe
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/qbe
.include <bsd.port.mk>