From nobody Wed Nov 30 08:04:03 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 4NMWtr1FBgz4jCDb; Wed, 30 Nov 2022 08:04:04 +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 4NMWtr0jQrz480M; Wed, 30 Nov 2022 08:04:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669795444; 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=R0WmarD/KM63gDRJeRthernzo1DFhpnt+XK7edtvcFw=; b=dcCIRESfjMc10cQxveQKdMRJnNIA/c8wOgJ0DYYMrXwI05wEPEkx7ScpGjrr+mBDbPxsc0 j3CCFDMZnOcoksHuR5bo4k2klp67KEHgudB0iZ81VG6HJMnRS/vscF9DpFd6agb4afjg4F Psd1xldyYHh6SQkjMD0Igw5smik9OZMMG2KkAMQ0KT0jkMN89lEvxsDQ/ykMVgvwbv+uQs yHcqCgx6LFtVTk+xKrfvpQRE0hFWfhixf3sFtpz+Jn+6ItyoY3MAuztnvZI+PbmRemerZG UWD2kTXmRwPmGnnlaJcUPZYC/DWFKCQofzkJuayrzpMEwjIDvzI4MyXEfCMgcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669795444; 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=R0WmarD/KM63gDRJeRthernzo1DFhpnt+XK7edtvcFw=; b=CECatqcgihUIXRQuxpuePVgSJUZ66xXVFNGg0bVDRzkSvdCO7vDyhCxGElw2/8G9rifEGE camfb0T5mWDd/8DAbQ37jekM0KUKZtthhugr5pc7XQ9lATbxYpKq7RPjSK03K0WboUAAaf CPYrFVSoI0ayNA3Ku4Uw5slcUqGI1OC4ZEbbifiCrcI9urNntQO95fAyyeTpZz/4bCb16U HIV73dhVQFMQbcvJYBP48LvuxsilqbZSp36jO2nWhDprzN28dDnCbxHzMCE20nyyq+1nVZ mqBn0U6bpX3oR+tXLdpxZDtDCCtdhvJ5Ogt22td09KWpFcTAWVPU2KuF9dx4qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669795444; a=rsa-sha256; cv=none; b=NA1P0Glrd/7e3XSktUgxDfW/fWEI+CriUk7lkdOu/Hd4d/fT5zZDR3rspX7mTYHdzoRBsm mUU4goJkRtg6gvjvgRSoUKFGjZeyF//apJweBVnvbsaaazUlz7Eb4xDuo/Zcifn34/fXJP 0I6KAGw4N0lhU21YGR2aCixP6jYhpaC0RGK9MymOuTHy5cS3ZySiDVkFGzTELtB0NGWR21 N4VA+ay4WigQl5Jqap6b2/uZx5C/ocIeLXtzQLwGkrxGlXAo8LBgdjqpImyLk0Fy1SOzKV d48w+rmAKf1j1m/ryQpjOANf2apAFKSWzRnDCAhS6MXD2bXBAWlA3qvWCEEKBQ== 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 4NMWtq6srhzpmc; Wed, 30 Nov 2022 08:04:03 +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 2AU84356079487; Wed, 30 Nov 2022 08:04:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AU843gf079486; Wed, 30 Nov 2022 08:04:03 GMT (envelope-from git) Date: Wed, 30 Nov 2022 08:04:03 GMT Message-Id: <202211300804.2AU843gf079486@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dave Cottlehuber Subject: git: 82d5f86a111d - main - Uses/erlang.mk: add new native compiler hook 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: dch X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 82d5f86a111d078023658fe72d8c3ba50465b969 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=82d5f86a111d078023658fe72d8c3ba50465b969 commit 82d5f86a111d078023658fe72d8c3ba50465b969 Author: Dave Cottlehuber AuthorDate: 2022-11-30 08:03:51 +0000 Commit: Dave Cottlehuber CommitDate: 2022-11-30 08:03:51 +0000 Uses/erlang.mk: add new native compiler hook rebar2 -> rebar3 removed the very useful helper tools that allow compiling native code into the BEAM. enc is a small tool already in ports that provides this functionality. Sponsored by: SkunkWerks, GmbH --- Mk/Uses/erlang.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mk/Uses/erlang.mk b/Mk/Uses/erlang.mk index df6927c3d501..a4536fdf2ad1 100644 --- a/Mk/Uses/erlang.mk +++ b/Mk/Uses/erlang.mk @@ -2,7 +2,7 @@ # # Feature: erlang # Usage: USES=erlang -# Valid ARGS: rebar, rebar3, or no argument (custom build) +# Valid ARGS: rebar, rebar3, enc or no argument (custom build) # # Additional variables: # @@ -39,6 +39,10 @@ PLIST_SUB+= VERSION="${PORTVERSION}" BUILD_DEPENDS+= erl:lang/erlang RUN_DEPENDS+= erl:lang/erlang +. if ${erlang_ARGS:Menc} +BUILD_DEPENDS+= enc>=0:devel/erlang-native-compiler +. endif + . if ${erlang_ARGS:Mrebar} BUILD_DEPENDS+= rebar>=0:devel/rebar . endif