From nobody Thu Oct 21 15:46:53 2021 X-Original-To: dev-commits-ports-all@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 7709C180A8B9; Thu, 21 Oct 2021 15:46:54 +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 4HZsKp00Yqz3Ndq; Thu, 21 Oct 2021 15:46:53 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 6EBD11DF21; Thu, 21 Oct 2021 15:46:53 +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 19LFkrvU072235; Thu, 21 Oct 2021 15:46:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19LFkrgm072234; Thu, 21 Oct 2021 15:46:53 GMT (envelope-from git) Date: Thu, 21 Oct 2021 15:46:53 GMT Message-Id: <202110211546.19LFkrgm072234@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: 5b6ee988cc92 - main - devel/wasi-compiler-rt13: Add new port. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4 commit 5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4 Author: Greg V AuthorDate: 2021-10-20 06:43:39 +0000 Commit: Mikael Urankar CommitDate: 2021-10-21 15:46:47 +0000 devel/wasi-compiler-rt13: Add new port. The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This port includes Clang builtins for WASI (WebAssembly System Interface). Differential Revision: https://reviews.freebsd.org/D32439 --- devel/Makefile | 1 + devel/wasi-compiler-rt13/Makefile | 49 ++++++++++++++++++++++++++++++++++++++ devel/wasi-compiler-rt13/distinfo | 3 +++ devel/wasi-compiler-rt13/pkg-descr | 7 ++++++ 4 files changed, 60 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5523b10b8fa1..74f4e414e689 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7143,6 +7143,7 @@ SUBDIR += wand-libconfig SUBDIR += wandio SUBDIR += wasi-compiler-rt11 + SUBDIR += wasi-compiler-rt13 SUBDIR += wasi-libc SUBDIR += wasi-libcxx SUBDIR += wasm3 diff --git a/devel/wasi-compiler-rt13/Makefile b/devel/wasi-compiler-rt13/Makefile new file mode 100644 index 000000000000..7a90a7c8f40b --- /dev/null +++ b/devel/wasi-compiler-rt13/Makefile @@ -0,0 +1,49 @@ +PORTNAME= compiler-rt +DISTVERSION= 13.0.0 +CATEGORIES= devel lang +MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \ + https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR} +PKGNAMEPREFIX= wasi- +PKGNAMESUFFIX= ${LLVM_SUFFIX} +DISTNAME= llvm-project-${DISTVERSION}.src +DISTFILES= llvm-project-${DISTVERSION}.src${EXTRACT_SUFX} + +MAINTAINER= greg@unrelenting.technology +COMMENT= Clang builtins library for WebAssembly System Interface + +LICENSE= LLVM2 +LICENSE_FILE= ${WRKSRC}/llvm/LICENSE.TXT +LICENSE_NAME= Apache License 2.0 with LLVM Exceptions +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +LLVM_RELEASE= ${DISTVERSION:C/rc.*//} +LLVM_SUFFIX= ${LLVM_RELEASE:C/\.[0-9]\.[0-9]$//} +LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX} + +WASI_SYSROOT= ${LOCALBASE}/share/wasi-sysroot + +BUILD_DEPENDS= ${WASI_SYSROOT}/include/stdarg.h:devel/wasi-libc \ + clang${LLVM_SUFFIX}:devel/llvm${LLVM_SUFFIX} + +USES= cmake tar:xz +NO_ARCH= yes + +PLIST_FILES= llvm${LLVM_SUFFIX}/lib/clang/${LLVM_RELEASE}/lib/wasi/libclang_rt.builtins-wasm32.a + +CC= ${LOCALBASE}/bin/clang${LLVM_SUFFIX} +CXX= ${LOCALBASE}/bin/clang++${LLVM_SUFFIX} + +CMAKE_SOURCE_PATH= ${WRKSRC}/compiler-rt/lib/builtins +CMAKE_INSTALL_PREFIX= ${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE} +CMAKE_ARGS= -DCMAKE_C_COMPILER_WORKS=1 \ + -DCMAKE_SYSROOT=${WASI_SYSROOT} \ + -DLLVM_CONFIG_PATH=${LOCALBASE}/bin/llvm-config${LLVM_SUFFIX} \ + -DCOMPILER_RT_OS_DIR=wasi \ + -DCOMPILER_RT_BAREMETAL_BUILD=TRUE \ + -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=wasm32-wasi \ + -DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=TRUE + +post-build: + ${LOCALBASE}/bin/llvm-ranlib${LLVM_SUFFIX} ${CONFIGURE_WRKSRC}/lib/wasi/*.a + +.include diff --git a/devel/wasi-compiler-rt13/distinfo b/devel/wasi-compiler-rt13/distinfo new file mode 100644 index 000000000000..065a7c5d1fab --- /dev/null +++ b/devel/wasi-compiler-rt13/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1633602220 +SHA256 (llvm-project-13.0.0.src.tar.xz) = 6075ad30f1ac0e15f07c1bf062c1e1268c241d674f11bd32cdf0e040c71f2bf3 +SIZE (llvm-project-13.0.0.src.tar.xz) = 97577404 diff --git a/devel/wasi-compiler-rt13/pkg-descr b/devel/wasi-compiler-rt13/pkg-descr new file mode 100644 index 000000000000..9f4dbd2d452c --- /dev/null +++ b/devel/wasi-compiler-rt13/pkg-descr @@ -0,0 +1,7 @@ +The LLVM Project is a collection of modular and reusable compiler and +toolchain technologies. + +This port includes Clang builtins for WASI +(WebAssembly System Interface). + +WWW: http://llvm.org/