xref: /OK3568_Linux_fs/buildroot/package/erlang-rebar/erlang-rebar.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# erlang-rebar
4#
5################################################################################
6
7ERLANG_REBAR_VERSION = 2.6.4
8
9# Upstream publishes a release, but we can not use it as it is a release of
10# a generated rebar script, when we want the sources. So we have to use the
11# gihub helper in this case.
12ERLANG_REBAR_SITE = $(call github,rebar,rebar,$(ERLANG_REBAR_VERSION))
13
14# Although the file LICENSE state Apache-2.0, a lot (if not all) the files
15# in src/ bear the MIT licence.
16ERLANG_REBAR_LICENSE = Apache-2.0, MIT
17ERLANG_REBAR_LICENSE_FILES = LICENSE
18
19# We do not have a target variant, so just define the dependencies,
20# configure and build commands for the host variant.
21HOST_ERLANG_REBAR_DEPENDENCIES = host-erlang
22
23define HOST_ERLANG_REBAR_BUILD_CMDS
24	cd $(@D) && $(HOST_MAKE_ENV) $(MAKE)
25endef
26
27define HOST_ERLANG_REBAR_INSTALL_CMDS
28	$(INSTALL) -m 0755 -D $(@D)/rebar $(HOST_DIR)/bin/rebar
29endef
30
31$(eval $(host-generic-package))
32