aboutsummaryrefslogtreecommitdiffstats
path: root/devel/aifad/Makefile
blob: 162ce918943f874ac0351e7258f13810729de324 (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
PORTNAME=	aifad
PORTVERSION=	2.3.1
CATEGORIES=	devel

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Machine learning system
WWW=		https://mmottl.github.io/aifad

LICENSE=	LGPL21+

BUILD_DEPENDS=	menhir:devel/menhir \
		ocaml-cfg>0:devel/ocaml-cfg \
		ocaml-pcre>0:devel/ocaml-pcre \
		ocaml-res>0:devel/ocaml-res
LIB_DEPENDS=	libpcre.so:devel/pcre

USE_GITHUB=	yes
GH_ACCOUNT=	mmottl

USES=		ocaml:dune

DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS=	CHANGES.md LICENSE.md README.md TODO.md
PORTEXAMPLES=	*
PLIST_FILES=	bin/aifad %%OCAML_SITELIBDIR%%/aifad/META \
		%%OCAML_SITELIBDIR%%/aifad/dune-package \
		%%OCAML_SITELIBDIR%%/aifad/opam
OPTIONS_DEFINE=	DOCS EXAMPLES

.include <bsd.port.options.mk>

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

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aifad

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>