blob: 70aa7fdac4d983a30ee69f136016e8942ec8f46f (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
# $FreeBSD$
PORTNAME= lacaml
PORTVERSION= 7.0.7
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://cdn.bitbucket.org/mmottl/lacaml/downloads/
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= OCaml interface to BLAS and LAPACK libraries
LICENSE= LGPL21
LIB_DEPENDS= blas:${PORTSDIR}/math/blas \
lapack:${PORTSDIR}/math/lapack
OPTIONS_DEFINE= DOCS EXAMPLES
USE_OCAML= yes
USE_OCAML_FINDLIB=yes
USE_OCAMLFIND_PLIST=yes
USE_OCAML_LDCONFIG=yes
USE_OCAML_WASH= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs --disable-examples \
--override conf_ccopt "${CFLAGS}" \
--override conf_cclib "${LDFLAGS:S,^.*[[:space:]],,}"
MAKE_JOBS_UNSAFE=yes
CFLAGS+= -fPIC
LDFLAGS+= -L${LOCALBASE}/lib -lblas -llapack
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
PLIST_DIRSTRY+= ${OCAML_DOCSDIR:S,^${PREFIX}/,,}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
PLIST_DIRSTRY+= ${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in AUTHORS.txt CHANGES.txt README.md TODO.md
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
|