View | Details | Raw Unified | Return to bug 172229 | Differences between
and this patch

Collapse All | Expand All

(-)devel/ocaml-lacaml/Makefile (-51 / +36 lines)
Lines 2-78 Link Here
2
# $FreeBSD: ports/devel/ocaml-lacaml/Makefile,v 1.21 2012/10/26 14:57:50 bapt Exp $
2
# $FreeBSD: ports/devel/ocaml-lacaml/Makefile,v 1.21 2012/10/26 14:57:50 bapt Exp $
3
3
4
PORTNAME=	lacaml
4
PORTNAME=	lacaml
5
PORTVERSION=	5.4.7
5
PORTVERSION=	7.0.3
6
PORTREVISION=	1
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	http://hg.ocaml.info/release/lacaml/archive/
7
MASTER_SITES=	http://cdn.bitbucket.org/mmottl/lacaml/downloads/
9
DISTNAME=	release-${PORTVERSION}
10
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
11
9
12
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
13
COMMENT=	OCaml interface to BLAS and LAPACK libraries
11
COMMENT=	OCaml interface to BLAS and LAPACK libraries
14
12
15
DEPRECATED=	No more public distfiles
13
LICENSE=	LGPL21
16
EXPIRATION_DATE=	2012-11-26
17
14
18
LIB_DEPENDS=	blas.2:${PORTSDIR}/math/blas \
15
LIB_DEPENDS=	blas:${PORTSDIR}/math/blas \
19
		lapack.4:${PORTSDIR}/math/lapack
16
		lapack:${PORTSDIR}/math/lapack
17
18
OPTIONS_DEFINE=	DOCS EXAMPLES
20
19
21
USE_BZIP2=	yes
22
USE_GMAKE=	yes
23
USE_OCAML=	yes
20
USE_OCAML=	yes
24
USE_OCAML_FINDLIB=yes
21
USE_OCAML_FINDLIB=yes
22
USE_OCAMLFIND_PLIST=yes
25
USE_OCAML_LDCONFIG=yes
23
USE_OCAML_LDCONFIG=yes
26
USE_OCAML_WASH=	yes
24
USE_OCAML_WASH=	yes
27
WRKSRC=		${WRKDIR}/lacaml-${DISTNAME}
25
26
HAS_CONFIGURE=	yes
27
CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples \
28
		--override conf_ccopt "${CFLAGS}" \
29
		--override conf_cclib "${LDFLAGS:S,^.*[[:space:]],,}"
30
MAKE_JOBS_UNSAFE=yes
28
31
29
CFLAGS+=	-fPIC
32
CFLAGS+=	-fPIC
30
MAKE_ENV+=	OCAMLMKLIB_FLAGS="-L${LOCALBASE}/lib"
33
LDFLAGS+=	-L${LOCALBASE}/lib -lblas -llapack
31
MAKE_JOBS_UNSAFE=	yes
34
35
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
36
EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
37
38
PORTDOCS=	*
39
PORTEXAMPLES=	*
32
40
33
DOCS=		README.txt TODO
41
.include <bsd.port.options.mk>
34
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
42
35
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
43
.if ${PORT_OPTIONS:MDOCS}
36
44
PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
37
.include <bsd.port.pre.mk>
38
39
post-extract:
40
#
41
# CFLAGS safety
42
#
43
	@${REINPLACE_CMD} -E \
44
		-e 's,^(CFLAGS[[:space:]]*:=[[:space:]]*).*,\1${CFLAGS},' \
45
		${WRKSRC}/lib/Makefile
46
47
# For nonstandard prefixes
48
.if !exists(${OCAMLFIND_DESTDIR})
49
	${MKDIR} ${OCAMLFIND_DESTDIR}
50
.endif
45
.endif
51
.if !exists(${OCAMLFIND_LDCONF})
46
52
	${TOUCH} ${OCAMLFIND_LDCONF}
47
.if ${PORT_OPTIONS:MEXAMPLES}
48
PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
53
.endif
49
.endif
54
50
55
post-install:
51
post-install:
56
	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
52
.if ${PORT_OPTIONS:MDOCS}
57
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
58
.if !defined(NOPORTDOCS)
59
	@${MKDIR} ${DOCSDIR}
53
	@${MKDIR} ${DOCSDIR}
60
	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
54
.for i in AUTHORS.txt CHANGES.txt README.md TODO.md
55
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
56
.endfor
57
.endif
58
.if ${PORT_OPTIONS:MEXAMPLES}
61
	@${MKDIR} ${EXAMPLESDIR}
59
	@${MKDIR} ${EXAMPLESDIR}
62
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
60
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
63
	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
64
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
65
	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
66
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
67
	@${FIND} ${DOCSDIR}/ ! -type d | \
68
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
69
	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
70
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
71
# XXX: temporary workaround for non-standard PREFIX
72
	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
73
		>> ${TMPPLIST}
74
	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
75
		>> ${TMPPLIST}
76
.endif
61
.endif
77
62
78
.include <bsd.port.post.mk>
63
.include <bsd.port.mk>
(-)devel/ocaml-lacaml/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (release-5.4.7.tar.bz2) = 87a833aa88c22accbf340a61dcf21f542def8d401be14df67ab4390f15cf8460
1
SHA256 (lacaml-7.0.3.tar.gz) = 3ebd0b35ae0e4fe5cc5483e61a8bf1fb46ef8fed60f5c89a09e589b91b7ec982
2
SIZE (release-5.4.7.tar.bz2) = 86427
2
SIZE (lacaml-7.0.3.tar.gz) = 151742
(-)devel/ocaml-lacaml/pkg-descr (-1 / +1 lines)
Lines 6-9 Link Here
6
applications that need linear algebra.
6
applications that need linear algebra.
7
7
8
Author:	Markus Mottl <markus.mottl@gmail.com>
8
Author:	Markus Mottl <markus.mottl@gmail.com>
9
WWW:	http://www.ocaml.info/home/ocaml_sources.html
9
WWW:	https://bitbucket.org/mmottl/lacaml

Return to bug 172229