0f9c0bf3d5
Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/bin' | xargs sed -i 's%$(HOST_DIR)/usr/bin%$(HOST_DIR)/bin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
32 lines
1.0 KiB
Makefile
32 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# erlang-rebar
|
|
#
|
|
################################################################################
|
|
|
|
ERLANG_REBAR_VERSION = 2.6.4
|
|
|
|
# Upstream publishes a release, but we can not use it as it is a release of
|
|
# a generated rebar script, when we want the sources. So we have to use the
|
|
# gihub helper in this case.
|
|
ERLANG_REBAR_SITE = $(call github,rebar,rebar,$(ERLANG_REBAR_VERSION))
|
|
|
|
# Although the file LICENSE state Apache-2.0, a lot (if not all) the files
|
|
# in src/ bear the MIT licence.
|
|
ERLANG_REBAR_LICENSE = Apache-2.0, MIT
|
|
ERLANG_REBAR_LICENSE_FILES = LICENSE
|
|
|
|
# We do not have a target variant, so just define the dependencies,
|
|
# configure and build commands for the host variant.
|
|
HOST_ERLANG_REBAR_DEPENDENCIES = host-erlang
|
|
|
|
define HOST_ERLANG_REBAR_BUILD_CMDS
|
|
cd $(@D) && $(HOST_MAKE_ENV) $(MAKE)
|
|
endef
|
|
|
|
define HOST_ERLANG_REBAR_INSTALL_CMDS
|
|
$(INSTALL) -m 0755 -D $(@D)/rebar $(HOST_DIR)/bin/rebar
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|