freebsd-ports/math/unuran/Makefile
Philippe Audeoud 098cb376b7 - Update to 1.3.1
PR:		ports/130854
Submitted by:	bf <bf2006a _AT_ yahoo.com> (maintainer)
2009-01-28 10:38:38 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: unuran
# Date created: 13 November 2008
# Whom: bf <bf2006a@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= unuran
PORTVERSION= 1.3.1
CATEGORIES= math
MASTER_SITES= http://statmath.wu-wien.ac.at/unuran/
MAINTAINER= bf2006a@yahoo.com
COMMENT= Universal Non-Uniform RANdom number generators
LIB_DEPENDS= rngstreams:${PORTSDIR}/math/rngstreams
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --with-urng-rngstream --with-urng-default=rngstream \
--enable-info
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
USE_LDCONFIG= yes
INFO= unuran
PORTDOCS= unuran.pdf unuran.txt
post-patch:
${FIND} -X ${WRKSRC} -name 'Makefile.\in' | ${XARGS} ${REINPLACE_CMD} -e \
's/sinclude/#sinclude/g'
.ifndef(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
.for DD in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${DD} ${DOCSDIR}
.endfor
.endif
.ifdef(MAINTAINER_MODE)
CONFIGURE_ARGS+= --enable-check-struct --enable-logging
regression-test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} check)
fullcheck: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} fullcheck)
.endif
.include <bsd.port.mk>