44 lines
915 B
Makefile
44 lines
915 B
Makefile
# $OpenBSD: Makefile,v 1.26 2021/02/19 03:58:34 gnezdo Exp $
|
|
|
|
COMMENT= Erlang build tool
|
|
|
|
GH_TAGNAME= 2.6.4
|
|
GH_ACCOUNT= rebar
|
|
GH_PROJECT= rebar
|
|
FULLPKGNAME = rebar${ERL_VERSION}-${GH_TAGNAME}
|
|
REVISION = 2
|
|
|
|
CATEGORIES= devel lang/erlang
|
|
|
|
HOMEPAGE= https://github.com/rebar/rebar
|
|
|
|
# APLv2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
# This port cannot use the erlang module for the module depends on this port.
|
|
# Keep in sync with erlang.port.mk
|
|
FLAVORS = erlang21
|
|
FLAVOR ?= erlang21
|
|
|
|
.if ${FLAVOR:Merlang21}}
|
|
_EV = ${FLAVOR:C/.*([0-9][0-9]+\$)/\1/}
|
|
RUN_DEPENDS = lang/erlang/${_EV}
|
|
ERL_VERSION = ${_EV}
|
|
.else
|
|
ERRORS += "Invalid FLAVOR set: ${FLAVOR}"
|
|
.endif
|
|
|
|
BUILD_DEPENDS += ${RUN_DEPENDS}
|
|
|
|
SUBST_VARS += ERL_VERSION
|
|
|
|
NO_TEST= Yes
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/bootstrap ${WRKSRC}/src/rebar_escripter.erl
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rebar ${PREFIX}/bin/rebar${ERL_VERSION}
|
|
|
|
.include <bsd.port.mk>
|