math/qxfun: new port, quad precision package with special functions

This commit is contained in:
Thierry Thomas 2023-11-05 19:29:43 +01:00
parent edf46ccd65
commit a1ea3c4249
5 changed files with 77 additions and 0 deletions

View File

@ -268,12 +268,14 @@
SUBDIR += curv
SUBDIR += cvc5
SUBDIR += dbcsr
SUBDIR += ddfun
SUBDIR += deal.ii
SUBDIR += dgl
SUBDIR += dieharder
SUBDIR += dihydrogen
SUBDIR += dionysus
SUBDIR += disco
SUBDIR += dqfun
SUBDIR += drgeo
SUBDIR += dsdp
SUBDIR += dune-alugrid
@ -1093,6 +1095,7 @@
SUBDIR += qrupdate
SUBDIR += qtiplot-doc
SUBDIR += qwtplot3d
SUBDIR += qxfun
SUBDIR += randlib
SUBDIR += rankwidth
SUBDIR += rapid

54
math/qxfun/Makefile Normal file
View File

@ -0,0 +1,54 @@
PORTNAME= qxfun
DISTVERSIONPREFIX=v
DISTVERSION= 01
CATEGORIES= math
MASTER_SITES= https://www.davidhbailey.com/dhbsoftware/
MAINTAINER= fortran@FreeBSD.org
COMMENT= Quad precision package with special functions
WWW= https://crd-legacy.lbl.gov/~dhbailey/mpdist
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/DISCLAIMER.txt
USES= fortran
BINARY_ALIAS= gfortran=${FC}
FFLAGS+= -O3
BUILD_WRKSRC= ${WRKSRC}/fortran
OPTIONS_DEFINE= DOCS EXAMPLES
pre-configure:
.for f in gnu-complib-qx.scr gnu-complink-qx.scr
${REINPLACE_CMD} -e 's|-O3|${FFLAGS}|' ${BUILD_WRKSRC}/${f}
.endfor
do-build:
cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ./gnu-complib-qx.scr
do-build-EXAMPLES-on:
cd ${BUILD_WRKSRC} && \
${SETENV} ${MAKE_ENV} ./gnu-complink-qx.scr tpslqm1qx
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include
cd ${BUILD_WRKSRC} && \
${INSTALL_DATA} *.mod ${STAGEDIR}${PREFIX}/include
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${BUILD_WRKSRC} && \
${INSTALL_PROGRAM} tpslqm1qx ${STAGEDIR}${EXAMPLESDIR} && \
${INSTALL_DATA} tpslqm1qx.f90 ${STAGEDIR}${EXAMPLESDIR}
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README-qxfun.txt ${STAGEDIR}${DOCSDIR}
cd ${BUILD_WRKSRC} && \
${INSTALL_DATA} *.ref.txt ${STAGEDIR}${DOCSDIR}
do-test:
cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ./gnu-qxfun-tests.scr
.include <bsd.port.mk>

3
math/qxfun/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1699205427
SHA256 (qxfun-v01.tar.gz) = 2c75c1386817d17e4b3f1486c24a8dc10c1c30f82679308653b70982ff7b7933
SIZE (qxfun-v01.tar.gz) = 56855

8
math/qxfun/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
QXFUN: A quad precision package with special functions (approximately 33 digit
precision).
This package enhances an IEEE quad precision floating-point facility (approx. 33
digit accuracy) to include a library of numerous special functions, all by
making only very minor changes to existing Fortran programs. The package should
run correctly on any Unix-based system supporting a Fortran-2008 compiler and
IEEE 128-bit floating-point arithmetic, in hardware or software.

9
math/qxfun/pkg-plist Normal file
View File

@ -0,0 +1,9 @@
include/qxfune.mod
include/qxmodule.mod
%%PORTDOCS%%%%DOCSDIR%%/README-qxfun.txt
%%PORTDOCS%%%%DOCSDIR%%/testqxfun.ref.txt
%%PORTDOCS%%%%DOCSDIR%%/tpphixqx.ref.txt
%%PORTDOCS%%%%DOCSDIR%%/tpslqm1qx.ref.txt
%%PORTDOCS%%%%DOCSDIR%%/tquadqx.ref.txt
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tpslqm1qx
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tpslqm1qx.f90