diff options
author | fhajny <fhajny@pkgsrc.org> | 2016-01-15 11:19:06 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2016-01-15 11:19:06 +0000 |
commit | 53a47b20c818cd84f447be637081512dfaef4026 (patch) | |
tree | 052a95d9c62cce46769418bfa91d51e0afeab311 /lang | |
parent | 211955e05eeb35ab86535b09fbfe9993f3c85a53 (diff) | |
download | pkgsrc-53a47b20c818cd84f447be637081512dfaef4026.tar.gz |
Add a simple Erlang module package helper.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/erlang/module.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/erlang/module.mk b/lang/erlang/module.mk new file mode 100644 index 00000000000..ae488ce9ddb --- /dev/null +++ b/lang/erlang/module.mk @@ -0,0 +1,24 @@ +# $NetBSD: module.mk,v 1.1 2016/01/15 11:19:06 fhajny Exp $ +# +# Simple Erlang module package framework +# + +PKGNAME?= erlang-${DISTNAME} + +BUILD_DEPENDS+= rebar-[0-9]*:../../devel/rebar + +USE_TOOLS+= gmake pax + +REBAR?= ${PREFIX}/bin/rebar +MAKE_FLAGS+= REBAR=${REBAR} + +ERL_MOD_NAME?= ${DISTNAME:C/-.*//} +ERL_MOD_DIR?= lib/erlang/lib/${ERL_MOD_NAME}-${PKGVERSION_NOREV} +INSTALLATION_DIRS+= ${ERL_MOD_DIR} + +do-install: + cd ${WRKSRC} && ${FIND} . \( \ + -name bin -o -name ebin -o -name include -o -name priv \) \ + -exec ${PAX} -rw -pp "{}" ${DESTDIR}${PREFIX}/${ERL_MOD_DIR} ";" + +.include "../../lang/erlang/buildlink3.mk" |