# $OpenBSD: Makefile,v 1.1.1.1 2013/03/08 11:57:32 jasper Exp $ COMMENT= expose Erlang events and metrics VERSION= 0.7.4 DISTNAME= folsom-${VERSION} PKGNAME= erl-${DISTNAME} CATEGORIES= devel lang/erlang HOMEPAGE= https://github.com/boundary/jiffy # Apache2 PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_FTP= Yes MASTER_SITES= http://distfiles.nl/ TAR= ${LOCALBASE}/bin/gtar BUILD_DEPENDS= archivers/gtar \ devel/rebar RUN_DEPENDS= devel/erl-automeck \ devel/erl-bear \ lang/erlang ERL_LIBDIR= ${PREFIX}/lib/erlang/lib/${DISTNAME} SUBST_VARS+= VERSION pre-configure: ${SUBST_CMD} ${WRKSRC}/src/folsom.app.src do-build: cd ${WRKSRC} && ${LOCALBASE}/bin/rebar compile do-regress: cd ${WRKSRC} && ${LOCALBASE}/bin/rebar eunit do-install: ${INSTALL_DATA_DIR} ${ERL_LIBDIR}/{ebin,include,src} ${INSTALL_DATA} ${WRKSRC}/ebin/*.{app,beam} ${ERL_LIBDIR}/ebin/ ${INSTALL_DATA} ${WRKSRC}/include/*.hrl ${ERL_LIBDIR}/include/ ${INSTALL_DATA} ${WRKSRC}/src/*.erl ${ERL_LIBDIR}/src/ .include