git: 82d5f86a111d - main - Uses/erlang.mk: add new native compiler hook
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 30 Nov 2022 08:04:03 UTC
The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=82d5f86a111d078023658fe72d8c3ba50465b969 commit 82d5f86a111d078023658fe72d8c3ba50465b969 Author: Dave Cottlehuber <dch@FreeBSD.org> AuthorDate: 2022-11-30 08:03:51 +0000 Commit: Dave Cottlehuber <dch@FreeBSD.org> 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