# Created by: bf # $FreeBSD: head/math/testu01/Makefile 557743 2020-12-11 15:33:16Z thierry $ PORTNAME= TestU01 PORTVERSION= 1.2.3 PORTREVISION= 3 CATEGORIES= math MASTER_SITES= http://simul.iro.umontreal.ca/${PORTNAME:tl}/ DISTNAME= ${PORTNAME} DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= thierry@FreeBSD.org COMMENT= Utilities for statistical testing of uniform random number generators LICENSE= TestU01 LICENSE_NAME= TestU01 license LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_PERMS= dist-mirror pkg-mirror auto-accept LIB_DEPENDS= libgmp.so:math/gmp USES= gmake libtool localbase zip WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} GNU_CONFIGURE= yes CONFIGURE_ARGS= --includedir="${PREFIX}/include/${PORTNAME}" MAKE_ARGS= docdir="${DOCSDIR}" exdir="${EXAMPLESDIR}" USE_LDCONFIG= yes INSTALL_TARGET= install-strip CONFLICTS= emboss-[0-9]* CFLAGS+= -fPIC OPTIONS_DEFINE= DOCS EXAMPLES pre-configure-DOCS-off: ${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ doc / /' ${WRKSRC}/Makefile.in ${FIND} -X ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \ -e '/^install-data-am\: /s/install-docDATA//' pre-configure-EXAMPLES-off: ${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ examples / /' ${WRKSRC}/Makefile.in do-test: cd ${WRKSRC}/examples ; \ for f in [mx]*.c ; do \ ${CC} ${CFLAGS} -c $${f} -I. -I../include ; \ done ; \ for t in [befs]*.c; do \ case $${t} in \ ex3.c) x="my16807.o" ;; \ ex7.c) x="mrg32k3a.o xorshift.o" ;; \ scat.c) continue ;; \ *) x="" ;; \ esac ; \ ${CC} ${CFLAGS} ${LDFLAGS} -o $${t%.c} $${t} -I. -I../include \ -Wl,--as-needed $${x} ../testu01/.libs/libtestu01.so \ ../probdist/.libs/libprobdist.so ../mylib/.libs/libmylib.so -lm ; \ ${ECHO_CMD} "Running $${t%.c}..." ; \ ${SETENV} \ LD_LIBRARY_PATH=../testu01/.libs:../probdist/.libs:../mylib/.libs \ ./$${t%.c} ; \ done .include