1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/math/unuran/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

56 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.8.1
CATEGORIES= math
MASTER_SITES= http://statmath.wu-wien.ac.at/unuran/ \
LOCAL/bf
MAINTAINER= bf@FreeBSD.org
COMMENT= Universal Non-Uniform RANdom number generators
LIB_DEPENDS= rngstreams:${PORTSDIR}/math/rngstreams
LICENSE= GPLv2
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --with-urng-rngstream --with-urng-default=rngstream \
--enable-info
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV= MAKE="${GMAKE}"
USE_LDCONFIG= yes
INFO= unuran
PORTDOCS= unuran.pdf unuran.txt
post-patch:
${REINPLACE_CMD} -e '/UNURANFULLCHECK=true make check/s/make/${GMAKE}/' \
${WRKSRC}/Makefile.in
.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
check regression-test 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>