2013-09-20 20:55:04 +00:00
|
|
|
# Created by: bf <bf@FreeBSD.org>
|
2010-05-09 08:26:50 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libranlip
|
|
|
|
DISTVERSION= 1.0
|
2014-06-18 16:11:42 +00:00
|
|
|
PORTREVISION= 1
|
2010-05-09 08:26:50 +00:00
|
|
|
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
|
2014-07-07 15:31:01 +00:00
|
|
|
COMMENT= Random variate generator for Lipschitz-continuous densities
|
2010-05-09 08:26:50 +00:00
|
|
|
|
2014-06-18 16:11:42 +00:00
|
|
|
USES= libtool
|
2010-05-09 08:26:50 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
INFO= ranlip
|
2014-06-18 16:11:42 +00:00
|
|
|
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
|
2010-05-09 08:26:50 +00:00
|
|
|
PORTDOCS= ranlip.ps
|
|
|
|
PORTEXAMPLES= makefile ranliptest.cpp ranliptestproc.cpp
|
|
|
|
TESTPROGS= static_example static_example2 static_example3 shared_example
|
|
|
|
|
2014-07-04 00:52:39 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2010-05-09 08:26:50 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-06-18 16:11:42 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/ranlip.ps ${STAGEDIR}${DOCSDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2010-05-09 08:26:50 +00:00
|
|
|
.for _file in ${PORTEXAMPLES}
|
2014-06-18 16:11:42 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${_file} ${STAGEDIR}${EXAMPLESDIR}
|
2010-05-09 08:26:50 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
test: build
|
|
|
|
@(cd ${WRKSRC}/examples; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} all)
|
|
|
|
.for _prog in ${TESTPROGS}
|
|
|
|
@(cd ${WRKSRC}/examples && ./${_prog})
|
|
|
|
.endfor
|
|
|
|
|
2015-04-03 11:26:48 +00:00
|
|
|
.include <bsd.port.mk>
|