2014-03-27 13:29:54 +01:00
|
|
|
# Created by: Jaap Boender <jaapb@kerguelen.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= js_of_ocaml
|
2015-05-17 15:04:26 +02:00
|
|
|
PORTVERSION= 2.5
|
2014-03-27 13:29:54 +01:00
|
|
|
CATEGORIES= lang
|
|
|
|
|
2015-05-16 09:37:21 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-03-27 13:29:54 +01:00
|
|
|
COMMENT= OCaml to JavaScript compiler
|
|
|
|
|
2016-04-01 16:08:37 +02:00
|
|
|
BUILD_DEPENDS= ocaml-lwt>=2.3.0:devel/ocaml-lwt \
|
|
|
|
menhir:devel/menhir \
|
|
|
|
${SA_DIR}/deriving-ocsigen/deriving.a:devel/ocaml-deriving-ocsigen \
|
|
|
|
${SA_DIR}/cmdliner/cmdliner.a:devel/ocaml-cmdliner
|
|
|
|
RUN_DEPENDS= ocaml-lwt>=2.3.0:devel/ocaml-lwt \
|
|
|
|
${SA_DIR}/deriving-ocsigen/deriving.a:devel/ocaml-deriving-ocsigen \
|
|
|
|
${SA_DIR}/cmdliner/cmdliner.a:devel/ocaml-cmdliner
|
2014-03-27 13:29:54 +01:00
|
|
|
|
|
|
|
SA_DIR= ${PREFIX}/${OCAML_SITELIBDIR}
|
|
|
|
|
|
|
|
USES= gmake
|
|
|
|
USE_OCAML= yes
|
|
|
|
USE_OCAML_FINDLIB= yes
|
|
|
|
USE_OCAML_LDCONFIG= yes
|
2015-05-17 15:04:26 +02:00
|
|
|
USE_OCAML_CAMLP4= yes
|
2014-03-27 13:29:54 +01:00
|
|
|
USE_OCAMLFIND_PLIST= yes
|
|
|
|
|
2015-05-17 15:04:26 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ocsigen
|
2014-03-27 13:29:54 +01:00
|
|
|
|
2015-05-17 15:04:26 +02:00
|
|
|
PLIST_FILES+= bin/js_of_ocaml bin/jsoo_minify bin/jsoo_mkcmis \
|
|
|
|
bin/jsoo_mktop
|
|
|
|
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2014-03-27 13:29:54 +01:00
|
|
|
MAKE_ENV+= BINDIR=${STAGEDIR}${PREFIX}/bin \
|
|
|
|
DESTDIR=${STAGEDIR} \
|
|
|
|
OCAML_SITELIBDIR=${PREFIX}/lib/ocaml/site-lib
|
|
|
|
|
2015-05-17 15:04:26 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^BINDIR/d' ${WRKSRC}/Makefile.conf
|
|
|
|
|
2014-03-27 13:29:54 +01:00
|
|
|
.include <bsd.port.mk>
|