aboutsummaryrefslogtreecommitdiffstats
path: root/math/ocaml-zarith/Makefile
blob: c590547230863a0a46ab27afde04049cf5c5dc11 (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
43
44
45
46
47
48
49
50
PORTNAME=	${GH_PROJECT:tl}
PORTVERSION=	1.13
DISTVERSIONPREFIX=	release-
PORTREVISION=	2
CATEGORIES=	math
PKGNAMEPREFIX=	ocaml-

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	OCaml arithmetic library for arbitrary precision integers
WWW=		https://forge.ocamlcore.org/projects/zarith

LICENSE=	LGPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgmp.so:math/gmp

USES=		gmake localbase:ldflags ocaml:findlib,ldconfig tar:tgz
USE_GITHUB=	yes
GH_ACCOUNT=	ocaml
GH_PROJECT=	Zarith

HAS_CONFIGURE=	yes
ALL_TARGET=	all
CONFIGURE_ENV=	DESTDIR=${STAGEDIR}

MAKE_JOBS_UNSAFE=	yes

PORTDOCS=	html
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}

OPTIONS_DEFINE=	DOCS

DOCS_ALL_TARGET=doc

.include <bsd.port.options.mk>

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

post-install:
	@${STRIP_CMD} \
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/dllzarith.so \
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/zarith.cmxs

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${MV} ${WRKSRC}/html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>