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