pkgsrc/devel/rebar21/Makefile
jperkin 081cd65984 rebar21: Import copy of rebar-2.6.4 for Erlang 21.
This is identical to devel/rebar but is specifically built against
lang/erlang21 for dependencies that are incompatible with OTP 23.
2021-01-27 16:16:44 +00:00

28 lines
764 B
Makefile

# $NetBSD: Makefile,v 1.1 2021/01/27 16:16:44 jperkin Exp $
DISTNAME= rebar-2.6.4
PKGNAME= ${DISTNAME:S/rebar/rebar21/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=rebar/}
MAINTAINER= reinoud@NetBSD.org
HOMEPAGE= https://github.com/rebar/rebar/
COMMENT= Rebar is an Erlang build tool
LICENSE= apache-2.0
USE_TOOLS+= gmake
AUTO_MKDIRS= yes
CONFLICTS+= rebar>2 rebar3-[0-9]*
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rebar ${DESTDIR}${PREFIX}/bin/rebar
SUBST_CLASSES+= shebang
SUBST_FILES.shebang= src/rebar_escripter.erl
SUBST_FILES.shebang+= bootstrap
SUBST_SED.shebang+= -e 's,/usr/bin/env escript,${PREFIX}/lib/erlang21/bin/escript,'
SUBST_STAGE.shebang= pre-configure
.include "../../lang/erlang21/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"