summaryrefslogtreecommitdiff
path: root/devel/ocaml-result/Makefile
blob: 53b1b72c8083868082c0f38e130ab2c2d645f4af (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
PORTNAME=	result
PORTVERSION=	1.5
PORTREVISION=	2
CATEGORIES=	devel
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Compatibility result module for OCaml
WWW=		https://github.com/janestreet/result

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.md

BUILD_DEPENDS=	dune:devel/ocaml-dune

USES=		gmake ocaml
USE_GITHUB=	yes
GH_ACCOUNT=	janestreet

ALL_TARGET=	default
MAKE_ENV=	LIBDIR=${PREFIX}/${OCAML_SITELIBDIR}

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc
USE_BINUTILS=	yes
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/result/result.cmxs

.include <bsd.port.mk>