2018-12-31 10:13:13 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2018/12/31 10:13:13 jasper Exp $
|
2012-07-07 14:28:59 +00:00
|
|
|
|
|
|
|
COMMENT= Erlang build tool
|
|
|
|
|
2016-08-17 13:54:08 +00:00
|
|
|
GH_TAGNAME= 2.6.2
|
2014-07-10 11:06:15 +00:00
|
|
|
GH_ACCOUNT= rebar
|
|
|
|
GH_PROJECT= rebar
|
2015-06-25 14:28:33 +00:00
|
|
|
FULLPKGNAME = rebar${ERL_VERSION}-${GH_TAGNAME}
|
2018-12-31 10:13:13 +00:00
|
|
|
REVISION= 1
|
2012-07-07 14:28:59 +00:00
|
|
|
|
|
|
|
CATEGORIES= devel lang/erlang
|
|
|
|
|
2014-03-09 19:49:54 +00:00
|
|
|
HOMEPAGE= https://github.com/rebar/rebar
|
2012-07-07 14:28:59 +00:00
|
|
|
|
|
|
|
# APLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2015-06-23 16:38:10 +00:00
|
|
|
# This port cannot use the erlang module for the module depends on this port.
|
|
|
|
# Keep in sync with erlang.port.mk
|
2018-12-31 10:13:13 +00:00
|
|
|
FLAVORS = erlang16 erlang17 erlang18 erlang19 erlang21
|
2015-06-23 16:38:10 +00:00
|
|
|
FLAVOR ?= erlang16
|
|
|
|
|
2016-06-27 11:52:17 +00:00
|
|
|
.if ${FLAVOR:Merlang16} || ${FLAVOR:Merlang17} || ${FLAVOR:Merlang18} \
|
2018-12-31 10:13:13 +00:00
|
|
|
|| ${FLAVOR:Merlang19 || ${FLAVOR:Merlang21}}
|
2016-06-27 11:52:17 +00:00
|
|
|
_EV = ${FLAVOR:C/.*([0-9][0-9]+\$)/\1/}
|
|
|
|
RUN_DEPENDS = lang/erlang/${_EV}
|
|
|
|
ERL_VERSION = ${_EV}
|
2015-06-23 16:38:10 +00:00
|
|
|
.else
|
|
|
|
ERRORS += "Invalid FLAVOR set: ${FLAVOR}"
|
|
|
|
.endif
|
|
|
|
|
2015-06-25 13:18:41 +00:00
|
|
|
BUILD_DEPENDS += ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
SUBST_VARS += ERL_VERSION
|
2012-07-07 14:28:59 +00:00
|
|
|
|
2013-03-11 10:50:00 +00:00
|
|
|
NO_TEST= Yes
|
2012-07-07 14:28:59 +00:00
|
|
|
|
2015-06-25 13:18:41 +00:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/bootstrap ${WRKSRC}/src/rebar_escripter.erl
|
|
|
|
|
2012-07-07 14:28:59 +00:00
|
|
|
do-install:
|
2015-06-25 13:18:41 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rebar ${PREFIX}/bin/rebar${ERL_VERSION}
|
2012-07-07 14:28:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|