blob: b46755a06374b3391033ee05eafc2c5117e64685 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= stdio
PORTVERSION= 0.17.0
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= freebsd@dev.thsi.be
COMMENT= Standard IO library for Objective-Caml
WWW= https://github.com/janestreet/stdio
LICENSE= MIT
BUILD_DEPENDS= ${SA_DIR}/base/META:devel/ocaml-base
RUN_DEPENDS= ${SA_DIR}/base/META:devel/ocaml-base
USES= ocaml:dune,ldconfig
USE_GITHUB= yes
GH_ACCOUNT= janestreet
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= CHANGES.md LICENSE.md README.md odoc-pages
OPTIONS_DEFINE= DOCS
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
USE_BINUTILS= yes
.endif
post-patch:
@${REINPLACE_CMD} \
-e "s/(lang dune 3.11)/(lang dune 3.7)/" \
${WRKSRC}/dune-project
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/${PORTNAME}.cmxs
.include <bsd.port.mk>
|