1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/science/dakota/Makefile
Tobias C. Berner 63e653adaa math/gsl: update to 2.7
From [1]

* What is new in gsl-2.7:
	* fixed doc bug for gsl_histogram_min_bin (lhcsky at 163.com)
	* fixed bug #60335 (spmatrix test failure, J. Lamb)
	* fixed bug #36577
	* clarified documentation on interpolation accelerators (V. Krishnan)
	* fixed bug #45521 (erroneous GSL_ERROR_NULL in ode-initval2, thanks to M. Sitte)
	* fixed doc bug #59758
	* fixed bug #58202 (rstat median for n=5)
	* added support for native C complex number types in gsl_complex
	   when using a C11 compiler
	* upgraded to autoconf 2.71, automake 1.16.3, libtool 2.4.6
	* updated exponential fitting example for nonlinear least squares
	* added banded LU decomposition and solver (gsl_linalg_LU_band)
	* New functions added to the library:
	      - gsl_matrix_norm1
	      - gsl_spmatrix_norm1
	      - gsl_matrix_complex_conjtrans_memcpy
	      - gsl_linalg_QL: decomp, unpack
	      - gsl_linalg_complex_QR_* (thanks to Christian Krueger)
	      - gsl_vector_sum
	      - gsl_matrix_scale_rows
	      - gsl_matrix_scale_columns
	      - gsl_multilarge_linear_matrix_ptr
	      - gsl_multilarge_linear_rhs_ptr
	      - gsl_spmatrix_dense_add (renamed from gsl_spmatrix_add_to_dense)
	      - gsl_spmatrix_dense_sub
	      - gsl_linalg_cholesky_band: solvem, svxm, scale, scale_apply
	      - gsl_linalg_QR_UD: decomp, lssolve
	      - gsl_linalg_QR_UU: decomp, lssolve, QTvec
	      - gsl_linalg_QR_UZ: decomp
	      - gsl_multifit_linear_lcurvature
	      - gsl_spline2d_eval_extrap
	* bug fix in checking vector lengths in gsl_vector_memcpy (dieggsy@pm.me)
	* made gsl_sf_legendre_array_index() inline and documented
	      - gsl_sf_legendre_nlm()

[1] http://git.savannah.gnu.org/cgit/gsl.git/tree/NEWS

PR:		256423
Exp-run by:	antoine
2021-06-16 21:31:27 +02:00

116 lines
4.7 KiB
Makefile

