9299069374
Decode and encode JSON into/from Erlang terms using Elang NIF library if available.. This the module used in CouchDB project ported a standalone module with rebar support. ok aja@
38 lines
873 B
Makefile
38 lines
873 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2013/03/08 11:54:39 jasper Exp $
|
|
|
|
COMMENT= decode/encode JSON into/from Erlang terms
|
|
|
|
VERSION= 0.1
|
|
DISTNAME= ejson-${VERSION}
|
|
PKGNAME= erl-${DISTNAME}
|
|
CATEGORIES= devel lang/erlang
|
|
|
|
HOMEPAGE= https://github.com/kevsmith/ejson
|
|
|
|
# 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= lang/erlang \
|
|
www/erl-mochiweb
|
|
|
|
USE_GMAKE= Yes
|
|
REGRESS_TARGET= check
|
|
|
|
ERL_LIBDIR= ${PREFIX}/lib/erlang/lib/${DISTNAME}
|
|
SUBST_VARS+= VERSION
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${ERL_LIBDIR}/{ebin,priv,src}
|
|
${INSTALL_DATA} ${WRKSRC}/ebin/*.{app,beam} ${ERL_LIBDIR}/ebin/
|
|
${INSTALL_DATA} ${WRKSRC}/priv/* ${ERL_LIBDIR}/priv/
|
|
${INSTALL_DATA} ${WRKSRC}/src/*.erl ${ERL_LIBDIR}/src/
|
|
|
|
.include <bsd.port.mk>
|