2010-05-09 08:26:50 +00:00
|
|
|
# New ports collection makefile for: libranlip
|
|
|
|
# Date created: 6 Feb 2010
|
2010-07-08 12:51:37 +00:00
|
|
|
# Whom: bf <bf@FreeBSD.org>
|
2010-05-09 08:26:50 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libranlip
|
|
|
|
DISTVERSION= 1.0
|
|
|
|
CATEGORIES= math
|
2012-06-29 01:38:44 +00:00
|
|
|
MASTER_SITES= LOCAL/bf \
|
2010-05-09 08:26:50 +00:00
|
|
|
http://www.deakin.edu.au/~gleb/
|
|
|
|
|
2010-07-08 12:51:37 +00:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
2010-05-09 08:26:50 +00:00
|
|
|
COMMENT= A random variate generator for Lipschitz-continuous densities
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
INFO= ranlip
|
|
|
|
PLIST_FILES= include/ranlip.h include/ranlipdist.h include/ranlipproc.h lib/libranlip.so.${PORTVERSION} \
|
|
|
|
lib/libranlip.so.${PORTVERSION:R} lib/libranlip.la lib/libranlip.a
|
|
|
|
PORTDOCS= ranlip.ps
|
|
|
|
PORTEXAMPLES= makefile ranliptest.cpp ranliptestproc.cpp
|
|
|
|
TESTPROGS= static_example static_example2 static_example3 shared_example
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${LN} -s ${PREFIX}/lib/libranlip.so.${PORTVERSION} ${PREFIX}/lib/libranlip.so.${PORTVERSION:R}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/ranlip.ps ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for _file in ${PORTEXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${_file} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
test: build
|
|
|
|
@(cd ${WRKSRC}/examples; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all)
|
|
|
|
.for _prog in ${TESTPROGS}
|
|
|
|
@(cd ${WRKSRC}/examples && ./${_prog})
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 700000
|
|
|
|
BROKEN= fails to build
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|