2015-06-25 13:18:41 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2015/06/25 13:18:41 jasper Exp $
|
2012-07-07 14:28:59 +00:00
|
|
|
|
|
|
|
COMMENT= Erlang build tool
|
|
|
|
|
2014-07-10 11:06:15 +00:00
|
|
|
GH_ACCOUNT= rebar
|
|
|
|
GH_PROJECT= rebar
|
2014-09-10 07:13:06 +00:00
|
|
|
GH_TAGNAME= 2.5.1
|
2014-07-10 11:06:15 +00:00
|
|
|
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME}
|
2015-06-25 13:18:41 +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
|
|
|
|
FLAVORS = erlang16 erlang17
|
|
|
|
FLAVOR ?= erlang16
|
|
|
|
|
|
|
|
.if ${FLAVOR:Merlang16}
|
|
|
|
RUN_DEPENDS = lang/erlang/16
|
2015-06-25 13:18:41 +00:00
|
|
|
ERL_VERSION = 16
|
2015-06-23 16:38:10 +00:00
|
|
|
.elif ${FLAVOR:Merlang17}
|
|
|
|
RUN_DEPENDS = lang/erlang/17
|
2015-06-25 13:18:41 +00:00
|
|
|
ERL_VERSION = 17
|
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>
|