2017-04-13 20:24:45 +02:00
|
|
|
# $NetBSD: module.mk,v 1.2 2017/04/13 18:24:45 fhajny Exp $
|
2016-01-15 12:19:06 +01:00
|
|
|
#
|
|
|
|
# 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}
|
|
|
|
|
2017-04-13 20:24:45 +02:00
|
|
|
# Used by some Erlang packages to use system deps
|
|
|
|
MAKE_ENV+= USE_GLOBAL_DEPS=true
|
|
|
|
|
2016-01-15 12:19:06 +01:00
|
|
|
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"
|