From nobody Thu Apr 28 15:23:11 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 09C0B1AAA44C; Thu, 28 Apr 2022 15:23:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpzsC6pzpz4YZK; Thu, 28 Apr 2022 15:23:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651159392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BWugLw6l+h+ODMS2UCFzoS1MHVegSzIIYW18zQnfJmU=; b=rDwfi1MBbqRC2QtdCaSSXyVI/2813SHbny1KaKJ4mgi7rpsVcN6qOvVdTAhoTNbHelUVvl yKMKKJBIcnVKKtYx2JKTgOUxTZm9recjrzHpalTZDgqwzd5tvG98So//lOnk4oKadgIUbD XWA+/H2D72TPejs/lQL8j7652D4XVaeiwG2tFiKQl7zUsk2cN7O5SdaikWqzwF1fp/q/TB CBI46a6kIlB1TyRRZKYvwGVakK2Ws4LO0Yvn0qUtfKLc/OsUXP3NH0mS6gYi5bSt1tlVU0 OuXK4w/q2aisI0J/4uw1B1H2BMVS9h3638cRLZKwUvaSPjiQqt/Z/iJT9Vie6w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C97A91AFAE; Thu, 28 Apr 2022 15:23:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23SFNBEk067907; Thu, 28 Apr 2022 15:23:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23SFNBg4067906; Thu, 28 Apr 2022 15:23:11 GMT (envelope-from git) Date: Thu, 28 Apr 2022 15:23:11 GMT Message-Id: <202204281523.23SFNBg4067906@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: 67e8adc75d76 - main - devel/qbe: add port qbe - an embeddable compiler backend List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 67e8adc75d76b3f82d144b862d79635cdc8379a3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651159392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BWugLw6l+h+ODMS2UCFzoS1MHVegSzIIYW18zQnfJmU=; b=dDzNkZPO/XPZ1zB9yvB03KFlFn60cMAfmKLPj+25UW3FEjOoeqnk64T7dqhkcMu4Jmox1V ykv4lz69EZoT7yV73uNUo9tSWFhy1ZBPovtttcOJk0EACA6tZO/dF/j7pdmBdAMvLgJcXh obNW6C1iynmucAOGsN92hKTTa3EE8D6GIcBlAwzvGtLKh/Pa0ccLBBx7uyD2lgUu+Hyxmp P1xA2rljAk49q5+c4YCDBH6ViMhKw1yJ4wKAdzp//GrVMXKfNJ8fPShO9AFfPV73TgFqA1 dHYXWv3Cvg2Z2QUcaTkmL+4dgHtlUW/+u6cRreAZRLT8GlmAJljY6Tz3wT+tig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651159392; a=rsa-sha256; cv=none; b=tWTuc/Vq+aZBZqMUzp2mK5AeBUO+0Cb8xbCYE27yHrAOeVeZ1Q4g4pKcYL2l350AY7QiVb Bai2u1N1p65+PTsbB31F5Slz5v4g6CBrpFuIduo5CrFDRMIl1NAtEZL5Ayu6n0bGZeT2/X xpHwFIf4qQ/M0IU29ZvRRqmBtqXsqF0rxVkeVHto0q81GpqvSL9hncSt0eTlC6wY/B44zf Arycl67/oUCStCzFm9/GNBIc0oJpBZ0geV23luoj/BKvtuFecA+WmF5Q2RZoG68Lic2IeX 100rY03Z359OCPFkGD96f6JuFThZDyjdtARdXFGXFQvf+kqquNIZQ2wZO9B2kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=67e8adc75d76b3f82d144b862d79635cdc8379a3 commit 67e8adc75d76b3f82d144b862d79635cdc8379a3 Author: Stefan Eßer AuthorDate: 2022-04-28 15:17:40 +0000 Commit: Stefan Eßer CommitDate: 2022-04-28 15:17:40 +0000 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). --- devel/Makefile | 1 + devel/qbe/Makefile | 25 +++++++++++++++++++++++++ devel/qbe/distinfo | 3 +++ devel/qbe/pkg-descr | 8 ++++++++ devel/qbe/pkg-plist | 6 ++++++ 5 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 22ac07480f7e..f586933c5a6e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5544,6 +5544,7 @@ SUBDIR += pysvn SUBDIR += pythontidy SUBDIR += pytype + SUBDIR += qbe SUBDIR += qbs SUBDIR += qca SUBDIR += qconf diff --git a/devel/qbe/Makefile b/devel/qbe/Makefile new file mode 100644 index 000000000000..b43b26674b4a --- /dev/null +++ b/devel/qbe/Makefile @@ -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 diff --git a/devel/qbe/distinfo b/devel/qbe/distinfo new file mode 100644 index 000000000000..a011990dadcb --- /dev/null +++ b/devel/qbe/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1651151683 +SHA256 (qbe-2caa26e388b.tar.gz) = 508b22d9792016627b56a04c9167e16cd9303c7d35c2630edefdd57a2bfaec4d +SIZE (qbe-2caa26e388b.tar.gz) = 351810 diff --git a/devel/qbe/pkg-descr b/devel/qbe/pkg-descr new file mode 100644 index 000000000000..5744f2509d90 --- /dev/null +++ b/devel/qbe/pkg-descr @@ -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/ diff --git a/devel/qbe/pkg-plist b/devel/qbe/pkg-plist new file mode 100644 index 000000000000..1477455a02aa --- /dev/null +++ b/devel/qbe/pkg-plist @@ -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