summaryrefslogtreecommitdiffstats
path: root/math/libranlip/Makefile
blob: c2f7535fe94f7d7d1a7fdb74c5a8531b5365eb92 (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
# Created by: bf <bf@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libranlip
DISTVERSION=	1.0
PORTREVISION= 	1
CATEGORIES=	math
MASTER_SITES=	LOCAL/bf \
		http://www.deakin.edu.au/~gleb/

MAINTAINER=	bf@FreeBSD.org
COMMENT=	A random variate generator for Lipschitz-continuous densities

USES=		libtool
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

INFO=	ranlip
PLIST_FILES=	include/ranlip.h include/ranlipdist.h include/ranlipproc.h lib/libranlip.so.1.0.0 \
		lib/libranlip.so.1 lib/libranlip.so lib/libranlip.a
PORTDOCS=	ranlip.ps
PORTEXAMPLES=	makefile ranliptest.cpp ranliptestproc.cpp
TESTPROGS=	static_example static_example2 static_example3 shared_example

OPTIONS_DEFINE=	DOCS EXAMPLES

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/docs/ranlip.ps ${STAGEDIR}${DOCSDIR}
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for _file in ${PORTEXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/examples/${_file} ${STAGEDIR}${EXAMPLESDIR}
.endfor

test: build
	@(cd ${WRKSRC}/examples; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all)
.for _prog in ${TESTPROGS}
	@(cd ${WRKSRC}/examples && ./${_prog})
.endfor

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700000
BROKEN=		fails to build
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud