erlang-rebar.mk 1.0 KB

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