PORTNAME= dakota
DISTVERSION= 6.13.0
PORTREVISION= 3
CATEGORIES= science
MASTER_SITES= https://dakota.sandia.gov/sites/default/files/distributions/public/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Interface between analysis codes & iterative systems analysis methods
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libblas.so:math/blas \
libboost_system.so:devel/boost-libs \
liblapack.so:math/lapack
RUN_DEPENDS= bash:shells/bash
USES= cmake compiler:c++11-lang fortran perl5 python shebangfix
USE_LDCONFIG= yes
SHEBANG_GLOB= *.sh *.py
SHEBANG_FILES= interfaces/Python/mpitile \
scripts/pyprepro/dprepro \
scripts/pyprepro/pyprepro \
scripts/dprepro.perl \
test/dakota_test.perl
CMAKE_ON= Boost_NO_BOOST_CMAKE \
DAKOTA_GIT_checkout
#CMAKE_ON+= HAVE_C3 # causes "duplicate include" error
#CMAKE_ON+= DAKOTA_DL_SOLVER # fails to compile: error: declaration of anonymous class must be a definition
#CMAKE_ON+= HAVE_NOWPAC # installs files into $PORTSDIR
CMAKE_ON+= HAVE_DREAM HAVE_ADAPTIVE_SAMPLING HAVE_OPTPP DAKOTA_HOPS HAVE_ACRO \
HAVE_JEGA HAVE_NOMAD HAVE_NPSOL HAVE_NL2SOL HAVE_DOT HAVE_SURFPACK \
HAVE_CONMIN HAVE_DDACE HAVE_FSUDACE HAVE_PSUADE HAVE_ROL HAVE_DEMO_TPL # enable some methods that aren't enabled by default, see the list @ src/DakotaIterator.cpp
CMAKE_OFF= DAKOTA_ENABLE_TESTS
CMAKE_ARGS= -DDakota_VERSION_SRC:STRING=${DISTVERSION} -DDakota_GIT_REVL:STRING=${GIT_HASH} -DDakota_RELEASE_DATE:${STRING}=20201116
FFLAGS+= -fallow-argument-mismatch
LDFLAGS+= -lexecinfo
CONFLICTS_BUILD= dakota # self: picks up some bundled packages from the pre-installed dakota package and then fails to install them
CONFLICTS_INSTALL= openblas
USES_GIT= no
GIT_URL= https://software.sandia.gov/git/dakota
GIT_HASH= 82fd55ea1c6bb6d32e4c68e7f92d991d658ba90a
.if ${USES_GIT} == "yes"
FETCH_DEPENDS= git:devel/git
do-fetch:
@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}" ]; then \
${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \
cd ${DISTDIR}/${DIST_SUBDIR} && \
git clone -q ${GIT_URL} ${PORTNAME}-${DISTVERSIONFULL} && \
(cd ${PORTNAME}-${DISTVERSIONFULL} && \
git checkout devel && \
git submodule init packages/external && \
git submodule init packages/pecos && \
git submodule init packages/surfpack && \
git submodule update) && \
(cd ${PORTNAME}-${DISTVERSIONFULL} && git reset -q --hard ${GIT_HASH} && ${RM} -r .git) && \
${FIND} ${PORTNAME}-${DISTVERSIONFULL} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \
${FIND} ${PORTNAME}-${DISTVERSIONFULL} -print0 | LC_ALL=C ${SORT} -z | \
${TAR} czf ${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - && \
${RM} -r ${PORTNAME}-${DISTVERSIONFULL}; \
fi
.else
DISTNAME= ${PORTNAME}-${DISTVERSION}-release-public.src-UI
.endif
OPTIONS_DEFINE= GSL GUI HDF5
OPTIONS_DEFAULT= GSL HDF5
OPTIONS_SUB= yes
GSL_DESC= GSL support
GSL_CMAKE_BOOL= DAKOTA_HAVE_GSL HAVE_QUESO HAVE_QUESO_GPMSA # QUESO requires GSL
GSL_LIB_DEPENDS= libgsl.so:math/gsl
HDF5_CMAKE_BOOL= DAKOTA_HAVE_HDF5 \
HAVE_MUQ # MUQ module requires HDF5
HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 \
libsz.so:science/szip
GUI_DESC= Build the Dakota/Motif Graphics package
GUI_CMAKE_BOOL= HAVE_X_GRAPHICS
GUI_BROKEN= error: non-void function 'SciPlotListReturnPtr' should return a value
post-extract:
@${FIND} ${WRKSRC} -name "*.orig" -delete
@${ECHO} ${DISTVERSION} > ${WRKSRC}/VERSION # expected by the 'install' target
post-install:
# remove eigen3 that Dakota installs
cd ${STAGEDIR}${PREFIX} && ${RM} -r include/eigen3 share/eigen3
# install libraries that it fails to install
.for l in libmuqUtilities.so libmuqModeling.so libmuqSamplingAlgorithms.so
${INSTALL_LIB} ${BUILD_WRKSRC}/packages/external/muq2/lib/${l} ${STAGEDIR}${PREFIX}/lib
.endfor
do-test: # from Additional Test Suites @ https://dakota.sandia.gov/content/additional-test-suites (many tests are known to fail)
## minimal set of fast-running tests that should NOT FAIL (may DIFF, depending on platform / compiler)
#cd ${WRKSRC}/test && ./dakota_test.perl
## test suite that should PASS on any supported platform (NO DIFF or FAIL)
#cd ${WRKSRC}/test && ./dakota_test.perl --label-regex=AcceptanceTest
## run all Dakota tests active in this build (should PASS or DIFF)
#cd ${WRKSRC}/test && ./dakota_test.perl --label-regex=dakota_
# Tests should be this way, but this fails:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DDAKOTA_ENABLE_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
(cd ${WRKSRC} && ctest -j 4 -L FastTest -LE Diff)
.include <bsd.port.mk>