diff --git a/biology/bolt-lmm/Makefile b/biology/bolt-lmm/Makefile index 9463b15dfa50..0bbc9d7b2558 100644 --- a/biology/bolt-lmm/Makefile +++ b/biology/bolt-lmm/Makefile @@ -1,52 +1,52 @@ PORTNAME= bolt-lmm DISTVERSION= 2.3.6 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= biology MASTER_SITES= https://data.broadinstitute.org/alkesgroup/BOLT-LMM/downloads/ DISTNAME= BOLT-LMM_v${PORTVERSION} MAINTAINER= jwb@FreeBSD.org COMMENT= Mixed model association testing and variance component analysis WWW= https://data.broadinstitute.org/alkesgroup/BOLT-LMM/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/license.txt LIB_DEPENDS= libnlopt.so:math/nlopt \ libopenblas.so:math/openblas \ libboost_program_options.so:devel/boost-libs USES= gmake BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src INSTALL_WRKSRC= ${WRKDIR}/${DISTNAME}/src CXXFLAGS_i386= -DUSE_SSE -msse -msse2 CXXFLAGS_amd64= -DUSE_SSE MAKE_ARGS= BOOST_INSTALL_DIR=${LOCALBASE} \ NLOPT_INSTALL_DIR=${LOCALBASE} \ ZLIB_STATIC_DIR=/usr/lib \ LIBSTDCXX_STATIC_DIR=/usr/lib \ GLIBC_STATIC_DIR=/usr/lib \ SSEFLAGS="" \ MEMCPY="" \ LLAPACK="-lopenblas" CONFLICTS_INSTALL= rubygem-bolt # bin/bolt PORTEXAMPLES= * OPTIONS_DEFINE= EXAMPLES pre-configure: @${RM} ${WRKSRC}/example/*.orig ${WRKSRC}/bolt @${REINPLACE_CMD} -e 's|tables/|${DATADIR}/tables/|g' \ ${BUILD_WRKSRC}/BoltParams.cpp @${REINPLACE_CMD} -e 's|../tables/|${DATADIR}/tables/|g' \ ${WRKSRC}/example/run_example.sh do-install: ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bolt ${STAGEDIR}${PREFIX}/bin (cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) (cd ${WRKSRC} && ${COPYTREE_SHARE} tables ${STAGEDIR}${DATADIR}) .include diff --git a/biology/gcta/Makefile b/biology/gcta/Makefile index 4d02040e521e..8033253a3933 100644 --- a/biology/gcta/Makefile +++ b/biology/gcta/Makefile @@ -1,52 +1,52 @@ PORTNAME= gcta DISTVERSIONPREFIX= v DISTVERSION= 1.94.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= biology MAINTAINER= jwb@FreeBSD.org COMMENT= Genome-wide Complex Trait Analysis WWW= https://cnsgenomics.com/software/gcta/index.html LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ spectra>0:math/spectra LIB_DEPENDS= libgsl.so:math/gsl \ libopenblas.so:math/openblas \ libsqlite3.so:databases/sqlite3 \ libzstd.so:archivers/zstd USES= cmake eigen:3 localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= jianyangqt GH_TUPLE= zhilizheng:plink-ng:3744540:plink/submods/plink-ng CONFIGURE_ENV+= EIGEN3_INCLUDE_DIR=${LOCALBASE}/include/eigen3 \ BOOST_INCLUDE_DIR=${LOCALBASE}/include/boost \ OPENBLAS=${LOCALBASE} \ SPECTRA_INCLUDE_DIR=${LOCALBASE}/include/Spectra LDFLAGS+= -fopenmp PLIST_FILES= bin/gcta64 bin/gcta .include # Temporary hack for clang build errors: # /usr/ports/biology/gcta/work/gcta-1.94.1/submods/plink-ng/2.0/plink2_base.h:1008:23: error: argument to '__builtin_neon_vshrq_n_v' must be a constant integer # return R_CAST(VecW, _mm_srli_epi64(R_CAST(__m128i, vv), ct)); # /usr/lib/clang/14.0.5/include/arm_neon.h:25260:24: note: expanded from macro 'vshrq_n_u64' # __ret = (uint64x2_t) __builtin_neon_vshrq_n_v((int8x16_t)__s0, __p1, 51); .if ${ARCH} == aarch64 USE_GCC= yes .endif do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gcta64 ${STAGEDIR}${PREFIX}/bin ${RLN} ${STAGEDIR}${PREFIX}/bin/gcta64 ${STAGEDIR}${PREFIX}/bin/gcta .include diff --git a/biology/gemma/Makefile b/biology/gemma/Makefile index 6e1c6ef9c2b4..f9956da28708 100644 --- a/biology/gemma/Makefile +++ b/biology/gemma/Makefile @@ -1,39 +1,40 @@ PORTNAME= gemma DISTVERSIONPREFIX= v DISTVERSION= 0.98.5 +PORTREVISION= 1 CATEGORIES= biology MAINTAINER= jwb@FreeBSD.org COMMENT= Genome-wide Efficient Mixed Model Association WWW= https://xiangzhou.github.io/software/ \ https://github.com/genetics-statistics/GEMMA/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libgsl.so:math/gsl USES= blaslapack:openblas compiler:c++11-lang eigen:3 gmake \ localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= genetics-statistics GH_PROJECT= GEMMA MAKEFILE= ${FILESDIR}/Makefile # Assuming openblas is built with pthreads, not openmp CXXFLAGS+= -I${LOCALBASE}/include/eigen3 -DOPENBLAS -pthread LDFLAGS+= -lopenblas -pthread OPTIONS_DEFINE= EXAMPLES pre-configure: @${REINPLACE_CMD} -e 's|../bin/gemma|../gemma|' ${WRKSRC}/test/*.sh do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) do-test: (cd ${WRKSRC}/test && ${SH} test_suite.sh) .include diff --git a/biology/plink/Makefile b/biology/plink/Makefile index b7d5e79ac8ad..fd08152bc388 100644 --- a/biology/plink/Makefile +++ b/biology/plink/Makefile @@ -1,59 +1,59 @@ PORTNAME= plink DISTVERSIONPREFIX= v DISTVERSION= 1.90b6.17 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= biology MAINTAINER= mzaki@e-mail.ne.jp COMMENT= Whole genome association analysis toolset WWW= https://www.cog-genomics.org/plink/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE NOT_FOR_ARCHS= aarch64 mips64 powerpc64 powerpc64le NOT_FOR_ARCHS_REASON= 64bit code requires SSE2 instructions USES= gmake fortran USE_GITHUB= yes GH_ACCOUNT= chrchang GH_PROJECT= plink-ng GH_TAGNAME= 79b2df8c WRKSRC_SUBDIR= 1.9 MAKEFILE= Makefile.std MAKE_ARGS= ZLIB=-lz BLASFLAGS="${BLASLIB} ${LAPACKLIB}" CFLAGS+= -DDYNAMIC_ZLIB -I${LOCALBASE}/include LDFLAGS+= -lthr INSTALL_TARGET= install-strip CONFLICTS_INSTALL= putty putty-nogtk # bin/plink OPTIONS_DEFINE= EXAMPLES OPTIONS_SINGLE= BLAS OPTIONS_SINGLE_BLAS= NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS BLAS_DESC= BLAS/LAPACK implementation OPENBLAS_USES= blaslapack:openblas NETLIB_DESC= Netlib's reference NETLIB_USES= blaslapack:netlib NETLIB_LIB_DEPENDS= libcblas.so:math/cblas NETLIB_LDFLAGS= -lcblas EXAMPLES= toy.map toy.ped post-build: (cd ${WRKSRC}; ${CC} ${CFLAGS} prettify.c -o prettify) post-install: ${INSTALL_PROGRAM} ${WRKSRC}/prettify ${STAGEDIR}${PREFIX}/bin post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/cad/gmsh/Makefile b/cad/gmsh/Makefile index 88648dc412b5..a6722f468715 100644 --- a/cad/gmsh/Makefile +++ b/cad/gmsh/Makefile @@ -1,81 +1,81 @@ PORTNAME= gmsh DISTVERSION= 4.13.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad MASTER_SITES= http://gmsh.info/src/ DISTNAME= ${PORTNAME}-${PORTVERSION}-source DIST_SUBDIR= gmsh MAINTAINER= thierry@FreeBSD.org COMMENT= Automatic 3D finite element mesh generator WWW= https://gmsh.info/ LICENSE= AGPLv3+ APACHE20 GPLv3+ GPLv2+ LGPL21 LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= getdp:science/getdp \ gmm++>0:math/gmm++ LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \ libfontconfig.so:x11-fonts/fontconfig \ libgmp.so:math/gmp \ libmmg.so:science/mmg \ libmetis.so:math/metis \ libhdf5.so:science/hdf5 \ libpng.so:graphics/png \ libsz.so:science/libaec \ libmathex.so:math/mathex \ libalglib.so:math/alglib \ libvoro++.so:science/voro++ \ libfreetype.so:print/freetype2 \ libtinyxml2.so:textproc/tinyxml2 \ ${LIB_DEPENDS_${ARCH}} RUN_DEPENDS= getdp:science/getdp USES= bison compiler:c++14-lang cmake:testing eigen:3 fortran gl \ jpeg localbase tar:tgz xorg # Only for 64 bits ARCHs LIB_DEPENDS_aarch64= libmesquite.so:math/mesquite LIB_DEPENDS_amd64= libmesquite.so:math/mesquite LIB_DEPENDS_powerpc64= libmesquite.so:math/mesquite LIB_DEPENDS_powerpc64le=libmesquite.so:math/mesquite USE_GL= gl glu USE_XORG= ice sm x11 xcursor xext xinerama xfixes xft xrender USE_LDCONFIG= yes CMAKE_ON= ENABLE_BUILD_DYNAMIC ENABLE_BUILD_SHARED ENABLE_SYSTEM_CONTRIB CXXFLAGS_powerpc64= -mvsx LDFLAGS+= -lexecinfo OPTIONS_DEFINE= CGNS DOCS MED OCC STATIC OPTIONS_DEFAULT= CGNS MED OCC OPTIONS_SUB= yes CGNS_DESC= Enable CGNS mesh import MED_DESC= Enable MED mesh and post file formats OCC_DESC= Enable OpenCASCADE geometrical models STATIC_DESC= Build static library PLIST_SUB= VER=${PORTVERSION} VE=${PORTVERSION:R} # TODO # Dependencies against PythonLibs, swig and petsc are found and registered if # installed # => add knobs to handle them. CGNS_CMAKE_BOOL= ENABLE_CGNS CGNS_LIB_DEPENDS= libcgns.so:science/cgnslib DOCS_USES= makeinfo MED_CMAKE_BOOL= ENABLE_MED MED_LIB_DEPENDS= libmed.so:french/med OCC_CMAKE_BOOL= ENABLE_OCC OCC_CMAKE_ON= -DOCC_INC=${LOCALBASE}/include/OpenCASCADE OCC_LIB_DEPENDS= libopenblas.so:math/openblas libTKernel.so:cad/opencascade OCC_USES= gnome OCC_USE= gnome=cairo STATIC_CMAKE_BOOL= ENABLE_BUILD_LIB .include diff --git a/cad/openroad/Makefile b/cad/openroad/Makefile index f04b562248f0..3f939a9f491a 100644 --- a/cad/openroad/Makefile +++ b/cad/openroad/Makefile @@ -1,86 +1,86 @@ PORTNAME= openroad DISTVERSIONPREFIX= v DISTVERSION= 2.0-11595 DISTVERSIONSUFFIX= -g31d7e3dc5 -PORTREVISION= 7 +PORTREVISION= 8 PORTEPOCH= 1 CATEGORIES= cad MAINTAINER= yuri@FreeBSD.org COMMENT= ASIC physical design tool WWW= https://theopenroadproject.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= C++ issue on i386, should be resolved in the next update .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= base64:converters/base64 \ bash:shells/bash \ boost-libs>0:devel/boost-libs \ coin-or-lemon>0:math/lemon \ gmake:devel/gmake \ swig:devel/swig LIB_DEPENDS= libabsl_flags_parse.so:devel/abseil \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libClpSolver.so:math/clp \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libcudd.so:math/cudd \ libfmt.so:devel/libfmt \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libortools.so:math/or-tools \ libOsi.so:math/osi \ libprotobuf.so:devel/protobuf \ libre2.so:devel/re2 \ libspdlog.so:devel/spdlog USES= bison compiler:c++17-lang cmake eigen:3 qt:5 \ localbase:ldflags pkgconfig python:build readline tcl:86 # the code asks for tcl-87, but build fails: https://github.com/The-OpenROAD-Project/OpenROAD/issues/508 USE_QT= core gui widgets buildtools:build qmake:build USE_GITHUB= yes GH_ACCOUNT= The-OpenROAD-Project GH_PROJECT= OpenROAD GH_TUPLE= The-OpenROAD-Project:OpenSTA:42b994d:The_OpenROAD_Project_OpenSTA/src/sta \ The-OpenROAD-Project:abc:95b3543:abc/third-party/abc CMAKE_OFF= BUILD_PYTHON \ ENABLE_TESTS CMAKE_ON= BUILD_TCL CMAKE_ARGS= -DFREEBSD_TCL_VER=${TCL_VER:S/.//} -DFREEBSD_TCL_INCLUDEDIR=${TCL_INCLUDEDIR} CXXFLAGS+= -I${LOCALBASE}/include/eigen3 \ -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED BINARY_ALIAS= python3=${PYTHON_CMD} tclsh=${TCLSH} make=${GMAKE} PLIST_FILES= bin/openroad \ bin/sta PORTSCOUT= limit:^[0-9]\. # prevent 2021_* post-patch: # override the TCL version to be the same as USES=tcl sets @${FIND} ${WRKSRC} -name FindTCL.cmake \ | ${XARGS} ${REINPLACE_CMD} -e ' \ s|set(TCL_POSSIBLE_NAMES |set(TCL_POSSIBLE_NAMES tcl$${FREEBSD_TCL_VER} |; \ s|PATHS $${TCL_LIB_PARENT1}|PATHS $${FREEBSD_TCL_INCLUDEDIR} $${TCL_LIB_PARENT1}|' post-install: # unnecessarily installs bundled OpenSTA project: https://github.com/The-OpenROAD-Project/OpenROAD/issues/597 ${RM} -r ${STAGEDIR}${PREFIX}/include/sta ${STAGEDIR}${PREFIX}/lib/libOpenSTA.a do-test: # some tests are known to fail @${MKDIR} ${WRKSRC}/build/src @[ -f ${WRKSRC}/build/src/openroad ] || ${LN} ${STAGEDIR}${PREFIX}/bin/openroad ${WRKSRC}/build/src/openroad @${ECHO} "==> Unit tests" @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} test/regression @${ECHO} "==> Flow tests" @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} test/regression flow .include diff --git a/devel/root/Makefile b/devel/root/Makefile index f3774687b9b2..1a1b47da2bf9 100644 --- a/devel/root/Makefile +++ b/devel/root/Makefile @@ -1,211 +1,212 @@ PORTNAME= root DISTVERSION= 6.32.08 +PORTREVISION= 1 CATEGORIES= devel science math parallel python MASTER_SITES= https://root.cern/download/ DISTFILES= ${PORTNAME}_v${DISTVERSION}.source${EXTRACT_SUFX} MAINTAINER= erik@tenku.dk COMMENT= Data analysis framework made at CERN WWW= https://root.cern/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LGPL2_1.txt BUILD_AND_RUN_DEPENDS= bash:shells/bash \ nlohmann-json>=3:devel/nlohmann-json BUILD_DEPENDS= ${BUILD_AND_RUN_DEPENDS} LIB_DEPENDS= libfreetype.so:print/freetype2 \ liblz4.so:archivers/liblz4 \ libpcre2-8.so:devel/pcre2 \ libxxhash.so:devel/xxhash \ libzstd.so:archivers/zstd RUN_DEPENDS= ${BUILD_AND_RUN_DEPENDS} USES= cmake desktop-file-utils iconv shebangfix SHEBANG_FILES= main/python/rootbrowse.py \ main/python/rootcp.py \ main/python/rootdrawtree.py \ main/python/rooteventselector.py \ main/python/rootls.py \ main/python/rootmkdir.py \ main/python/rootmv.py \ main/python/rootprint.py \ main/python/rootrm.py \ main/python/rootslimtree.py \ config/rootssh \ etc/dictpch/makepch.py \ etc/proof/utils/circle.sh \ etc/proof/utils/crypt \ etc/proof/utils/pps \ etc/proof/utils/proofctl.sh \ etc/proof/utils/proofinstall.sh \ etc/pdg_table_update.py # add a port-specific shebang to be replaced python_OLD_CMD+= "/usr/bin/env @python@" # Flags and environment variables for building CMAKE_ON= builtin_clang builtin_cling builtin_llvm builtin_openui5 gnuinstall \ rpath shared soversion CMAKE_OFF= arrow builtin_afterimage builtin_cfitsio builtin_cppzmq builtin_davix \ builtin_fftw3 builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew \ builtin_gsl builtin_gtest builtin_lz4 builtin_lzma builtin_nlohmannjson \ builtin_openssl builtin_pcre builtin_tbb builtin_unuran builtin_vc builtin_vdt \ builtin_veccore builtin_xrootd builtin_xxhash builtin_zeromq builtin_zlib \ builtin_zstd cefweb clad cocoa cuda cudnn daos dcache fcgi fftw3 gviz libcxx \ llvm13_broken_tests macos_native memory_termination minuit2_mpi minuit2_omp \ mpi odbc proof pythia8 qt5web qt6web r roofit_multiprocess runtime_cxxmodules \ shadowpw test_distrdf_dask test_distrdf_pyspark tmva-gpu tmva-rmva tmva-sofie \ unfold unuran uring vc veccore vecgeom win_broken_tests winrtdebug # Port build options; DOCS also on by default # See https://root.cern/install/build_from_source/#all-build-options OPTIONS_DEFINE= DOCS ASIMAGE DATAFRAME DAVIX FITS FORTRAN GDML HTTP IMT MATHMORE \ MYSQL OPENGL PGSQL PYROOT ROOFIT ROOT7 SPECTRUM SQLITE SSL TMLP TMVAML VDT \ WEBGUI X11 XML XROOTD OPTIONS_DEFAULT= ASIMAGE DATAFRAME DAVIX FITS GDML HTTP IMT MATHMORE OPENGL \ PYROOT ROOFIT ROOT7 SPECTRUM SSL TMLP TMVAML VDT WEBGUI X11 XML XROOTD OPTIONS_SUB= yes ASIMAGE_CMAKE_BOOL= asimage ASIMAGE_DESC= Enable support for image processing via libAfterImage ASIMAGE_IMPLIES= X11 ASIMAGE_LIB_DEPENDS= libAfterImage.so:graphics/libafterimage \ libgif.so:graphics/giflib \ libpng16.so:graphics/png \ libtiff.so:graphics/tiff ASIMAGE_USES= gettext-runtime gnome jpeg ASIMAGE_USE= gnome=cairo,gdkpixbuf2,glib20,librsvg2 # TODO: clad can only be included in ROOT's configure stage # with network access, however, a port of clad is available -- patch #CLAD_CMAKE_BOOL= clad #CLAD_DESC= Build clad, the cling automatic differentiation plugin (requires network) #CLAD_LIB_DEPENDS= libclad.so:math/clad DATAFRAME_CMAKE_BOOL= dataframe DATAFRAME_DESC= Enable ROOT RDataFrame DAVIX_CMAKE_BOOL= davix DAVIX_DESC= Enable support for Davix (HTTP/WebDAV access) DAVIX_LIB_DEPENDS= libdavix.so:www/davix DAVIX_USES= pkgconfig FITS_CMAKE_BOOL= fitsio FITS_DESC= Enable support for reading FITS images FITS_LIB_DEPENDS= libcfitsio.so:astro/cfitsio \ libcurl.so:ftp/curl FORTRAN_CMAKE_BOOL= fortran FORTRAN_DESC= Build Fortran components of ROOT FORTRAN_USES= fortran GDML_CMAKE_BOOL= gdml GDML_DESC= Enable support for GDML (Geometry Description Markup Language) HTTP_CMAKE_BOOL= http HTTP_DESC= Enable support for HTTP server HTTP_IMPLIES= ROOT7 WEBGUI IMT_CMAKE_BOOL= imt IMT_DESC= Enable support for implicit multi-threading via IntelĀ® Thread Building Blocks (TBB) IMT_LIB_DEPENDS= libtbb.so:devel/onetbb MATHMORE_CMAKE_BOOL= mathmore MATHMORE_DESC= Build libMathMore extended math library MATHMORE_LIB_DEPENDS= libgsl.so:math/gsl MYSQL_CMAKE_BOOL= mysql MYSQL_DESC= Enable support for MySQL databases MYSQL_LIB_DEPENDS= libunwind.so:devel/libunwind MYSQL_USES= mysql ssl OPENGL_CMAKE_BOOL= opengl OPENGL_DESC= Enable support for OpenGL OPENGL_IMPLIES= X11 OPENGL_LIB_DEPENDS= libftgl.so:graphics/ftgl \ libgl2ps.so:print/gl2ps OPENGL_USES= gl OPENGL_USE= gl=glew,glu,opengl PGSQL_CMAKE_BOOL= pgsql PGSQL_DESC= Enable support for PostgreSQL PGSQL_USES= pgsql:13+ PYROOT_CMAKE_BOOL= pyroot tmva-pymva PYROOT_DESC= Enable bindings between Python and C++ with PyROOT PYROOT_BUILD_DEPENDS= ${PYNUMPY} PYROOT_USES= python:3.9+,build,run PYROOT_USES_OFF= python:3.9+,build ROOFIT_CMAKE_BOOL= roofit ROOFIT_DESC= Build the advanced fitting package RooFit, and RooStats for statistical tests ROOT7_CMAKE_BOOL= root7 ROOT7_DESC= Build ROOT 7 components of ROOT SPECTRUM_CMAKE_BOOL= spectrum SPECTRUM_DESC= Enable support for TSpectrum SQLITE_CMAKE_BOOL= sqlite SQLITE_DESC= Enable support for SQLite SQLITE_USES= sqlite SSL_CMAKE_BOOL= ssl SSL_DESC= Enable support for SSL encryption via OpenSSL SSL_USES= ssl TMLP_CMAKE_BOOL= mlp TMLP_DESC= Enable support for TMultilayerPerceptron classes' federation TMLP_IMPLIES= TMVAML TMVAML_CMAKE_BOOL= tmva tmva-cpu TMVAML_DESC= Build TMVA multi variate analysis library, including TMVA with CPU support for deep learning TMVAML_IMPLIES= IMT TMVAML_LIB_DEPENDS= libopenblas.so:math/openblas VDT_CMAKE_BOOL= vdt VDT_DESC= Enable support for VDT (fast and vectorisable mathematical functions) VDT_LIB_DEPENDS= libvdt.so:math/vdt WEBGUI_CMAKE_BOOL= webgui WEBGUI_DESC= Build Web-based UI components of ROOT WEBGUI_IMPLIES= HTTP ROOT7 X11_CMAKE_BOOL= x11 X11_DESC= Enable support for X11/Xft X11_USES= xorg X11_USE= xorg=ice,sm,x11,xau,xaw,xcb,xcomposite,xcursor,xdamage,xdmcp,xext \ xorg=xfixes,xfont,xfont2,xft,xi,xinerama,xkbfile,xmu,xpm,xrandr,xrender \ xorg=xres,xscrnsaver,xt,xv,xxf86vm XML_CMAKE_BOOL= xml XML_DESC= Enable support for XML XML_USES= gnome XML_USE= gnome=libxml2 XROOTD_CMAKE_BOOL= xrootd XROOTD_DESC= Enable support for XRootD file server and client XROOTD_LIB_DEPENDS= libXrdCl.so:databases/xrootd .include ROOT_CLANG_VER= 16 PLIST_SUB+= PYVER="${PYTHON_VER:S/./_/}" \ ROOT_CLANG_VER="${ROOT_CLANG_VER}" \ SHLIB_SHVER="${DISTVERSION:R}" \ SHLIB_VER="${DISTVERSION}" # A few headers are only installed on aarch64 .if ${OPSYS} == FreeBSD && ${ARCH} == "aarch64" PLIST_SUB+= ONLY_INSTALLED_ON_AARCH64="" .else PLIST_SUB+= ONLY_INSTALLED_ON_AARCH64="@comment " .endif # Files in lib/root/__pycache__ have links into WRKDIR and should not be staged post-install: ${RM} -r ${STAGEDIR}${PREFIX}/lib/root/__pycache__ .include diff --git a/editors/openoffice-4/Makefile b/editors/openoffice-4/Makefile index b34fd959c664..16a815f355ae 100644 --- a/editors/openoffice-4/Makefile +++ b/editors/openoffice-4/Makefile @@ -1,523 +1,523 @@ PORTNAME= apache-openoffice PORTVERSION= ${AOOVERSION} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= editors java MASTER_SITES= https://dlcdn.apache.org/openoffice/${PORTVERSION}/source/ \ https://archive.apache.org/dist/openoffice/${PORTVERSION}/source/ \ http://tools.openoffice.org/unowinreg_prebuild/680/:unoreg \ LOCAL/truckman/openoffice:extsrc \ SF/oooextras.mirror/:sf .if defined(LANG_PKGNAME) PKGNAMEPREFIX= ${LANG_PKGNAME}- .endif .if defined(LANG_SUFFIX) PKGNAMESUFFIX= -${LANG_SUFFIX} .endif DISTFILES= ${AOOSRC} ${EXTSRC}:extsrc ${PYTHON_DISTFILE}:sf \ ${GCC_EXTRA_DISTFILES:C/.*/&:sf/g} DIST_SUBDIR= openoffice EXTRACT_ONLY= ${AOOSRC} MAINTAINER= office@FreeBSD.org #de facto maintainer is truckman@FreeBSD.org #Frequent Patch submitters should (optionally) sign the Apache iCLA COMMENT= Integrated wordprocessor/dbase/spreadsheet/drawing/chart/browser WWW= https://openoffice.apache.org/ LICENSE= APACHE20 ADOBE BSD3CLAUSE BSD4CLAUSE BSL ICU MIT MPL10 \ MPL11 PSFL TWAIN W3C LICENSE_COMB= multi LICENSE_NAME_ADOBE= Adobe Systems Incorporated license LICENSE_NAME_ICU= ICU License LICENSE_NAME_TWAIN= TWAIN Working Group license LICENSE_NAME_W3C= W3C license LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE_ALv2 LICENSE_FILE_ADOBE= ${WRKSRC}/LICENSE_ADOBE LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE_BSD3CLAUSE LICENSE_FILE_BSD4CLAUSE= ${WRKSRC}/LICENSE_BSD4CLAUSE LICENSE_FILE_BSL= ${WRKSRC}/LICENSE_BSL LICENSE_FILE_ICU= ${WRKSRC}/LICENSE_ICU LICENSE_FILE_MIT= ${WRKSRC}/LICENSE_MIT LICENSE_FILE_MPL10= ${WRKSRC}/LICENSE_MPL10 LICENSE_FILE_MPL11= ${WRKSRC}/LICENSE_MPL11 LICENSE_FILE_PSFL= ${WRKSRC}/LICENSE_PSFL LICENSE_FILE_TWAIN= ${WRKSRC}/LICENSE_TWAIN LICENSE_FILE_W3C= ${WRKSRC}/LICENSE_W3C LICENSE_PERMS_ADOBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_ICU= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_TWAIN= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_W3C= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= amd64 i386 powerpc64 BUILD_DEPENDS= \ p5-Archive-Zip>=0:archivers/p5-Archive-Zip \ ${LOCALBASE}/bin/unzip:archivers/unzip \ zip:archivers/zip \ ant:devel/apache-ant \ dmake:devel/dmake \ epm:devel/epm \ ${LOCALBASE}/bin/gperf:devel/gperf \ imake:devel/imake \ libunwind>=20211201_1:devel/libunwind \ gpatch:devel/patch \ ${LOCALBASE}/include/sane/sane.h:graphics/sane-backends \ ${JAVALIBDIR}/commons-lang.jar:java/apache-commons-lang \ ${JAVALIBDIR}/junit.jar:java/junit \ ${JAVALIBDIR}/bsh.jar:lang/bsh \ bash:shells/bash \ ${JAVALIBDIR}/lucene-core-3.6.2.jar:textproc/lucene \ p5-XML-Parser>=0:textproc/p5-XML-Parser \ p5-libwww>=0:www/p5-libwww \ p5-LWP-Protocol-https>0:www/p5-LWP-Protocol-https LIB_DEPENDS= \ libapr-1.so:devel/apr1 \ libnspr4.so:devel/nspr \ libcurl.so:ftp/curl \ libcairo.so:graphics/cairo \ libpng16.so:graphics/png \ libgraphite.so:graphics/silgraphite \ libblas.so:math/blas \ libCbcSolver.so:math/cbc \ libCgl.so:math/cgl \ libcoinasl.so:math/asl \ libClpSolver.so:math/clp \ libCoinMP.so:math/coinmp \ libCoinUtils.so:math/coinutils \ libcoinmumps.so:math/coin-or-mumps \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ libnss3.so:security/nss \ libexpat.so:textproc/expat2 \ libhunspell-1.7.so:textproc/hunspell \ libhyphen.so:textproc/hyphen \ libtextcat.so:textproc/libtextcat \ libmythes-1.2.so:textproc/mythes \ librdf.so:textproc/redland \ libserf-1.so:www/serf \ libfontconfig.so:x11-fonts/fontconfig RUN_DEPENDS= \ ${LOCALBASE}/share/icons/hicolor/index.theme:misc/hicolor-icon-theme \ ${JAVALIBDIR}/commons-lang.jar:java/apache-commons-lang \ ${JAVALIBDIR}/bsh.jar:lang/bsh \ ${LOCALBASE}/share/fonts/Caladea/Caladea-Bold.ttf:x11-fonts/crosextrafonts-caladea-ttf \ ${LOCALBASE}/share/fonts/Carlito/Carlito-Bold.ttf:x11-fonts/crosextrafonts-carlito-ttf \ ${LOCALBASE}/share/fonts/ChromeOS/Arimo-Bold.ttf:x11-fonts/croscorefonts-fonts-ttf # For libgfortran.so and libquadmath.so BUILD_DEPENDS+= gcc${GCC_DEFAULT}>0:lang/gcc${GCC_DEFAULT} RUN_DEPENDS+= gcc${GCC_DEFAULT}>0:lang/gcc${GCC_DEFAULT} USES= autoreconf bison compiler:c++11-lib cpe desktop-file-utils \ gettext-runtime gl gmake gnome iconv java jpeg perl5 pkgconfig \ shared-mime-info ssl tar:bzip2 xorg USE_GL= gl glu USE_GNOME= gdkpixbuf2 gdkpixbuf2xlib gtk20 libxslt glib20 JAVA_VENDOR= openjdk USE_PERL5= build USE_XORG= ice sm x11 xau xaw xcomposite xcursor xdamage xext xfixes xi \ xinerama xrandr xrender xt CONFLICTS_INSTALL= apache-openoffice-devel AOOVERSION1= 4 AOOVERSION2= 1 AOOVERSION3= 15 # From solenv/inc/minor.mk SOURCEREVISION LAST_MINOR BUILD AOOTAG= AOO4115m2\(Build:9813\) GITREVISION= 5f13fa0070 EXTSRC= ApacheOpenOffice.ext_sources.${AOOVERSION1}.x.x.20150707.tar.gz AOOVERSION= ${AOOVERSION1}.${AOOVERSION2}.${AOOVERSION3} AOOXXX= ${AOOVERSION1}${AOOVERSION2}${AOOVERSION3} AOOSUFFIX= ${AOOVERSION1}.${AOOVERSION2} AOOSRC= apache-openoffice-${AOOVERSION}-${GITREVISION}-src${EXTRACT_SUFX} AOOUDIR= .openoffice.org\/${AOOVERSION1} INSTALLATION_BASEDIR?= openoffice-${AOOSUFFIX} PRINSTALLATION_BASEDIR= ${PREFIX}/${INSTALLATION_BASEDIR} OOPATH= ${PRINSTALLATION_BASEDIR}/openoffice${AOOVERSION1} XDGDIR= ${OOPATH}/share/xdg XDGREL= ../../${INSTALLATION_BASEDIR}/openoffice${AOOVERSION1}/share/xdg EXECBASE?= openoffice-${AOOSUFFIX} WITHOUT_CPU_CFLAGS= true CPE_PRODUCT= ${PORTNAME:S|apache-||} CPE_VENDOR= apache OPTIONS_DEFINE= CRASHDUMP CUPS DBGUTIL DEBUG GNOME \ SDK WIKI_PUBLISHER OPTIONS_DEFAULT= CUPS GNOME WIKI_PUBLISHER CRASHDUMP_DESC= Enable crashdumps, you also need to set WITH_DEBUG_PORTS+=${PKGORIGIN} DBGUTIL_DESC= Enable assertions, object counting. (non-production) DEBUG_DESC= Compile with -O0, you also need to set WITH_DEBUG_PORTS+=${PKGORIGIN} GNOME_DESC= Screensaver presentation control via DBUS SDK_DESC= Build and install software development kit WIKI_PUBLISHER_DESC= Build and install Wiki Publisher extension CRASHDUMP_CONFIGURE_ENABLE= crashdump CUPS_CONFIGURE_ENABLE= cups CUPS_LIB_DEPENDS= libcups.so:print/cups DBGUTIL_CONFIGURE_ENABLE= dbgutil DEBUG_CONFIGURE_ENABLE= debug GNOME_CONFIGURE_ENABLE= dbus lockdown GNOME_LIB_DEPENDS= libdbus-1.so:devel/dbus \ libdbus-glib-1.so:devel/dbus-glib SDK_CONFIGURE_ENABLE= odk SDK_DISTFILES= unowinreg.dll:unoreg WIKI_PUBLISHER_CONFIGURE_ENABLE= wiki-publisher WIKI_PUBLISHER_CONFIGURE_WITH= \ commons-codec-jar=${JAVALIBDIR}/commons-codec.jar \ commons-httpclient-jar=${JAVALIBDIR}/commons-httpclient.jar \ commons-logging-jar=${JAVALIBDIR}/commons-logging.jar WIKI_PUBLISHER_JAR_DEPENDS= \ ${JAVALIBDIR}/commons-codec.jar:java/apache-commons-codec \ ${JAVALIBDIR}/commons-httpclient.jar:java/apache-commons-httpclient \ ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging WIKI_PUBLISHER_BUILD_DEPENDS= ${WIKI_PUBLISHER_JAR_DEPENDS} WIKI_PUBLISHER_RUN_DEPENDS= ${WIKI_PUBLISHER_JAR_DEPENDS} WIKI_PUBLISHER_VARS= BUNDLED_EXTENSIONS+=swext/wiki-publisher.oxt # Don't run gnome-post-icons until after post-install generates the plist TARGET_ORDER_OVERRIDE= 710:gnome-post-icons # Force the SDK option on for makesum to ensure that unowinreg.dll is # included in distinfo .if make(makesum) || make(distclean) WITH= SDK .endif .include .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-symbols .else CONFIGURE_ARGS+= --enable-strip-solver .endif .include <${FILESDIR}/Makefile.localized> PYTHON_DISTFILE= 38c84292658ed4456157195f1c9bcbe1-Python-2.7.18.tgz GCC_EXTRA_DISTFILES= d6eef4b4cacb2183f2bf265a5a03a354-boost_1_55_0.tar.bz2 \ d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz .if ${CHOSEN_COMPILER_TYPE} == clang CPPFLAGS+= -I${LOCALBASE}/include . if ${ARCH} == amd64 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-align16 . endif .endif .if ${ARCH} == amd64 FREEBSD_ENV_SET= FreeBSDAMDEnv.Set.sh PACKAGE_MIDDLE= ${PORTVERSION}_${OPSYS}_x86-64 .elif ${ARCH} == i386 FREEBSD_ENV_SET= FreeBSDX86Env.Set.sh PACKAGE_MIDDLE= ${PORTVERSION}_${OPSYS}_x86 .elif ${ARCH} == powerpc64 FREEBSD_ENV_SET= FreeBSDPPC64Env.Set.sh PACKAGE_MIDDLE= ${PORTVERSION}_${OPSYS}_ppc64 .endif PACKAGE_PREFIX= Apache_OpenOffice LOCALIZED_LANG?= en-US AOO_MAKE_ENV= ${MAKE_ENV:NCPPFLAGS=*:NCFLAGS=*:NCXXFLAGS=*:NLDFLAGS=*} GNU_CONFIGURE= yes WRKSUBDIR= ${WRKDIR}/aoo-${AOOVERSION} WRKSRC?= ${WRKSUBDIR}/main SUB_FILES= pkg-message SUB_LIST= EXECBASE=${EXECBASE} AOOTAG=${AOOTAG} AOOUDIR=${AOOUDIR} \ AOOVERSION=${AOOVERSION} \ PRINSTALLATION_BASEDIR=${PRINSTALLATION_BASEDIR} CONFIGURE_ARGS+= \ --disable-gconf \ --enable-gio \ --disable-gnome-vfs \ --with-unix-wrapper=${EXECBASE} \ --with-alloc=system \ --with-ant-home=${LOCALBASE}/share/java/apache-ant \ --with-system-apache-commons=yes \ --with-commons-lang-jar=${JAVALIBDIR}/commons-lang.jar \ --with-system-apr \ --with-system-apr-util \ --with-system-beanshell \ --with-beanshell-jar=${JAVALIBDIR}/bsh.jar \ --enable-category-b \ --with-system-cairo --enable-cairo \ --with-system-coinmp \ --with-system-curl \ --with-system-dicts \ --with-epm=${LOCALBASE}/bin/epm \ --with-system-expat \ --disable-fetch-external \ --without-fonts \ --with-gnu-patch=${LOCALBASE}/bin/gpatch \ --with-gperf=${LOCALBASE}/bin/gperf \ --with-system-graphite \ --enable-gtk \ --with-system-hunspell \ --with-external-dict-dir=${LOCALBASE}/share/hunspell \ --with-system-hyphen \ --with-external-hyph-dir=${LOCALBASE}/share/hyphen \ --with-jdk-home=${JAVA_HOME} \ --with-system-jpeg \ --with-junit=${JAVALIBDIR}/junit.jar \ --with-system-libtextcat \ --disable-kde \ --disable-kde4 \ --with-system-libxml \ --with-system-libxslt \ --with-system-lucene \ --with-lucene-core-jar=${JAVALIBDIR}/lucene-core-3.6.2.jar \ --with-lucene-analyzers-jar=${JAVALIBDIR}/lucene-analyzers-3.6.2.jar \ --with-system-mythes \ --with-external-thes-dir=${LOCALBASE}/share/mythes \ --with-system-nss \ --enable-opengl \ --with-system-openssl \ --with-package-format="archive" \ --without-system-python \ --with-system-redland \ --with-system-sane \ --with-system-serf \ --with-system-stdlibs \ --with-vendor="FreeBSD ports system" \ --with-build-version="PKGNAME: ${PKGNAME:S/,/@/g}" \ --enable-verbose \ --with-system-xrender \ --with-system-zlib .if defined (BUNDLED_EXTENSIONS) CONFIGURE_ARGS+= --with-bundled-prereg-extensions="${BUNDLED_EXTENSIONS}" .endif CREATE_TREE= ${WRKSRC}/sysui/desktop/share/create_tree.sh .include <${FILESDIR}/Makefile.knobs> pre-everything:: # really tweak, extremely useful when you build all localized language versions # needed after when you build with ALL_LOCALIZED_LANGS. .if defined(TWEAK_L10N) ${RM} ${WRKDIR}/.PLIST* ${RM} ${WRKDIR}/.install_done.* ${RM} ${WRKDIR}/.package_done.* ${RM} ${WRKDIR}/.extract_done.* ${RM} ${WRKDIR}/.patch_done.* ${RM} ${WRKDIR}/.configure_done.* ${RM} ${WRKDIR}/.build_done.* ${MKDIR} ${WRKDIR} ${TOUCH} ${EXTRACT_COOKIE} ${TOUCH} ${PATCH_COOKIE} ${TOUCH} ${CONFIGURE_COOKIE} ${TOUCH} ${BUILD_COOKIE} .endif do-extract-SDK-on: ${CP} ${DISTDIR}/${DIST_SUBDIR}/unowinreg.dll ${WRKSRC}/external/unowinreg/ post-extract: ${TAR} -C ${WRKSUBDIR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EXTSRC} ${CP} ${DISTDIR}/${DIST_SUBDIR}/${PYTHON_DISTFILE} ${WRKSUBDIR}/ext_sources/${PYTHON_DISTFILE} .for f in ${GCC_EXTRA_DISTFILES} ${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSUBDIR}/ext_sources/${f} .endfor ${CP} ${FILESDIR}/freebsd-aoo-intro.png \ ${WRKSRC}/default_images/introabout/intro.png ${CP} ${FILESDIR}/freebsd-aoo-about.png \ ${WRKSRC}/default_images/introabout/about.png ${RM} -r ${WRKSRC}/l10n ${LN} -sf ${UNZIP_CMD} ${WRKSRC}/solenv/bin/unzip ${SED} -e '\|^For main/vcl/unx/generic/fontmanager/parseAFM|,/^__/p' \ -e '\|^For PostScript(R) AFM|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_ADOBE} ${SED} -e '\|^For main/unixODBC|,/^__/p' \ -e '\|^For main/connectivity|,/^__/p' \ -e '\|^For main/libtextcat/data|,/^__/p' \ -e '\|^For integration of HSQLDB|,/^__/p' \ -e '\|^For C preprocessor|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_BSD3CLAUSE} ${SED} -e '\|^For ICC |,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_BSD4CLAUSE} ${SED} -e '\|^For integration of the C++ Boost |,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_BSL} ${SED} -e '\|^For main/i18npool/source/breakiterator|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_ICU} ${SED} -e '\|^For Multi-Dimensional Data|,/^__/p' \ -e '\|^For XSLT MathML Library|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_MIT} ${SED} -e '\|^For XMLSec Library|,/^__/p' \ -e d ${WRKSRC}/LICENSE_category_b >> ${LICENSE_FILE_MIT} ${SED} -e '\|^For Saxon|,/^__/p' \ -e d ${WRKSRC}/LICENSE_category_b > ${LICENSE_FILE_MPL10} ${SED} -e '\|^The following Licenses have some restrictions|,/^- For Network/p' \ -e d ${WRKSRC}/LICENSE_category_b | \ ${SED} -e :a -e '$d;N;2,3ba' -e 'P;D' > ${LICENSE_FILE_MPL11} ${SED} -e '\|^For main/filter/source/config/tools/merge/pyAltFCFGMerge|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_PSFL} ${ECHO} '' >> ${LICENSE_FILE_PSFL} ${SED} -e '\|^For Python|,/^__/p' \ -e d ${WRKSRC}/LICENSE >> ${LICENSE_FILE_PSFL} ${SED} -e '\|^For main/twain|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_TWAIN} ${SED} -e '\|^For main/MathMLDTD|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_W3C} post-patch: ${REINPLACE_CMD} -e "/^ICONVERSION/s/=.*/= '${AOOVERSION1}'/" \ ${WRKSRC}/sysui/desktop/productversion.mk ${REINPLACE_CMD} -e "s|%%JAVA_HOME%%|${JAVA_HOME}|" \ ${WRKSRC}/desktop/scripts/soffice.sh ${REINPLACE_CMD} -e '/^mkdir -p/,$$d' ${CREATE_TREE} .if ${CHOSEN_COMPILER_TYPE} == gcc # g++49 -Os sometimes leaves inline class methods undefined, # affects fmgridif.cxx and ColumnControl.cxx # See: if [ ${CXX} = g++49 ]; then \ ${REINPLACE_CMD} -e "s/ := -Os/ := -Os -fno-devirtualize -fno-devirtualize-speculatively/" ${WRKSRC}/solenv/gbuild/platform/freebsd.mk; \ ${REINPLACE_CMD} -e "s/=-Os /=-Os -fno-devirtualize -fno-devirtualize-speculatively /" ${WRKSRC}/solenv/inc/unxfbsdi.mk; \ fi .elif ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == clang # autodoc and uno (bridgetest) core dump when built with with -Os # on i386, affects file.cxx and bridgetest.cxx (at least). # Using -O2 optimiztion works, and -Os is essentially -O2 with out # loop unrolling. # Changing optimization in just unxfbsdi.mk is sufficient to get # a successful build, but change it in both places to avoid the # possibility of obscure runtime problems, which is likely # since this seems to be a generic bug in code generation for # exception handling. # See: ${REINPLACE_CMD} -e "s/=-Os /=-O2 -fno-unroll-loops /" ${WRKSRC}/solenv/inc/unxfbsdi.mk ${REINPLACE_CMD} -e "s/ := -Os/ := -O2 -fno-unroll-loops/" ${WRKSRC}/solenv/gbuild/platform/freebsd.mk .endif # Verify that lucene was built with the CONTRIB option instead of # failing mysteriously during the build pre-configure: @if [ ! -f ${JAVALIBDIR}/lucene-analyzers-3.6.2.jar ]; then \ ${ECHO} "error: textproc/lucene must be built with the CONTRIB option enabled"; \ exit 1; \ fi do-build: ${PRINTF} "[repositories]\nmain=active\nextras=active\n" > ${WRKSUBDIR}/source_config cd ${WRKSRC} ; ./bootstrap # # numproc controls the number of parallel makes. # # dmproc is passed to dmake and controls parallelization at that # level. # # dmproc > numproc seems to give shorter build times than # numproc > dmproc. # # Select values for numproc and dmproc such that: # * numproc*dmproc >= MAKE_JOBS_NUMBER # * minimize numproc*dmproc-MAKE_JOBS_NUMBER # * dmproc >= numproc # * dmproc <= 2*numproc if MAKE_JOBS_NUMBER <= 3 # if [ ${MAKE_JOBS_NUMBER} -le 3 ] ; then \ numproc=1 ; dmproc=${MAKE_JOBS_NUMBER} ; \ else \ a=1 ; \ while [ $$(( 2 * $${a} * $${a} )) -lt ${MAKE_JOBS_NUMBER} ]; do \ a=$$(( $${a} + 1 )) ; \ done ; \ b=$$(( $${a} + 1 )) ; \ ad=$$(( ( ${MAKE_JOBS_NUMBER} + $${a} - 1 ) / $${a} )) ; \ ap=$$(( $${a} * $${ad} )) ; \ bd=$$(( ( ${MAKE_JOBS_NUMBER} + $${b} - 1 ) / $${b} )) ; \ bp=$$(( $${b} * $${bd} )) ; \ if [ $${ap} -le $${bp} ]; then \ numproc=$${a} ; dmproc=$${ad} ; \ else \ numproc=$${b} ; dmproc=$${bd} ; \ fi ; \ fi ; \ cd ${WRKSRC}/instsetoo_native ; \ export ${AOO_MAKE_ENV} ; \ . ../${FREEBSD_ENV_SET} ; \ build.pl --all -P$${numproc} -- -P$${dmproc} PYDL= ${STAGEDIR}${OOPATH}/program/python-core-2.7.18/lib/lib-dynload do-install: @${MKDIR} ${STAGEDIR}${PRINSTALLATION_BASEDIR} \ ${STAGEDIR}${PREFIX}/share/mime/packages @cd ${WRKSRC} ; \ . ${FREEBSD_ENV_SET} ; \ cd instsetoo_native/$${INPATH}/Apache_OpenOffice/archive/install/${LOCALIZED_LANG}/ ; \ for i in *.tar.?z ; do \ ${ECHO_CMD} "extracting $$i" ; \ ${TAR} -s '|./[^/]*/||' -xz -f $$i \ -C ${STAGEDIR}${PRINSTALLATION_BASEDIR} ; \ done ${RM} ${PYDL}/_sqlite3.so ${PYDL}/gdbm.so ${PYDL}/readline.so ${FIND} ${STAGEDIR}${PRINSTALLATION_BASEDIR} -type d -exec ${CHMOD} 755 {} \; ${REINPLACE_CMD} \ -e '/^UserInstallation/s/=.*/=$$SYSUSERCONFIG\/${AOOUDIR}/' \ ${STAGEDIR}${OOPATH}/program/bootstraprc @${RM} ${STAGEDIR}${OOPATH}/program/bootstraprc.bak @${ECHO_CMD} "adding wrapper scripts"; @${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/ @${REINPLACE_CMD} -e 's#%%OOPATH%%#${OOPATH}#g' \ -e 's#%%EXECBASE%%#${EXECBASE}#g' \ ${WRKDIR}/openoffice-wrapper ${INSTALL_SCRIPT} ${WRKDIR}/openoffice-wrapper \ ${STAGEDIR}${PREFIX}/bin/${EXECBASE} @cd ${STAGEDIR}${PREFIX}/bin; for i in printeradmin sbase scalc sdraw \ simpress smath spadmin swriter ; do \ ${LN} -f ${EXECBASE} ${EXECBASE}-$${i} ; \ done @${ECHO_CMD} "adding desktop support" @cd ${WRKSRC} ; \ . ${FREEBSD_ENV_SET} ; \ cd sysui/$${INPATH}/misc/openoffice ; \ DESTDIR=${STAGEDIR} \ GNOMEDIR=${PREFIX} \ ICON_PREFIX=openoffice${AOOVERSION1} \ ICON_SOURCE_DIR=${WRKSRC}/sysui/desktop/icons \ ICON_THEMES="hicolor/??x??" \ KDEMAINDIR=${PREFIX} \ PREFIX=openoffice${AOOVERSION1} \ ${SH} ${CREATE_TREE} ; \ ${INSTALL_DATA} apacheopenoffice.xml \ ${STAGEDIR}/${PREFIX}/share/mime/packages @cd ${STAGEDIR}${DESKTOPDIR}; for i in base calc draw impress \ javafilter math printeradmin qstart startcenter writer ; do \ ${LN} -sf ${XDGREL}/$${i}.desktop ${EXECBASE}-$${i}.desktop ; \ done do-install-SDK-on: ${TAR} -s '|./[^/]*/||' -xz -C ${STAGEDIR}${PRINSTALLATION_BASEDIR} \ -f ${WRKSRC}/instsetoo_native/unxfbsd*.pro/Apache_OpenOffice_SDK/archive/install/${LOCALIZED_LANG}/*.tar.gz @f=${STAGEDIR}${OOPATH}/sdk/bin/unoapploader ; \ ${CHMOD} 644 $${f} ; ${STRIP_CMD} $${f} ; ${CHMOD} 444 $${f} post-install: @${ECHO_CMD} "generating plist"; @cd ${STAGEDIR}${PREFIX} ; (\ ${FIND} -s bin -name "${EXECBASE}*" ; \ ${FIND} -s ${INSTALLATION_BASEDIR} share/applications \ share/application-registry share/icons \ share/mime-info share/mime share/mimelnk \! -type d ; \ ${FIND} ${INSTALLATION_BASEDIR} -type d -empty | ${SORT} -r | \ ${SED} -e 's/^/@dir /' ; \ ) >> ${TMPPLIST} .include <${FILESDIR}/Makefile.others> .include diff --git a/editors/openoffice-devel/Makefile b/editors/openoffice-devel/Makefile index 43e5354af883..e61a80f625c2 100644 --- a/editors/openoffice-devel/Makefile +++ b/editors/openoffice-devel/Makefile @@ -1,525 +1,525 @@ PORTNAME= apache-openoffice PORTVERSION= ${AOOVERSION1}.${AOOVERSION2}.${TIMESTAMP} -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 4 CATEGORIES= editors java MASTER_SITES= https://dist.apache.org/repos/dist/dev/openoffice/${AOOVERSION}-${AOORC}-${TIMESTAMP}/source/ \ http://tools.openoffice.org/unowinreg_prebuild/680/:unoreg \ LOCAL/truckman/openoffice:snap,extsrc \ SF/oooextras.mirror/:sf .if defined(LANG_PKGNAME) PKGNAMEPREFIX= ${LANG_PKGNAME}- .endif .if defined(LANG_SUFFIX) PKGNAMESUFFIX= -${LANG_SUFFIX} .endif PKGNAMESUFFIX= -devel DISTFILES= ${AOOSRC}${AOODISTTAG} ${EXTSRC}:extsrc \ ${GCC_EXTRA_DISTFILES:C/.*/&:sf/g} DIST_SUBDIR= openoffice EXTRACT_ONLY= ${AOOSRC} MAINTAINER= office@FreeBSD.org #de facto maintainer is truckman@FreeBSD.org #Frequent Patch submitters should (optionally) sign the Apache iCLA COMMENT= Integrated wordprocessor/dbase/spreadsheet/drawing/chart/browser (developer version) WWW= https://openoffice.apache.org/ LICENSE= APACHE20 ADOBE BSD3CLAUSE BSD4CLAUSE BSL ICU MIT MPL10 \ MPL11 PSFL TWAIN W3C LICENSE_COMB= multi LICENSE_NAME_ADOBE= Adobe Systems Incorporated license LICENSE_NAME_ICU= ICU License LICENSE_NAME_TWAIN= TWAIN Working Group license LICENSE_NAME_W3C= W3C license LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE_ALv2 LICENSE_FILE_ADOBE= ${WRKSRC}/LICENSE_ADOBE LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE_BSD3CLAUSE LICENSE_FILE_BSD4CLAUSE= ${WRKSRC}/LICENSE_BSD4CLAUSE LICENSE_FILE_BSL= ${WRKSRC}/LICENSE_BSL LICENSE_FILE_ICU= ${WRKSRC}/LICENSE_ICU LICENSE_FILE_MIT= ${WRKSRC}/LICENSE_MIT LICENSE_FILE_MPL10= ${WRKSRC}/LICENSE_MPL10 LICENSE_FILE_MPL11= ${WRKSRC}/LICENSE_MPL11 LICENSE_FILE_PSFL= ${WRKSRC}/LICENSE_PSFL LICENSE_FILE_TWAIN= ${WRKSRC}/LICENSE_TWAIN LICENSE_FILE_W3C= ${WRKSRC}/LICENSE_W3C LICENSE_PERMS_ADOBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_ICU= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_TWAIN= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_PERMS_W3C= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= amd64 i386 powerpc64 BROKEN_powerpc64= fails to compile: aoo-4.2.0/main/solver/420/unxfbsdppc64.pro/inc/stl/vector:31:11: fatal error: boost/tr1/tr1/vector: No such file or directory BUILD_DEPENDS= \ p5-Archive-Zip>=0:archivers/p5-Archive-Zip \ ${LOCALBASE}/bin/unzip:archivers/unzip \ zip:archivers/zip \ ant:devel/apache-ant \ dmake:devel/dmake \ epm:devel/epm \ ${LOCALBASE}/bin/gperf:devel/gperf \ imake:devel/imake \ libunwind>=20211201_1:devel/libunwind \ gpatch:devel/patch \ ${LOCALBASE}/include/sane/sane.h:graphics/sane-backends \ ${JAVALIBDIR}/commons-lang3.jar:java/apache-commons-lang3 \ ${JAVALIBDIR}/junit.jar:java/junit \ ${JAVALIBDIR}/bsh.jar:lang/bsh \ bash:shells/bash \ ${JAVALIBDIR}/lucene-core-3.6.2.jar:textproc/lucene \ p5-XML-Parser>=0:textproc/p5-XML-Parser \ p5-libwww>=0:www/p5-libwww \ p5-LWP-Protocol-https>0:www/p5-LWP-Protocol-https LIB_DEPENDS= \ libapr-1.so:devel/apr1 \ libnspr4.so:devel/nspr \ libcurl.so:ftp/curl \ libcairo.so:graphics/cairo \ libpng16.so:graphics/png \ libgraphite.so:graphics/silgraphite \ libblas.so:math/blas \ libCbcSolver.so:math/cbc \ libCgl.so:math/cgl \ libcoinasl.so:math/asl \ libClpSolver.so:math/clp \ libCoinMP.so:math/coinmp \ libCoinUtils.so:math/coinutils \ libcoinmumps.so:math/coin-or-mumps \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ libnss3.so:security/nss \ libexpat.so:textproc/expat2 \ libhunspell-1.7.so:textproc/hunspell \ libhyphen.so:textproc/hyphen \ libtextcat.so:textproc/libtextcat \ libmythes-1.2.so:textproc/mythes \ librdf.so:textproc/redland \ libserf-1.so:www/serf \ libfontconfig.so:x11-fonts/fontconfig RUN_DEPENDS= \ ${LOCALBASE}/share/icons/hicolor/index.theme:misc/hicolor-icon-theme \ ${JAVALIBDIR}/commons-lang3.jar:java/apache-commons-lang3 \ ${JAVALIBDIR}/bsh.jar:lang/bsh \ ${LOCALBASE}/share/fonts/Caladea/Caladea-Bold.ttf:x11-fonts/crosextrafonts-caladea-ttf \ ${LOCALBASE}/share/fonts/Carlito/Carlito-Bold.ttf:x11-fonts/crosextrafonts-carlito-ttf \ ${LOCALBASE}/share/fonts/ChromeOS/Arimo-Bold.ttf:x11-fonts/croscorefonts-fonts-ttf # For libgfortran.so and libquadmath.so BUILD_DEPENDS+= gcc${GCC_DEFAULT}>0:lang/gcc${GCC_DEFAULT} RUN_DEPENDS+= gcc${GCC_DEFAULT}>0:lang/gcc${GCC_DEFAULT} USES= autoreconf bison compiler:c++11-lib cpe desktop-file-utils \ gettext-runtime gl gmake gnome iconv java jpeg perl5 pkgconfig \ python shared-mime-info ssl tar:${TARTYPE} xorg USE_GL= gl glu USE_GNOME= gdkpixbuf2 gdkpixbuf2xlib gtk20 libxslt glib20 JAVA_VENDOR= openjdk USE_PERL5= build USE_XORG= ice sm x11 xau xaw xcomposite xcursor xdamage xext xfixes xi \ xinerama xrandr xrender xt CONFLICTS_INSTALL= apache-openoffice-4* AOOVERSION1= 4 AOOVERSION2= 2 AOOVERSION3= 0 # From solenv/inc/minor.mk SOURCEREVISION LAST_MINOR BUILD AOOTAG= AOO420m4\(Build:9823\) GITREVISION= 98a91fccb4 TIMESTAMP= 1731847285 #AOORC=rc3 EXTSRC= ApacheOpenOffice.ext_sources.${AOOVERSION1}.x.x.20150707.tar.gz AOOVERSION= ${AOOVERSION1}.${AOOVERSION2}.${AOOVERSION3} AOOXXX= ${AOOVERSION1}${AOOVERSION2}${AOOVERSION3} AOOSUFFIX= ${AOOVERSION1}.${AOOVERSION2} .if defined(AOORC) AOOSRC= apache-openoffice-${AOOVERSION}-${GITREVISION}-src${EXTRACT_SUFX} AOODISTTAG= TARTYPE= bzip2 .else AOOSRC= apache-openoffice-${TIMESTAMP}-${GITREVISION}-src${EXTRACT_SUFX} AOODISTTAG= :snap TARTYPE= xz .endif AOOUDIR= .openoffice.org\/${AOOVERSION1} INSTALLATION_BASEDIR?= openoffice-${AOOSUFFIX} PRINSTALLATION_BASEDIR= ${PREFIX}/${INSTALLATION_BASEDIR} OOPATH= ${PRINSTALLATION_BASEDIR}/openoffice${AOOVERSION1} XDGDIR= ${OOPATH}/share/xdg XDGREL= ../../${INSTALLATION_BASEDIR}/openoffice${AOOVERSION1}/share/xdg EXECBASE?= openoffice-${AOOSUFFIX} WITHOUT_CPU_CFLAGS= true CPE_PRODUCT= ${PORTNAME:S|apache-||} CPE_VENDOR= apache OPTIONS_DEFINE= CRASHDUMP CUPS DBGUTIL DEBUG GNOME MMEDIA \ MYSQL PDFIMPORT REPORT_BUILDER SDK WIKI_PUBLISHER OPTIONS_DEFAULT= CUPS GNOME MMEDIA WIKI_PUBLISHER CRASHDUMP_DESC= Enable crashdumps, you also need to set WITH_DEBUG_PORTS+=${PKGORIGIN} DBGUTIL_DESC= Enable assertions, object counting. (non-production) DEBUG_DESC= Compile with -O0, you also need to set WITH_DEBUG_PORTS+=${PKGORIGIN} GNOME_DESC= Screensaver presentation control via DBUS MMEDIA_DESC= Multimedia backend for impress MYSQL_DESC= Build MySQL Connector extension PDFIMPORT_DESC= Build and install PDF import extension REPORT_BUILDER_DESC= Build and install Report builder extension (Broken) SDK_DESC= Build and install software development kit WIKI_PUBLISHER_DESC= Build and install Wiki Publisher extension CRASHDUMP_CONFIGURE_ENABLE= crashdump CUPS_CONFIGURE_ENABLE= cups CUPS_LIB_DEPENDS= libcups.so:print/cups DBGUTIL_CONFIGURE_ENABLE= dbgutil DEBUG_CONFIGURE_ENABLE= debug GNOME_CONFIGURE_ENABLE= dbus lockdown GNOME_LIB_DEPENDS= libdbus-1.so:devel/dbus \ libdbus-glib-1.so:devel/dbus-glib MMEDIA_CONFIGURE_ENABLE= gstreamer MMEDIA_USES= gstreamer MYSQL_CONFIGURE_ENABLE= mysql-connector MYSQL_CONFIGURE_WITH= system-mysql MYSQL_LIB_DEPENDS= libmysqlcppconn.so:databases/mysql-connector-c++ MYSQL_USES= mysql MYSQL_VARS= IGNORE_WITH_MYSQL="80 81" SDK_CONFIGURE_ENABLE= odk SDK_DISTFILES= unowinreg.dll:unoreg PDFIMPORT_BROKEN= PDFIMPORT is not compatible with poppler-0.7x API PDFIMPORT_CONFIGURE_ENABLE= pdfimport REPORT_BUILDER_BROKEN= REPORT_BUILDER option requires additional .jar files REPORT_BUILDER_CONFIGURE_ENABLE= report-builder REPORT_BUILDER_JAR_DEPENDS= REPORT_BUILDER_BUILD_DEPENDS= ${REPORT_BUILDER_JAR_DEPENDS} REPORT_BUILDER_RUN_DEPENDS= ${REPORT_BUILDER_JAR_DEPENDS} WIKI_PUBLISHER_CONFIGURE_ENABLE= wiki-publisher WIKI_PUBLISHER_CONFIGURE_WITH= \ commons-codec-jar=${JAVALIBDIR}/commons-codec.jar \ commons-httpclient-jar=${JAVALIBDIR}/commons-httpclient.jar WIKI_PUBLISHER_JAR_DEPENDS= \ ${JAVALIBDIR}/commons-codec.jar:java/apache-commons-codec \ ${JAVALIBDIR}/commons-httpclient.jar:java/apache-commons-httpclient WIKI_PUBLISHER_BUILD_DEPENDS= ${WIKI_PUBLISHER_JAR_DEPENDS} WIKI_PUBLISHER_RUN_DEPENDS= ${WIKI_PUBLISHER_JAR_DEPENDS} # Don't run gnome-post-icons until after post-install generates the plist TARGET_ORDER_OVERRIDE= 710:gnome-post-icons # Force the SDK option on for makesum to ensure that unowinreg.dll is # included in distinfo .if make(makesum) || make(distclean) WITH= SDK .endif .include .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-symbols .else CONFIGURE_ARGS+= --enable-strip-solver .endif .if ${PORT_OPTIONS:MREPORT_BUILDER} || ${PORT_OPTIONS:MWIKI_PUBLISHER} BUILD_DEPENDS+= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging RUN_DEPENDS+= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging CONFIGURE_ARGS+= --with-commons-logging-jar=${JAVALIBDIR}/commons-logging.jar .else CONFIGURE_ARGS+= --without-commons-logging .endif .include <${FILESDIR}/Makefile.localized> GCC_EXTRA_DISTFILES= d6eef4b4cacb2183f2bf265a5a03a354-boost_1_55_0.tar.bz2 \ e3738abd0d3ce1870dc1fd1f22bba5b1-icu4c-4_2_1-src.tgz \ d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz .if ${CHOSEN_COMPILER_TYPE} == clang CPPFLAGS+= -I${LOCALBASE}/include .endif .if ${ARCH} == amd64 FREEBSD_ENV_SET= FreeBSDAMDEnv.Set.sh PACKAGE_MIDDLE= ${PORTVERSION}_${OPSYS}_x86-64 .elif ${ARCH} == i386 FREEBSD_ENV_SET= FreeBSDX86Env.Set.sh PACKAGE_MIDDLE= ${PORTVERSION}_${OPSYS}_x86 .elif ${ARCH} == powerpc64 FREEBSD_ENV_SET= FreeBSDPPC64Env.Set.sh PACKAGE_MIDDLE= ${PORTVERSION}_${OPSYS}_ppc64 .endif PACKAGE_PREFIX= Apache_OpenOffice LOCALIZED_LANG?= en-US AOO_MAKE_ENV= ${MAKE_ENV:NCPPFLAGS=*:NCFLAGS=*:NCXXFLAGS=*} GNU_CONFIGURE= yes WRKSUBDIR= ${WRKDIR}/aoo-${AOOVERSION} WRKSRC?= ${WRKSUBDIR}/main SUB_FILES= pkg-message SUB_LIST= EXECBASE=${EXECBASE} AOOTAG=${AOOTAG} AOOUDIR=${AOOUDIR} \ PRINSTALLATION_BASEDIR=${PRINSTALLATION_BASEDIR} CONFIGURE_ARGS+= \ --disable-gconf \ --enable-gio \ --disable-gnome-vfs \ --with-unix-wrapper=${EXECBASE} \ --with-alloc=system \ --with-ant-home=${LOCALBASE}/share/java/apache-ant \ --with-system-apache-commons=yes \ --with-commons-lang-jar=${JAVALIBDIR}/commons-lang3.jar \ --with-system-apr \ --with-system-apr-util \ --with-system-beanshell \ --with-beanshell-jar=${JAVALIBDIR}/bsh.jar \ --enable-category-b \ --with-system-cairo --enable-cairo \ --with-system-coinmp \ --with-system-curl \ --with-system-dicts \ --with-epm=${LOCALBASE}/bin/epm \ --with-system-expat \ --disable-fetch-external \ --without-fonts \ --with-gnu-patch=${LOCALBASE}/bin/gpatch \ --with-gperf=${LOCALBASE}/bin/gperf \ --with-system-graphite \ --enable-gtk \ --with-system-hunspell \ --with-external-dict-dir=${LOCALBASE}/share/hunspell \ --with-system-hyphen \ --with-external-hyph-dir=${LOCALBASE}/share/hyphen \ --with-jdk-home=${JAVA_HOME} \ --with-system-jpeg \ --with-junit=${JAVALIBDIR}/junit.jar \ --with-system-libtextcat \ --disable-kde \ --disable-kde4 \ --with-system-libxml \ --with-system-libxslt \ --with-system-lucene \ --with-lucene-core-jar=${JAVALIBDIR}/lucene-core-3.6.2.jar \ --with-lucene-analyzers-jar=${JAVALIBDIR}/lucene-analyzers-3.6.2.jar \ --with-system-mythes \ --with-external-thes-dir=${LOCALBASE}/share/mythes \ --with-system-nss \ --enable-opengl \ --with-system-openssl \ --with-package-format="archive" \ --with-system-python \ --with-system-redland \ --with-system-sane \ --with-system-serf \ --with-system-stdlibs \ --with-vendor="FreeBSD ports system" \ --with-build-version="PKGNAME: ${PKGNAME:S/,/@/g}" \ --enable-verbose \ --with-system-xrender \ --with-system-zlib CREATE_TREE= ${WRKSRC}/sysui/desktop/share/create_tree.sh .include <${FILESDIR}/Makefile.knobs> pre-everything:: # really tweak, extremely useful when you build all localized language versions # needed after when you build with ALL_LOCALIZED_LANGS. .if defined(TWEAK_L10N) ${RM} ${WRKDIR}/.PLIST* ${RM} ${WRKDIR}/.install_done.* ${RM} ${WRKDIR}/.package_done.* ${RM} ${WRKDIR}/.extract_done.* ${RM} ${WRKDIR}/.patch_done.* ${RM} ${WRKDIR}/.configure_done.* ${RM} ${WRKDIR}/.build_done.* ${MKDIR} ${WRKDIR} ${TOUCH} ${EXTRACT_COOKIE} ${TOUCH} ${PATCH_COOKIE} ${TOUCH} ${CONFIGURE_COOKIE} ${TOUCH} ${BUILD_COOKIE} .endif do-extract-SDK-on: ${CP} ${DISTDIR}/${DIST_SUBDIR}/unowinreg.dll ${WRKSRC}/external/unowinreg/ post-extract: ${TAR} -C ${WRKSUBDIR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${EXTSRC} .for f in ${GCC_EXTRA_DISTFILES} ${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSUBDIR}/ext_sources/${f} .endfor ${CP} ${FILESDIR}/freebsd-aoo-intro-developer.png \ ${WRKSRC}/default_images/introabout/intro.png ${CP} ${FILESDIR}/freebsd-aoo-about-developer.png \ ${WRKSRC}/default_images/introabout/about.png ${RM} -r ${WRKSRC}/l10n ${LN} -sf ${UNZIP_CMD} ${WRKSRC}/solenv/bin/unzip ${SED} -e '\|^For main/vcl/unx/generic/fontmanager/parseAFM|,/^__/p' \ -e '\|^For PostScript(R) AFM|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_ADOBE} ${SED} -e '\|^For main/unixODBC|,/^__/p' \ -e '\|^For main/connectivity|,/^__/p' \ -e '\|^For main/libtextcat/data|,/^__/p' \ -e '\|^For integration of HSQLDB|,/^__/p' \ -e '\|^For C preprocessor|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_BSD3CLAUSE} ${SED} -e '\|^For ICC |,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_BSD4CLAUSE} ${SED} -e '\|^For integration of the C++ Boost |,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_BSL} ${SED} -e '\|^For main/i18npool/source/breakiterator|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_ICU} ${SED} -e '\|^For Multi-Dimensional Data|,/^__/p' \ -e '\|^For XSLT MathML Library|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_MIT} ${SED} -e '\|^For XMLSec Library|,/^__/p' \ -e d ${WRKSRC}/LICENSE_category_b >> ${LICENSE_FILE_MIT} ${SED} -e '\|^For Saxon|,/^__/p' \ -e d ${WRKSRC}/LICENSE_category_b > ${LICENSE_FILE_MPL10} ${SED} -e '\|^The following Licenses have some restrictions|,/^- For Network/p' \ -e d ${WRKSRC}/LICENSE_category_b | \ ${SED} -e :a -e '$d;N;2,3ba' -e 'P;D' > ${LICENSE_FILE_MPL11} ${SED} -e '\|^For main/filter/source/config/tools/merge/pyAltFCFGMerge|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_PSFL} ${SED} -e '\|^For main/twain|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_TWAIN} ${SED} -e '\|^For main/MathMLDTD|,/^__/p' \ -e d ${WRKSRC}/LICENSE > ${LICENSE_FILE_W3C} post-patch: ${REINPLACE_CMD} -e "/^ICONVERSION/s/=.*/= '${AOOVERSION1}'/" \ ${WRKSRC}/sysui/desktop/productversion.mk ${REINPLACE_CMD} -e "s|%%JAVA_HOME%%|${JAVA_HOME}|" \ ${WRKSRC}/desktop/scripts/soffice.sh ${REINPLACE_CMD} -e '/^mkdir -p/,$$d' ${CREATE_TREE} # Verify that lucene was built with the CONTRIB option instead of # failing mysteriously during the build pre-configure: @if [ ! -f ${JAVALIBDIR}/lucene-analyzers-3.6.2.jar ]; then \ ${ECHO} "error: textproc/lucene must be built with the CONTRIB option enabled"; \ exit 1; \ fi do-build: ${PRINTF} "[repositories]\nmain=active\nextras=active\n" > ${WRKSUBDIR}/source_config cd ${WRKSRC} ; ./bootstrap # # numproc controls the number of parallel makes. # # dmproc is passed to dmake and controls parallelization at that # level. # # dmproc > numproc seems to give shorter build times than # numproc > dmproc. # # Select values for numproc and dmproc such that: # * numproc*dmproc >= MAKE_JOBS_NUMBER # * minimize numproc*dmproc-MAKE_JOBS_NUMBER # * dmproc >= numproc # * dmproc <= 2*numproc if MAKE_JOBS_NUMBER <= 3 # if [ ${MAKE_JOBS_NUMBER} -le 3 ] ; then \ numproc=1 ; dmproc=${MAKE_JOBS_NUMBER} ; \ else \ a=1 ; \ while [ $$(( 2 * $${a} * $${a} )) -lt ${MAKE_JOBS_NUMBER} ]; do \ a=$$(( $${a} + 1 )) ; \ done ; \ b=$$(( $${a} + 1 )) ; \ ad=$$(( ( ${MAKE_JOBS_NUMBER} + $${a} - 1 ) / $${a} )) ; \ ap=$$(( $${a} * $${ad} )) ; \ bd=$$(( ( ${MAKE_JOBS_NUMBER} + $${b} - 1 ) / $${b} )) ; \ bp=$$(( $${b} * $${bd} )) ; \ if [ $${ap} -le $${bp} ]; then \ numproc=$${a} ; dmproc=$${ad} ; \ else \ numproc=$${b} ; dmproc=$${bd} ; \ fi ; \ fi ; \ cd ${WRKSRC}/instsetoo_native ; \ export ${AOO_MAKE_ENV} ; \ . ../${FREEBSD_ENV_SET} ; \ build.pl --all -P$${numproc} -- -P$${dmproc} do-install: @${MKDIR} ${STAGEDIR}${PRINSTALLATION_BASEDIR} \ ${STAGEDIR}${PREFIX}/share/mime/packages @cd ${WRKSRC} ; \ . ${FREEBSD_ENV_SET} ; \ cd instsetoo_native/$${INPATH}/Apache_OpenOffice/archive/install/${LOCALIZED_LANG}/ ; \ for i in *.tar.?z ; do \ ${ECHO_CMD} "extracting $$i" ; \ ${TAR} -s '|./[^/]*/||' -xz -f $$i \ -C ${STAGEDIR}${PRINSTALLATION_BASEDIR} ; \ done ${FIND} ${STAGEDIR}${PRINSTALLATION_BASEDIR} -type d -exec ${CHMOD} 755 {} \; ${REINPLACE_CMD} \ -e '/^UserInstallation/s/=.*/=$$SYSUSERCONFIG\/${AOOUDIR}/' \ ${STAGEDIR}${OOPATH}/program/bootstraprc @${RM} ${STAGEDIR}${OOPATH}/program/bootstraprc.bak @${ECHO_CMD} "adding wrapper scripts"; @${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/ @${REINPLACE_CMD} -e 's#%%OOPATH%%#${OOPATH}#g' \ -e 's#%%EXECBASE%%#${EXECBASE}#g' \ ${WRKDIR}/openoffice-wrapper ${INSTALL_SCRIPT} ${WRKDIR}/openoffice-wrapper \ ${STAGEDIR}${PREFIX}/bin/${EXECBASE} @cd ${STAGEDIR}${PREFIX}/bin; for i in printeradmin sbase scalc sdraw \ simpress smath spadmin swriter ; do \ ${LN} -f ${EXECBASE} ${EXECBASE}-$${i} ; \ done @${ECHO_CMD} "adding desktop support" @cd ${WRKSRC} ; \ . ${FREEBSD_ENV_SET} ; \ cd sysui/$${INPATH}/misc/openoffice ; \ DESTDIR=${STAGEDIR} \ GNOMEDIR=${PREFIX} \ ICON_PREFIX=openoffice${AOOVERSION1} \ ICON_SOURCE_DIR=${WRKSRC}/sysui/desktop/icons \ ICON_THEMES="hicolor/??x??" \ KDEMAINDIR=${PREFIX} \ PREFIX=openoffice${AOOVERSION1} \ ${SH} ${CREATE_TREE} ; \ ${INSTALL_DATA} apacheopenoffice.xml \ ${STAGEDIR}/${PREFIX}/share/mime/packages @cd ${STAGEDIR}${DESKTOPDIR}; for i in base calc draw impress \ javafilter math printeradmin qstart startcenter writer ; do \ ${LN} -sf ${XDGREL}/$${i}.desktop ${EXECBASE}-$${i}.desktop ; \ done do-install-SDK-on: ${TAR} -s '|./[^/]*/||' -xz -C ${STAGEDIR}${PRINSTALLATION_BASEDIR} \ -f ${WRKSRC}/instsetoo_native/unxfbsd*.pro/Apache_OpenOffice_SDK/archive/install/${LOCALIZED_LANG}/*.tar.gz @f=${STAGEDIR}${OOPATH}/sdk/bin/unoapploader ; \ ${CHMOD} 644 $${f} ; ${STRIP_CMD} $${f} ; ${CHMOD} 444 $${f} post-install: @${ECHO_CMD} "generating plist"; @cd ${STAGEDIR}${PREFIX} ; (\ ${FIND} -s bin -name "${EXECBASE}*" ; \ ${FIND} -s ${INSTALLATION_BASEDIR} share/applications \ share/application-registry share/icons \ share/mime-info share/mime share/mimelnk \! -type d ; \ ${FIND} ${INSTALLATION_BASEDIR} -type d -empty | ${SORT} -r | \ ${SED} -e 's/^/@dir /' ; \ ) >> ${TMPPLIST} .include <${FILESDIR}/Makefile.others> .include diff --git a/games/leela-zero/Makefile b/games/leela-zero/Makefile index aa8d733b05d9..27dae1566c06 100644 --- a/games/leela-zero/Makefile +++ b/games/leela-zero/Makefile @@ -1,38 +1,38 @@ PORTNAME= leela-zero DISTVERSIONPREFIX= v DISTVERSION= 0.17-30 -PORTREVISION= 10 +PORTREVISION= 11 DISTVERSIONSUFFIX= -ge3ed631 CATEGORIES= games MAINTAINER= yuri@FreeBSD.org COMMENT= Go engine without human-provided knowledge based on AlphaGo Zero paper WWW= https://github.com/leela-zero/leela-zero LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= opencl>0:devel/opencl LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ libopenblas.so:math/openblas \ libOpenCL.so:devel/ocl-icd USES= cmake compiler:c++14-lang eigen:3 localbase qt:5 USE_GITHUB= yes GH_TUPLE= google:googletest:cafa9e5:gtest/gtest USE_QT= core widgets buildtools:build qmake:build CMAKE_ON= USE_BLAS BUILD_TESTING CMAKE_ARGS= -DBLAS_INCLUDE_DIRS:STRING=${LOCALBASE}/include PLIST_FILES= bin/autogtp \ bin/leelaz \ bin/validation do-test: @cd ${WRKSRC} && ${MKDIR} .build && ${CP} ../.build/tests .build && cd .build && ./tests download-weights: @${FETCH_CMD} https://zero.sjeng.org/best-network -o ~/.local/share/leela-zero/ .include diff --git a/graphics/matplotplusplus/Makefile b/graphics/matplotplusplus/Makefile index 85bf5eacc21b..b4e71e541ce0 100644 --- a/graphics/matplotplusplus/Makefile +++ b/graphics/matplotplusplus/Makefile @@ -1,30 +1,30 @@ PORTNAME= matplotplusplus DISTVERSIONPREFIX= v DISTVERSION= 1.2.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ graphics library for data visualization WWW= https://alandefreitas.github.io/matplotplusplus/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libopenblas.so:math/openblas \ libpng16.so:graphics/png \ libtiff.so:graphics/tiff RUN_DEPENDS= gnuplot:math/gnuplot USES= cmake compiler:c++17-lang jpeg USE_WX= 3.2+ USE_GITHUB= yes GH_ACCOUNT= alandefreitas CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_TESTING BUILD_EXAMPLES .include diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index 43cb9b427710..eaab5c44521f 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -1,253 +1,253 @@ PORTNAME= opencv DISTVERSION= 4.9.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= graphics MAINTAINER= desktop@FreeBSD.org COMMENT= Open Source Computer Vision library WWW= https://www.opencv.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ libhdf5.so:science/hdf5 USES= cmake compiler:c++14-lang cpe gnome localbase:ldflags pkgconfig USE_GITHUB= yes GH_ACCOUNT= WeChatCV:wechat GH_PROJECT= opencv_contrib:contrib \ ade:ade \ opencv_3rdparty:extra_mod_3rdparty_boost_descr \ opencv_3rdparty:extra_mod_3rdparty_vgg \ opencv_3rdparty:wechat \ opencv_3rdparty:face \ opencv_3rdparty:ippicv GH_TAGNAME= v0.1.1f:ade \ 34e4206aef44d50e6bbcd0ab06354b52e7466d26:extra_mod_3rdparty_boost_descr \ fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d:extra_mod_3rdparty_vgg \ a8b69ccc738421293254aec5ddb38bd523503252:wechat \ 8afa57abc8229d611c4937165d20e2a2d9fc5a12:face \ a56b6ac6f030c312b2dce17430eef13aed9af274:ippicv CMAKE_ON= OPENCV_GENERATE_PKGCONFIG \ OPENCV_SKIP_CMAKE_CXX_STANDARD CMAKE_OFF= OPENCV_GENERATE_SETUPVARS \ BUILD_opencv_python2 \ BUILD_TESTS CMAKE_OFF+= WITH_OBSENSOR # linux/uvcvideo.h is included when WITH_OBSENSOR is enabled CMAKE_ARGS= -DOPENCV_EXTRA_MODULES_PATH="${WRKSRC}/contrib/modules" DATADIR= ${PREFIX}/share/${PORTNAME}4 PLIST_SUB= SHLIB_VER=${DISTVERSION} OPTIONS_DEFINE= EIGEN GDAL GDCM HARDENING JAVA LTO OPENCL \ PATENTED PROTOBUF PYTHON TBB TESSERACT OPTIONS_GROUP= GUI IMAGE VIDEO OPTIONS_GROUP_GUI= GTK3 VTK OPTIONS_GROUP_IMAGE= GPHOTO2 JPEG OGRE3D OPENEXR PNG TIFF OPTIONS_GROUP_VIDEO= DC1394 FFMPEG GSTREAMER V4L VULKAN WEBP XINE OPTIONS_SINGLE= BLAS OPTIONS_SINGLE_BLAS= ATLAS OPENBLAS NOBLAS OPTIONS_RADIO= JPEG2K OPTIONS_RADIO_JPEG2K= JASPER OPENJPEG OPTIONS_DEFAULT= EIGEN GDAL GDCM OPENCL PROTOBUF PYTHON \ DC1394 GSTREAMER V4L VULKAN WEBP \ GPHOTO2 JPEG OPENEXR PNG TIFF \ OPENBLAS \ OPENJPEG OPTIONS_SUB= yes # Normal options (EIGEN GDAL GDCM HARDENING JAVA LTO OPENCL PATENTED PROTOBUF PYTHON TBB) EIGEN_DESC= Add Eigen v3 Support, builds sfm modules EIGEN_CMAKE_BOOL= WITH_EIGEN EIGEN_LIB_DEPENDS= libgflags.so:devel/gflags \ libglog.so:devel/glog \ libceres.so:math/ceres-solver EIGEN_USES= eigen:3 GDAL_DESC= Add Geospatial Data Abstraction Library Support GDAL_CMAKE_BOOL= WITH_GDAL GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal GDCM_DESC= Add Open source DICOM library Support GDCM_CMAKE_BOOL= WITH_GDCM GDCM_LIB_DEPENDS= libgdcmMSFF.so:devel/gdcm HARDENING_DESC= Enables Build Hardening HARDENING_CMAKE_BOOL= ENABLE_BUILD_HARDENING JAVA_DESC= Enable Java Support JAVA_BUILD_DEPENDS= ant:devel/apache-ant JAVA_CMAKE_BOOL= BUILD_opencv_java BUILD_opencv_java_bindings_generator BUILD_JAVA JAVA_MAKE_ENV= JAVACMD=${JAVA} JAVA_USES= java LTO_DESC= Enables Link Time Optimizations LTO_CMAKE_BOOL= ENABLE_THIN_LTO OPENCL_DESC= Add OpenCL Support OPENCL_CMAKE_BOOL= WITH_OPENCL OPENCL_BUILD_DEPENDS= opencl>=0:devel/opencl OPENCL_RUN_DEPENDS= opencl>=0:devel/opencl PATENTED_DESC= Enable patented 2d feature detection USE AT OWN RISK PATENTED_CMAKE_BOOL= OPENCV_ENABLE_NONFREE PROTOBUF_DESC= Enable protobuf support, builds dnn modules PROTOBUF_CMAKE_BOOL= WITH_PROTOBUF # by default the bundled protobuf is built PYTHON_DESC= Enable Python Support 3.6 or greater PYTHON_BUILD_DEPENDS= ${PYNUMPY} PYTHON_RUN_DEPENDS= ${PYNUMPY} PYTHON_USES= python PYTHON_CMAKE_BOOL= BUILD_opencv_python3 PYTHON_CMAKE_ON= -DOPENCV_PYTHON3_INSTALL_PATH=${PYTHON_SITELIBDIR} TBB_DESC= Add Intel Threading Building Blocks Support TBB_CMAKE_BOOL= WITH_TBB TBB_LIB_DEPENDS= libtbb.so:devel/onetbb TESSERACT_DESC= Add Tesseract-based OCR TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract TESSERACT_CMAKE_BOOL= WITH_TESSERACT ### # GUI group options (GTK3 VTK) GTK3_USE= gnome=gtk30,cairo,gdkpixbuf2 GTK3_CMAKE_BOOL= WITH_GTK VTK_DESC= Include VTK library support (build opencv_viz module) VTK_CMAKE_BOOL= WITH_VTK VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} VTK_USES= qt:5 VTK_USE= QT=buildtools:build,qmake:build ### # IMAGE group options (GPHOTO2 JPEG OPENEXR PNG TIFF) GPHOTO2_DESC= Add Gphoto2 Support GPHOTO2_CMAKE_BOOL= WITH_GPHOTO2 GPHOTO2_LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2 JPEG_DESC= Add LibJpeg Support JPEG_CMAKE_BOOL= WITH_JPEG JPEG_USES= jpeg OGRE3D_DESC= Add OGRE support OGRE3D_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d OGRE3D_CMAKE_BOOL= BUILD_opencv_ovis OPENEXR_DESC= Add OpenEXR Support OPENEXR_CMAKE_BOOL= WITH_OPENEXR OPENEXR_LIB_DEPENDS= libOpenEXR.so:graphics/openexr PNG_DESC= Add LibPNG Support PNG_CMAKE_BOOL= WITH_PNG PNG_LIB_DEPENDS= libpng16.so:graphics/png TIFF_DESC= Add LibTIFF Support TIFF_CMAKE_BOOL= WITH_TIFF TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff ### # VIDEO group options (DC1394 FFMPEG GSTREAMER V4L VULKAN WEBP XINE) DC1394_DESC= IEEE 1394 camera support DC1394_CMAKE_BOOL= WITH_1394 DC1394_LIB_DEPENDS= libdc1394.so:multimedia/libdc1394 FFMPEG_DESC= Link with ffmpeg FFMPEG_CMAKE_BOOL= WITH_FFMPEG FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg GSTREAMER_DESC= Add GSTREAMER Support GSTREAMER_CMAKE_BOOL= WITH_GSTREAMER GSTREAMER_USES= gstreamer GSTREAMER_USE= gnome=glib20 V4L_DESC= Enable support for Video for Linux V4L_CMAKE_BOOL= WITH_V4L WITH_LIBV4L V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l VULKAN_DESC= Add Vulkan Support VULKAN_CMAKE_BOOL= WITH_VULKAN VULKAN_CMAKE_ON= -DVULKAN_INCLUDE_DIRS=${LOCALBASE}/include VULKAN_BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers WEBP_DESC= Add Webp Support WEBP_CMAKE_BOOL= WITH_WEBP WEBP_LIB_DEPENDS= libwebp.so:graphics/webp XINE_DESC= Add Xine Support XINE_CMAKE_BOOL= WITH_XINE XINE_LIB_DEPENDS= libxine.so:multimedia/libxine ### # BLAS group options (ATLAS OPENBLAS NOBLAS) ATLAS_DESC= ATLAS blas implementation with lapacke ATLAS_USES= blaslapack:atlas ATLAS_BUILD_DEPENDS= cblas>0:math/cblas \ lapacke>0:math/lapacke OPENBLAS_DESC= OpenBLAS blas implementation with lapacke OPENBLAS_USES= blaslapack:openblas OPENBLAS_BUILD_DEPENDS= cblas>0:math/cblas \ lapacke>0:math/lapacke NOBLAS_DESC= Disable support for lapack/blas NOBLAS_CMAKE_BOOL_OFF= WITH_LAPACK ### # JPEG2K group options (JASPER OPENJPEG) JASPER_DESC= Add Jasper Support for JPEG2000 JASPER_CMAKE_BOOL= WITH_JASPER JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper OPENJPEG_DESC= Add OpenJPEG Support for JPEG2000, OpenCV preferred OPENJPEG_CMAKE_BOOL= WITH_OPENJPEG OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg ### _IPPICV_i386= ippicv/ippicv_2020_lnx_ia32_20191018_general.tgz _IPPICV_amd64= ippicv/ippicv_2020_lnx_intel64_20191018_general.tgz .include .if ${ARCH} == powerpc64le && defined(MACHINE_CPU) && ${MACHINE_CPU:Mvsx3} CMAKE_ARGS+= -DCPU_BASELINE:STRING="VSX;VSX3;" .endif post-extract: # Handle contrib ${MV} ${WRKSRC_contrib} ${WRKSRC}/contrib # Handle prefetched ade modul ${MKDIR} ${BUILD_WRKSRC}/3rdparty/ade ${MV} ${WRKSRC_ade} ${BUILD_WRKSRC}/3rdparty/ade # Handle prefetched xfeatures2d ${MKDIR} ${BUILD_WRKSRC}/downloads/xfeatures2d ${CP} ${WRKSRC_extra_mod_3rdparty_boost_descr}/* ${BUILD_WRKSRC}/downloads/xfeatures2d ${CP} ${WRKSRC_extra_mod_3rdparty_vgg}/* ${BUILD_WRKSRC}/downloads/xfeatures2d # Handle prefetched wechat ${MKDIR} ${BUILD_WRKSRC}/downloads/wechat_qrcode ${CP} ${WRKSRC_wechat}/* ${BUILD_WRKSRC}/downloads/wechat_qrcode/ # Handle Face ${MKDIR} ${BUILD_WRKSRC}/share/opencv4/testdata/cv/face ${CP} ${WRKSRC_face}/* ${BUILD_WRKSRC}/share/opencv4/testdata/cv/face # Handle ippicv .if defined(_IPPICV_${ARCH}) ${MKDIR} ${BUILD_WRKSRC}/3rdparty/ippicv (cd ${BUILD_WRKSRC}/3rdparty/ippicv && ${EXTRACT_CMD} -xf ${WRKSRC_ippicv}/${_IPPICV_${ARCH}}) .endif post-patch: ${REINPLACE_CMD} -e 's|/usr/lib/atlas-base|${LOCALBASE}/lib|g' ${WRKSRC}/cmake/OpenCVFindAtlas.cmake ${REINPLACE_CMD} -e 's|/usr/include/atlas|${LOCALBASE}/include|g' ${WRKSRC}/cmake/OpenCVFindAtlas.cmake .include <../../math/vtk9/Makefile.version> .include diff --git a/lang/julia/Makefile b/lang/julia/Makefile index b2144864bc8b..abe03257c69c 100644 --- a/lang/julia/Makefile +++ b/lang/julia/Makefile @@ -1,275 +1,275 @@ PORTNAME= julia DISTVERSION= 1.10.3 -PORTREVISION= 5 +PORTREVISION= 6 DISTVERSIONSUFFIX= -full CATEGORIES= lang math MASTER_SITES= https://github.com/JuliaLang/${PORTNAME}/releases/download/v${DISTVERSION}/ DOCS_MASTER_SITES= https://www.unicode.org/Public/$(UNICODE_DATA_VERSION)/ucd/:unicode \ https://jp.pkg.julialang.org/registry/${JPKGUUID}/:jpkg \ https://github.com/JuliaBinaryWrappers/Expat_jll.jl/releases/download/Expat-v2.6.2+0/:afexpat \ https://github.com/JuliaBinaryWrappers/Git_jll.jl/releases/download/Git-v2.44.0+2/:afgit \ https://github.com/JuliaBinaryWrappers/Libiconv_jll.jl/releases/download/Libiconv-v1.17.0+0/:aflibiconv \ https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl/releases/download/OpenSSL-v3.0.13+1/:afopenssl DISTFILES= ${DISTNAME}${EXTRACT_SUFX} DOCS_DISTFILES= UnicodeData.txt:unicode \ Expat.v2.6.2.x86_64-unknown-freebsd.tar.gz:afexpat \ Git.v2.44.0.x86_64-unknown-freebsd.tar.gz:afgit \ Libiconv.v1.17.0.x86_64-unknown-freebsd.tar.gz:aflibiconv \ OpenSSL.v3.0.13.x86_64-unknown-freebsd.tar.gz:afopenssl \ ${JPKGSHA1}:jpkg EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Implementation of Julia, a language for technical computing WWW= https://julialang.org/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md DEPRECATED= Depends on expired security/mbedtls2 EXPIRATION_DATE=2025-03-31 ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= Has not been ported to this platform for freebsd MY_DEPENDS= 7zz:archivers/7-zip \ ca_root_nss>=0:security/ca_root_nss \ gfortran${_GCC_VER}:lang/gcc${_GCC_VER} BUILD_DEPENDS= patchelf:sysutils/patchelf \ cmake:devel/cmake-core \ ${MY_DEPENDS} LIB_DEPENDS= libcurl.so:ftp/curl \ libdSFMT.so:math/dsfmt \ libgit2.so:devel/libgit2 \ libgmp.so:math/gmp \ libnghttp2.so:www/libnghttp2 \ libmbedtls.so:security/mbedtls2 \ libmpfr.so:math/mpfr \ libopenlibm.so:math/openlibm \ libpcre2-8.so:devel/pcre2 \ libssh2.so:security/libssh2 \ libsuitesparseconfig.so:math/suitesparse-config \ libutf8proc.so:textproc/utf8proc \ libunwind.so:devel/libunwind \ libzstd.so:archivers/zstd RUN_DEPENDS= ${MY_DEPENDS} BUILD_DEPENDS_amd64= ittapi>0:devel/ittapi BUILD_DEPENDS_i386= ittapi>0:devel/ittapi # Do not set USES=fortran to avoid extra-linkage USES= blaslapack:openblas compiler:c++17-lang cpe elfctl gmake \ perl5 python shebangfix _GCC_VER= ${GCC_DEFAULT:S/.//} CPE_VENDOR= julialang ELF_FEATURES= +wxneeded:usr/bin/julia USE_LDCONFIG= yes MAKE_ARGS+= JULIA_DEBUG=Documenter VERBOSE=1 NO_GIT=1 \ USE_BINARYBUILDER=0 \ prefix=${PREFIX} \ USE_GPL_LIBS=0 \ ARCH=x86_64 \ JULIA_CPU_TARGET=generic \ USE_SYSTEM_BLAS=1 \ USE_SYSTEM_CSL=1 \ USE_SYSTEM_CURL=1 \ USE_SYSTEM_DSFMT=1 \ USE_SYSTEM_GMP=1 \ USE_SYSTEM_OPENLIBM=1 \ USE_SYSTEM_LAPACK=1 \ USE_SYSTEM_LIBGIT2=1 \ USE_SYSTEM_LIBSSH2=1 \ USE_SYSTEM_LIBUNWIND=1 \ USE_SYSTEM_LLD=1 \ USE_SYSTEM_MBEDTLS=1 \ USE_SYSTEM_MPFR=1 \ USE_SYSTEM_NGHTTP2=1 \ USE_SYSTEM_P7ZIP=1 \ USE_SYSTEM_PATCHELF=1 \ USE_SYSTEM_PCRE=1 \ USE_SYSTEM_UTF8PROC=1 \ USE_SYSTEM_ZLIB=0 \ CC=${CC} \ CXX=${CXX} ALL_TARGET= default INSTALL_TARGET= install TEST_TARGET= test CFLAGS+= -fpic BINARY_ALIAS= python3=${PYTHON_CMD} gfortran=gfortran${_GCC_VER} WRKSRC= ${WRKDIR}/julia-${DISTVERSION} PLIST_SUB= VERSION="${PORTVERSION}" \ MINOR="${PORTVERSION:R}" PORTDOCS= html OPTIONS_DEFINE= DEBUG DOCS NATIVE OPTIONS_DEFAULT= DOCS OPTIONS_SUB= yes NATIVE_DESC= Build with native CPU JIT tuning NATIVE_MAKE_ARGS= JULIA_CPU_TARGET=native DEBUG_VARS= ALL_TARGET=all DEBUG_MAKE_ARGS= FORCE_ASSERTIONS=1 \ BUNDLE_DEBUG_LIBS=1 DOCS_MAKE_ENV+= JULIA_PKG_OFFLINE="true" DOCS_VARS= ALL_TARGET+=docs \ INSTALL_TARGET+=install-docs LATE_SHEBANG_GLOB= compile.jl generator.jl .include .if ${ARCH} == amd64 || ${ARCH} == i386 MAKE_ARGS+= USE_SYSTEM_ITTAPI=1 .endif .if ${PORT_OPTIONS:MDOCS} USE_GITHUB= nodefault UNICODE_DATA_VERSION= 13.0.0 GH_TUPLE= JuliaDocs:Documenter.jl:v1.4.1:documenter \ JuliaDocs:ANSIColoredPrinters.jl:v0.0.1:ansicoloredprinters \ JuliaCollections:AbstractTrees.jl:6f9cd4ad60dc579f7a3271950d4846610c2f340d:abstracttrees \ JuliaIO:CodecZlib.jl:v0.7.4:codeczlib \ JuliaDocs:DocStringExtensions.jl:v0.9.3:docstringextensions \ JuliaDocs:DocumenterInventoryWritingBackport.jl:v0.1.0:documenterinventorywritingbackport \ JuliaBinaryWrappers:Expat_jll.jl:Expat-v2.6.2+0:expatjll \ JuliaVersionControl:Git.jl:v1.3.1:git \ JuliaBinaryWrappers:Git_jll.jl:Git-v2.44.0+2:gitjll \ JuliaDocs:IOCapture.jl:v0.2.4:iocapture \ JuliaPackaging:JLLWrappers.jl:v1.5.0:jllwrappers \ JuliaIO:JSON.jl:v0.21.4:json \ KristofferC:LazilyInitializedFields.jl:3b6cc53c8780ebbe3ee209b8a8e6b8844ce284f2:lazilyinitializedfields \ JuliaBinaryWrappers:Libiconv_jll.jl:Libiconv-v1.17.0+0:libiconvjll \ JuliaDocs:MarkdownAST.jl:v0.1.2:markdownast \ JuliaBinaryWrappers:OpenSSL_jll.jl:OpenSSL-v3.0.13+1:openssljll \ JuliaData:Parsers.jl:v2.8.1:parsers \ JuliaLang:PrecompileTools.jl:v1.2.1:precompiletools \ JuliaPackaging:Preferences.jl:v1.4.3:preferences \ GunnarFarneback:RegistryInstances.jl:2796d959014475bc19e2dfa174179cdf02642d28:registryinstances \ JuliaIO:TranscodingStreams.jl:v0.10.8:transcodingstreams DOCPKGDIR_documenter= Documenter DOCPKGDIR_abstracttrees= AbstractTrees DOCPKGDIR_ansicoloredprinters= ANSIColoredPrinters DOCPKGDIR_codeczlib= CodecZlib DOCPKGDIR_docstringextensions= DocStringExtensions DOCPKGDIR_documenterinventorywritingbackport= DocumenterInventoryWritingBackport DOCPKGDIR_expatjll= Expat_jll DOCPKGDIR_git= Git DOCPKGDIR_gitjll= Git_jll DOCPKGDIR_iocapture= IOCapture DOCPKGDIR_jllwrappers= JLLWrappers DOCPKGDIR_json= JSON DOCPKGDIR_lazilyinitializedfields= LazilyInitializedFields DOCPKGDIR_libiconvjll= Libiconv_jll DOCPKGDIR_markdownast= MarkdownAST DOCPKGDIR_openssljll= OpenSSL_jll DOCPKGDIR_parsers= Parsers DOCPKGDIR_precompiletools= PrecompileTools DOCPKGDIR_preferences= Preferences DOCPKGDIR_registryinstances= RegistryInstances DOCPKGDIR_transcodingstreams= TranscodingStreams JPKGUUID= 23338594-aafe-5451-b93e-139f81909106 JPKGSHA1= 151ade91c9c8fcadd03fda2a9df961a173dae33d ADIR_afexpat= f6cac9c7c81901bdea8226624199290c849eb8fd ADIR_afgit= 9d10e86e65fcea93f0a73ac9ab7efbc9507ef246 ADIR_aflibiconv= 7f55b73b331bc9ab70cbd95a194c89feb3650f16 ADIR_afopenssl= f87ab68c6b682f7ab08df0745d5e38edb8e5bded DARC_afexpat= Expat.v2.6.2.x86_64-unknown-freebsd.tar.gz DARC_afgit= Git.v2.44.0.x86_64-unknown-freebsd.tar.gz DARC_aflibiconv= Libiconv.v1.17.0.x86_64-unknown-freebsd.tar.gz DARC_afopenssl= OpenSSL.v3.0.13.x86_64-unknown-freebsd.tar.gz .endif post-extract: @${MKDIR} ${WRKSRC}/deps/srccache ${CP} ${FILESDIR}/llvm-patch-backport-version-fixes \ ${WRKSRC}/deps/patches/llvm-version-fixes.patch post-extract-DOCS-on: @${MKDIR} ${WRKSRC}/doc/deps/registries ${CP} ${DISTDIR}/UnicodeData.txt \ ${WRKSRC}/deps/srccache/UnicodeData-${UNICODE_DATA_VERSION}.txt .for pkg in documenter ansicoloredprinters abstracttrees codeczlib \ docstringextensions documenterinventorywritingbackport expatjll \ git gitjll iocapture jllwrappers json lazilyinitializedfields \ libiconvjll markdownast openssljll parsers precompiletools \ preferences registryinstances transcodingstreams @${MKDIR} ${WRKSRC}/doc/deps/packages/${DOCPKGDIR_${pkg}} ${TAR} -C ${WRKSRC}/doc/deps/packages/${DOCPKGDIR_${pkg}} \ --strip-components 1 \ -xf ${DISTDIR}/${DISTFILE_${pkg}} .endfor .for af in afexpat afgit aflibiconv afopenssl @${MKDIR} ${WRKSRC}/doc/deps/artifacts/${ADIR_${af}} ${TAR} -C ${WRKSRC}/doc/deps/artifacts/${ADIR_${af}} \ -xf ${DISTDIR}/${DARC_${af}} .endfor ${CP} ${DISTDIR}/${JPKGSHA1} \ ${WRKSRC}/doc/deps/registries/General.tar.gz ${CAT} ${FILESDIR}/General.toml.in | \ ${SED} 's/%%UUID%%/${JPKGUUID}/' | \ ${SED} 's/%%SHA1%%/${JPKGSHA1}/' \ > ${WRKSRC}/doc/deps/registries/General.toml pre-configure: echo "override TAGGED_RELEASE_BANNER=\"FreeBSD port lang/${PORTNAME} build\"" >> ${WRKSRC}/Make.user # unset ARCH for auto-detection # Julia build script uses the name x86_86/x86, which are different from ports framework echo "ARCH=" >> ${WRKSRC}/Make.user echo "LIBBLAS= -L${LOCALBASE}/lib -lopenblas" >> ${WRKSRC}/Make.user echo "LIBBLASNAME=libopenblas" >> ${WRKSRC}/Make.user echo 'LIBLAPACK= $$(LIBBLAS)' >> ${WRKSRC}/Make.user echo 'LIBLAPACKNAME= $$(LIBBLASNAME)' >> ${WRKSRC}/Make.user ${CC} ${CFLAGS} -lopenblas ${LDFLAGS} -o ${WRKSRC}/check_openblas \ ${FILESDIR}/check_openblas.c ${WRKSRC}/check_openblas && ( \ echo "USE_BLAS64=1" >> ${WRKSRC}/Make.user \ ) || ( \ echo "USE_BLAS64=0" >> ${WRKSRC}/Make.user \ ) pre-install: ${MAKE} SHEBANG_GLOB="${LATE_SHEBANG_GLOB}" fix-shebang ${CP} ${WRKSRC}/deps/srccache/cacert-2023-01-10.pem ${WRKSRC}/usr/share/julia/cert.pem pre-install-DEBUG-on: @(cd ${INSTALL_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${FAKEROOT} \ ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} \ MAKECMDGOALS=debug install) pre-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} post-install: .for file in .codecov.yml .travis.yml appveyor.yml bors.toml .gitignore source-extracted *.orig ${FIND} ${STAGEDIR}${DATADIR} -name "${file}" -delete .endfor .for dir in .ci .devcontainer .github ${FIND} ${STAGEDIR}${DATADIR} -name "${dir}" -type d -exec ${RM} -fr {} + .endfor ${RM} ${STAGEDIR}${DATADIR}/base.cache ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/julia ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libjulia.so* .for bin in libccalltest.so libllvmcalltest.so libjulia-internal.so* libblastrampoline.so libuv.so* libz.so* libLLVM* sys.so libjulia-codegen.so* ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/julia/${bin} .endfor .for bin in lld dsymutil ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/julia/${bin} .endfor @${MV} ${STAGEDIR}${ETCDIR}/startup.jl \ ${STAGEDIR}${ETCDIR}/startup.jl.sample .include diff --git a/math/adept/Makefile b/math/adept/Makefile index 49c9a98c244f..332dbe699102 100644 --- a/math/adept/Makefile +++ b/math/adept/Makefile @@ -1,34 +1,34 @@ PORTNAME= adept DISTVERSION= 2.1.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MASTER_SITES= http://www.met.reading.ac.uk/clouds/adept/ MAINTAINER= yuri@FreeBSD.org COMMENT= Combined array and automatic differentiation library in C++ WWW= https://www.met.reading.ac.uk/clouds/adept/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING USES= autoreconf gmake fortran blaslapack:openblas libtool GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-static USE_LDCONFIG= yes INSTALL_TARGET= install-strip OPTIONS_DEFINE= PDFTEXDOCS OPTIONS_SUB= yes PDFTEXDOCS_DESC= Build and install PDF documentation from LaTeX sources PDFTEXDOCS_USES= tex PDFTEXDOCS_USE= TEX=pdftex:build,dvipsk:build post-build-PDFTEXDOCS-on: @cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} post-install-PDFTEXDOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR} .include diff --git a/math/alps/Makefile b/math/alps/Makefile index af81a2111682..6e94e7892712 100644 --- a/math/alps/Makefile +++ b/math/alps/Makefile @@ -1,33 +1,33 @@ PORTNAME= alps DISTVERSIONPREFIX= releases/ DISTVERSION= 2.0.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Abstract Library for Parallel Search (ALPS) WWW= https://github.com/coin-or/CHiPPS-ALPS LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Alps/LICENSE LIB_DEPENDS= libCoinUtils.so:math/coinutils \ libopenblas.so:math/openblas USES= blaslapack gmake libtool pkgconfig USE_CXXSTD= c++14 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= CHiPPS-ALPS GNU_CONFIGURE= yes INSTALL_TARGET= install-strip post-install: ${RM} -r ${STAGEDIR}${PREFIX}/share .include diff --git a/math/ambit/Makefile b/math/ambit/Makefile index b829bd164b23..3e4d2c5ebf92 100644 --- a/math/ambit/Makefile +++ b/math/ambit/Makefile @@ -1,31 +1,31 @@ PORTNAME= ambit DISTVERSIONPREFIX= v DISTVERSION= 0.7.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math PKGNAMESUFFIX= -tensor # avoid clash with shells/ambit MAINTAINER= yuri@FreeBSD.org COMMENT= C++ library for tensor product calculations WWW= https://github.com/jturney/ambit LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libhdf5.so:science/hdf5 \ libopenblas.so:math/openblas \ libsz.so:science/libaec USES= cmake:testing compiler:c++17-lang python:build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= jturney # some declared cmake options do nothing: see https://github.com/jturney/ambit/issues/25 and the patch CMAKE_ON= SHARED_ONLY ENABLE_OPENMP CMAKE_OFF= ambit_ENABLE_PYTHON \ ENABLE_TESTS # https://github.com/jturney/ambit/issues/24 CMAKE_TESTING_ON= ENABLE_TESTS .include diff --git a/math/armadillo/Makefile b/math/armadillo/Makefile index 86aa51b0d0e5..190d8beb6810 100644 --- a/math/armadillo/Makefile +++ b/math/armadillo/Makefile @@ -1,37 +1,37 @@ PORTNAME= armadillo PORTVERSION= 14.2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= SF/arma MAINTAINER= sunpoet@FreeBSD.org COMMENT= C++ linear algebra library WWW= https://arma.sourceforge.net/ \ https://gitlab.com/conradsnicta/armadillo-code LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libarpack.so:math/arpack-ng \ libsuperlu.so:math/superlu USES= blaslapack:openblas cmake:testing compiler:c++11-lang pathfix pkgconfig tar:xz CMAKE_OFF= ALLOW_BLAS_LAPACK_MACOS \ ALLOW_FLEXIBLAS_LINUX \ ALLOW_OPENBLAS_MACOS \ BUILD_SMOKE_TEST \ HEADER_ONLY CMAKE_ON= BUILD_SHARED_LIBS CMAKE_TESTING_ON= BUILD_SMOKE_TEST USE_LDCONFIG= yes PLIST_SUB= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= OPENBLAS_LAPACK OPENBLAS_LAPACK_DESC= Use LAPACK function from OpenBLAS OPENBLAS_LAPACK_CMAKE_BOOL= OPENBLAS_PROVIDES_LAPACK OPENBLAS_LAPACK_LIB_DEPENDS_OFF=liblapack.so:math/lapack .include diff --git a/math/arpack++/Makefile b/math/arpack++/Makefile index 730e51953a41..074cc62bb005 100644 --- a/math/arpack++/Makefile +++ b/math/arpack++/Makefile @@ -1,65 +1,65 @@ PORTNAME= arpack++ PORTVERSION= 2.4.0 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= math MAINTAINER= ports@FreeBSD.org COMMENT= Object-oriented version of the ARPACK package WWW= https://www.ime.unicamp.br/~chico/arpack++/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libarpack.so:math/arpack-ng \ libsuperlu.so:math/superlu \ libcholmod.so:math/suitesparse-cholmod \ libumfpack.so:math/suitesparse-umfpack USES= cmake:testing compiler:c++17-lang fortran USE_CXXSTD= c++17 USE_GITHUB= yes GH_ACCOUNT= m-reuter GH_PROJECT= arpackpp CMAKE_ARGS= -DENABLE_FORTRAN:BOOL=ON \ -DENABLE_SUPERLU:BOOL=ON \ -DENABLE_UMFPACK:BOOL=ON \ -DENABLE_CHOLMOD:BOOL=ON \ -DENABLE_SUITESPARSE_STATIC:BOOL=OFF NO_ARCH= yes REINPLACE_ARGS= -i "" DOCS= README.md doc/README doc/arpackpp.pdf doc/structure.txt OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS EXAMPLES_CMAKE_ON= -DENABLE_TESTS:BOOL=ON EXAMPLES_CMAKE_OFF= -DENABLE_TESTS:BOOL=OFF EXAMPLES_VARS_OFF= NO_BUILD=yes ATLAS_USES= blaslapack:atlas NETLIB_USES= blaslapack:netlib OPENBLAS_USES= blaslapack:openblas PORTDOCS= * PORTEXAMPLES= * do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${CP} -R ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." .include diff --git a/math/bcps/Makefile b/math/bcps/Makefile index d308035a7cd9..ddd947cbd393 100644 --- a/math/bcps/Makefile +++ b/math/bcps/Makefile @@ -1,34 +1,34 @@ PORTNAME= bcps DISTVERSIONPREFIX= releases/ DISTVERSION= 0.99.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Branch, Constrain, and Price Software (BiCePS) WWW= https://github.com/coin-or/CHiPPS-BiCePS LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Bcps/LICENSE LIB_DEPENDS= libAlps.so:math/alps \ libCoinUtils.so:math/coinutils \ libopenblas.so:math/openblas USES= gmake libtool pkgconfig USE_CXXSTD= c++14 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= CHiPPS-BiCePS GNU_CONFIGURE= yes INSTALL_TARGET= install-strip post-install: ${RM} -r ${STAGEDIR}${PREFIX}/share .include diff --git a/math/blaspp/Makefile b/math/blaspp/Makefile index 51cedaab118b..907e3122f45f 100644 --- a/math/blaspp/Makefile +++ b/math/blaspp/Makefile @@ -1,24 +1,24 @@ PORTNAME= blaspp DISTVERSION= 2022.05.00 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MASTER_SITES= https://bitbucket.org/icl/blaspp/downloads/ MAINTAINER= yuri@FreeBSD.org COMMENT= C++ API for the Basic Linear Algebra Subroutines WWW= https://bitbucket.org/icl/blaspp/src/master/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopenblas.so:math/openblas TEST_DEPENDS= cblas>0:math/cblas USES= cmake:testing fortran localbase # fails to find openblas w/out USES=fortran for some reason, needs investigation CMAKE_ON= use_cmake_find_blas # otherwise blas isn't found by the project's ad-hoc cmake/BLASFinder.cmake file CMAKE_OFF= build_tests CMAKE_TESTING_ON= build_tests # tests fail to run, see https://bitbucket.org/icl/blaspp/issues/19/tests-arent-run-with-tester-target-when CMAKE_TESTING_TARGET= tester .include diff --git a/math/blaze/Makefile b/math/blaze/Makefile index dd7061c75b5c..5b91af41dba5 100644 --- a/math/blaze/Makefile +++ b/math/blaze/Makefile @@ -1,28 +1,28 @@ PORTNAME= blaze DISTVERSION= 3.8 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/downloads/ MAINTAINER= yuri@FreeBSD.org COMMENT= C++ math library for dense and sparse arithmetic WWW= https://bitbucket.org/blaze-lib/blaze/src/master/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ openblas>0:math/openblas RUN_DEPENDS= boost-libs>0:devel/boost-libs \ openblas>0:math/openblas USES= cmake compiler:c++14-lang fortran localbase:ldflags shebangfix BB_ACCOUNT= ${PORTNAME}-lib BB_PROJECT= ${PORTNAME} SHEBANG_GLOB= run NO_ARCH= yes .include diff --git a/math/bonmin/Makefile b/math/bonmin/Makefile index 485702769d8a..4c491384f9ad 100644 --- a/math/bonmin/Makefile +++ b/math/bonmin/Makefile @@ -1,47 +1,47 @@ PORTNAME= bonmin DISTVERSIONPREFIX= releases/ DISTVERSION= 1.8.9 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Basic Open-source Nonlinear Mixed INteger programming WWW= https://coin-or.github.io/Bonmin/ LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Bonmin/LICENSE LIB_DEPENDS= libCbc.so:math/cbc \ libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinmumps.so:math/coin-or-mumps \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libipopt.so:math/ipopt \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi USES= blaslapack compiler:c++11-lang gmake libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= Bonmin GNU_CONFIGURE= yes INSTALL_TARGET= install-strip TEST_TARGET= test SUB_FILES= ${PORTNAME}.msc SUB_LIST= PORTVERSION=${PORTVERSION} post-install: # install MiniZinc configuration file ${MKDIR} ${STAGEDIR}${PREFIX}/share/minizinc/solvers ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.msc ${STAGEDIR}${PREFIX}/share/minizinc/solvers .include diff --git a/math/casadi/Makefile b/math/casadi/Makefile index 5d812e47c6fd..079aa30e0201 100644 --- a/math/casadi/Makefile +++ b/math/casadi/Makefile @@ -1,77 +1,77 @@ PORTNAME= casadi DISTVERSION= 3.6.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Symbolic framework for numeric optimization WWW= https://web.casadi.org/ \ https://github.com/casadi/casadi LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libcoinmumps.so:math/coin-or-mumps USES= cmake compiler:c++11-lang pkgconfig USE_GITHUB= yes USE_LDCONFIG= yes CFLAGS+= -fPIC CXXFLAGS+= -fPIC CMAKE_OFF= WITH_DEEPBIND WITH_BUILD_BLASFEO # cmake-3.16: disable build of examples (they are not installed anyways), # and fail due to not setting up the linker environment properly: CMAKE_OFF+= WITH_EXAMPLES OPTIONS_DEFINE= BLASFEO BONMIN CLANG IPOPT LAPACK OPENMP QPOASES THREADS OPTIONS_DEFAULT= BLASFEO BONMIN IPOPT LAPACK OPENMP QPOASES THREADS OPTIONS_SUB= yes BLASFEO_DESC= Build with BLASFEO BLASFEO_CMAKE_BOOL= WITH_BLASFEO BLASFEO_BUILD_DEPENDS= blasfeo>0:math/blasfeo BONMIN_DESC= Build with Bonmin BONMIN_CMAKE_BOOL= WITH_BONMIN BONMIN_USES= blaslapack:netlib fortran BONMIN_LIB_DEPENDS= libbonmin.so:math/bonmin \ libCbcSolver.so:math/cbc \ libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libipopt.so:math/ipopt \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi CLANG_DESC= Build with clang for JIT CLANG_USES= llvm:16,build,run CLANG_CMAKE_BOOL= WITH_CLANG CLANG_CMAKE_ON= -DLLVM_INSTALL_PREFIX=${LLVM_PREFIX} -DOLD_LLVM=ON CLANG_BROKEN= fails to find clang, see https://github.com/casadi/casadi/issues/3089 IPOPT_DESC= Build with IPopt IPOPT_CMAKE_BOOL= WITH_IPOPT IPOPT_USES= blaslapack:netlib fortran IPOPT_LIB_DEPENDS= libipopt.so:math/ipopt LAPACK_DESC= Build with LAPACK LAPACK_CMAKE_BOOL= WITH_LAPACK LAPACK_USES= blaslapack:openblas OPENMP_CMAKE_BOOL= WITH_OPENMP QPOASES_DESC= Build with qpOASES QPOASES_CMAKE_BOOL= WITH_QPOASES QPOASES_LIB_DEPENDS= libopenblas.so:math/openblas QPOASES_IMPLIES= LAPACK THREADS_CMAKE_BOOL= WITH_THREAD PORTSCOUT= limit:^.*[1-9]\..* # prevent tags like ge2 .include diff --git a/math/cbc/Makefile b/math/cbc/Makefile index 09d88992c3d7..f4feb779cfc8 100644 --- a/math/cbc/Makefile +++ b/math/cbc/Makefile @@ -1,50 +1,51 @@ PORTNAME= cbc DISTVERSIONPREFIX= releases/ DISTVERSION= 2.10.12 +PORTREVISION= 1 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Coin-or Branch and Cut: mixed integer programming solver WWW= https://projects.coin-or.org/Cbc LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Cbc/LICENSE LIB_DEPENDS= libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi USES= compiler:c++11-lang fortran gmake libtool localbase pkgconfig USE_CXXSTD= gnu++11 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= Cbc GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-nauty-lib="-L${LOCALBASE}/lib -lnauty" --with-nauty-incdir=${LOCALBASE}/include/nauty TEST_TARGET= test OPTIONS_DEFINE= DEBUG PARALLEL OPTIONS_DEFAULT= PARALLEL DEBUG_DESC= Compile CBC with debug support DEBUG_CONFIGURE_ENABLE= debug PARALLEL_DESC= Compile CBC with parallel (multi-threaded solver) support PARALLEL_CONFIGURE_ENABLE= cbc-parallel CONFLICTS_INSTALL= libcouchbase # bin/cbc post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so .include diff --git a/math/ceres-solver/Makefile b/math/ceres-solver/Makefile index 5fa73dbb3267..2a0ee8599234 100644 --- a/math/ceres-solver/Makefile +++ b/math/ceres-solver/Makefile @@ -1,110 +1,110 @@ PORTNAME= ceres-solver DISTVERSION= 2.2.0 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Nonlinear least squares minimizer WWW= http://ceres-solver.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= glog>=0.5.0:devel/glog LIB_DEPENDS= libglog.so:devel/glog RUN_DEPENDS:= ${BUILD_DEPENDS:Meigen*} USES= cmake:testing compiler:${OPENMP}c++11-lib eigen:3 localbase shebangfix USE_GITHUB= yes USE_LDCONFIG= yes SHEBANG_FILES= examples/slam/pose_graph_*/plot_results.py \ scripts/make_docs.py CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_BENCHMARKS BUILD_TESTING LDFLAGS+= -Wl,--as-needed # -lccolamd -lcholmod -lrt from suitesparse PLIST_SUB= VERSION=${DISTVERSION:C/rc.*//} EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:S/-solver//} DOCSDIR= ${PREFIX}/share/doc/Ceres PORTDOCS= * PORTEXAMPLES= * OPTIONS_DEFINE= CUSTOM_BLAS EXAMPLES DOCS GFLAGS LAPACK OPENMP SCHUR OPTIONS_DEFAULT= CUSTOM_BLAS CXSPARSE GFLAGS OPENBLAS OPENMP SCHUR SUITESPARSE OPTIONS_RADIO= LAPACK THREADS OPTIONS_RADIO_LAPACK= ATLAS NETLIB OPENBLAS OPTIONS_GROUP= SPARSE OPTIONS_GROUP_SPARSE= CXSPARSE EIGENSPARSE SUITESPARSE CUSTOM_BLAS_DESC= Handcoded BLAS routines instead of Eigen CUSTOM_BLAS_CMAKE_BOOL= CUSTOM_BLAS DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx \ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} DOCS_USES= python:build DOCS_CMAKE_BOOL= BUILD_DOCUMENTATION EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES EXAMPLES_IMPLIES= GFLAGS GFLAGS_DESC= Google Flags support GFLAGS_LIB_DEPENDS= libgflags.so:devel/gflags GFLAGS_CMAKE_BOOL= GFLAGS OPENMP_CMAKE_ON= -DCERES_THREADING_MODEL:STRING="OPENMP" .if !exists(/usr/include/omp.h) # XXX ports/199603: LLVM openmp in base doesn't support armv6, armv7 yet OPENMP_VARS= OPENMP=gcc- .endif SCHUR_DESC= Fixed-size schur specializations SCHUR_CMAKE_BOOL= SCHUR_SPECIALIZATIONS # XXX Unbundle googletest/googlemock LAPACK_DESC= Linear Algebra PACKage LAPACK_CMAKE_BOOL= LAPACK ATLAS_USES= blaslapack:atlas ATLAS_CMAKE_ON= -DBLA_VENDOR:STRING="ATLAS" \ -DBLAS_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libcblas.so" \ -DLAPACK_LIBRARIES:FILEPATH="${LOCALBASE}/lib/libalapack.so" ATLAS_IMPLIES= LAPACK NETLIB_USES= blaslapack:netlib NETLIB_CMAKE_ON= -DBLA_VENDOR:STRING="Generic" NETLIB_IMPLIES= LAPACK OPENBLAS_USES= blaslapack:openblas OPENBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="OpenBLAS" OPENBLAS_IMPLIES= LAPACK SPARSE_DESC= Sparse linear algebra library CXSPARSE_DESC= CXSparse support CXSPARSE_LIB_DEPENDS= libcxsparse.so:math/suitesparse-cxsparse CXSPARSE_CMAKE_ON= -DCXSPARSE_INCLUDE_DIR:PATH="${LOCALBASE}/include/suitesparse" CXSPARSE_CMAKE_BOOL= CXSPARSE EIGENSPARSE_DESC= Simplicial Cholesky factorization in Eigen EIGENSPARSE_CMAKE_BOOL= EIGENSPARSE EIGENSPARSE_VARS= LICENSE+=LGPL21+ LICENSE_COMB=multi \ LICENSE_FILE_BSD3CLAUSE="${LICENSE_FILE}" SUITESPARSE_DESC= SuiteSparse support SUITESPARSE_LIB_DEPENDS=libspqr.so:math/suitesparse-spqr \ libcholmod.so:math/suitesparse-cholmod SUITESPARSE_CMAKE_BOOL= SUITESPARSE post-patch-DOCS-on: @${REINPLACE_CMD} -e 's,python,${PYTHON_CMD:T},' \ ${WRKSRC}/docs/source/CMakeLists.txt pre-install-TEST-on: do-test post-install-EXAMPLES-on: # Copy examples (stripped), their source and sample data but not tests programs (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) (cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${EXAMPLESDIR}) (cd ${BUILD_WRKSRC} && ${COPYTREE_SHARE} bin ${STAGEDIR}${EXAMPLESDIR}) @${RM} -r ${STAGEDIR}${EXAMPLESDIR}/bin/*_test -@${STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/bin/* # may fail for non-root .include diff --git a/math/cgl-conic/Makefile b/math/cgl-conic/Makefile index 09c5ba2d143d..919c0fd3c8f4 100644 --- a/math/cgl-conic/Makefile +++ b/math/cgl-conic/Makefile @@ -1,39 +1,39 @@ PORTNAME= cgl-conic DISTVERSIONPREFIX= releases/ DISTVERSION= 1.0.0-6 -PORTREVISION= 7 +PORTREVISION= 8 DISTVERSIONSUFFIX= -gc96de60 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Strategies for conic problems for COIN-OR Cut Generation WWW= https://github.com/aykutbulut/CGL-CONIC LICENSE= EPL LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libblas.so:math/blas \ libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libipopt.so:math/ipopt \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libOsiConic.so:math/osi-conic \ libOsiIpopt.so:math/osiipopt \ libOsi.so:math/osi USES= gmake libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= aykutbulut GH_PROJECT= CGL-CONIC GNU_CONFIGURE= yes INSTALL_TARGET= install-strip .include diff --git a/math/cgl/Makefile b/math/cgl/Makefile index b80795ff815c..851acccf94e4 100644 --- a/math/cgl/Makefile +++ b/math/cgl/Makefile @@ -1,37 +1,37 @@ PORTNAME= cgl DISTVERSIONPREFIX= releases/ DISTVERSION= 0.60.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Collection of cut generators for COIN-OR packages that use cuts WWW= https://github.com/coin-or/Cgl LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Cgl/LICENSE LIB_DEPENDS= libcoinasl.so:math/asl \ libblas.so:math/blas \ libCoinUtils.so:math/coinutils \ libClp.so:math/clp \ libcoinmumps.so:math/coin-or-mumps \ libopenblas.so:math/openblas \ libOsi.so:math/osi USES= compiler:c++11-lang gmake libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= Cgl GNU_CONFIGURE= yes TEST_TARGET= test post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libCgl.so.* .include diff --git a/math/cminpack/Makefile b/math/cminpack/Makefile index 757f75477b79..3084821b8563 100644 --- a/math/cminpack/Makefile +++ b/math/cminpack/Makefile @@ -1,38 +1,39 @@ PORTNAME= cminpack PORTVERSION= 1.3.11 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= math MAINTAINER= fernape@FreeBSD.org COMMENT= Solving nonlinear equations and nonlinear least squares problems WWW= http://devernay.free.fr/hacks/cminpack/ LICENSE_FILE= ${WRKSRC}/CopyrightMINPACK.txt USES= blaslapack:openblas cmake localbase USE_GITHUB= yes GH_ACCOUNT= devernay CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= USE_BLAS OPTIONS_DEFINE= EXAMPLES .include # libcminpackld is only built on platforms where # sizeof(long double) > sizeof(double) .if ${ARCH:Mpowerpc*} || ${ARCH:Marmv?} PLIST_SUB+= LONG_DOUBLE="@comment " .else PLIST_SUB+= LONG_DOUBLE="" .endif post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} "*.[ch] testdata" \ ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/math/coinmp/Makefile b/math/coinmp/Makefile index ab26429ab1fd..78636678ab50 100644 --- a/math/coinmp/Makefile +++ b/math/coinmp/Makefile @@ -1,74 +1,74 @@ PORTNAME= CoinMP DISTVERSIONPREFIX= releases/ DISTVERSION= 1.8.4 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Optimization library with support for COIN-OR CLP, CBC, and CGL WWW= https://projects.coin-or.org/CoinMP LICENSE= CPL LICENSE_NAME= Common Public License, Version 1.0 LICENSE_FILE= ${WRKSRC}/CoinMP/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LIB_DEPENDS= libblas.so:math/blas \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi USES= compiler:c++11-lang libtool pathfix pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= CoinMP GNU_CONFIGURE= yes CXXFLAGS+= -ffast-math PLIST_FILES= include/coin/CoinMP.h \ include/coin/CoinMPConfig.h \ lib/libCoinMP.so \ lib/libCoinMP.so.1 \ lib/libCoinMP.so.1.8.4 \ libdata/pkgconfig/coinmp.pc OPTIONS_DEFINE= DOCS FORTRAN GLPK FORTRAN_DESC= Use BLAS/LAPACK with the Fortran interface GLPK_DESC= GNU Linear Programming Kit support PORTDOCS= * FORTRAN_USES= fortran blaslapack FORTRAN_CONFIGURE_ON= --with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib" \ --with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib" GLPK_LIB_DEPENDS= libglpk.so:math/glpk GLPK_CONFIGURE_ON= --with-gmpl-incdir=${LOCALBASE}/include \ --with-gmpl-lib="-L${LOCALBASE}/lib -lglpk" GLPK_CONFIGURE_OFF= --disable-glpk-libcheck INSTALL_TARGET= install-strip TEST_TARGET= unitTest post-patch:: @${REINPLACE_CMD} \ -e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \ -e 's|addlibs_DATA = examples/Makefile examples/example.c||g' \ -e 's|DocInstallDir = $$(datadir)/coin/doc/$$(PACKAGE_NAME)|DocInstallDir = $$(datadir)/doc/CoinMP/$$(PACKAGE_NAME)|' \ -e 's| $$(MAKE) $$(AM_MAKEFLAGS) install-data-hook||' \ ${WRKSRC}/Makefile.in ${WRKSRC}/CoinMP/Makefile.in @${REINPLACE_CMD} -e 's|addlibsdir = $$(DESTDIR)$$(datadir)/coin/doc/CoinMP|addlibsdir = |' ${WRKSRC}/CoinMP/Makefile.in .include diff --git a/math/coinutils/Makefile b/math/coinutils/Makefile index e970af685375..8d930bdc349d 100644 --- a/math/coinutils/Makefile +++ b/math/coinutils/Makefile @@ -1,39 +1,40 @@ PORTNAME= CoinUtils DISTVERSIONPREFIX= releases/ DISTVERSION= 2.11.12 +PORTREVISION= 1 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Utilities for COIN-OR project WWW= https://github.com/coin-or/CoinUtils LICENSE= EPL LICENSE_FILE= ${WRKSRC}/CoinUtils/LICENSE COIN_DEPENDS= coin-or-Data-Sample>0:math/coin-or-data-sample \ coin-or-Data-Netlib>0:math/coin-or-data-netlib BUILD_DEPENDS= ${COIN_DEPENDS} LIB_DEPENDS= libopenblas.so:math/openblas RUN_DEPENDS= ${COIN_DEPENDS} USES= fortran gmake libtool localbase:ldflags pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-blas-lib="-lopenblas" --with-lapack-lib="-lopenblas" \ --with-sample-datadir="${LOCALBASE}/share/coin/Data/Sample" \ --with-netlib-datadir="${LOCALBASE}/share/coin/Data/Netlib" # doesn't link with the optional dependency glpk: https://github.com/coin-or/CoinUtils/issues/7 USE_LDCONFIG= yes CPPFLAGS+= -Dregister= USE_GITHUB= yes GH_ACCOUNT= coin-or INSTALL_TARGET= install-strip TEST_TARGET= test post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/coin .include diff --git a/math/cosma/Makefile b/math/cosma/Makefile index 167e917b00df..76dc522a091d 100644 --- a/math/cosma/Makefile +++ b/math/cosma/Makefile @@ -1,43 +1,43 @@ PORTNAME= cosma DISTVERSIONPREFIX= v DISTVERSION= 2.6.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Distributed communication-optimal matrix multiplication algorithm WWW= https://github.com/eth-cscs/COSMA LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= openmpi4>0:net/openmpi4 LIB_DEPENDS= libopenblas.so:math/openblas RUN_DEPENDS= openmpi4>0:net/openmpi4 USES= cmake:testing USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= eth-cscs GH_PROJECT= COSMA GH_TUPLE= eth-cscs:COSTA:5f1ea59:costa/libs/COSTA \ eth-cscs:Tiled-MM:9e880f9:tiledmm/libs/Tiled-MM CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= COSMA_WITH_TESTS CMAKE_ARGS= -DCOSMA_BLAS="OPENBLAS" CMAKE_TESTING_ON= COSMA_WITH_TESTS post-install: @cd ${STAGEDIR}${PREFIX} && \ ${RMDIR} \ include/costa/pxtran \ include/costa/pxtranc \ include/costa/pxtranu .include diff --git a/math/costa/Makefile b/math/costa/Makefile index 6815bf91c41a..19322ee58b5c 100644 --- a/math/costa/Makefile +++ b/math/costa/Makefile @@ -1,43 +1,43 @@ PORTNAME= costa DISTVERSIONPREFIX= v DISTVERSION= 2.2.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Distributed Communication-Optimal Shuffle and Transpose Algorithm WWW= https://github.com/eth-cscs/COSTA LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopenblas.so:math/openblas \ libscalapack.so:math/scalapack USES= cmake:testing pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= eth-cscs GH_PROJECT= COSTA CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DCOSTA_SCALAPACK=CUSTOM CMAKE_OFF= COSTA_WITH_TESTS CMAKE_TESTING_ON= COSTA_WITH_TESTS OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= MPICH MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi post-install: # workaround for https://github.com/eth-cscs/COSTA/issues/9 @cd ${STAGEDIR}${PREFIX} && ${RMDIR} \ include/costa/pxtran \ include/costa/pxtranc \ include/costa/pxtranu .include diff --git a/math/couenne/Makefile b/math/couenne/Makefile index 6e622aa48fa3..1a2d2c217ab8 100644 --- a/math/couenne/Makefile +++ b/math/couenne/Makefile @@ -1,47 +1,47 @@ PORTNAME= couenne DISTVERSIONPREFIX= releases/ DISTVERSION= 0.5.8 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Convex Over and Under Envelopes for NonliNear Estimation WWW= https://projects.coin-or.org/Couenne LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Couenne/LICENSE LIB_DEPENDS= libbonmin.so:math/bonmin \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libipopt.so:math/ipopt \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi USES= blaslapack:netlib fortran gmake libtool pkgconfig USE_LDCONFIG= yes USE_CXXSTD= c++11 # fix compilation failure: error: ISO C++17 does not allow 'register' storage class specifier, see https://github.com/coin-or/Couenne/issues/75 USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= Couenne GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-nauty-incdir=${LOCALBASE}/include/nauty --with-nauty-lib=${LOCALBASE}/lib/libnauty.so # see https://github.com/coin-or/Couenne/issues/58 INSTALL_TARGET= install-strip SUB_FILES= ${PORTNAME}.msc SUB_LIST= PORTVERSION=${PORTVERSION} post-install: # install MiniZinc configuration file ${MKDIR} ${STAGEDIR}${PREFIX}/share/minizinc/solvers ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.msc ${STAGEDIR}${PREFIX}/share/minizinc/solvers .include diff --git a/math/dbcsr/Makefile b/math/dbcsr/Makefile index 414cd51e40c7..34c86d042a6e 100644 --- a/math/dbcsr/Makefile +++ b/math/dbcsr/Makefile @@ -1,58 +1,59 @@ PORTNAME= dbcsr DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Distributed Block Compressed Sparse Row matrix library WWW= https://www.cp2k.org/dbcsr LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= fypp:devel/py-fypp@${PY_FLAVOR} USES= blaslapack:openblas cmake:noninja,testing compiler:c++14-lang fortran \ python:build USE_GCC= yes # OpenMP is used from both Fortan and C code, therefore C code should be compiled with GCC, otherwise it fails at run-time (same in cp2k) USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= cp2k FFLAGS+= -D__NO_STATM_ACCESS # disable /proc/self/statm access LDFLAGS+= -lopenblas CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_TESTING WITH_EXAMPLES CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" -DPython_EXECUTABLE=${PYTHON_CMD} BINARY_ALIAS= git=false # with git sonames get messed up OPTIONS_DEFINE= C_API MPIX OPENMP # libxsmm is supposed to be supported, but cmake build lacks the corresponding option: https://github.com/cp2k/dbcsr/issues/73 OPTIONS_DEFAULT= C_API MPIX OPENMP OPTIONS_SUB= yes MPIX_DESC= Enable MPI MPIX_CMAKE_BOOL= USE_MPI USE_MPI_F08 MPIX_USES= mpi:mpich OPENMP_CMAKE_BOOL= USE_OPENMP C_API_DESC= Build the C API library C_API_CMAKE_BOOL= WITH_C_API C_API_IMPLIES= MPIX # the ISO_C_BINDINGS require MPI unconditionally .include . if ${GCC_DEFAULT} >= 10 CMAKE_ARGS+= -DCMAKE_Fortran_FLAGS="${FFLAGS} -fallow-argument-mismatch" # -fallow-argument-mismatch is a workaround of https://github.com/cp2k/dbcsr/issues/387 for gcc10+ . else CMAKE_ARGS+= -DCMAKE_Fortran_FLAGS="${FFLAGS}" . endif .include diff --git a/math/deal.ii/Makefile b/math/deal.ii/Makefile index 284d0bc4631f..c79bf9792ed5 100644 --- a/math/deal.ii/Makefile +++ b/math/deal.ii/Makefile @@ -1,118 +1,118 @@ PORTNAME= deal.II DISTVERSION= 9.6.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= https://github.com/dealii/dealii/releases/download/v${DISTVERSION}/ DISTNAME= dealii-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Finite element Differential Equations Analysis Library (DEAL) WWW= https://www.dealii.org/ \ https://github.com/dealii/dealii LICENSE= APACHE20 LGPL21 LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.md LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE.md BROKEN_aarch64= error: use of undeclared identifier '__TBB_machine_fetchadd4' BROKEN_armv7= clang runs out of memory BROKEN_i386= compilation fails: Kokkos assumes 64-bit build; i.e., 8-byte pointers BUILD_DEPENDS= ${LOCALBASE}/include/boost/config.hpp:devel/boost-libs LIB_DEPENDS= libblis.so:math/blis \ libboost_serialization.so:devel/boost-libs \ libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} # libkokkoscore.so:devel/kokkos TMP commented out for bundled kokkos, tests fail for non-bundled kokkos, see https://github.com/dealii/dealii/issues/15692 USES= blaslapack cmake:testing compiler:c++17-lang localbase:ldflags xorg USE_LDCONFIG= yes CMAKE_OFF= DEAL_II_ALLOW_BUNDLED DEAL_II_COMPONENT_EXAMPLES \ DEAL_II_WITH_P4EST DEAL_II_WITH_TRILINOS DEAL_II_WITH_UMFPACK \ DEAL_II_WITH_NANOFLANN DEAL_II_WITH_MUPARSER DEAL_II_WITH_ASSIMP \ DEAL_II_WITH_HDF5 CMAKE_ON= DEAL_II_FORCE_BUNDLED_TBB # instead of LIB_DEPENDS+=libtbb.so:devel/onetbb, pending https://github.com/dealii/dealii/issues/11561 CMAKE_ON+= FORCE_BUNDLED_KOKKOS # TMP turn on bundled kokkos CMAKE_TESTING_ON= FREEBSD_ENABLE_TESTS LDFLAGS+= -lomp LDFLAGS+= -lexecinfo # TMP for bundled kokkos XARCH!= uname -p OPTIONS_DEFINE= ADOLC ARPACK GSL LAPACK MPI OPENCASCADE PETSC SCALAPACK SLEPC SUNDIALS # for all options see contrib/docker/Dockerfile, TODO some of them need to be enabled here OPTIONS_DEFAULT= GSL LAPACK MPI OPENCASCADE PETSC SCALAPACK SLEPC SUNDIALS ADOLC_DESC= Compile with ADOL-C ADOLC_CMAKE_BOOL= DEAL_II_WITH_ADOLC ADOLC_LIB_DEPENDS= libadolc.so:math/adol-c ADOLC_BROKEN= requires the development version: see https://github.com/dealii/dealii/issues/7293 ARPACK_DESC= Compile with Arpack and PArpack (only with MPI, LAPACK) ARPACK_CMAKE_BOOL= DEAL_II_WITH_ARPACK ARPACK_CMAKE_ON= -DARPACK_LINKER_FLAGS:STRING="${LDFLAGS}" ARPACK_BUILD_DEPENDS= arpack-ng>0:math/arpack-ng ARPACK_RUN_DEPENDS= arpack-ng>0:math/arpack-ng # itself doesn't link to arpack, but makes depending project link to it ARPACK_IMPLIES= LAPACK GSL_DESC= Compile with gsl GSL_CMAKE_BOOL= DEAL_II_WITH_GSL GSL_LIB_DEPENDS= libgsl.so:math/gsl LAPACK_DESC= Compile with LAPACK for matrix operations LAPACK_USES= fortran LAPACK_CMAKE_BOOL= DEAL_II_WITH_LAPACK LAPACK_CMAKE_ON= -DLAPACK_LINKER_FLAGS:STRING="${LDFLAGS}" LAPACK_LIB_DEPENDS= libopenblas.so:math/openblas MPI_DESC= MPI support (math/sundials must be compiled with MPI) MPI_USES= fortran MPI_CMAKE_BOOL= DEAL_II_WITH_MPI MPI_CMAKE_ON= -DMPI_LINKER_FLAGS:STRING="${LDFLAGS}" MPI_LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \ libmpich.so:net/mpich OPENCASCADE_DESC= Compile with OpenCascade OPENCASCADE_CMAKE_BOOL= DEAL_II_WITH_OPENCASCADE OPENCASCADE_CMAKE_ON= -DOPENCASCADE_INCLUDE_DIR:STRING=${LOCALBASE}/include/OpenCASCADE OPENCASCADE_LIB_DEPENDS= libTKernel.so:cad/opencascade PETSC_DESC= Compile with Petsc (only with MPI) PETSC_USES= xorg PETSC_USE= XORG=x11 # PETSc adds x11 through interface libraries PETSC_CMAKE_BOOL= DEAL_II_WITH_PETSC PETSC_LIB_DEPENDS= libpetsc.so:science/PETSc PETSC_IMPLIES= MPI # has to use the same MPI as PETSc uses .if ${XARCH:M*64*} # match index size width being set to 64 in science/PETSc and math/metis PETSC_CMAKE_BOOL+= DEAL_II_WITH_64BIT_INDICES # as opposed to 32-bit indices that are default in deal.II .endif SCALAPACK_DESC= Compile with ScaLAPACK (only with MPI) SCALAPACK_CMAKE_BOOL= DEAL_II_WITH_SCALAPACK SCALAPACK_IMPLIES= MPI LAPACK SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack SLEPC_DESC= Compile with Slepc (only with MPI) SLEPC_USES= xorg SLEPC_USE= XORG=x11 # SLEPc adds x11 through interface libraries SLEPC_CMAKE_BOOL= DEAL_II_WITH_SLEPC SLEPC_LIB_DEPENDS= libslepc.so:math/slepc SLEPC_IMPLIES= MPI # has to use the same MPI as PETSc uses SUNDIALS_DESC= Compile with SUNDIALS SUNDIALS_CMAKE_BOOL= DEAL_II_WITH_SUNDIALS SUNDIALS_LIB_DEPENDS= libsundials_arkode.so:math/sundials post-patch: # unbundle boost @${RM} -r ${WRKSRC}/dealii/bundled/boost-* post-stage: @${RM} ${STAGEDIR}${PREFIX}/*.log # the testsuite is excluded from the tarball: https://github.com/dealii/dealii/issues/17951 .include <../../math/vtk9/Makefile.version> .include diff --git a/math/disco/Makefile b/math/disco/Makefile index cee21cc589cb..a537e17b5683 100644 --- a/math/disco/Makefile +++ b/math/disco/Makefile @@ -1,48 +1,48 @@ PORTNAME= disco DISTVERSIONPREFIX= releases/ DISTVERSION= 1.0.0-33 -PORTREVISION= 10 +PORTREVISION= 11 DISTVERSIONSUFFIX= -g68720be CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Discrete Conic Optimization Solver WWW= https://github.com/coin-or/DisCO LICENSE= EPL LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/lib/libnauty.a:math/nauty LIB_DEPENDS= libAlps.so:math/alps \ libBcps.so:math/bcps \ libblas.so:math/blas \ libbonmin.so:math/bonmin \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libCglConic.so:math/cgl-conic \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libipopt.so:math/ipopt \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libOsiConic.so:math/osi-conic \ libOsiIpopt.so:math/osiipopt USES= gmake libtool pkgconfig USE_CXXSTD= c++14 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= DisCO GNU_CONFIGURE= yes CONFLICTS_INSTALL= disco mono mono[0-9]* INSTALL_TARGET= install-strip .include diff --git a/math/dune-alugrid/Makefile b/math/dune-alugrid/Makefile index 6f481804441a..d841a0e4e94b 100644 --- a/math/dune-alugrid/Makefile +++ b/math/dune-alugrid/Makefile @@ -1,46 +1,46 @@ PORTNAME= dune-alugrid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: grid implementation providing simplex or cube grids WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= vc>0:devel/vc LIB_DEPENDS= libalberta_utilities.so:math/alberta \ libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libduneuggrid.so:math/dune-uggrid \ libmetis.so:math/metis \ libmpi_cxx.so:net/openmpi4 \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= ffd6cd15dc7092593c3d5827c2a2b43b81d7a32f CMAKE_ON= BUILD_SHARED_LIBS OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * CXXFLAGS+= -fsigned-char .include diff --git a/math/dune-common/Makefile b/math/dune-common/Makefile index e57281f870e1..fdbc7de7f307 100644 --- a/math/dune-common/Makefile +++ b/math/dune-common/Makefile @@ -1,50 +1,50 @@ PORTNAME= dune-common DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= math PATCH_SITES= https://gitlab.dune-project.org/core/${PORTNAME}/-/commit/ PATCHFILES+= d36ce92a18904a3fe69028811c619b4b5a09ef4e.patch:-p1 MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Build system, infrastructure and foundation classes WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= metis>0:math/metis \ openmpi4>0:net/openmpi4 \ vc>0:devel/vc # Metis isn't used, see https://gitlab.dune-project.org/core/dune-common/-/issues/306 LIB_DEPENDS= libopenblas.so:math/openblas \ libtbb.so:devel/onetbb USES= cmake compiler:c++17-lang fortran pkgconfig python shebangfix SHEBANG_FILES= bin/dune-ctest bin/setup-dunepy.py bin/dunepackaging.py bin/rmgenerated.py cmake/scripts/extract_cmake_data.py USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= core GL_TAGNAME= df65b1282ea89ad40d2cb6565983f7e633ccce31 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS DOXYGEN OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= latex:print/tex-formats \ sphinx-build:textproc/py-sphinx DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_IMPLIES= DOCS PORTDOCS= * post-install: @${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/scripts/run-in-dune-env.sh.in # https://gitlab.dune-project.org/core/dune-common/-/issues/229 .include diff --git a/math/dune-fem/Makefile b/math/dune-fem/Makefile index dfd258d57af7..f64d0bd94f40 100644 --- a/math/dune-fem/Makefile +++ b/math/dune-fem/Makefile @@ -1,68 +1,68 @@ PORTNAME= dune-fem DISTVERSION= 2.8.0.5 -PORTREVISION= 26 +PORTREVISION= 27 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Finite Element Methods, Finite Volume Methods, etc WWW= https://www.dune-project.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= arpack++>0:math/arpack++ \ dune-istl>=2.6:math/dune-istl \ dune-localfunctions>=2.6:math/dune-localfunctions \ dune-spgrid>0:math/dune-spgrid \ vc>0:devel/vc \ openmpi4>0:net/openmpi4 LIB_DEPENDS= libpsurface.so:math/psurface \ libarpack.so:math/arpack-ng \ libdunealugrid.so:math/dune-alugrid \ libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libdunepolygongrid.so:math/dune-polygongrid \ libduneuggrid.so:math/dune-uggrid \ libgmp.so:math/gmp \ libmetis.so:math/metis \ libopenblas.so:math/openblas \ libsuitesparseconfig.so:math/suitesparse-config \ libsuperlu.so:math/superlu \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libldl.so:math/suitesparse-ldl \ libspqr.so:math/suitesparse-spqr \ libumfpack.so:math/suitesparse-umfpack \ libtbb.so:devel/onetbb RUN_DEPENDS= dune-istl>=2.6:math/dune-istl \ dune-localfunctions>=2.6:math/dune-localfunctions \ dune-spgrid>0:math/dune-spgrid \ openmpi4>0:net/openmpi4 USES= cmake compiler:c++17-lang eigen:3 fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= dune-fem GL_TAGNAME= 30e278aa744c908fbf4bbd8b237eb26c0475d16e CMAKE_ON= BUILD_SHARED_LIBS OPTIONS_DEFINE= DOCS DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * post-install: # https://gitlab.dune-project.org/dune-fem/dune-fem/-/issues/111 ${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/modules/FindPThreads.cmake ${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/modules/FindSIONlib.cmake .include diff --git a/math/dune-geometry/Makefile b/math/dune-geometry/Makefile index 6b3f654ef706..daa4487f0273 100644 --- a/math/dune-geometry/Makefile +++ b/math/dune-geometry/Makefile @@ -1,40 +1,40 @@ PORTNAME= dune-geometry DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Geometry transformations, reference elements, etc WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= openmpi4>0:net/openmpi4 \ vc>0:devel/vc LIB_DEPENDS= libdunecommon.so:math/dune-common \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb USES= cmake compiler:c++17-lang fortran pkgconfig python USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= core GL_TAGNAME= e7bfb66e48496aa28e47974c33ea9a4579bf723b CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-grid-glue/Makefile b/math/dune-grid-glue/Makefile index 3546715fe4c1..33a80ee8fda7 100644 --- a/math/dune-grid-glue/Makefile +++ b/math/dune-grid-glue/Makefile @@ -1,45 +1,45 @@ PORTNAME= dune-grid-glue DISTVERSION= 2.8.0 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: infrastructure for coupling of unrelated Dune grids WWW= https://www.dune-project.org/ LICENSE= GPLv2 BUILD_DEPENDS= alberta-fem>0:math/alberta \ openmpi4>0:net/openmpi4 \ psurface>0:math/psurface \ vc>0:devel/vc LIB_DEPENDS= libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libduneuggrid.so:math/dune-uggrid \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb RUN_DEPENDS= alberta-fem>0:math/alberta # binaries aren't linked with alberta, instead users' binaries are linked with it RUN_DEPENDS+= psurface>0:math/psurface USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 22efb0e3cbf0a75094a8d81a4fdd352c98e78947 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-grid/Makefile b/math/dune-grid/Makefile index fc998b78e6c5..72f3cfe07d17 100644 --- a/math/dune-grid/Makefile +++ b/math/dune-grid/Makefile @@ -1,46 +1,46 @@ PORTNAME= dune-grid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Geometry transformations, reference elements, etc WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= alberta-fem>0:math/alberta \ openmpi4>0:net/openmpi4 \ psurface>0:math/psurface \ vc>0:devel/vc LIB_DEPENDS= libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libduneuggrid.so:math/dune-uggrid \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb RUN_DEPENDS= alberta-fem>0:math/alberta # binaries aren't linked with alberta, instead users' binaries are linked with it RUN_DEPENDS+= psurface>0:math/psurface USES= cmake compiler:c++17-lang fortran pkgconfig python:build USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= core GL_TAGNAME= de36e4b4e99da4cd7a120a39779345e701821115 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-pdelab/Makefile b/math/dune-pdelab/Makefile index d11521158ffb..5adcee06bfbc 100644 --- a/math/dune-pdelab/Makefile +++ b/math/dune-pdelab/Makefile @@ -1,66 +1,66 @@ PORTNAME= dune-pdelab DISTVERSIONPREFIX= v DISTVERSION= 2.7.0.20210824 -PORTREVISION= 27 +PORTREVISION= 28 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: PDE solver toolbox WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING DUNE_DEPENDS= dune-common>0:math/dune-common \ dune-functions>0:math/dune-functions \ dune-grid>0:math/dune-grid \ dune-istl>0:math/dune-istl \ dune-geometry>0:math/dune-geometry \ dune-localfunctions>0:math/dune-localfunctions \ dune-typetree>0:math/dune-typetree BUILD_DEPENDS= ${DUNE_DEPENDS} \ suitesparse>0:math/suitesparse \ openmpi4>0:net/openmpi4 LIB_DEPENDS= libarpack.so:math/arpack-ng \ libdunealugrid.so:math/dune-alugrid \ libduneuggrid.so:math/dune-uggrid \ libgmp.so:math/gmp \ libmetis.so:math/metis \ libpsurface.so:math/psurface \ libopenblas.so:math/openblas \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libsuitesparseconfig.so:math/suitesparse-config \ libldl.so:math/suitesparse-ldl \ libspqr.so:math/suitesparse-spqr \ libumfpack.so:math/suitesparse-umfpack \ libsuperlu.so:math/superlu \ libtbb.so:devel/onetbb RUN_DEPENDS= ${DUNE_DEPENDS} \ suitesparse>0:math/suitesparse \ openmpi4>0:net/openmpi4 USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= pdelab GL_TAGNAME= 20c7085389d3eb4f8ca99e1bc60f7fa6036536c8 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-polygongrid/Makefile b/math/dune-polygongrid/Makefile index afc75125fb80..f6226f08e428 100644 --- a/math/dune-polygongrid/Makefile +++ b/math/dune-polygongrid/Makefile @@ -1,32 +1,32 @@ PORTNAME= dune-polygongrid DISTVERSION= 2.8.0 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: 2D polygonal grid WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= openmpi4>0:net/openmpi4 LIB_DEPENDS= libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libduneuggrid.so:math/dune-uggrid \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb RUN_DEPENDS= openmpi4>0:net/openmpi4 USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 90840c3d36f5fa6e18a00e7df7be01832cd7e23b CMAKE_ON= BUILD_SHARED_LIBS .include diff --git a/math/dune-uggrid/Makefile b/math/dune-uggrid/Makefile index 8e2d74a6b279..1c0dac18db09 100644 --- a/math/dune-uggrid/Makefile +++ b/math/dune-uggrid/Makefile @@ -1,32 +1,32 @@ PORTNAME= dune-uggrid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: The UG Grid Manager WWW= https://www.dune-project.org/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING.LGPL-2.1 BUILD_DEPENDS= openmpi4>0:net/openmpi4 \ vc>0:devel/vc LIB_DEPENDS= libdunecommon.so:math/dune-common \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb RUN_DEPENDS= openmpi4>0:net/openmpi4 USES= cmake compiler:c++17-lang fortran pkgconfig python USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= staging GL_TAGNAME= bc2d1229420367563410ce9e519f5ff82b45266f CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so .include diff --git a/math/dune-vtk/Makefile b/math/dune-vtk/Makefile index f02a17a30270..e49641192a8b 100644 --- a/math/dune-vtk/Makefile +++ b/math/dune-vtk/Makefile @@ -1,63 +1,63 @@ PORTNAME= dune-vtk DISTVERSION= 2.8.0 -PORTREVISION= 25 +PORTREVISION= 26 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: File reader and writer for the VTK XML format WWW= https://www.dune-project.org/ LICENSE= GPLv2+ HPP_DEPENDS= ${LOCALBASE}/include/dune/foamgrid/foamgrid.hh:math/dune-foamgrid \ dune-localfunctions>0:math/dune-localfunctions \ dune-spgrid>0:math/dune-spgrid BUILD_DEPENDS= ${HPP_DEPENDS} \ dune-functions>0:math/dune-functions \ suitesparse>0:math/suitesparse \ openmpi4>0:net/openmpi4 LIB_DEPENDS= libarpack.so:math/arpack-ng \ libdunealugrid.so:math/dune-alugrid \ libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libdunepolygongrid.so:math/dune-polygongrid \ libduneuggrid.so:math/dune-uggrid \ libgmp.so:math/gmp \ libmetis.so:math/metis \ libopenblas.so:math/openblas \ libpsurface.so:math/psurface \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libsuitesparseconfig.so:math/suitesparse-config \ libldl.so:math/suitesparse-ldl \ libspqr.so:math/suitesparse-spqr \ libumfpack.so:math/suitesparse-umfpack \ libsuperlu.so:math/superlu \ libtbb.so:devel/onetbb RUN_DEPENDS= ${HPP_DEPENDS} \ suitesparse>0:math/suitesparse \ openmpi4>0:net/openmpi4 USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 467838cde3bbea3d27d2bd117570a3215240dcd1 CMAKE_ON= BUILD_SHARED_LIBS OPTIONS_DEFINE= DOCS DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/elemental/Makefile b/math/elemental/Makefile index e59870c92011..6d239d25c7f4 100644 --- a/math/elemental/Makefile +++ b/math/elemental/Makefile @@ -1,47 +1,47 @@ PORTNAME= elemental DISTVERSIONPREFIX= v DISTVERSION= 1.5.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Dense and sparse linear algebra, conic optimization, lattice reduction WWW= https://github.com/LLNL/Elemental LICENSE= BSD2CLAUSE BROKEN_i386= clang crashes: https://bugs.llvm.org/show_bug.cgi?id=46026 LIB_DEPENDS= libgmp.so:math/gmp \ libmetis.so:math/metis \ libmpc.so:math/mpc \ libmpfr.so:math/mpfr \ libmpi_cxx.so:net/openmpi4 \ libopenblas.so:math/openblas \ libqd.so:math/qd TEST_DEPENDS= catch>0:devel/catch USES= cmake compiler:c++14-lang fortran USE_GITHUB= yes GH_ACCOUNT= LLNL GH_PROJECT= Elemental USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS EL_DISABLE_PARMETIS CMAKE_OFF= Hydrogen_ENABLE_TESTING CMAKE_ARGS= -DGFORTRAN_LIB:STRING=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so \ -DFREEBSD_GCC_LIB:STRING=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so DOCSDIR= ${PREFIX}/share/doc/Elemental OPTIONS_DEFINE= DOCS PORTDOCS= * do-test: # 4 tests fail, see https://github.com/LLNL/Elemental/issues/157 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHydrogen_ENABLE_TESTING:BOOL=ON -DHydrogen_ENABLE_UNIT_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/elpa/Makefile b/math/elpa/Makefile index d5442bd020d3..7af0e6156556 100644 --- a/math/elpa/Makefile +++ b/math/elpa/Makefile @@ -1,73 +1,73 @@ PORTNAME= elpa DISTVERSION= 2021.11.001 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MASTER_SITES= https://elpa.mpcdf.mpg.de/software/tarball-archive/Releases/${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Eigenvalue soLver for Petaflop Applications WWW= https://elpa.mpcdf.mpg.de/ LICENSE= GPLv3 LGPL3 LICENSE_COMB= dual LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING/gpl.txt LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING/lgpl.txt LIB_DEPENDS= libopenblas.so:math/openblas USES= compiler:c11 fortran gmake libtool localbase perl5 shebangfix USE_LDCONFIG= yes SHEBANG_GLOB= *.pl GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS= --disable-avx --disable-avx2 --disable-avx512 --disable-static \ --disable-c-tests CFLAGS+= -I${WRKSRC} -I${WRKSRC}/private_modules CFLAGS+= -DFREEBSD_OSVERSION=${OSVERSION} FCFLAGS+= -I${WRKSRC} -I${WRKSRC}/private_modules LDFLAGS+= -lutil # ugly workaround for missing .mod files: some targets are added before 'all' that force rebuild of missing .mod files ALL_TARGET= src/general/libelpa_private_la-elpa_utilities.lo \ src/libelpa_private_la-elpa_generated_fortran_interfaces.lo \ src/elpa1/libelpa_private_la-elpa1_compute_private.lo \ src/elpa2/libelpa_private_la-elpa2_compute.lo \ all INSTALL_TARGET= install-strip BINARY_ALIAS= make=gmake gcc=gcc${GCC_DEFAULT} g++=g++${GCC_DEFAULT} # build fails with clang: recursively calls cc FCFLAGS+= -std=legacy -I${LOCALBASE}/include MAKE_JOBS_UNSAFE= yes # part of the workaround for .mod files OPTIONS_DEFINE= OPENMP MPI DOCS OPTIONS_DEFINE_amd64= SSE OPTIONS_DEFAULT_amd64= SSE SSE_CFLAGS= -msse3 OPENMP_CONFIGURE_ENABLE= openmp MPI_CONFIGURE_WITH= mpi MPI_LIB_DEPENDS= libmpich.so:net/mpich \ libscalapack.so:math/scalapack PORTDOCS= * post-patch: # workaround for: https://github.com/marekandreas/elpa/issues/6 @${FIND} ${WRKSRC} -name "*.mk" | ${XARGS} ${REINPLACE_CMD} -e 's|-Werror| |' # patch in the full path name of config-f90.h @${FIND} ${WRKSRC} -name *.F90 -o -name *.c | ${XARGS} ${REINPLACE_CMD} -e 's|#include "config-f90.h"|#include "${WRKSRC}/config-f90.h"|' .include .if ${PORT_OPTIONS:NSSE} CONFIGURE_ARGS+= --disable-sse --disable-sse-assembly .endif post-install-DOCS-on: @cd ${STAGEDIR}${DOCSDIR} && ${RM} *gpl* COPYING LICENSE .include diff --git a/math/faiss/Makefile b/math/faiss/Makefile index 9769ec9ebd6d..fe2a44487416 100644 --- a/math/faiss/Makefile +++ b/math/faiss/Makefile @@ -1,34 +1,35 @@ PORTNAME= faiss DISTVERSIONPREFIX= v DISTVERSION= 1.9.0 +PORTREVISION= 1 CATEGORIES= math #PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ #PATCHFILES= 70c5de13cd9e2ce94181fe67d9a70eb371ecd554.patch:-p1 # fix GTest linkage MAINTAINER= yuri@FreeBSD.org COMMENT= Library for efficient similarity search & clustering of dense vectors WWW= https://github.com/facebookresearch/faiss LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= openblas>0:math/openblas # faiss links with libopenblasp-rN.N.N.so (installed by default only on amd64,i386), so use non-filename-specific DEPENDS commands RUN_DEPENDS= openblas>0:math/openblas TEST_DEPENDS= googletest>0:devel/googletest USES= cmake:testing compiler:c++11-lang localbase:ldflags # tests fail to compile, see https://github.com/facebookresearch/faiss/issues/3913 USE_GITHUB= yes GH_ACCOUNT= facebookresearch #LDFLAGS+= -lgtest #-pthread CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_TESTING FAISS_ENABLE_GPU FAISS_ENABLE_PYTHON .include diff --git a/math/fenics-basix/Makefile b/math/fenics-basix/Makefile index 97936db5d59e..27253f871e85 100644 --- a/math/fenics-basix/Makefile +++ b/math/fenics-basix/Makefile @@ -1,26 +1,26 @@ PORTNAME= fenics-basix DISTVERSIONPREFIX= v DISTVERSION= 0.8.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= FEniCS finite element basis evaluation library WWW= https://github.com/FEniCS/basix LICENSE= MIT LICENSE_FILE= ${WRKSRC}/../LICENSE BUILD_DEPENDS= xtensor>0:math/xtensor \ xtl-quant-stack>0:devel/xtl-quant-stack LIB_DEPENDS= libopenblas.so:math/openblas USES= cmake compiler:c++20-lang USE_GITHUB= yes GH_ACCOUNT= FEniCS GH_PROJECT= basix WRKSRC_SUBDIR= cpp .include diff --git a/math/fflas-ffpack/Makefile b/math/fflas-ffpack/Makefile index eb3fb1d0c216..892a8c325d96 100644 --- a/math/fflas-ffpack/Makefile +++ b/math/fflas-ffpack/Makefile @@ -1,49 +1,49 @@ PORTNAME= fflas-ffpack PORTVERSION= 2.5.0 -PORTREVISION= 2 +PORTREVISION= 3 DISTVERSIONPREFIX= v CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= Library for dense linear algebra over word-size finite fields WWW= https://linbox-team.github.io/fflas-ffpack/ LICENSE= LGPL21 BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libgmp.so:math/gmp \ libgivaro.so:math/givaro RUN_DEPENDS= bash:shells/bash USE_GITHUB= yes GH_ACCOUNT= linbox-team USES= autoreconf blaslapack:openblas compiler:c++11-lang gmake \ libtool localbase pkgconfig shebangfix USE_CXXSTD= c++11 GNU_CONFIGURE= yes SHEBANG_FILES= fflas-ffpack-config.in TEST_TARGET= check NO_ARCH= yes OPTIONS_DEFINE= DOXYGEN .include .if ${PORT_OPTIONS:MDOXYGEN} BUILD_DEPENDS+= doxygen:devel/doxygen CONFIGURE_ARGS+= --enable-doc --with-docdir="${DOCSDIR}" PLIST_SUB+= DOXYGEN="" .else PLIST_SUB+= DOXYGEN="@comment " .endif post-patch-DOXYGEN-on: ${REINPLACE_CMD} -e 's/sed -i/& ""/' ${WRKSRC}/doc/Makefile.am post-install-DOXYGEN-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/fflas-ffpack-dev-html @${TOUCH} ${STAGEDIR}${DOCSDIR}/fflas-ffpack-dev-html/.keep-me .include diff --git a/math/flexiblas/Makefile b/math/flexiblas/Makefile index ae14d128e865..5aa166d8823b 100644 --- a/math/flexiblas/Makefile +++ b/math/flexiblas/Makefile @@ -1,55 +1,55 @@ PORTNAME= flexiblas PORTVERSION= 3.4.4 -PORTREVISION= 2 +PORTREVISION= 3 DISTVERSIONPREFIX= v CATEGORIES= math #MASTER_SITES= https://csc.mpi-magdeburg.mpg.de/mpcsc/software/flexiblas/ MAINTAINER= thierry@FreeBSD.org COMMENT= BLAS and LAPACK wrapper library with runtime exchangable backends WWW= https://www.mpi-magdeburg.mpg.de/projects/flexiblas LICENSE= LGPL3 LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ liblapack.so:math/lapack USES= cmake:testing fortran python tar:xz CMAKE_ARGS= -DLTO:BOOL=OFF USE_GITLAB= yes GL_SITE= https://gitlab.mpi-magdeburg.mpg.de/ GL_ACCOUNT= software GL_PROJECT= ${PORTNAME}-release CONFIGURE_ENV= PYTHON_EXECUTABLE=${PYTHON_CMD} USE_LDCONFIG= yes PLIST_SUB= VE=${PORTVERSION:R} .if defined(WITH_DEBUG) CMAKE_ARGS+= -DFIND_DEBUG:BOOL=ON .endif OPTIONS_DEFINE= DOCS EXAMPLES EXAMPLES_CMAKE_ON= -DEXAMPLES:BOOL=ON EXAMPLES_CMAKE_OFF= -DEXAMPLES:BOOL=OFF .include .if exists(${LOCALBASE}/lib/libatlas.so) LIB_DEPENDS+= libatlas.so:math/atlas PLIST_SUB+= OPENBLAS="@comment " ATLAS="" .else LIB_DEPENDS+= libcblas.so:math/cblas \ libopenblas.so:math/openblas PLIST_SUB+= OPENBLAS="" ATLAS="@comment " .endif post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/flexiblasrc \ ${STAGEDIR}${PREFIX}/etc/flexiblasrc.sample .include diff --git a/math/flint/Makefile b/math/flint/Makefile index 01d2e092f012..f0e149abf009 100644 --- a/math/flint/Makefile +++ b/math/flint/Makefile @@ -1,34 +1,35 @@ PORTNAME= flint DISTVERSION= 3.1.2 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= http://www.flintlib.org/download/ MAINTAINER= yuri@FreeBSD.org COMMENT= Fast library for number theory WWW= https://flintlib.org \ https://github.com/flintlib/flint LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libopenblas.so:math/openblas USES= cmake compiler:c++11-lang pkgconfig python:build USE_LDCONFIG= yes OPTIONS_DEFINE= NTL OPTIONS_DEFAULT= NTL NTL_DESC= Victor Shoup's Number Theory Library NTL_CMAKE_BOOL= WITH_NTL NTL_LIB_DEPENDS= libntl.so:math/ntl do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/flint2/Makefile b/math/flint2/Makefile index 4f9f5b1b56c0..0c8369c7905a 100644 --- a/math/flint2/Makefile +++ b/math/flint2/Makefile @@ -1,35 +1,35 @@ PORTNAME= flint DISTVERSION= 2.9.0 # FLINT is known to change its API. When upgrading please check that it does not break its consumers (e.g. math/e-antic) -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MASTER_SITES= http://www.flintlib.org/ PKGNAMESUFFIX= 2 MAINTAINER= yuri@FreeBSD.org COMMENT= Fast library for number theory WWW= https://www.flintlib.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libopenblas.so:math/openblas USES= cmake compiler:c++11-lang python:build USE_LDCONFIG= yes OPTIONS_DEFINE= NTL OPTIONS_DEFAULT= NTL NTL_DESC= Victor Shoup's Number Theory Library NTL_CMAKE_BOOL= WITH_NTL NTL_LIB_DEPENDS= libntl.so:math/ntl do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/g2o/Makefile b/math/g2o/Makefile index 956f18587b00..bed2156d4a01 100644 --- a/math/g2o/Makefile +++ b/math/g2o/Makefile @@ -1,77 +1,77 @@ PORTNAME= g2o DISTVERSION= 20230806 -PORTREVISION= 14 +PORTREVISION= 15 DISTVERSIONSUFFIX= _git CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= General framework for graph optimization WWW= https://openslam-org.github.io/g2o.html \ https://github.com/RainerKuemmerle/g2o LICENSE= LGPL3 GPLv3 LICENSE_COMB= dual BROKEN_FreeBSD_15= compilation error: static assertion failed due to requirement 'is_unsigned::value', see https://github.com/RainerKuemmerle/g2o/issues/838 LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libcxsparse.so:math/suitesparse-cxsparse \ libQGLViewer.so:graphics/libQGLViewer \ libmetis.so:math/metis \ libopenblas.so:math/openblas \ libsuitesparseconfig.so:math/suitesparse-config TEST_DEPENDS= googletest>0:devel/googletest USES= cmake:testing compiler:c++14-lang gl eigen:3 blaslapack:netlib localbase qt:5 USE_GL= gl glu USE_QT= core gui opengl xml widgets buildtools:build qmake:build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= RainerKuemmerle CMAKE_OFF= DO_SSE_AUTODETECT CMAKE_TESTING_ON= BUILD_UNITTESTS OPTIONS_DEFINE= FAST_MATH OPTIONS_SINGLE= SIMD_${ARCH:tu} OPTIONS_SINGLE_SIMD_AMD64= NOSSE SSE2 SSE3 SSE41 SSE42 SSE4A OPTIONS_SINGLE_SIMD_I386= ${OPTIONS_SINGLE_SIMD_AMD64} OPTIONS_DEFAULT_amd64= SSE2 OPTIONS_DEFAULT_i386= SSE2 SIMD_AMD64_DESC= Use SSE SIMD optimizations SIMD_I386_DESC= ${SIMD_AMD64_DESC} FAST_MATH_DESC= Enable fast math operations NOSSE_DESC= Do not use SIMD optimization SSE2_DESC= SSE2 optimization SSE3_DESC= SSE3 optimization SSE41_DESC= SSE41 optimization SSE42_DESC= SSE42 optimization SSE4A_DESC= SSE4a optimization FAST_MATH_CMAKE_BOOL= G2O_FAST_MATH NOSSE_CMAKE_ON= -DDISABLE_SSE2:BOOL=ON -DDISABLE_SSE3:BOOL=ON -DDISABLE_SSE4_1:BOOL=ON -DDISABLE_SSE4_2:BOOL=ON -DDISABLE_SSE4_A:BOOL=ON SSE2_CMAKE_ON= -DDISABLE_SSE3:BOOL=ON -DDISABLE_SSE4_1:BOOL=ON -DDISABLE_SSE4_2:BOOL=ON -DDISABLE_SSE4_A:BOOL=ON SSE3_CMAKE_ON= -DDISABLE_SSE4_1:BOOL=ON -DDISABLE_SSE4_2:BOOL=ON -DDISABLE_SSE4_A:BOOL=ON SSE41_CMAKE_ON= -DDISABLE_SSE4_2:BOOL=ON -DDISABLE_SSE4_A:BOOL=ON SSE42_CMAKE_ON= -DDISABLE_SSE4_A:BOOL=ON SSE4A_CMAKE_ON= # empty to make portlint happy .include .if ${ARCH} != amd64 && ${ARCH} != i386 CMAKE_ARGS+= -DDISABLE_SSE2:BOOL=ON -DDISABLE_SSE3:BOOL=ON -DDISABLE_SSE4_1:BOOL=ON -DDISABLE_SSE4_2:BOOL=ON -DDISABLE_SSE4_A:BOOL=ON .endif post-patch: @${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \ ${WRKSRC}/cmake_modules/*.cmake # tests fail to compile, see https://github.com/RainerKuemmerle/g2o/issues/711 .include diff --git a/math/gravity/Makefile b/math/gravity/Makefile index b0407c15c194..84f11d52d1d8 100644 --- a/math/gravity/Makefile +++ b/math/gravity/Makefile @@ -1,42 +1,42 @@ PORTNAME= gravity DISTVERSIONPREFIX= v DISTVERSION= 1.1-20220309 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Mathematical modeling for optimization and machine learning WWW= https://www.gravityopt.com/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/boost/graph/adjacency_list.hpp:devel/boost-libs LIB_DEPENDS= libblas.so:math/blas \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libClp.so:math/clp \ libcoinasl.so:math/asl \ liblapack.so:math/lapack \ libopenblas.so:math/openblas USES= cmake compiler:c++11-lang eigen:3 localbase:ldflags pkgconfig USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= Gravity GH_TAGNAME= 47ac86a CMAKE_ARGS+= -DIPOPT_ROOT_DIR=${LOCALBASE} CMAKE_ON= Boost CMAKE_OFF= MP CMAKE_OFF+= Ipopt CoinUtils # fails to find Ipopt and CoinUtils for some reason do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${WRKSRC}/bin/Release/gravity_test .include diff --git a/math/hmat-oss/Makefile b/math/hmat-oss/Makefile index 75536bd6e05c..044ccdb3589b 100644 --- a/math/hmat-oss/Makefile +++ b/math/hmat-oss/Makefile @@ -1,37 +1,37 @@ PORTNAME= hmat-oss DISTVERSION= 1.10.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Hierarchical matrix C/C++ library WWW= https://github.com/jeromerobert/hmat-oss LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.md LIB_DEPENDS= liblapacke.so:math/lapacke \ libblas.so:math/blas \ liblapack.so:math/lapack \ libopenblas.so:math/openblas USES= cmake USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= jeromerobert CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \ -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so CMAKE_OFF= HMAT_GIT_VERSION LDFLAGS+= -lexecinfo do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${REINPLACE_CMD} "s|#define OPENBLAS_DISABLE_THREADS|\/\/&|" ${BUILD_WRKSRC}/config.h && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/hydrogen/Makefile b/math/hydrogen/Makefile index 84f4115c07be..0ce033f41927 100644 --- a/math/hydrogen/Makefile +++ b/math/hydrogen/Makefile @@ -1,44 +1,44 @@ PORTNAME= hydrogen DISTVERSIONPREFIX= v DISTVERSION= 1.5.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math PKGNAMESUFFIX= -linear-algebra MAINTAINER= yuri@FreeBSD.org COMMENT= Dense and sparse linear algebra, conic optimization, lattice reduction WWW= https://github.com/LLNL/Elemental LICENSE= BSD2CLAUSE BUILD_DEPENDS= cereal>0:devel/cereal \ half>0:math/half LIB_DEPENDS= libopenblas.so:math/openblas RUN_DEPENDS= half>0:math/half USES= cmake:testing compiler:c++17-lang localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= LLNL GH_PROJECT= Elemental CMAKE_ON= BUILD_SHARED_LIBS \ Hydrogen_ENABLE_HALF \ Hydrogen_ENABLE_MPC \ Hydrogen_ENABLE_QD #Hydrogen_ENABLE_ALUMINUM # depends on OpenMPI - so we disable it for now CMAKE_OFF= Hydrogen_ENABLE_TESTING CMAKE_TESTING_ON= Hydrogen_ENABLE_TESTING CMAKE_TESTING_TARGET= test OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= MPICH # should be same as in misc/lbann MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi BINARY_ALIAS= git=false .include diff --git a/math/igraph/Makefile b/math/igraph/Makefile index c6ae1a4172e6..e72dcfb6762d 100644 --- a/math/igraph/Makefile +++ b/math/igraph/Makefile @@ -1,33 +1,33 @@ PORTNAME= igraph DISTVERSION= 0.10.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ MAINTAINER= wen@FreeBSD.org COMMENT= Package For Manipulating Undirected And Directed Graphs WWW= https://igraph.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex LIB_DEPENDS= libarpack.so:math/arpack-ng \ libcxsparse.so:math/suitesparse-cxsparse \ libglpk.so:math/glpk \ libgmp.so:math/gmp \ libopenblas.so:math/openblas USES= bison cmake cpe gnome pathfix USE_GNOME= libxml2 USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_TESTING CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_Git:BOOL=True \ -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex pre-configure: @${ECHO} ${DISTVERSION} > ${WRKSRC}/IGRAPH_VERSION .include diff --git a/math/iml/Makefile b/math/iml/Makefile index a4d3095a989e..6039e3579e96 100644 --- a/math/iml/Makefile +++ b/math/iml/Makefile @@ -1,23 +1,23 @@ PORTNAME= iml PORTVERSION= 1.0.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MASTER_SITES= http://www.cs.uwaterloo.ca/~astorjoh/ MAINTAINER= thierry@FreeBSD.org COMMENT= Integer Matrix Library WWW= https://cs.uwaterloo.ca/~astorjoh/iml.html LICENSE= GPLv2 LIB_DEPENDS= libgmp.so:math/gmp USES= blaslapack:openblas libtool localbase tar:bz2 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cblas=${LAPACKLIB} --enable-shared USE_LDCONFIG= yes TEST_TARGET= check .include diff --git a/math/jags/Makefile b/math/jags/Makefile index d3cb37eea65d..523d2c11f03f 100644 --- a/math/jags/Makefile +++ b/math/jags/Makefile @@ -1,89 +1,89 @@ PORTNAME= mcmc-jags DISTVERSION= 4.3.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MASTER_SITES= SF/mcmc-jags/JAGS/${S}.x/Source/:1 \ SF/mcmc-jags/Examples/${S}.x/:2 \ SF/mcmc-jags/Manuals/2.x/:3 \ SF/mcmc-jags/Manuals/${S}.x/:4 DISTFILES= JAGS-${PORTVERSION}${EXTRACT_SUFX}:1 DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTFILES:M*[12]:C|:.*||} MAINTAINER= ports@FreeBSD.org COMMENT= Just Another Gibbs Sampler WWW= http://mcmc-jags.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libltdl.so:devel/libltdl GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share USES= bison compiler:features fortran gmake libtool localbase pathfix USE_GCC= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip WRKSRC= ${WRKDIR}/JAGS-${PORTVERSION} OPTIONS_SINGLE= BLAS OPTIONS_SINGLE_BLAS= ATLAS OPENBLAS NETLIB OPTIONS_DEFAULT+= OPENBLAS ATLAS_USES= blaslapack:atlas ATLAS_VARS= MANUAL_PACKAGE_BUILD=\ "Choose a BLAS option other than ATLAS for package building." NETLIB_USES= blaslapack:netlib OPENBLAS_USES= blaslapack:openblas DOCS_DISTFILES= jags_developer_manual.pdf:3 jags_installation_manual.pdf:4 \ jags_user_manual.pdf:4 DOCS_PORTDOCS= ${DISTFILES:M*[34]:C|:.*||} EXAMPLES_DISTFILES= classic-bugs.tar.gz:2 EXAMPLES_PORTEXAMPLES= * CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \ --with-lapack="${LAPACKLIB}" OPTIONS_SUB= YES PLIST_SUB= MODULEVERSION=${S} S= ${PORTVERSION:C|\..*||} OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} \ -e '/@WINDOWS_FALSE@bin_SCRIPTS =/s/jags/mcmc-&/' \ -e '/CLEANFILES =/s/jags/mcmc-&/' \ -e '/@WINDOWS_FALSE@jags:/s/jags/mcmc-&/' \ -e '/@WINDOWS_FALSE@.*rm -f jags/s/jags/mcmc-&/' \ -e '/@WINDOWS_FALSE@.*mv jags.tmp jags/s/jags/mcmc-&/2' \ ${WRKSRC}/src/terminal/Makefile.in post-patch-EXAMPLES-on: @${SED} -i '' -e '\|JAGS ?=|{s|jags|mcmc-&|;s|/usr/local|${PREFIX}|;}' \ ${WRKDIR}/classic-bugs/vol[12]/Makefile post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${_DISTDIR}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @cd ${WRKDIR}/classic-bugs; ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} .if defined(MAINTAINER_MODE) BUILD_DEPENDS+= ${LOCALBASE}/lib/R/library/coda/R/coda.rdb:math/R-cran-coda check test: install .for i in 1 2 @cd ${WRKDIR}/classic-bugs/vol${i}; ${SETENV} ${MAKE_ENV} \ ${MAKE_CMD} ${MAKE_ARGS} check .endfor @${FIND} ${WRKDIR}/classic-bugs -type f -name check.log | ${SORT} | \ ${XARGS} -tI @ ${CAT} @ .endif .include diff --git a/math/lapack++/Makefile b/math/lapack++/Makefile index 6782f86f537a..8ee09cdd6839 100644 --- a/math/lapack++/Makefile +++ b/math/lapack++/Makefile @@ -1,45 +1,45 @@ PORTNAME= lapack++ PORTVERSION= 2.5.4 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= math MASTER_SITES= SF/lapackpp \ http://math.nist.gov/lapack++/:doc DISTNAME= lapackpp-${PORTVERSION} DIST_SUBDIR= lapackpp EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= fortran@FreeBSD.org COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK WWW= https://sourceforge.net/projects/lapackpp/ USES= fortran gmake pathfix libtool OPTIONS_DEFINE= DOCS OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS OPENBLAS_USES= blaslapack:openblas NETLIB_USES= blaslapack:netlib ATLAS_USES= blaslapack:atlas GNU_CONFIGURE= yes USE_LDCONFIG= yes BLAS_LIB= -L${LOCALBASE}/lib ${BLASLIB} LAPACK_LIB= -L${LOCALBASE}/lib ${LAPACKLIB} #lapack++ forces to use atlas when detected, so we should disable here. CONFIGURE_ARGS+= --with-blas="${BLAS_LIB}" --with-lapack="${LAPACK_LIB}" --disable-atlas --enable-static DOCS_DISTFILES= lapack++.ps.gz:doc lapackpp1_1.ps.gz:doc lapackppman1_1.ps.gz:doc lapack++_install.ps.gz:doc post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++.ps.gz ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapack++_install.ps.gz ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackpp1_1.ps.gz ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackppman1_1.ps.gz ${STAGEDIR}${DOCSDIR} .include diff --git a/math/linbox/Makefile b/math/linbox/Makefile index e47c8c2df1aa..ad62fd8af7cb 100644 --- a/math/linbox/Makefile +++ b/math/linbox/Makefile @@ -1,71 +1,71 @@ PORTNAME= linbox PORTVERSION= 1.7.0 DISTVERSIONPREFIX= v -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= C++ library for exact, high-performance linear algebra WWW= https://linalg.org/ LICENSE= GPLv2 LGPL21 LICENSE_COMB= dual BUILD_DEPENDS= fflas-ffpack-config:math/fflas-ffpack LIB_DEPENDS= libgmp.so:math/gmp \ libgivaro.so:math/givaro RUN_DEPENDS= bash:shells/bash USE_GITHUB= yes GH_ACCOUNT= linbox-team USES= autoreconf blaslapack:openblas compiler:c++11-lang gmake \ libtool localbase pkgconfig shebangfix SHEBANG_FILES= benchmarks/perfpublisher.sh linbox-auto-install.sh \ linbox-config.in tests/jenkins-maker.sh \ tests/perfpublisher.sh tests/test_leak.sh USE_CXXSTD= c++14 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share OPTIONS_DEFINE= DOXYGEN OPTIONS_RADIO= SIZE OPTIONS_RADIO_SIZE= FULL MIN OPTIONS_DEFAULT= FULL OPTIONS_SUB= yes MIN_DESC= Lightweight package, with less dependencies MIN_CONFIGURE_ON= --without-saclib --without-ocl FULL_DESC= Complete package with all its dependencies FULL_BUILD_DEPENDS= gnuplot:math/gnuplot FULL_LIB_DEPENDS= libflint.so:math/flint2 \ libfplll.so:math/fplll \ libiml.so:math/iml \ libmpfr.so:math/mpfr \ libntl.so:math/ntl \ libOpenCL.so:devel/ocl-icd \ libtinyxml2.so:textproc/tinyxml2 FULL_RUN_DEPENDS= gnuplot:math/gnuplot FULL_USES= ghostscript FULL_CONFIGURE_WITH= flint fplll ghostscript gnuplot iml mpfr ntl ocl DOXYGEN_VARS= BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed DOXYGEN_CONFIGURE_ENABLE=doc DOXYGEN_CONFIGURE_WITH= docdir=${DOCSDIR} DOXYGEN_BUILD_DEPENDS= gsed:textproc/gsed \ dot:graphics/graphviz \ doxygen:devel/doxygen GNU_CONFIGURE= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip TEST_TARGET= check .if defined(PACKAGE_BUILDING) CONFIGURE_ARGS+=--disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 \ --disable-sse41 --disable-sse42 --disable-fma --disable-fma4 \ --disable-avx --disable-avx2 .endif .include diff --git a/math/moab/Makefile b/math/moab/Makefile index fc4b5c8e3aec..c2ee5dc6daf4 100644 --- a/math/moab/Makefile +++ b/math/moab/Makefile @@ -1,47 +1,47 @@ PORTNAME= moab DISTVERSION= 5.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/ MAINTAINER= yuri@FreeBSD.org COMMENT= Component for representing and evaluating mesh data WWW= https://press3.mcs.anl.gov/sigma/moab-library/ LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libhdf5.so:science/hdf5 \ libnetcdf.so:science/netcdf \ libopenblas.so:math/openblas USES= cmake eigen:3 fortran USE_LDCONFIG= yes CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \ -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \ -DFREEBSD_STAGEDIR:STRING=${STAGEDIR} BB_ACCOUNT= fathomteam BB_PROJECT= ${PORTNAME} BB_COMMIT= 0c84f0d50f3f WRKSRC= ${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT} OPTIONS_DEFINE= MPI OPTIONS_DEFAULT= MPI OPTIONS_SUB= yes MPI_CMAKE_BOOL= ENABLE_MPI MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4 MPI_VARS= CXX=${LOCALBASE}/mpi/openmpi/bin/mpic++ CC=${LOCALBASE}/mpi/openmpi/bin/mpicc MPI_VARS+= CONFLICTS_BUILD=mpich # otherwise bin/hexmodops gets linked with libmpi.so:net/mpich MPI_VARS_OFF= USES+=compiler:c++11-lang post-install: # docs are just readmes @${RM} -r ${STAGEDIR}${DOCSDIR} # examples are installed into a wrong location, maybe fix them later? @${RM} -r ${STAGEDIR}${PREFIX}/share/examples .include diff --git a/math/ntpoly/Makefile b/math/ntpoly/Makefile index fd8caeca9701..c96204640e2d 100644 --- a/math/ntpoly/Makefile +++ b/math/ntpoly/Makefile @@ -1,59 +1,60 @@ PORTNAME= NTPoly DISTVERSIONPREFIX= ${PORTNAME:tl}-v DISTVERSION= 3.1.1 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= Library for computing the functions of sparse matrices WWW= https://william-dawson.github.io/NTPoly LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= swig>0:devel/swig TEST_DEPENDS= ${PYNUMPY} \ bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}mpi4py-mpich>0:net/py-mpi4py-mpich@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} USE_GITHUB= yes GH_ACCOUNT= william-dawson USES= blaslapack:openblas cmake fortran mpi python FFLAGS+= -fopenmp -fallow-argument-mismatch CXXFLAGS+= -fopenmp CMAKE_ARGS= -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN} CMAKE_ON= BUILD_SHARED_LIBS USE_LDCONFIG= yes TOOLCHAIN= ${WRKSRC}/Targets/${OPSYS}.cmake NTPLIBS= ${PORTNAME} ${PORTNAME}CPP ${PORTNAME}Wrapper pre-configure: ${ECHO_CMD} 'set(CMAKE_SYSTEM_NAME ${OPSYS})' > ${TOOLCHAIN} ${ECHO_CMD} 'set(CMAKE_C_COMPILER ${MPICC})' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(CMAKE_Fortran_COMPILER ${MPIFC})' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(CMAKE_CXX_COMPILER ${MPICXX})' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(TOOLCHAIN_LIBS "${BLASLIB}")' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(F_TOOLCHAINFLAGS_RELEASE "${FFLAGS}")' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(CXX_TOOLCHAINFLAGS_DEBUG "${CXXFLAGS}")' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(F_TOOLCHAINFLAGS_DEBUG "${FFLAGS}")' >> ${TOOLCHAIN} ${ECHO_CMD} 'set(TARGET_SUPPORTS_SHARED_LIBS Yes)' >> ${TOOLCHAIN} post-install: .for l in ${NTPLIBS} ${MV} ${STAGEDIR}${PREFIX}/lib/lib${l}.so \ ${STAGEDIR}${PREFIX}/lib/lib${l}.so.0 ${RLN} ${STAGEDIR}${PREFIX}/lib/lib${l}.so.0 \ ${STAGEDIR}${PREFIX}/lib/lib${l}.so .endfor do-test: @${ECHO_MSG} "/!\\ WARNING /!\\" @${ECHO_MSG} "net/py-mpi4py must be built against MPICH!" cd ${BUILD_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/ocamlgsl/Makefile b/math/ocamlgsl/Makefile index dc3d938ccce7..e79a1298f93a 100644 --- a/math/ocamlgsl/Makefile +++ b/math/ocamlgsl/Makefile @@ -1,55 +1,55 @@ PORTNAME= ocaml-gsl DISTVERSION= 1.25.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= ports@FreeBSD.org COMMENT= Interface to GSL for the Objective Caml language WWW= https://mmottl.github.io/gsl-ocaml LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.md NOT_FOR_ARCHS= armv6 NOT_FOR_ARCHS_REASON= architectures with double-word alignment for doubles are not supported BUILD_DEPENDS= ocaml-base>=0:devel/ocaml-base \ ocaml-stdio>=0:devel/ocaml-stdio LIB_DEPENDS= libgsl.so:math/gsl USES= blaslapack:openblas ocaml:dune,ldconfig pkgconfig OCAML_LDLIBS= gsl OCAML_PACKAGES= gsl USE_GITHUB= yes GH_ACCOUNT= mmottl GH_PROJECT= gsl-ocaml MAKE_ENV= GSL_CBLAS_LIB="${BLASLIB}" DOCSDIR= ${OCAML_DOCSDIR}/gsl EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/gsl PORTDOCS= CHANGES.md LICENSE.md README.md PORTEXAMPLES= * OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} \ -e "s/(name gsl)/&\n(version ${PORTVERSION})/" \ ${WRKSRC}/dune-project post-install: @${STRIP_CMD} \ ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/gsl/dllgsl_stubs.so \ ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/gsl/gsl.cmxs # cleanup from previous OCAML_LDLIBS @${ECHO_CMD} @postexec ${SED} -i "''" -e \ "'/^${PREFIX:S#/#\/#g}\/${OCAML_SITELIBDIR:S#/#\/#g}\/ocaml-gsl$$/d'" \ %D/${OCAML_LDCONF} >> ${TMPPLIST} post-install-EXAMPLES-on: (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/math/octave-forge-ltfat/Makefile b/math/octave-forge-ltfat/Makefile index 4c6b83c594ef..831b9044b9c9 100644 --- a/math/octave-forge-ltfat/Makefile +++ b/math/octave-forge-ltfat/Makefile @@ -1,31 +1,31 @@ PORTNAME= octave-forge-ltfat PORTVERSION= 2.6.0 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= math MASTER_SITES= https://github.com/ltfat/ltfat/releases/download/v2.6.0/ DISTNAME= ${OCTAVE_PKGNAME}-${PORTVERSION}-of MAINTAINER= stephen@FreeBSD.org COMMENT= Octave-forge package ${OCTAVE_PKGNAME} WWW= https://packages.octave.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKDIR}/${OCTAVE_SRC}/COPYING LIB_DEPENDS= libfftw3.so:math/fftw3 \ libportaudio.so:audio/portaudio \ libopenblas.so:math/openblas USES= octave OCTAVE_SRC= ${OCTAVE_PKGNAME} post-build: ${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure ${RM} ${WRKSRC}/../inst/DESCRIPTION ${RM} ${WRKSRC}/../inst/ltfat/DESCRIPTION ${RM} ${WRKSRC}/../inst/ltfat/inst/DESCRIPTION cd ${WRKDIR} && ${TAR} cfz ${OCTAVE_DISTNAME}.tar.gz ${OCTAVE_SRC} .include diff --git a/math/octave/Makefile b/math/octave/Makefile index c41b02e7f122..a9ab8ad57cb9 100644 --- a/math/octave/Makefile +++ b/math/octave/Makefile @@ -1,130 +1,130 @@ PORTNAME= octave PORTVERSION= ${OCTAVE_VERSION} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MASTER_SITES= GNU MAINTAINER= stephen@FreeBSD.org COMMENT= High-level interactive language for numerical computations WWW= https://www.octave.org/ LICENSE= GPLv3 BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:devel/gperf \ ${LOCALBASE}/bin/makeinfo:print/texinfo \ gnuplot:math/gnuplot \ gsed:textproc/gsed \ ${LOCALBASE}/include/rapidjson/rapidjson.h:devel/rapidjson RUN_DEPENDS= ${LOCALBASE}/bin/makeinfo:print/texinfo \ gnuplot:math/gnuplot \ gsed:textproc/gsed LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libarpack.so:math/arpack-ng \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libcurl.so:ftp/curl \ libcxsparse.so:math/suitesparse-cxsparse \ libdrm.so:graphics/libdrm \ libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libfltk.so:x11-toolkits/fltk \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libftgl.so:graphics/ftgl \ libgl2ps.so:print/gl2ps \ libglpk.so:math/glpk \ libGraphicsMagick.so:graphics/GraphicsMagick \ libhdf5.so:science/hdf5 \ libklu.so:math/suitesparse-klu \ libOSMesa.so:graphics/libosmesa \ libpcre.so:devel/pcre \ libportaudio.so:audio/portaudio \ libqhull_r.so:math/qhull \ libqrupdate.so:math/qrupdate \ libspqr.so:math/suitesparse-spqr \ libsuitesparseconfig.so:math/suitesparse-config \ libsundials_arkode.so:math/sundials \ libumfpack.so:math/suitesparse-umfpack USES= charsetfix compiler:c++14-lang desktop-file-utils fortran gl \ gmake iconv libtool localbase:ldflags ncurses octave:env perl5 \ pkgconfig readline tar:xz xorg USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}/${PORTVERSION} USE_PERL5= build GNU_CONFIGURE= yes USE_QT= base 5compat tools sqldriver-sqlite USE_XORG= x11 xcursor xext xfixes xft xinerama xrender USE_GL= gl glu GNU_HOST= ${ARCH}-portbld-freebsd${OSREL} PLIST_SUB= GNU_HOST=${GNU_HOST} \ OCTAVE_VERSION=${OCTAVE_VERSION} LDFLAGS+= -L${LOCALBASE}/lib/qt6 CONFIGURE_ENV= ac_cv_path_SED=${LOCALBASE}/bin/gsed \ ac_cv_type_max_align_t=yes \ GPERF="${LOCALBASE}/bin/gperf" \ JAVA_HOME=${JAVA_HOME} \ LRELEASE_QTVER=${LRELEASE} \ MAKEINFO=${LOCALBASE}/bin/makeinfo \ MKINFO=${LOCALBASE}/bin/makeinfo \ MOC_QTVER=${MOC} \ QCOLLECTIONGENERATOR_QTVER=${QCOLLECTIONGENERATOR} \ QHELPGENERATOR_QTVER=${QHELPGENERATOR} \ RCC_QTVER=${RCC} \ UIC_QTVER=${UIC} \ man1dir=${PREFIX}/share/man/man1 CONFIGURE_ARGS= --disable-jit \ --disable-openmp \ --enable-shared \ --host=${GNU_HOST} \ --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \ --with-lapack="${LAPACKLIB}" \ --with-osmesa INFO= octave liboctave INSTALL_TARGET= install-strip TEST_TARGET= check OPTIONS_DEFINE= DOCS JAVA QT6 OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= JAVA OPENBLAS QT6 OPTIONS_SUB= yes DOCS_CONFIGURE_ENABLE= docs JAVA_CONFIGURE_ENABLE= java QT6_CONFIGURE_WITH= qscintilla qt=6 QT6_LIB_DEPENDS= libqscintilla2_qt6.so:devel/qscintilla2@qt6 DOCS_USES= tex DOCS_USE= TEX=dvipsk:build,formats:build JAVA_USES= java JAVA_CFLAGS= -I${JAVA_HOME}/include/${OPSYS:tl} QT6_USES= qt:6 OPENBLAS_USES= blaslapack:openblas NETLIB_USES= blaslapack:netlib ATLAS_USES= blaslapack:atlas BINARY_ALIAS= sed=gsed post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in liboctave/liboctave.ps refcard/refcard-a4.ps \ refcard/refcard-legal.ps refcard/refcard-letter.ps interpreter/octave.ps ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR} .endfor @${MKDIR} ${STAGEDIR}${PREFIX}/${INFO_PATH} .for file in interpreter/octave.info liboctave/liboctave.info ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${PREFIX}/${INFO_PATH} .endfor check regression-test: build @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check) .include diff --git a/math/openturns/Makefile b/math/openturns/Makefile index 89f0395a49b8..637dcc16d7d9 100644 --- a/math/openturns/Makefile +++ b/math/openturns/Makefile @@ -1,104 +1,104 @@ PORTNAME= openturns DISTVERSIONPREFIX= v DISTVERSION= 1.24 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Uncertainty treatment library WWW= https://openturns.github.io/www/ \ https://github.com/openturns/openturns LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING.LESSER BROKEN_FreeBSD_15= compilation fails with clang-19, see https://github.com/openturns/openturns/issues/2811 BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ flex:textproc/flex \ spectra>0:math/spectra LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libblas.so:math/blas \ libbonmin.so:math/bonmin \ libboost_serialization.so:devel/boost-libs \ libcamd.so:math/suitesparse-camd \ libceres.so:math/ceres-solver \ libCbc.so:math/cbc \ libccolamd.so:math/suitesparse-ccolamd \ libCgl.so:math/cgl \ libcholmod.so:math/suitesparse-cholmod \ libClp.so:math/clp \ libcminpack.so:math/cminpack \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libcolamd.so:math/suitesparse-colamd \ libcxsparse.so:math/suitesparse-cxsparse \ libdlib.so:science/dlib-cpp \ libgif.so:graphics/giflib \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libgmp.so:math/gmp \ libhdf5_cpp.so:science/hdf5 \ libipopt.so:math/ipopt \ liblapack.so:math/lapack \ libmpc.so:math/mpc \ libmpfr.so:math/mpfr \ libnlopt.so:math/nlopt \ libOsi.so:math/osi \ libpagmo.so:science/pagmo2 \ libpng16.so:graphics/png \ libprimesieve.so:math/primesieve \ libspqr.so:math/suitesparse-spqr \ libsuitesparseconfig.so:math/suitesparse-config \ libsz.so:science/libaec \ libtbb.so:devel/onetbb USES= bison blaslapack:openblas cmake eigen:3 gnome jpeg llvm:18 localbase:ldflags pkgconfig sqlite xorg # compiler:c++17-lang USE_GITHUB= yes USE_GNOME= libxml2 USE_XORG= ice sm x11 xau xcb xdmcp xext USE_LDCONFIG= yes CMAKE_ARGS= -DBLAS_LIBRARIES=${LOCALBASE}/lib/libopenblas.so -DLAPACK_LIBRARIES=${LOCALBASE}/lib/libopenblas.so \ -DOPENTURNS_EXAMPLE_PATH:STRING=share/examples/openturns \ -DOPENTURNS_DOC_PATH:STRING=share/doc/openturns CMAKE_OFF= USE_DOXYGEN USE_SPHINX CMAKE_OFF+= USE_HMAT # broken with hmat-oss-1.7.1: https://github.com/openturns/openturns/issues/1868 CMAKE_OFF+= USE_CERES # ceres-solver-2.2.0 fails to be found by cmake, see https://github.com/ceres-solver/ceres-solver/issues/1023 TEST_TARGET= check # 10 tests are known to fail: https://github.com/openturns/openturns/issues/1919 OPTIONS_DEFINE= PYTHON EXAMPLES OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_USES= python PYTHON_CMAKE_BOOL= BUILD_PYTHON PYTHON_CMAKE_ON= -DSWIG_EXECUTABLE=${LOCALBASE}/bin/swig PYTHON_PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}chaospy>0:math/py-chaospy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.3.1:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} PYTHON_BUILD_DEPENDS= swig:devel/swig \ ${PYTHON_PY_DEPENDS} PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS} PORTEXAMPLES= * #LLVM_VERSION= 12 # workaround for clang-13 crash: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261341 # use clang from ports because cmake can't find base llvm for JIT #BUILD_DEPENDS+= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION} #RUN_DEPENDS+= clang${LLVM_VERSION}:devel/llvm${LLVM_VERSION} #CPP= clang-cpp${LLVM_VERSION} #CC= clang${LLVM_VERSION} #CXX= clang++${LLVM_VERSION} post-install: @${RM} -r ${STAGEDIR}${DOCSDIR} # tests as of 1.24: 99% tests passed, 1 tests failed out of 537, see https://github.com/openturns/openturns/issues/2862 .include diff --git a/math/or-tools/Makefile b/math/or-tools/Makefile index b1446988f95c..6aadd3d12a61 100644 --- a/math/or-tools/Makefile +++ b/math/or-tools/Makefile @@ -1,63 +1,63 @@ PORTNAME= or-tools DISTVERSIONPREFIX= v DISTVERSION= 9.8 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Google's Operations Research tools WWW= https://github.com/google/or-tools LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE PATCH_DEPENDS= gsed:textproc/gsed LIB_DEPENDS= libabsl_base.so:devel/abseil \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libOsiClp.so:math/clp \ libprotobuf.so:devel/protobuf \ libre2.so:devel/re2 USES= blaslapack cmake:testing compiler:c++17-lang eigen:3 pkgconfig USE_GITHUB= yes GH_ACCOUNT= google USE_LDCONFIG= yes CMAKE_OFF= BUILD_PYTHON BUILD_DEPS INSTALL_BUILD_DEPS BUILD_EXAMPLES BUILD_SAMPLES CMAKE_ON= BUILD_CXX CMAKE_TESTING_ON= BUILD_EXAMPLES BUILD_CXX_EXAMPLES CONFIGURE_ENV= UNIX_CBC_DIR=${LOCALBASE} UNIX_CLP_DIR=${LOCALBASE} OPTIONS_DEFINE= DOCS FLATZINC SCIP OPTIONS_DEFAULT= FLATZINC # SCIP OPTIONS_SUB= yes FLATZINC_DESC= Build FlatZinc - MiniZinc interface FLATZINC_CMAKE_BOOL= BUILD_FLATZINC SCIP_DESC= Use the SCIP solver # SCIP package isn't built because of licensing restrictions SCIP_CMAKE_BOOL= USE_SCIP SCIP_LIB_DEPENDS= libscip.so:math/SCIP DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-//} PORTDOCS= * # 3 tests are known to fail, see https://github.com/google/or-tools/issues/3429 post-patch: @${REINPLACE_CMD} -e '17,19d' ${WRKSRC}/ortools/base/logging.h post-install: @${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete .include diff --git a/math/osi-conic/Makefile b/math/osi-conic/Makefile index 613c2225742c..52b416a8e206 100644 --- a/math/osi-conic/Makefile +++ b/math/osi-conic/Makefile @@ -1,32 +1,32 @@ PORTNAME= osi-conic DISTVERSIONPREFIX= releases/ DISTVERSION= 1.0.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Conic problem solver interface extending OSI to conic problems WWW= https://github.com/aykutbulut/OSI-CONIC LICENSE= EPL LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libCoinUtils.so:math/coinutils \ libopenblas.so:math/openblas \ libOsi.so:math/osi USES= gmake libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= aykutbulut GH_PROJECT= OSI-CONIC GNU_CONFIGURE= yes MAKE_ARGS= FREEBSD_STAGEDIR=${STAGEDIR} INSTALL_TARGET= install-strip .include diff --git a/math/osi/Makefile b/math/osi/Makefile index f691f38a1f04..9e6c91c0dfb1 100644 --- a/math/osi/Makefile +++ b/math/osi/Makefile @@ -1,38 +1,39 @@ PORTNAME= Osi DISTVERSIONPREFIX= releases/ DISTVERSION= 0.108.11 +PORTREVISION= 1 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= COIN-OR Open Solver Interface, an API for calling solver libraries WWW= https://github.com/coin-or/Osi/ LICENSE= EPL LICENSE_FILE= ${WRKSRC}/Osi/LICENSE BUILD_DEPENDS= ${RUN_DEPENDS} LIB_DEPENDS= libCoinUtils.so:math/coinutils \ libopenblas.so:math/openblas RUN_DEPENDS= coin-or-Data-Sample>0:math/coin-or-data-sample \ coin-or-Data-Netlib>0:math/coin-or-data-netlib USES= fortran gmake libtool localbase:ldflags pkgconfig tar:tgz GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-blas-lib="-lopenblas" --with-lapack-lib="-lopenblas" \ --with-sample-datadir="${LOCALBASE}/share/coin/Data/Sample" \ --with-netlib-datadir="${LOCALBASE}/share/coin/Data/Netlib" \ --with-coinutils-incdir="${LOCALBASE}/include/coin" --with-coinutils-lib="${LOCALBASE}/lib/libCoinUtils.so" # Incompatible with optional dependencies glpk and SoPlex: https://projects.coin-or.org/Osi/ticket/117 https://projects.coin-or.org/Osi/ticket/118 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= coin-or INSTALL_TARGET= install-strip TEST_TARGET= test # tests fail to compile, see https://github.com/coin-or/Osi/issues/190 post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/coin .include diff --git a/math/osiipopt/Makefile b/math/osiipopt/Makefile index 57b3a90bae70..e1fc2c14974d 100644 --- a/math/osiipopt/Makefile +++ b/math/osiipopt/Makefile @@ -1,37 +1,37 @@ PORTNAME= osiipopt DISTVERSIONPREFIX= releases/ DISTVERSION= 0.1-8 -PORTREVISION= 6 +PORTREVISION= 7 DISTVERSIONSUFFIX= -gc808091 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Conic solver interface for Ipopt WWW= https://github.com/aykutbulut/OsiIpopt LICENSE= EPL LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libblas.so:math/blas \ libCoinUtils.so:math/coinutils \ libipopt.so:math/ipopt \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libOsiConic.so:math/osi-conic USES= gmake libtool pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= aykutbulut GH_PROJECT= OsiIpopt GNU_CONFIGURE= yes MAKE_ARGS= FREEBSD_STAGEDIR=${STAGEDIR} INSTALL_TARGET= install-strip .include diff --git a/math/primme/Makefile b/math/primme/Makefile index 94cc5a88f3b8..a40d580d0f65 100644 --- a/math/primme/Makefile +++ b/math/primme/Makefile @@ -1,60 +1,61 @@ PORTNAME= primme DISTVERSIONPREFIX= v DISTVERSION= 3.2.3 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Iterative eigensolver for symmetric and hermitian matrices WWW= https://www.cs.wm.edu/~andreas/software/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING.txt TEST_DEPENDS= gfortran${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT} USES= gmake localbase:ldflags USE_GITHUB= yes MAKEFILE= makefile ALL_TARGET= solib USE_LDCONFIG= yes BINARY_ALIAS= make=${GMAKE} CFLAGS+= -fPIC LDFLAGS+= ${LAPACKLIB} -lm OPTIONS_RADIO= LINALG OPTIONS_RADIO_LINALG= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS LINALG_DESC= Choose which linear algebra interface (LAPACK) implementation to use: ATLAS_USES= blaslapack:atlas NETLIB_USES= blaslapack:netlib NETLIB_LDFLAGS= -lblas # XXX why this isn't covered by blaslapack:netlib? OPENBLAS_USES= blaslapack:openblas TEST_ENV= ${MAKE_ENV} \ LDFLAGS="-lm -Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so" \ USE_MPI=no USE_PETSC=no PETSC_DIR=${LOCALBASE} \ LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib TEST_ARGS= F77=gfortran${GCC_DEFAULT} FC=gfortran${GCC_DEFAULT} FLDR=gfortran${GCC_DEFAULT} TEST_TARGET= all_tests test PLIST_FILES= include/primme.h \ include/primme_eigs.h \ include/primme_eigs_f77.h \ include/primme_eigs_f90.inc \ include/primme_f77.h \ include/primme_f90.inc \ include/primme_svds.h \ include/primme_svds_f77.h \ include/primme_svds_f90.inc \ lib/libprimme.so \ lib/libprimme.so.3 \ lib/libprimme.so.3.2 post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libprimme.so.3.2 .include diff --git a/math/py-ambit/Makefile b/math/py-ambit/Makefile index 147233c2e60d..542249671f22 100644 --- a/math/py-ambit/Makefile +++ b/math/py-ambit/Makefile @@ -1,45 +1,45 @@ PORTNAME= ambit DISTVERSIONPREFIX= v DISTVERSION= 0.7.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Library for tensor product calculations WWW= https://github.com/jturney/ambit LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../COPYING PY_DEPENDS= ${PYNUMPY} BUILD_DEPENDS= pybind11>0:devel/pybind11 \ ${PY_DEPENDS} LIB_DEPENDS= libambit.so:math/ambit \ libhdf5.so:science/hdf5 \ libopenblas.so:math/openblas RUN_DEPENDS= ${PY_DEPENDS} USES= cmake compiler:c++17-lang python:build USE_PYTHON= flavors pytest USE_GITHUB= yes GH_ACCOUNT= jturney WRKSRC_SUBDIR= pyambit CMAKE_ARGS= -DPYMOD_INSTALL_LIBDIR:STRING=/python${_PYTHON_VERSION}/site-packages \ -DFREEBSD_PYTHON_VER=${PYTHON_VER} TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC} post-install: # remove share/cmake/ambit/ambitTargets-Python-%%CMAKE_BUILD_TYPE%%.cmake, and tests @${RM} -r \ ${STAGEDIR}${PREFIX}/share \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ambit/tests pre-test: @${RM} ${WRKSRC}/__init__.py # tests fail with __init__.py .include diff --git a/math/py-igraph/Makefile b/math/py-igraph/Makefile index 65c03bbe06b4..841438c40989 100644 --- a/math/py-igraph/Makefile +++ b/math/py-igraph/Makefile @@ -1,42 +1,42 @@ PORTNAME= igraph DISTVERSION= 0.10.6 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DIST_SUBDIR= python-igraph MAINTAINER= lwhsu@FreeBSD.org COMMENT= High performance graph data structures and algorithms WWW= https://igraph.org/python/ LICENSE= GPLv2 BUILD_DEPENDS= cmake:devel/cmake-core \ ${LOCALBASE}/bin/flex:textproc/flex LIB_DEPENDS= libigraph.so:math/igraph \ libarpack.so:math/arpack-ng \ libblas.so:math/blas \ libglpk.so:math/glpk \ libgmp.so:math/gmp \ liblapack.so:math/lapack \ libopenblas.so:math/openblas RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}texttable>=1.6.2:textproc/py-texttable@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cairocffi>0:graphics/py-cairocffi@${PY_FLAVOR} TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR} USES= bison gnome pkgconfig python USE_PYTHON= distutils concurrent autoplist USE_GNOME= libxml2 post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${PATCH_WRKSRC}/setup.py post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/igraph/_igraph*.so do-test: install (cd ${WRKSRC} && py.test) .include diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile index aea47553f5b9..9ab84c03540a 100644 --- a/math/py-numpy/Makefile +++ b/math/py-numpy/Makefile @@ -1,84 +1,84 @@ PORTNAME= numpy PORTVERSION= 1.26.4 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= PYPI \ https://numpy.org/doc/1.26/:doc PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= numpy-${PORTVERSION}${EXTRACT_SUFX} \ numpy-html.zip:doc DIST_SUBDIR= numpy-${PORTVERSION:R} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= python@FreeBSD.org COMMENT= The New Numeric Extension to Python WWW= https://www.numpy.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.24.1:devel/py-hypothesis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.2.0:devel/py-typing-extensions@${PY_FLAVOR} USES= compiler:c11 cpe fortran python:3.9+ USE_PYTHON= allflavors autoplist concurrent cython distutils GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.so// LDFLAGS+= -s PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 PIE_UNSAFE= yes PORTDOCS= * PORTSCOUT= limit:^1\. OPTIONS_DEFINE= DOCS SUITESPARSE OPTIONS_SINGLE= BLASLIB OPTIONS_SINGLE_BLASLIB= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS SUITESPARSE SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse ATLAS_USES= blaslapack:atlas ATLAS_VARS= BLASLIBS="ptf77blas, ptcblas" BLASNAME=atlas LAPACKLIBS=alapack LIBRARIES=atlas_libs NETLIB_LIB_DEPENDS= libcblas.so:math/cblas NETLIB_USES= blaslapack:netlib NETLIB_VARS= BLASLIBS="blas, cblas" BLASNAME=atlas LAPACKLIBS=lapack LIBRARIES=atlas_libs OPENBLAS_USES= blaslapack:openblas OPENBLAS_VARS= BLASLIBS="openblas, gfortran" BLASNAME=openblas LAPACKLIBS="openblas, gfortran" LIBRARIES=libraries SUITESPARSE_LIB_DEPENDS=libumfpack.so:math/suitesparse-umfpack post-extract: @${TOUCH} ${WRKSRC}/numpy/f2py/tests/src/temp @${TOUCH} ${WRKSRC}/numpy/random/_examples/temp @${TOUCH} ${WRKSRC}/numpy/core/tests/examples/temp pre-configure-SUITESPARSE-off: @${REINPLACE_CMD} -e 's|:%%LOCALBASE%%/include/suitesparse||' ${WRKSRC}/site.cfg pre-configure: @${REINPLACE_CMD} -e 's|%%FC%%|${FC}|' ${WRKSRC}/numpy/distutils/fcompiler/gnu.py @${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ -e 's|%%BLASLIBS%%|${BLASLIBS}|; s|%%BLASNAME%%|${BLASNAME}|' \ -e 's|%%LAPACKLIBS%%|${LAPACKLIBS}|; s|%%LIBRARIES%%|${LIBRARIES}|' \ ${WRKSRC}/site.cfg @${REINPLACE_CMD} -e "s|%%GCCLIBDIR%%|$$(${GCCLIBDIR_CMDS})|" ${WRKSRC}/site.cfg ${WRKSRC}/numpy/distutils/system_info.py do-configure: post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' | ${XARGS} ${STRIP_CMD} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${UNZIP_NATIVE_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/numpy-html.zip -d ${STAGEDIR}${DOCSDIR} @${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo do-test: @cd ${WRKSRC} && ${PYTHON_CMD} runtests.py .include diff --git a/math/py-or-tools/Makefile b/math/py-or-tools/Makefile index eca96c504c34..506280799d91 100644 --- a/math/py-or-tools/Makefile +++ b/math/py-or-tools/Makefile @@ -1,89 +1,89 @@ PORTNAME= or-tools DISTVERSIONPREFIX= v DISTVERSION= 9.6 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= math PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Google's Operations Research tools (Python binding) WWW= https://github.com/google/or-tools LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv7= SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32 BROKEN_i386= SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32 # see https://github.com/google/or-tools/issues/2130 PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}absl-py>0:devel/py-absl-py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}protobuf>0:devel/py-protobuf@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} \ ${PY_SETUPTOOLS} \ pybind11>0:devel/pybind11 \ protoc-gen-mypy:devel/py-mypy-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR} \ swig:devel/swig LIB_DEPENDS= libabsl_base.so:devel/abseil \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libnauty.so:math/nauty \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libOsiClp.so:math/clp \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libprotobuf.so:devel/protobuf \ libre2.so:devel/re2 RUN_DEPENDS= ${PY_DEPENDS} USES= blaslapack cmake:insource compiler:c++17-lang eigen:3 pkgconfig python USE_PYTHON= flavors pytest # tests fail, see https://github.com/google/or-tools/issues/3464 USE_GITHUB= yes GH_ACCOUNT= google CMAKE_OFF= BUILD_DEPS BUILD_pybind11 INSTALL_BUILD_DEPS BUILD_TESTING BUILD_EXAMPLES CMAKE_ON= BUILD_PYTHON CMAKE_ARGS= -DSWIG_EXECUTABLE=${LOCALBASE}/bin/swig -DFREEBSD_PYTHON_VER=${PYTHON_VER} CONFIGURE_ENV= UNIX_CBC_DIR=${LOCALBASE} UNIX_CLP_DIR=${LOCALBASE} BUILD_ENV= UNIX_CBC_DIR=${LOCALBASE} UNIX_CLP_DIR=${LOCALBASE} TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} OPTIONS_DEFINE= SCIP SCIP_DESC= Use the SCIP solver # SCIP package isn't built because of licensing restrictions SCIP_CMAKE_BOOL= USE_SCIP SCIP_LIB_DEPENDS= libscip.so:math/SCIP post-patch: @${REINPLACE_CMD} -e '/absl::container/s,^,#,' \ ${WRKSRC}/ortools/constraint_solver/CMakeLists.txt \ ${WRKSRC}/ortools/glop/CMakeLists.txt \ ${WRKSRC}/ortools/linear_solver/CMakeLists.txt \ ${WRKSRC}/ortools/sat/CMakeLists.txt @${REINPLACE_CMD} -e '17,19d ; /AbslStringify/,+10d' \ ${WRKSRC}/ortools/base/logging.h do-install: # by default cmake installs the whole or-tools project without the python part, so extract the wheel and install python files manually here ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} && \ unzip ${BUILD_WRKSRC}/python/dist/ortools-${DISTVERSION}*.whl && \ ${RM} -rf ortools-*.dist-info ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name "*.so" -o -name "*.so.*" | ${XARGS} ${STRIP_CMD} run-examples: # one of the examples fail: https://github.com/google/or-tools/issues/3463 .for e in arc_flow_cutting_stock_sat.py bus_driver_scheduling_sat.py cover_rectangle_sat.py cvrptw_plot.py qubo_sat.py # list is from examples/python/CMakeLists.txt @cd ${WRKSRC}/examples/python && \ ${ECHO} "==> Running ${PORTNAME} test ${e} ..." && \ ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${e} && \ ${ECHO} "... test ${e} succeeded" .endfor .include diff --git a/math/py-scikit-umfpack/Makefile b/math/py-scikit-umfpack/Makefile index 491287864f02..e7f56fb1d57a 100644 --- a/math/py-scikit-umfpack/Makefile +++ b/math/py-scikit-umfpack/Makefile @@ -1,44 +1,44 @@ PORTNAME= scikit-umfpack DISTVERSION= 0.4.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Python interface to UMFPACK sparse direct solver WWW= https://scikit-umfpack.github.io/scikit-umfpack/ \ https://github.com/scikit-umfpack/scikit-umfpack LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meson-python>0:devel/meson-python@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ swig:devel/swig LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libcblas.so:math/cblas \ libopenblas.so:math/openblas \ libumfpack.so:math/suitesparse-umfpack RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} USES= fortran localbase:ldflags python USE_PYTHON= pep517 cython autoplist pytest # tests fail, see https://github.com/scikit-umfpack/scikit-umfpack/issues/77 CFLAGS+= -I/usr/local/include/suitesparse CXXFLAGS+= -I/usr/local/include/suitesparse TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-patch: ${REINPLACE_CMD} \ -e "s|swig_inc_args = \[\]|swig_inc_args = [\'-I${LOCALBASE}/include/suitesparse\']|" \ ${WRKSRC}/scikits/umfpack/meson.build post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/scikits/umfpack/__umfpack${PYTHON_EXT_SUFFIX}.so .include diff --git a/math/py-scs/Makefile b/math/py-scs/Makefile index f6833b52ba4f..87d60dd90608 100644 --- a/math/py-scs/Makefile +++ b/math/py-scs/Makefile @@ -1,30 +1,31 @@ PORTNAME= scs DISTVERSION= 3.2.7 +PORTREVISION= 1 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Splitting conic solver for Python WWW= https://github.com/cvxgrp/scs LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meson-python>0:devel/meson-python@${PY_FLAVOR} \ ${PYNUMPY} LIB_DEPENDS= libopenblas.so:math/openblas RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=0.13.2:science/py-scipy@${PY_FLAVOR} USES= python blaslapack:openblas fortran localbase:ldflags pkgconfig # fortran is for openblas USE_PYTHON= pep517 autoplist pytest # 2 tests fail, see https://github.com/cvxgrp/scs/issues/273 CONFIGURE_ENV= BLAS_LAPACK_LIBS="openblas" MAKE_ENV= ${CONFIGURE_ENV} TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_scs_*.so .include diff --git a/math/qposases/Makefile b/math/qposases/Makefile index ae9ca4fa8a2b..31e74ae64998 100644 --- a/math/qposases/Makefile +++ b/math/qposases/Makefile @@ -1,39 +1,39 @@ PORTNAME= qpOASES DISTVERSION= 3.2.1 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= math MASTER_SITES= https://www.coin-or.org/download/source/${PORTNAME}/ PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Library for online active set strategy quadratic programming problems WWW= https://github.com/coin-or/qpOASES LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopenblas.so:math/openblas USES= cmake fortran tar:tgz USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= QPOASES_BUILD_EXAMPLES LDFLAGS+= ${LOCALBASE}/lib/libopenblas.so EXAMPLES= example1 example1a example1b example2 example4 example5 exampleLP qrecipe # there are some other examples, but they need additional files/packages to run post-patch: @truncate -s 0 ${WRKSRC}/src/BLASReplacement.cpp ${WRKSRC}/src/LAPACKReplacement.cpp do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DQPOASES_BUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ for e in ${EXAMPLES}; do \ ${ECHO} "=== Running example $${e} ===" && \ ${BUILD_WRKSRC}/bin/$${e}; \ done .include diff --git a/math/scalapack/Makefile b/math/scalapack/Makefile index 8511d909641b..acb3da912c3d 100644 --- a/math/scalapack/Makefile +++ b/math/scalapack/Makefile @@ -1,98 +1,98 @@ PORTNAME= scalapack PORTVERSION= 2.2.0 -PORTREVISION= 4 +PORTREVISION= 5 DISTVERSIONPREFIX= v CATEGORIES= math MAINTAINER= ports@FreeBSD.org COMMENT= ScaLAPACK Scalable LAPACK library WWW= https://www.netlib.org/scalapack/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE CONFLICTS= elmer-mathlibs-1* USE_GITHUB= yes GH_ACCOUNT= Reference-ScaLAPACK USES= cmake fortran pathfix USE_LDCONFIG= yes CMAKE_ARGS= -DBUILD_STATIC_LIBS:BOOL=ON ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \ REDIST/SRC SRC TOOLS TOOLS/LAPACK DATADIR= ${PREFIX}/share/${PORTNAME:tu} EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:tu} SUB_FILES= pkg-message PLIST_SUB= SVERSION=${SVERSION} PORTVERSION=2.1.0 OPTIONS_DEFINE= EXAMPLES OPTIONS_RADIO= LA MPI OPTIONS_RADIO_LA= ATLAS BLAS LA_DESC= Linear Algebra library support BLAS_DESC= LAPACK blass implementation OPTIONS_RADIO_MPI= MPICH OPENMPI OPTIONS_DEFAULT= BLAS EXAMPLES MPICH ATLAS_USES= blaslapack:atlas BLAS_USES= blaslapack:openblas MPICH_USES= mpi:mpich MPICH_CMAKE_ON= -DMPI_BASE_DIR=${LOCALBASE} OPENMPI_USES= mpi:openmpi OPENMPI_CMAKE_ON=-DMPI_BASE_DIR=${LOCALBASE}/mpi/openmpi .include BLAS= ${BLASLIB} LAPACK= ${LAPACKLIB} .if ${ARCH} == "amd64" FPIC= -fPIC .else FPIC= -fpic .endif CFLAGS+= ${FPIC} ${MPI_CFLAGS} FFLAGS+= ${FPIC} LDFLAGS+= ${MPI_LIBS} SVERSION= 2 .if ${GCC_DEFAULT} >= 10 # workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1) FFLAGS+= -fallow-argument-mismatch .endif # USES=fortran already forces FC to a supported fortran compiler; # assume mpicc points to a compatible compiler and force that, too. CC= ${MPICC} post-build: ${RM} -r ${WRKSRC}/CMakeFiles ${WRKSRC}/CMakeCache.txt (cd ${WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS:C|BUILD_STATIC_LIBS|BUILD_SHARED_LIBS|} ${CMAKE_SOURCE_PATH}) (cd ${WRKSRC} && ${DO_MAKE_BUILD} ${ALL_TARGET}) post-install: ${INSTALL_LIB} ${WRKSRC}/lib/libscalapack.so ${STAGEDIR}${PREFIX}/lib/libscalapack.so.${SVERSION} ${LN} -sf libscalapack.so.${SVERSION} ${STAGEDIR}${PREFIX}/lib/libscalapack.so ${MKDIR} ${STAGEDIR}${PREFIX}/share/SCALAPACK/TESTING (cd ${BUILD_WRKSRC}/TESTING/ ;\ ${INSTALL_PROGRAM} x* ${STAGEDIR}${PREFIX}/share/SCALAPACK/TESTING ;\ ${INSTALL_DATA} *.dat ${STAGEDIR}${PREFIX}/share/SCALAPACK/TESTING) ${INSTALL_DATA} ${FILESDIR}/scalapack.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/PBLAS/SRC/*.h ${STAGEDIR}${PREFIX}/include post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK ${INSTALL_DATA} ${FILESDIR}/Makefile ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK ${INSTALL_DATA} ${FILESDIR}/example1.cc ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK ${INSTALL_DATA} ${FILESDIR}/example1.f ${STAGEDIR}${PREFIX}/share/examples/SCALAPACK do-test: (cd ${BUILD_WRKSRC}/TESTING && ${MAKE_CMD} test) .include diff --git a/math/scalapackfx/Makefile b/math/scalapackfx/Makefile index 394750352bee..a9f9b8284c7e 100644 --- a/math/scalapackfx/Makefile +++ b/math/scalapackfx/Makefile @@ -1,33 +1,33 @@ PORTNAME= scalapackfx DISTVERSION= 1.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Modern Fortran wrappers around ScaLAPACK routines WWW= https://github.com/dftbplus/scalapackfx LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= fypp:devel/py-fypp@${PY_FLAVOR} LIB_DEPENDS= libmpi.so:net/mpich \ libmpifort.so:net/mpich \ libopenblas.so:math/openblas \ libscalapack.so:math/scalapack USES= cmake fortran python:build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= dftbplus CMAKE_ARGS= -DSCALAPACK_LIBRARY=${LOCALBASE} LDFLAGS+= -lscalapack CMAKE_ON= BUILD_SHARED_LIBS do-test: @cd ${WRKSRC}/test && mpirun -n 2 ${BUILD_WRKSRC}/test/test_det .include diff --git a/math/scs/Makefile b/math/scs/Makefile index fc99582186ef..c2f4c37ecdde 100644 --- a/math/scs/Makefile +++ b/math/scs/Makefile @@ -1,31 +1,32 @@ PORTNAME= scs DISTVERSION= 3.2.7 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Solver of convex cone problems via operator splitting WWW= https://github.com/cvxgrp/scs LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= gmake blaslapack:openblas fortran # fortran is for openblas USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= cvxgrp MAKE_ARGS= BLASLDFLAGS="-lopenblas" ALL_TARGET= default post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so do-test: cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} out/demo_socp_indirect && \ out/demo_socp_indirect 50 0.3 0.3 50 && \ ${ECHO} "Test succeeded" .include diff --git a/math/slicot/Makefile b/math/slicot/Makefile index 11736372b667..d03fcdc8d85b 100644 --- a/math/slicot/Makefile +++ b/math/slicot/Makefile @@ -1,63 +1,63 @@ PORTNAME= SLICOT PORTVERSION= 5.9 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= v CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= Fortran subroutines library for systems and control WWW= https://slicot.org/ LICENSE= BSD3CLAUSE USE_GITHUB= yes GH_PROJECT= SLICOT-Reference USES= blaslapack:openblas fortran BINARY_ALIAS= gfortran=${FC} FFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib MAKEFILE= makefile_Unix MAKE_ENV= FORTRAN=${FC} OPTS="${FFLAGS} -fPIC" LOADER=${FC} \ LOADOPTS="${WRKSRC}/slicot.a ${WRKSRC}/lpkaux.a ${LDFLAGS} ${BLASLIB} ${LAPACKLIB}" MAKE_JOBS_UNSAFE=yes USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS EXAMPLES PORTDOCS= * post-build: (cd ${WRKSRC} && \ ${CP} slicot.a libslicot.a && \ ${FC} ${LDFLAGS} -shared -Wl,-soname=libslicot.so.0 \ -o libslicot.so.0.0 src/*.o ${BLASLIB} ${LAPACKLIB} && \ ${LN} -sf libslicot.so.0.0 libslicot.so.0 && \ ${LN} -sf libslicot.so.0.0 libslicot.so) do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/libslicot.a ${STAGEDIR}${PREFIX}/lib ${INSTALL_LIB} ${WRKSRC}/libslicot.so.0.0 ${STAGEDIR}${PREFIX}/lib ${RLN} ${STAGEDIR}${PREFIX}/lib/libslicot.so.0.0 \ ${STAGEDIR}${PREFIX}/lib/libslicot.so ${RLN} ${STAGEDIR}${PREFIX}/lib/libslicot.so.0.0 \ ${STAGEDIR}${PREFIX}/lib/libslicot.so.0 do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in README.md libindex.html ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: ${FIND} ${WRKSRC}/examples -name "T*" -a ! -name "*\.*" | \ ${XARGS} ${STRIP_CMD} ${RM} ${WRKSRC}/examples/*.o ${WRKSRC}/../examples/makefile.bak \ ${WRKSRC}/examples/makefile.orig ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/math/spla/Makefile b/math/spla/Makefile index 49371e07a49a..d9d4645a39c9 100644 --- a/math/spla/Makefile +++ b/math/spla/Makefile @@ -1,44 +1,45 @@ PORTNAME= spla DISTVERSIONPREFIX= v DISTVERSION= 1.6.1 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Specialized Parallel Linear Algebra WWW= https://github.com/eth-cscs/spla LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopenblas.so:math/openblas TEST_DEPENDS= scalapack>0:math/scalapack USES= cmake:testing compiler:c++17-lang USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= eth-cscs CMAKE_TESTING_ON= SPLA_BUILD_TESTS # tests fail to link, see https://github.com/eth-cscs/spla/issues/24 CMAKE_TESTING_ARGS= -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=OFF # to allow to download google test CMAKE_TESTING_TARGET= ${ALL_TARGET} OPTIONS_DEFINE= FORTRAN OPENMP OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= FORTRAN MPICH OPENMP OPTIONS_SUB= yes FORTRAN_USES= fortran FORTRAN_CMAKE_BOOL= SPLA_FORTRAN MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi OPENMP_CMAKE_BOOL= SPLA_OMP post-test: # run tests cd ${WRKSRC} && ${BUILD_WRKSRC}/tests/run_tests .include diff --git a/math/suitesparse-cholmod/Makefile b/math/suitesparse-cholmod/Makefile index 4a9b4ce270c2..9ef4e76ca1b7 100644 --- a/math/suitesparse-cholmod/Makefile +++ b/math/suitesparse-cholmod/Makefile @@ -1,29 +1,30 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 5.3.0 +PORTREVISION= 1 CATEGORIES= math COMMENT= Sparse CHOLesky MODification package WWW= https://faculty.cse.tamu.edu/davis/suitesparse.html LICENSE= LGPL21+ LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd USES= localbase:ldflags MPORTNAME= CHOLMOD USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/README.txt \ ${STAGEDIR}${DOCSDIR}/${MPORTNAME}_README.txt ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/${MPORTNAME}_UserGuide.pdf \ ${STAGEDIR}${DOCSDIR} .include diff --git a/math/suitesparse-config/Makefile b/math/suitesparse-config/Makefile index e3c4e3f8c8b8..9f6c1505f727 100644 --- a/math/suitesparse-config/Makefile +++ b/math/suitesparse-config/Makefile @@ -1,22 +1,23 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= ${SSPVERSION} +PORTREVISION= 1 CATEGORIES= math COMMENT= Common library for SuiteSparse WWW= https://faculty.cse.tamu.edu/davis/suitesparse.html LICENSE= GPLv2+ MPORTNAME= config USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md \ ${STAGEDIR}${DOCSDIR}/SuiteSparse_README.md ${INSTALL_DATA} ${BUILD_WRKSRC}/README.txt \ ${STAGEDIR}${DOCSDIR}/${PORTNAME}_README.txt .include diff --git a/math/suitesparse-paru/Makefile b/math/suitesparse-paru/Makefile index b43cf1bac799..891dabfadce1 100644 --- a/math/suitesparse-paru/Makefile +++ b/math/suitesparse-paru/Makefile @@ -1,27 +1,28 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 1.0.0 +PORTREVISION= 1 CATEGORIES= math parallel COMMENT= Parallel unsymmetric multifrontal method WWW= https://faculty.cse.tamu.edu/davis/suitesparse.html LICENSE= GPLv3 LIB_DEPENDS= libumfpack.so:math/suitesparse-umfpack USES= localbase CMAKE_ARGS+= -DUMFPACK_DIR:PATH="${LOCALBASE}/lib/cmake/UMFPACK" MPORTNAME= ParU USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/README.md \ ${STAGEDIR}${DOCSDIR}/${MPORTNAME}_README.md ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/paru_user_guide.pdf \ ${STAGEDIR}${DOCSDIR} .include diff --git a/math/suitesparse-spqr/Makefile b/math/suitesparse-spqr/Makefile index 41fa6419fea2..c3e64e65cbf8 100644 --- a/math/suitesparse-spqr/Makefile +++ b/math/suitesparse-spqr/Makefile @@ -1,30 +1,31 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 4.3.4 +PORTREVISION= 1 CATEGORIES= math COMMENT= Sparse QR factorization WWW= https://faculty.cse.tamu.edu/davis/suitesparse.html LICENSE= GPLv2+ LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod USES= localbase:ldflags MPORTNAME= SPQR USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/README.txt \ ${STAGEDIR}${DOCSDIR}/${MPORTNAME}_README.txt ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/spqr_user_guide.pdf \ ${STAGEDIR}${DOCSDIR} .include diff --git a/math/suitesparse-umfpack/Makefile b/math/suitesparse-umfpack/Makefile index eeb0ebb99f7c..26e9c6a17275 100644 --- a/math/suitesparse-umfpack/Makefile +++ b/math/suitesparse-umfpack/Makefile @@ -1,32 +1,33 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 6.3.5 +PORTREVISION= 1 CATEGORIES= math COMMENT= Sparse multifrontal LU factorization WWW= https://faculty.cse.tamu.edu/davis/suitesparse.html LICENSE= GPLv2+ LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libcolamd.so:math/suitesparse-colamd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod USES= localbase:ldflags MPORTNAME= UMFPACK USE_LDCONFIG= yes .include "${.CURDIR}/../../math/suitesparse/bsd.suitesparse.mk" post-stage-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/README.txt \ ${STAGEDIR}${DOCSDIR}/${MPORTNAME}_README.txt ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/${MPORTNAME}_QuickStart.pdf \ ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${BUILD_WRKSRC}/Doc/${MPORTNAME}_UserGuide.pdf \ ${STAGEDIR}${DOCSDIR} .include diff --git a/math/sundials/Makefile b/math/sundials/Makefile index afdc7dff6655..9e2dda2aadee 100644 --- a/math/sundials/Makefile +++ b/math/sundials/Makefile @@ -1,86 +1,86 @@ PORTNAME= sundials DISTVERSION= 7.2.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MASTER_SITES= https://github.com/LLNL/sundials/releases/download/v${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= SUite of Nonlinear and DIfferential/ALgebraic Equation Solvers WWW= https://computing.llnl.gov/projects/sundials \ https://github.com/LLNL/sundials LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake:testing fortran localbase:ldflags python:build # 4 tests fail, see https://github.com/LLNL/sundials/issues/220 USE_LDCONFIG= yes CMAKE_ARGS= -DCMAKE_C_STANDARD=99 CMAKE_ON= ENABLE_PTHREAD CMAKE_OFF= BUILD_STATIC_LIBS \ EXAMPLES_ENABLE_C EXAMPLES_ENABLE_CXX EXAMPLES_ENABLE_F77 EXAMPLES_ENABLE_F90 CMAKE_TESTING_ON= SUNDIALS_TEST_UNITTESTS \ EXAMPLES_ENABLE_C EXAMPLES_ENABLE_CXX EXAMPLES_ENABLE_F77 EXAMPLES_ENABLE_F90 FCFLAGS:= ${FFLAGS} # project checks that these flags are equal OPTIONS_DEFINE= BLAS EXAMPLES KLU LAPACK MPI OPENMP OPTIONS_DEFAULT= KLU LAPACK MPI OPENMP # no OpenMP on armv7 .if !exists(/usr/include/omp.h) OPTIONS_EXCLUDE= OPENMP .endif OPTIONS_GROUP= VECTORS OPTIONS_GROUP_VECTORS= HYPRE PETSC VECTORS_DESC= Alternative vector libraries OPTIONS_SUB= yes BLAS_DESC= Enable BLAS support BLAS_CMAKE_BOOL= ENABLE_BLAS BLAS_USES= blaslapack:openblas #EXAMPLES_CMAKE_BOOL= EXAMPLES_ENABLE_C EXAMPLES_ENABLE_CXX EXAMPLES_ENABLE_F77 EXAMPLES_ENABLE_F90 #EXAMPLES_CMAKE_ON= -DEXAMPLES_INSTALL_PATH=${EXAMPLESDIR} #PORTEXAMPLES= * HYPRE_DESC= HYPRE vectors support (also enables MPI) HYPRE_CMAKE_BOOL= ENABLE_HYPRE HYPRE_CMAKE_ON= -DHYPRE_INCLUDE_DIR=${LOCALBASE}/include \ -DHYPRE_LIBRARY_DIR=${LOCALBASE}/lib HYPRE_LIB_DEPENDS= libHYPRE.so:science/hypre # maybe is broken due to https://github.com/hypre-space/hypre/issues/464 HYPRE_IMPLIES= MPI HYPRE_PREVENTS= LAPACK # error: Incompatible sunindextype for LAPACK; disable LAPACK and rebuild HYPRE_BROKEN= ERROR: SUNDIALS interface to HYPRE is not functional. KLU_DESC= Use KLU package that is part of suitesparse KLU_CMAKE_BOOL= ENABLE_KLU KLU_CMAKE_ON= -DKLU_INCLUDE_DIR=${LOCALBASE}/include/suitesparse -DKLU_LIBRARY_DIR=${LOCALBASE}/lib KLU_LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libbtf.so:math/suitesparse-btf \ libcolamd.so:math/suitesparse-colamd \ libklu.so:math/suitesparse-klu \ libsuitesparseconfig.so:math/suitesparse-config LAPACK_DESC= Use Lapack linear algebra (sets SUNDIALS_INDEX_TYPE=int32) LAPACK_USES= blaslapack:openblas LAPACK_CMAKE_BOOL= ENABLE_LAPACK MPI_CMAKE_BOOL= ENABLE_MPI MPI_LIB_DEPENDS= libmpich.so:net/mpich OPENMP_CMAKE_BOOL= ENABLE_OPENMP PETSC_DESC= PETSc vectors support (also enables MPI) PETSC_CMAKE_BOOL= ENABLE_PETSC PETSC_CMAKE_ON= -DPETSC_DIR=${LOCALBASE} \ -DPETSC_INCLUDE_DIR=${LOCALBASE}/include \ -DPETSC_LIBRARY_DIR=${LOCALBASE}/lib PETSC_LIB_DEPENDS= libpetsc.so:science/PETSc PETSC_IMPLIES= MPI PETSC_PREVENTS= LAPACK # error: Incompatible sunindextype for LAPACK; disable LAPACK and rebuild PETSC_BROKEN= ERROR: PETSc not functional due to index size mismatch: SUNDIALS_INDEX_SIZE=64, but PETSc was built with 32-bit indices post-install: @${RM} ${STAGEDIR}${PREFIX}/include/sundials/LICENSE .include diff --git a/math/symphony/Makefile b/math/symphony/Makefile index 56d1171cf7ab..7cdd15b86479 100644 --- a/math/symphony/Makefile +++ b/math/symphony/Makefile @@ -1,38 +1,38 @@ PORTNAME= symphony DISTVERSIONPREFIX= releases/ DISTVERSION= 5.7.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math PKGNAMEPREFIX= coin-or- MAINTAINER= yuri@FreeBSD.org COMMENT= Solver and development framework for mixed-integer linear programs WWW= https://github.com/coin-or/SYMPHONY LICENSE= EPL LICENSE_FILE= ${WRKSRC}/SYMPHONY/LICENSE LIB_DEPENDS= libblas.so:math/blas \ libCbc.so:math/cbc \ libCgl.so:math/cgl \ libcoinasl.so:math/asl \ libcoinmumps.so:math/coin-or-mumps \ libCoinUtils.so:math/coinutils \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libClp.so:math/clp USES= gmake libtool pkgconfig USE_CXXSTD= c++14 USE_LDCONFIG= yes GNU_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= coin-or GH_PROJECT= ${PORTNAME:tu} INSTALL_TARGET= install-strip TEST_TARGET= test .include diff --git a/math/trlib/Makefile b/math/trlib/Makefile index 6f371fdb48c5..25fbf3ddd0e4 100644 --- a/math/trlib/Makefile +++ b/math/trlib/Makefile @@ -1,26 +1,26 @@ PORTNAME= trlib DISTVERSION= 0.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Trust Region Subproblem Solver Library WWW= https://github.com/felixlen/trlib LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopenblas.so:math/openblas TEST_DEPENDS= check>0:devel/check \ gsed:textproc/gsed \ valgrind:devel/valgrind USES= cmake:testing pkgconfig localbase:ldflags USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= felixlen # all valgrind tests fail, see https://github.com/felixlen/trlib/issues/16, due to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259294 .include diff --git a/misc/caffe/Makefile b/misc/caffe/Makefile index 8941d14cd68f..a29057311f71 100644 --- a/misc/caffe/Makefile +++ b/misc/caffe/Makefile @@ -1,54 +1,54 @@ PORTNAME= caffe DISTVERSION= 1.0-136 DISTVERSIONSUFFIX= -g9b891540 -PORTREVISION= 14 +PORTREVISION= 15 CATEGORIES= misc # machine-learning PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES+= 7f503bd9a19758a173064e299ab9d4cac65ed60f.patch:-p1 # opencv4 fix PATCHFILES+= 1b317bab3f6413a1b5d87c9d3a300d785a4173f9.patch:-p1 # protobuf3 fix MAINTAINER= yuri@FreeBSD.org COMMENT= Fast open framework for deep learning WWW= https://caffe.berkeleyvision.org/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bash:shells/bash \ ${PYNUMPY} LIB_DEPENDS= libsnappy.so:archivers/snappy \ libleveldb.so:databases/leveldb \ liblmdb.so:databases/lmdb \ libboost_system.so:devel/boost-libs \ ${PY_BOOST} \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libprotobuf.so:devel/protobuf \ libopencv_highgui.so:graphics/opencv \ libopenblas.so:math/openblas \ libhdf5.so:science/hdf5 RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}protobuf>0:devel/py-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydot>0:graphics/py-pydot@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pydotplus>0:graphics/py-pydotplus@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-image>0:graphics/py-scikit-image@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} USES= cmake compiler:c++17-lang fortran localbase:ldflags pkgconfig python USE_CXXSTD= c++17 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= BVLC CMAKE_ARGS= -DBLAS=Open \ -DPYTHON_EXECUTABLE=${PYTHON_CMD} \ -DFREEBSD_PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR} CXXFLAGS+= -DGLOG_USE_GLOG_EXPORT LDFLAGS+= -lpython${PYTHON_VER} PORTSCOUT= limit:^[0-9].*[0-9]$$ # should begin and end with a digit to prevent tags like rcnn-release and rc5 .include diff --git a/misc/koboldcpp/Makefile b/misc/koboldcpp/Makefile index b296326456dc..dc8aebc6a80f 100644 --- a/misc/koboldcpp/Makefile +++ b/misc/koboldcpp/Makefile @@ -1,75 +1,76 @@ PORTNAME= koboldcpp DISTVERSIONPREFIX= v DISTVERSION= 1.82.4 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Simple way to run GGML and GGUF AI models with a KoboldAI WebUI WWW= https://github.com/lostruins/koboldcpp LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.md #BROKEN_armv7= compilation fails, see https://github.com/LostRuins/koboldcpp/issues/1129 #BROKEN_i386= compilation fails, see https://github.com/LostRuins/koboldcpp/issues/1129 FLAVORS= default portable FLAVOR?= ${FLAVORS:[1]} portable_PKGNAMESUFFIX= -portable LIB_DEPENDS= libopenblas.so:math/openblas \ libvulkan.so:graphics/vulkan-loader RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}customtkinter>0:x11-toolkits/py-customtkinter@${PY_FLAVOR} USES= compiler:c++11-lang gmake localbase:ldflags python shebangfix USE_GITHUB= yes GH_ACCOUNT= LostRuins SHEBANG_FILES= koboldcpp.py .if ${FLAVOR} == default LIBS= koboldcpp_default.so koboldcpp_vulkan.so MAKE_ARGS= PRESET_CFLAGS="${CFLAGS}" PRESET_CXXFLAGS="${CXXFLAGS}" .endif .if ${FLAVOR} == portable MAKE_ARGS= LLAMA_PORTABLE=1 LIBS= koboldcpp_default.so koboldcpp_failsafe.so koboldcpp_noavx2.so \ koboldcpp_vulkan.so koboldcpp_vulkan_noavx2.so .endif MAKE_ARGS+= LLAMA_OPENBLAS=1 LLAMA_VULKAN=1 LDFLAGS="${LDFLAGS}" ALL_TARGET= PLIST_FILES= ${LIBS:S/^/%%DATADIR%%\//} .if defined(WITH_DEBUG) MAKE_ARGS+= KCPP_DEBUG=1 .endif do-install: # dir ${MKDIR} ${STAGEDIR}${DATADIR} # prog ${INSTALL_DATA} ${WRKSRC}/koboldcpp.py ${STAGEDIR}${DATADIR}/koboldcpp.py ${CHMOD} +x ${STAGEDIR}${DATADIR}/koboldcpp.py ${RLN} ${STAGEDIR}${DATADIR}/koboldcpp.py ${STAGEDIR}${PREFIX}/bin/koboldcpp # libraries .for lib in ${LIBS} ${INSTALL_LIB} ${WRKSRC}/${lib} ${STAGEDIR}${DATADIR} .endfor # embd files .for embd in klite.embd kcpp_docs.embd rwkv_vocab.embd rwkv_world_vocab.embd \ kcpp_sdui.embd taesd.embd taesd_xl.embd ${INSTALL_DATA} ${WRKSRC}/${embd} ${STAGEDIR}${DATADIR} .endfor .include .if ${ARCH} != amd64 IGNORE= portable flavor isn't defined on ${ARCH} because it is based on AVX2, etc. (?) .endif .include diff --git a/misc/mxnet/Makefile b/misc/mxnet/Makefile index 615156f92c88..ccbfe1bcefb0 100644 --- a/misc/mxnet/Makefile +++ b/misc/mxnet/Makefile @@ -1,67 +1,67 @@ PORTNAME= mxnet DISTVERSION= 1.9.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Apache MXNet: Ultra-scalable deep learning framework WWW= https://mxnet.apache.org/ \ https://github.com/apache/mxnet LICENSE= APACHE20 BROKEN_i386= https://github.com/apache/incubator-mxnet/issues/20832 .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif DEPRECATED= Project has been retired by Apache, see https://attic.apache.org/projects/mxnet.html EXPIRATION_DATE= 2025-04-01 BUILD_DEPENDS= googletest>0:devel/googletest LIB_DEPENDS= libdmlc.so:devel/dmlc-core \ liblapack.so:math/lapack \ libopenblas.so:math/openblas USES= cmake compiler:c++11-lang localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= apache GH_PROJECT= incubator-mxnet GH_TUPLE= apache:tvm:efdac94:tvm/3rdparty/tvm \ dmlc:dlpack:3efc489:dlpack/3rdparty/dlpack \ oneapi-src:oneDNN:f40443c:onednn/3rdparty/mkldnn # same as BUILD_DEPENDS=${LOCALBASE}/include/dnnl.h:math/onednn USE_LDCONFIG= yes CMAKE_OFF= USE_CUDA USE_CUDNN USE_MKLDNN USE_NCCL ENABLE_CUDA_RTC \ BUILD_CPP_EXAMPLES USE_JEMALLOC USE_MKL_IF_AVAILABLE LDFLAGS+= -pthread -lexecinfo OPTIONS_DEFINE= CPP OPENCV OPTIONS_DEFAULT= CPP OPENCV OPTIONS_SUB= yes CPP_DESC= Install the C++ binding (cpp-package) CPP_CMAKE_BOOL= USE_CPP_PACKAGE CPP_USES= python:build CPP_VARS= BINARY_ALIAS=python=${PYTHON_CMD} OPENCV_CMAKE_BOOL= USE_OPENCV OPENCV_LIB_DEPENDS= libopencv_core.so:graphics/opencv \ libopencv_videoio.so:graphics/opencv .include .if ${ARCH} != amd64 && ${ARCH} != i386 CMAKE_OFF+= USE_SSE .endif post-patch: @${FIND} ${WRKSRC} -type f -name '*.h' | \ ${XARGS} ${GREP} -l 'template LaunchEx' | \ ${XARGS} ${REINPLACE_CMD} -E -e 's/(template LaunchEx)/\1<>/' post-install-CPP-on: # https://github.com/apache/incubator-mxnet/issues/17080 @cd ${STAGEDIR}${PREFIX} && ${RM} include/mxnet-cpp/.gitignore include/mxnet-cpp/CPPLINT.cfg .include diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile index 05a18b673df5..c46d4b40a2fc 100644 --- a/misc/py-pytorch/Makefile +++ b/misc/py-pytorch/Makefile @@ -1,86 +1,86 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.5.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX} # the main tarball disappears when GH_xx tags are added w/out this line DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch: Tensors and dynamic neural networks in Python WWW= https://pytorch.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= build fails: CMake Error at third_party/QNNPACK/CMakeLists.txt:47 (MESSAGE): Unrecognized CMAKE_SYSTEM_NAME = FreeBSD, see https://github.com/pytorch/pytorch/issues/144608 BROKEN_armv7= build fails: CMake Error at third_party/QNNPACK/CMakeLists.txt:47 (MESSAGE): Unrecognized CMAKE_SYSTEM_NAME = FreeBSD, see https://github.com/pytorch/pytorch/issues/144608 BROKEN_i386= build fails: DispatchStub.cpp:162:29: [0m[0;1;31merror: [0m[1muse of undeclared identifier 'AVX2'[0m BUILD_DEPENDS= cmake:devel/cmake-core \ gmake:devel/gmake \ pybind11>0:devel/pybind11 \ ${PYNUMPY} \ ${LOCALBASE}/include/fxdiv.h:devel/fxdiv \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} LIB_DEPENDS= libabsl_base.so:devel/abseil \ libblis.so:math/blis \ libmpi_cxx.so:net/openmpi4 \ libonnx.so:misc/onnx \ libopenblas.so:math/openblas \ libpthreadpool.so:devel/pthreadpool \ libprotobuf.so:devel/protobuf \ libsleef.so:math/sleef RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}fsspec>0:filesystems/py-fsspec@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.8.0:devel/py-typing-extensions@${PY_FLAVOR} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} # optional dependency USES= compiler:c++17-lang localbase:ldflags python USE_PYTHON= distutils autoplist USE_GITHUB= nodefault GH_TUPLE= pytorch:cpuinfo:1e83a2f:cpuinfo/cpuinfo-with-freebsd-support # https://github.com/pytorch/cpuinfo/pull/230/commits MAKE_ENV= USE_NINJA=no # ninja breaks for some reason MAKE_ENV+= BUILD_TEST=0 # ninja breaks for some reason MAKE_ENV+= USE_MKLDNN=0 # disable MKLDNN that doesn't exist, see https://github.com/pytorch/pytorch/issues/100957 MAKE_ENV+= USE_CUDNN=0 MAKE_ENV+= USE_LAPACK=1 # needed on FreeBSD to run w/out GPU MAKE_ENV+= USE_QNNPACK=0 LDFLAGS+= -lexecinfo BINARY_ALIAS= make=${GMAKE} POST_PLIST= fix-plist .include .if ${OPSYS} == FreeBSD USES+= llvm:max=15 .endif post-patch: @cd ${WRKSRC} && \ ${RM} -r third_party/cpuinfo third_party/fbgemm/third_party/cpuinfo && \ ${CP} -r cpuinfo-with-freebsd-support third_party/cpuinfo && \ ${CP} -r cpuinfo-with-freebsd-support third_party/fbgemm/third_party/cpuinfo post-install: # strip binaries @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/bin/torch_shm_manager \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/_C${PYTHON_EXT_SUFFIX}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/functorch/_C${PYTHON_EXT_SUFFIX}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/lib/lib*.so fix-plist: # remove the stray %%PYTHON_SITELIBDIR%%/caffe2 file @${REINPLACE_CMD} -e "s|.*/caffe2$$||" ${TMPPLIST} .include diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile index 3927a5a3a13c..953c495564d5 100644 --- a/misc/pytorch/Makefile +++ b/misc/pytorch/Makefile @@ -1,82 +1,82 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.4.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= Tensors and dynamic neural networks in Python (C++ library) WWW= https://pytorch.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= compilation fails: error: use of undeclared identifier 'AVX2' BUILD_DEPENDS= gmake:devel/gmake \ ${LOCALBASE}/include/fxdiv.h:devel/fxdiv \ ${PY_SETUPTOOLS} LIB_DEPENDS= libabsl_base.so:devel/abseil \ libblis.so:math/blis \ libopenblas.so:math/openblas \ libmpi_cxx.so:net/openmpi4 \ libonnx.so:misc/onnx \ libpthreadpool.so:devel/pthreadpool \ libprotobuf.so:devel/protobuf \ libsleef.so:math/sleef USES= compiler:c++17-lang cmake localbase:ldflags python # requires python even with PYTHON=off CMAKE_OFF= BUILD_CUSTOM_PROTOBUF USE_CUDA USE_ROCM USE_NNPACK USE_QNNPACK USE_PYTORCH_QNNPACK \ USE_FBGEMM # workaround recommended by the upstream here: https://github.com/pytorch/pytorch/issues/28337 CMAKE_ON= USE_SYSTEM_PYBIND11 \ USE_SYSTEM_SLEEF \ USE_SYSTEM_ONNX # see other USE_SYSTEM_xx in CMakeLists.txt CMAKE_ON+= ONNX_USE_LITE_PROTO # workaround for the protobuf-related failure described here: https://github.com/onnx/optimizer/issues/38 CMAKE_ARGS= -DPSIMD_SOURCE_DIR=${WRKSRC}/third_party/psimd \ -DPYTHON_EXECUTABLE=${PYTHON_CMD} MAKE_ENV= USE_NINJA=no # ninja breaks for some reason LDFLAGS+= -lexecinfo \ -pthread BINARY_ALIAS= make=${GMAKE} git=true OPTIONS_DEFINE= PYTHON # PYTHON only provides python support for the py-PyTorch port - it's not a python binding OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_CMAKE_BOOL= BUILD_PYTHON PYTHON_PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \ ${PY_SETUPTOOLS} \ pybind11>0:devel/pybind11 PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS} .include .if ${ARCH} == "amd64" PLIST_SUB+= AMD64="" .else PLIST_SUB+= AMD64="@comment " .endif post-patch: # replace malloc.h -> stdlib.h in many places @cd ${WRKSRC} && for f in $$(${GREP} -rl "include " * | ${GREP} -E "\.(c|cpp|h|hpp)$$"); do \ ${REINPLACE_CMD} -i'' -E "s|include |include |" $$f; \ done # remove bundled fmt @${RM} -r ${WRKSRC}/third_party/fmt post-install: # functorch.so is installed back into the source directory, see https://github.com/pytorch/pytorch/issues/91524 @${RM} $$(${FIND} ${STAGEDIR} -name functorch.so) # https://github.com/pytorch/pytorch/issues/24417 @${FIND} ${STAGEDIR} -type d -empty -delete .include diff --git a/misc/visp/Makefile b/misc/visp/Makefile index 690619c15908..e0804c0bd9ad 100644 --- a/misc/visp/Makefile +++ b/misc/visp/Makefile @@ -1,60 +1,60 @@ PORTNAME= visp DISTVERSION= 3.6.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= misc MASTER_SITES= https://visp-doc.inria.fr/download/releases/ MAINTAINER= yuri@FreeBSD.org COMMENT= Modular library for visual tracking and visual servoing WWW= https://visp.inria.fr/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= doxygen:devel/doxygen \ latex:print/tex-formats \ nlohmann-json>0:devel/nlohmann-json LIB_DEPENDS= libblas.so:math/blas \ libboost_system.so:devel/boost-libs \ libdmtx.so:graphics/libdmtx \ libflann.so:math/flann \ libgsl.so:math/gsl \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libopencv_core.so:graphics/opencv \ libopencv_videoio.so:graphics/opencv \ libpcap.so:net/libpcap \ libpng.so:graphics/png \ libv4l2.so:multimedia/libv4l \ libdc1394.so:multimedia/libdc1394 USES= cmake compiler:c++14-lang eigen:3 fortran gl gnome jpeg python:build qt:5 xorg zip USE_QT= opengl widgets USE_GNOME= libxml2 USE_XORG= ice sm x11 xext USE_GL= gl glu opengl USE_LDCONFIG= yes CMAKE_OFF= WITH_QBDEVICE BUILD_EXAMPLES BUILD_TUTORIALS BUILD_TESTS BUILD_DEMOS OPTIONS_DEFINE= COIN OGRE PCL ZBAR OPTIONS_DEFAULT= COIN OGRE PCL ZBAR COIN_DESC= Use Coin3D for simulation or augmented reality capabilities COIN_CMAKE_BOOL= USE_COIN3D COIN_LIB_DEPENDS= libCoin.so:graphics/Coin OGRE_DESC= Include Ogre support for 3D Rendering OGRE_CMAKE_BOOL= USE_OGRE OGRE_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d19 PCL_DESC= Include Point Cloud Library support PCL_CMAKE_BOOL= USE_PCL PCL_LIB_DEPENDS= libpcl_common.so:graphics/pcl-pointclouds \ libvtkCommonCore-9.2.so:math/vtk9 # vtk9 is incurred by pcl-pointclouds ZBAR_DESC= Use ZBAR to read bar codes and QR codes ZBAR_CMAKE_BOOL= USE_ZBAR ZBAR_LIB_DEPENDS= libzbar.so:graphics/zbar .include diff --git a/multimedia/opentoonz/Makefile b/multimedia/opentoonz/Makefile index 8fa1b0d7c430..2b12ae75e8e6 100644 --- a/multimedia/opentoonz/Makefile +++ b/multimedia/opentoonz/Makefile @@ -1,66 +1,66 @@ PORTNAME= opentoonz DISTVERSIONPREFIX= v DISTVERSION= 1.5.0 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= multimedia MAINTAINER= rozhuk.im@gmail.com COMMENT= Open-source full-featured 2D animation creation software WWW= https://opentoonz.github.io/e/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= boost-libs>0:devel/boost-libs LIB_DEPENDS= libfreetype.so:print/freetype2 \ liblz4.so:archivers/liblz4 \ liblzo2.so:archivers/lzo2 \ libmypaint.so:graphics/libmypaint \ libopencv_core.so:graphics/opencv \ libpng.so:graphics/png \ libsuperlu.so:math/superlu \ libturbojpeg.so:graphics/libjpeg-turbo RUN_DEPENDS= ${LOCALBASE}/bin/ffprobe:multimedia/ffmpeg USES= cmake:noninja compiler:c++11-lang gl \ gnome jpeg pkgconfig qt:5 USE_GITHUB= yes USE_GL= gl glew glu glut USE_QT= core gui multimedia network opengl printsupport \ script serialport svg widgets xml \ buildtools:build linguisttools:build qmake:build CMAKE_ARGS= -DWITH_SYSTEM_LZO:BOOL=ON \ -DWITH_SYSTEM_SUPERLU:BOOL=ON CMAKE_SOURCE_PATH= ${WRKSRC}/toonz/sources OPTIONS_SINGLE= BLASLIB OPTIONS_SINGLE_BLASLIB= CBLAS GSLCBLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS CBLAS_LIB_DEPENDS= libcblas.so:math/cblas CBLAS_VARS= BLASLIBS="cblas" CBLAS_DESC= C interface to the legacy Fortran BLAS GSLCBLAS_LIB_DEPENDS= libgslcblas.so:math/gsl GSLCBLAS_VARS= BLASLIBS="gslcblas" GSLCBLAS_DESC= The GNU Scientific Library - mathematical libs NETLIB_USES= blaslapack:netlib NETLIB_VARS= BLASLIBS="blas" OPENBLAS_USES= blaslapack:openblas OPENBLAS_VARS= BLASLIBS="openblas" .include .if defined(WITH_DEBUG) CXXFLAGS+= -DDEBUG -g3 -ggdb .else CXXFLAGS+= -DNDEBUG .endif post-extract: ${FIND} ${WRKSRC} -name '*.gitkeep' -delete post-patch: @${REINPLACE_CMD} -e "s|find_library(OPENBLAS_LIB NAMES.*|find_library(OPENBLAS_LIB NAMES ${BLASLIBS})|g" \ ${WRKSRC}/toonz/sources/CMakeLists.txt .include diff --git a/science/bagel/Makefile b/science/bagel/Makefile index 49479d6e6720..c19a49b3cb0b 100644 --- a/science/bagel/Makefile +++ b/science/bagel/Makefile @@ -1,62 +1,62 @@ PORTNAME= bagel DISTVERSIONPREFIX= v DISTVERSION= 1.2.2-132 -PORTREVISION= 12 +PORTREVISION= 13 DISTVERSIONSUFFIX= -g2955e4d1a CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Brilliantly Advanced General Electronic-structure Library WWW= https://nubakery.org/ \ https://github.com/qsimulate-open/bagel LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_armv7= error: static_assert failed "size_t is assumed to be the same size as unsigned long long" BROKEN_i386= error: static_assert failed "size_t is assumed to be the same size as unsigned long long" LIB_DEPENDS= libboost_serialization.so:devel/boost-libs TEST_DEPENDS= cblas>0:math/cblas USES= autoreconf blaslapack:openblas compiler:c++11-lang fortran gmake libtool localbase python:build USE_CXXSTD= c++11 USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= qsimulate-open GNU_CONFIGURE= yes CONFIGURE_ARGS= --datarootdir=${DATADIR} INSTALL_TARGET= install-strip OPTIONS_DEFINE= MPI LIBXC SCALAPACK SMITH # SLATER (needs a separate lib) OPTIONS_DEFAULT= MPI LIBXC SCALAPACK SMITH MPI_CONFIGURE_ON= --with-mpi=openmpi MPI_CONFIGURE_OFF= --with-mpi=no MPI_LIB_DEPENDS= libmpicxx.so:net/mpich # openmpi option erroneously links to mpich (due to a name clash) LIBXC_DESC= Build DFT with libxc LIBXC_CONFIGURE_WITH= libxc LIBXC_LIB_DEPENDS= libxc.so:science/libxc SCALAPACK_DESC= Use ScaLapack library for parallelized linear algebra SCALAPACK_CONFIGURE_ENABLE= scalapack SCALAPACK_VARS= LDFLAGS+="-lscalapack" SCALAPACK_VARS_OFF= LDFLAGS+="${BLASLIB} ${LAPACKLIB}" # -llapack -lblas are a replacement of libscalapack SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack SCALAPACK_IMPLIES= MPI SMITH_DESC= Compile SMITH generated code SMITH_CONFIGURE_ENABLE= smith SMITH_IMPLIES= MPI TEST_TARGET= check TEST_ARGS= LDFLAGS+="-lcblas -lblas" ${TEST_TARGET} post-test: # tests fail, see https://github.com/qsimulate-open/bagel/issues/248 @cd ${WRKSRC}/src && ./TestSuite --log_level=all .include diff --git a/science/berkeleygw/Makefile b/science/berkeleygw/Makefile index 92552d603a6e..36f76867eaaa 100644 --- a/science/berkeleygw/Makefile +++ b/science/berkeleygw/Makefile @@ -1,53 +1,53 @@ PORTNAME= BerkeleyGW DISTVERSION= 4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MASTER_SITES= https://app.box.com/shared/static/ DISTFILES= 22edl07muvhfnd900tnctsjjftbtcqc4.gz MAINTAINER= yuri@FreeBSD.org COMMENT= Scientific program aimed at the ab initio virtual experimentation WWW= https://berkeleygw.org LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/license.txt BROKEN_powerpc64le= compilation fails: Error: Unclassifiable statement at (1) (for this syntax in Common/typedefs.f90:578: SCALAR :: epshead !< head of dielectric matrix at q->0) BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libfftw3.so:math/fftw3 RUN_DEPENDS= bash:shells/bash USES= blaslapack:openblas gmake fortran python shebangfix SHEBANG_GLOB= *.sh *.py *awk BINARY_ALIAS= make=${GMAKE} gcc=${CC} MAKE_ARGS= FREEBSD_GCC_DEFAULT=${GCC_DEFAULT} FREEBSD_PREFIX=${PREFIX} INSTDIR=${STAGEDIR}${PREFIX} TEST_TARGET= check # 2 testcases fail: https://groups.google.com/a/berkeleygw.org/g/help/c/jVdxCAzM7A4 OPTIONS_DEFINE= EXAMPLES EXAMPLES_MAKE_ARGS= INSTALL_EXAMPLES=yes PORTEXAMPLES= * .include .if ${GCC_DEFAULT} >= 10 BROKEN_i386= f951: internal compiler error: Segmentation fault .endif post-patch: @${LN} -s ${WRKSRC}/config/generic.serial.freebsd.mk ${WRKSRC}/arch.mk @${LN} -s ${WRKSRC}/flavor_real.mk ${WRKSRC}/flavor.mk @${FIND} ${WRKSRC} -name "script*" -o -name "*.scr" | ${XARGS} ${REINPLACE_CMD} -i '' 's|#! */bin/bash.*|#!/bin/sh|' # fix bad shebang @${REINPLACE_CMD} -e 's|^#!/.*|#!${PYTHON_CMD}|' ${WRKSRC}/Sigma/unfold_sigma.py post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*.x .include diff --git a/science/bout++/Makefile b/science/bout++/Makefile index 21ba443b35e5..88f8ea40179b 100644 --- a/science/bout++/Makefile +++ b/science/bout++/Makefile @@ -1,135 +1,136 @@ PORTNAME= bout++ DISTVERSIONPREFIX= v DISTVERSION= 5.1.1 +PORTREVISION= 1 CATEGORIES= science math # physics MAINTAINER= yuri@FreeBSD.org COMMENT= Plasma fluid finite-difference simulation code WWW= https://boutproject.github.io/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= gmake:devel/gmake LIB_DEPENDS= libfftw3.so:math/fftw3 \ libfmt.so:devel/libfmt \ libopenblas.so:math/openblas \ libuuid.so:misc/e2fsprogs-libuuid RUN_DEPENDS= bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.2.1:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}natsort>=8.1.0:devel/py-natsort@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}netCDF4>=0:science/py-netCDF4@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=1.22.0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>=1.4.1:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sympy>=1.5.1:math/py-sympy@${PY_FLAVOR} USES= cmake:testing gettext python gettext-runtime shebangfix USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= boutproject GH_PROJECT= BOUT-dev GH_TUPLE= google:googletest:0953a17a4281fc26831da647ad3fcd5e21e6473b:google_googletest/externalpackages/googletest \ meitar:git-archive-all.sh:fc86194f00b678438f9210859597f6eead28e765:meitar_git_archive_all_sh/externalpackages/git-archive-all.sh \ mpark:variant:23cb94f027d4ef33bf48133acc2695c7e5c6f1e7:mpark_variant/externalpackages/mpark.variant \ boutproject:boutdata:e458cf0cf2af6ff68db91da39ef3e15a7e9e6b3d:boutproject_boutdata/externalpackages/boutdata \ abseil:googletest:695cf7c96249de50360a7d2951dc88eb3aea0695:abseil_googletest/externalpackages/mpark.variant/3rdparty/googletest SHEBANG_GLOB= *.sh *.py SHEBANG_FILES= bin/bout-add-mod-path \ bin/bout-boutdata-restart-create \ bin/bout-pylib-cmd-to-bin \ bin/bout-sonnet \ bin/bout-stop-script \ bin/bout_3to4.py \ bin/bout_4to5 CMAKE_ON= BUILD_SHARED_LIBS \ BOUT_USE_SYSTEM_FMT CMAKE_OFF= BOUT_TESTS CMAKE_TESTING_ON= BOUT_TESTS # 6 tests fail, see https://github.com/boutproject/BOUT-dev/issues/2980 CXXFLAGS+= -I${WRKSRC}/include LDFLAGS+= -lexecinfo OPTIONS_DEFINE= OPENMP PETSC SLEPC SUNDIALS OPTIONS_MULTI= FORMAT OPTIONS_MULTI_FORMAT= HDF5 NETCDF OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= MPICH NETCDF # PETSC SLEPC: not compatible with the latest petsc-3.18.4 FORMAT_DESC= File format support HDF5_CMAKE_BOOL= BOUT_USE_HDF5 HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 NETCDF_USES= localbase:ldflags pkgconfig # because of the cmake patch in files/ NETCDF_CMAKE_BOOL= BOUT_USE_NETCDF NETCDF_LIB_DEPENDS= libnetcdf_c++4.so:science/netcdf-cxx \ libnetcdf.so:science/netcdf MPICH_USES= mpi:mpich OPENMP_CMAKE_BOOL= BOUT_ENABLE_OPENMP OPRNMP_BROKEN= SEGV when OpenMP is enabled, see https://github.com/boutproject/BOUT-dev/issues/2620 OPENMPI_USES= mpi:openmpi PETSC_DESC= Build with PETSc support PETSC_CMAKE_BOOL= BOUT_USE_PETSC PETSC_LIB_DEPENDS= libpetsc.so:science/PETSc SLEPC_DESC= Build with SLEPc support SLEPC_CMAKE_BOOL= BOUT_USE_SLEPC SLEPC_LIB_DEPENDS= libslepc.so:math/slepc SLEPC_IMPLIES= PETSC # build breaks w/out petsc SUNDIALS_DESC= Build with Sundials support SUNDIALS_CMAKE_BOOL= BOUT_USE_SUNDIALS SUNDIALS_CMAKE_ON= -DBOUT_DOWNLOAD_SUNDIALS=OFF SUNDIALS_BROKEN= fails to build with sundials, see https://github.com/boutproject/BOUT-dev/issues/2617 BINARY_ALIAS= make=${GMAKE} \ python3=${PYTHON_CMD} .if defined(WITH_EXAMPLES) # Build executables demonstrating BOUT++ capabilities. They aren't installed and don't need to be built for packaging. CMAKE_ON+= BOUT_BUILD_EXAMPLES .endif post-patch: # fix the version number in the code that it can't obtain from git @${REINPLACE_CMD} \ -e 's|__version__ = version(__name__)|__version__ = "${PORTVERSION}"|' \ ${WRKSRC}/tools/pylib/boutdata/__init__.py \ ${WRKSRC}/externalpackages/boutdata/src/boututils/__init__.py post-install: # workaround for /usr/local/lib/cmake/bout++/bout++Config.cmake:if @${REINPLACE_CMD} -i '' \ -e 's|${BUILD_WRKSRC}/externalpackages/mpark.variant|${PREFIX}/lib/cmake/mpark_variant|' \ -e 's|${BUILD_WRKSRC}/externalpackages/PVODE|${PREFIX}/lib/cmake/PVODE|' \ -e 's|${WRKSRC}/cmake|${PREFIX}/lib/cmake/bout++|' \ ${STAGEDIR}${PREFIX}/lib/cmake/bout++/bout++Config.cmake # remove *.orig files created by patching @${RM} ${STAGEDIR}${PREFIX}/include/*.orig # install missing PVODE cmake files @${RM} ${STAGEDIR}${PREFIX}/lib/cmake/PVODE/* ${INSTALL_DATA} ${BUILD_WRKSRC}/externalpackages/PVODE/PVODEConfig.cmake ${STAGEDIR}${PREFIX}/lib/cmake/PVODE ${INSTALL_DATA} ${BUILD_WRKSRC}/externalpackages/PVODE/PVODEConfigVersion.cmake ${STAGEDIR}${PREFIX}/lib/cmake/PVODE @${REINPLACE_CMD} -i '' \ -e 's|${BUILD_WRKSRC}/lib|${PREFIX}/lib|' \ -e 's|${PORTSDIR}/.*/BOUT-dev-${PORTVERSION}/externalpackages/PVODE/include|${PREFIX}/include|g' \ ${STAGEDIR}${PREFIX}/lib/cmake/PVODE/* @${REINPLACE_CMD} -i '' \ -e 's|INTERFACE_INCLUDE_DIRECTORIES .*|INTERFACE_INCLUDE_DIRECTORIES "${PREFIX}/include"|' \ ${STAGEDIR}${PREFIX}/lib/cmake/PVODE/PVODEConfig.cmake # remove broken link, see https://github.com/boutproject/BOUT-dev/issues/2623 @${RM} ${STAGEDIR}${PREFIX}/bin/bout-squashoutput pre-test: # build tests @cd ${BUILD_WRKSRC} && \ ${SETENVI} ${WRK_ENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_TESTING_ARGS} ${CMAKE_SOURCE_PATH} && \ ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${TEST_ENV} ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} build-check .include diff --git a/science/cantera/Makefile b/science/cantera/Makefile index e1a761d88b94..46560253ed99 100644 --- a/science/cantera/Makefile +++ b/science/cantera/Makefile @@ -1,104 +1,105 @@ PORTNAME= cantera DISTVERSIONPREFIX= v DISTVERSION= 3.1.0 +PORTREVISION= 1 CATEGORIES= science # chemistry physics MAINTAINER= yuri@FreeBSD.org COMMENT= Chemical kinetics, thermodynamics, and transport tool suite WWW= https://cantera.org \ https://github.com/Cantera/cantera LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/License.txt BUILD_DEPENDS= googletest>0:devel/googletest \ ${LOCALBASE}/include/boost/algorithm/string.hpp:devel/boost-libs \ highfive>0:science/highfive \ ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} LIB_DEPENDS= libfmt.so:devel/libfmt \ libhdf5.so:science/hdf5 \ libopenblas.so:math/openblas \ libyaml-cpp.so:devel/yaml-cpp USES= compiler:c++17-lang eigen:3 gettext-runtime localbase scons USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= Cantera GH_TUPLE= LLNL:sundials:887af43:sundials/ext/sundials # bundled sundials is only needed for the Octave option GH_TUPLE+= cantera:cantera-example-data:1a5d27e:example_data/data/example_data NO_CCACHE= yes # ccache breaks scons build for some reason MAKE_ARGS= system_eigen='y' \ system_sundials='n' \ system_fmt='y' \ system_yamlcpp='y' \ googletest='system' \ sundials_include='${LOCALBASE}/include/sundials' \ extra_inc_dirs="${LOCALBASE}/include:${LOCALBASE}/include/eigen3" \ extra_lib_dirs="${LOCALBASE}/lib" \ debug='no' \ cc_flags="${CXXFLAGS}" \ prefix="${PREFIX}" MAKE_ENV= INSTALL_MANPAGES=y ALL_TARGET= build TEST_TARGET= test # Multiple failures in the testsuite, see https://github.com/Cantera/cantera/issues/1829 OPTIONS_DEFINE= OCTAVE PYTHON OPTIONS_DEFAULT= PYTHON # OCTAVE is off by default because Octave interface is not a frequently requested feature OPTIONS_SUB= yes OCTAVE_DESC= Octave support OCTAVE_MAKE_ARGS= matlab_toolbox=y matlab_path=${LOCALBASE} OCTAVE_CXXFLAGS= -I${LOCALBASE}/include/octave-${OCTAVE_VERSION}/octave OCTAVE_LIB_DEPENDS= liboctave.so:math/octave OCTAVE_SUB_FILES= pkg-message-octave OCTAVE_USES= octave:env OCTAVE_BROKEN= Octave support needs to be updated PYTHON_USES= python PYTHON_USES_OFF= python:env PYTHON_USE= PYTHON=cython PYTHON_MAKE_ARGS= python_cmd=${PYTHON_CMD} python_package=full PYTHON_MAKE_ARGS_OFF= python_package="none" PYTHON_BUILD_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} PYTHON_RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} do-install: cd ${WRKSRC} && \ ${MAKE_CMD} install \ stage_dir="${STAGEDIR}" @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcantera_shared.so.${PORTVERSION} do-install-PYTHON-on: # delete .pyc files to fix the stage reference problem, see https://github.com/Cantera/cantera/issues/1601 @for f in `${FIND} ${STAGEDIR} -name "*.pyc"`; do \ ${RM} $${f}; \ done # strip @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/_cantera.cpython-${PYTHON_SUFFIX}.so \ ${STAGEDIR}${PREFIX}/lib/libcantera_python3_11.so # remove empty dirs @${RMDIR} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/__pycache__ \ ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/with_units/__pycache__ post-patch-OCTAVE-on: # adjust Octave version in SConscript (python styled os.environ['OCTAVE_VERSION'] somehow doesn't work for this) @${REINPLACE_CMD} -e "s|, 'bin', 'glnx.*')|, 'lib', 'octave', '${OCTAVE_VERSION}')|" ${WRKSRC}/src/matlab/SConscript post-install-OCTAVE-on: # adjust .mex file name @${MV} \ ${STAGEDIR}${PREFIX}/lib/cantera/matlab/toolbox/ctmethods.mexa64 \ ${STAGEDIR}${PREFIX}/lib/cantera/matlab/toolbox/ctmethods.mex .include diff --git a/science/chemps2/Makefile b/science/chemps2/Makefile index eeda37a69dbb..8651d8b9dc6e 100644 --- a/science/chemps2/Makefile +++ b/science/chemps2/Makefile @@ -1,29 +1,29 @@ PORTNAME= CheMPS2 DISTVERSIONPREFIX= v DISTVERSION= 1.8.12 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Spin-adapted implementation of DMRG for ab initio quantum chemistry WWW= https://github.com/SebWouters/CheMPS2 LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libhdf5.so:science/hdf5 \ libsz.so:science/libaec USES= blaslapack:openblas cmake fortran USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= SebWouters CMAKE_ARGS+= -DSHARED_ONLY:BOOL=ON CMAKE_ARGS+= -DENABLE_TESTS:BOOL=OFF CMAKE_ARGS+= -DENABLE_XHOST:BOOL=OFF # shouldn't optimize the port in case of central build CMAKE_ARGS+= -DENABLE_OPENMP:BOOL=OFF # find_package(OpenMP) is broken since the merge into cmake: bug#223678 CMAKE_ARGS+= -DLAPACK_LIBRARIES="-lopenblas" # can't find it using find_package for some reason .include diff --git a/science/chrono/Makefile b/science/chrono/Makefile index 7c65a618e751..c54abe30bb4d 100644 --- a/science/chrono/Makefile +++ b/science/chrono/Makefile @@ -1,127 +1,127 @@ PORTNAME= chrono DISTVERSION= 9.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science devel PKGNAMESUFFIX= -physics-simulation-engine MAINTAINER= yuri@FreeBSD.org COMMENT= C++ library for multi-physics simulation WWW= https://projectchrono.org/ \ https://github.com/projectchrono/chrono LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= use of overloaded operator '[]' is ambiguous (with operand types 'chrono::quaternion' and 'int'): https://github.com/projectchrono/chrono/issues/158 BROKEN_aarch64= cannot find -lFALSE, see https://github.com/projectchrono/chrono/issues/389 BUILD_DEPENDS= openmpi>0:net/openmpi LIB_DEPENDS= libblas.so:math/blas \ libepoll-shim.so:devel/libepoll-shim \ libfabric.so:net/libfabric \ libhwloc.so:devel/hwloc2 \ libjson-c.so:devel/json-c \ libmetis.so:math/metis \ libpciaccess.so:devel/libpciaccess \ libpng16.so:graphics/png \ libscotch.so:cad/scotch \ libze_loader.so:devel/level-zero USES= cmake compiler:c++14-lang eigen:3 fortran gnome jpeg xorg USE_LDCONFIG= yes USE_GNOME= libxml2 USE_XORG= x11 xau xcb xdmcp xext xxf86vm USE_GITHUB= yes GH_ACCOUNT= project${PORTNAME} ALL_MODULES= Cascade Cosimulation Distributed FSI Irrlicht Multicore MUMPS OpenGL Pardiso_Project Postprocess Sensor SynChrono Vehicle # module names in a human readable case; for the list of available modules: grep -r "option(ENABLE_MODULE" work OPTIONS_DEFINE= HDF5 DEMOS OPTIONS_GROUP= MODULES OPTIONS_GROUP_MODULES= ${ALL_MODULES:tu} MODULES_DESC= Enable modules: OPTIONS_DEFAULT= HDF5 OPTIONS_SUB= yes HDF5_CMAKE_BOOL= ENABLE_HDF5 HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 DEMOS_DESC= Build and install demo programs DEMOS_CMAKE_BOOL= BUILD_DEMOS DEMOS_BROKEN= /usr/local/lib/libdmumps.so: undefined reference to `mpi_pack_' # ' CASCADE_CMAKE_ON= -DCASCADE_INCLUDE_DIR:STRING=${LOCALBASE}/include/OpenCASCADE -DCASCADE_LIBDIR:STRING=${LOCALBASE}/lib CASCADE_LIB_DEPENDS= libTKernel.so:cad/opencascade740 DISTRIBUTED_BROKEN= requires cuda_runtime_api.h in thrust package which is missing for some reason DISTRIBUTED_IMPLIES= MULTICORE FSI_BROKEN= requires CUDA IRRLICHT_LIB_DEPENDS= libIrrlicht.so:x11-toolkits/irrlicht MULTICORE_BUILD_DEPENDS= blaze>0:math/blaze \ thrust>0:devel/thrust MUMPS_CMAKE_ON= -DMUMPS_ROOT:STRING=${LOCALBASE} MUMPS_LIB_DEPENDS= libdmumps.so:math/mumps \ libopenblas.so:math/openblas PARDISO_PROJECT_BROKEN= Not available for FreeBSD; License is restrictive SENSOR_BROKEN= requires CUDA SYNCHRONO_USES= localbase SYNCHRONO_BUILD_DEPENDS= flatc:devel/flatbuffers # until https://github.com/projectchrono/chrono/issues/391 is fixed SYNCHRONO_LIB_DEPENDS= libmpi.so:net/mpich SYNCHRONO_IMPLIES= VEHICLE SYNCHRONO_BROKEN= fails with the modern flatbuffers versions, see https://github.com/projectchrono/chrono/issues/391 OPENGL_USES= gl OPENGL_USE= GL=gl,glu,glew OPENGL_BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm OPENGL_LIB_DEPENDS= libglfw.so:graphics/glfw VEHICLE_LIB_DEPENDS= libsz.so:science/libaec \ libmpi.so:net/openmpi .for module in ${ALL_MODULES} ${module:tu}_DESC= Chrono ${module} module ${module:tu}_CMAKE_BOOL= ENABLE_MODULE_${module:tu} .if "${${module:tu}_BROKEN}" == "" OPTIONS_DEFAULT+= ${module:tu} .endif .endfor #.include .include .if ${PORT_OPTIONS:MVEHICLE} && ${PORT_OPTIONS:MIRRLICHT} PLIST_FILES+= lib/libChronoEngine_vehicle_irrlicht.so .endif .if ${PORT_OPTIONS:MVEHICLE} && ${PORT_OPTIONS:MOPENGL} PLIST_FILES+= lib/libChronoEngine_vehicle_opengl.so .endif #.include .if ${CHOSEN_COMPILER_TYPE} == gcc CXXFLAGS+= -Wno-error=narrowing .endif post-extract: @${RM} ${WRKSRC}/data/opensim/Rajagopal2015.orig post-patch: @${FIND} ${WRKSRC} -name CMakeLists.txt -o -name "*.cmake*" | ${XARGS} ${REINPLACE_CMD} -i '' 's|lib64|lib|' do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ctest -C ${CMAKE_BUILD_TYPE} ${_MAKE_JOBS} .include diff --git a/science/cp2k/Makefile b/science/cp2k/Makefile index 871f6c3854ce..64785f94adae 100644 --- a/science/cp2k/Makefile +++ b/science/cp2k/Makefile @@ -1,64 +1,65 @@ PORTNAME= cp2k DISTVERSIONPREFIX= v DISTVERSION= 2025.1 +PORTREVISION= 1 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum chemistry and solid state physics software package WWW= https://www.cp2k.org/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= fypp:devel/py-fypp@${PY_FLAVOR} LIB_DEPENDS= libdbcsr.so:math/dbcsr \ libfftw3.so:math/fftw3 \ libopenblas.so:math/openblas RUN_DEPENDS= cp2k-data>0:science/cp2k-data TEST_DEPENDS= bash:shells/bash USES= cmake fortran localbase:ldflags python:build,test shebangfix tar:bz2 USE_GCC= yes # OpenMP is used from both Fortan and C code, therefore C code should be compiled with GCC, otherwise it fails at run-time (same in dbcsr) USE_GITHUB= yes SHEBANG_GLOB= *.py GCC_VERSION= ${GCC_DEFAULT} MAKE_ARGS= XARCH=FreeBSD-gfortran VERSION=${VERSION} FC=gfortran${GCC_VERSION} CC=${CC} LD=gfortran${GCC_VERSION} \ DATA_DIR=${DATADIR} FFLAGS+= -D__NO_STATM_ACCESS BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD} OPTIONS_DEFINE= LIBINT MPIX OPTIONS_DEFAULT= MPIX # LIBINT LIBINT_DESC= Use libint to evaluate integrals LIBINT_CMAKE_BOOL= CP2K_USE_LIBINT2 LIBINT_LIB_DEPENDS= libint2.so:science/libint2 LIBINT_BROKEN= missing fortran support MPIX_DESC= Enable MPI MPIX_CMAKE_BOOL= CP2K_USE_MPI MPIX_USES= mpi:mpich MPIX_LIB_DEPENDS= libscalapack.so:math/scalapack MPIX_VARS= EXE_VERSION=psmp MPIX_VARS_OFF= EXE_VERSION=ssmp PLIST_SUB= SUFFIX=.${EXE_VERSION} do-test: install @cd ${WRKSRC}/ && \ ${SETENV} ${MAKE_ENV} CP2K_STEM=${PREFIX}/bin/cp2k \ ./tests/do_regtest.py ${BUILD_WRKSRC}/bin ${EXE_VERSION} # build instructions: https://github.com/cp2k/cp2k/blob/master/INSTALL.md .include diff --git a/science/dalton/Makefile b/science/dalton/Makefile index ef2578e149d6..4d5866e4bbea 100644 --- a/science/dalton/Makefile +++ b/science/dalton/Makefile @@ -1,38 +1,38 @@ PORTNAME= dalton DISTVERSION= 2020.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Powerful molecular electronic structure program for quantum chemistry WWW= https://daltonprogram.org/ LICENSE= LGPL21 BROKEN_armv7= fortran runs out of memory LIB_DEPENDS= liblapack.so:math/lapack \ libopenblas.so:math/openblas RUN_DEPENDS= bash:shells/bash USES= cmake:noninja fortran python:build shebangfix SHEBANG_FILES= dalton.in USE_GITLAB= yes GL_TAGNAME= 66052b3af5ea7225e31178bf9a8b031913c72190 GL_TUPLE= bingao:gen1int:1e4148ecd676761b3399801acba443925a1fee6b:gen1int/external/gen1int \ pe-software:pelib-public:cf49a6e04fdca09af6245fb68a36d20b68552ace:pelib/external/pelib USE_GITHUB= nodefault GH_TUPLE= cstein:qfitlib:1acdc9863fdeae2cdbc7f5a599413257a095b8ad:qfitlib/external/qfitlib BINARY_ALIAS= python=${PYTHON_CMD} post-install: @${MV} ${STAGEDIR}${PREFIX}/${PORTNAME} ${STAGEDIR}${DATADIR} @${REINPLACE_CMD} -i '' 's|%%SCRIPT_DIR%%|${DATADIR}|; s|%%PREFIX%%|${PREFIX}|' ${STAGEDIR}${DATADIR}/${PORTNAME} @${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}* ${STAGEDIR}${PREFIX}/bin/ @cd ${STAGEDIR}${DATADIR}/tools && ${STRIP_CMD} aces2dalton distances FChk2HES labread xyz2dalton @cd ${STAGEDIR}${DATADIR} && ${RM} -r tools/CMakeFiles tools/Makefile tools/cmake_install.cmake .include diff --git a/science/dftbplus/Makefile b/science/dftbplus/Makefile index e317b2dd580c..dcb852823317 100644 --- a/science/dftbplus/Makefile +++ b/science/dftbplus/Makefile @@ -1,110 +1,110 @@ PORTNAME= dftbplus DISTVERSION= 24.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= DFTB+: Package for performing fast atomistic simulations WWW= https://dftbplus.org/ LICENSE= GPLv3 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1+, this makes the result GPLv3 (based on https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility) BROKEN_aarch64= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890 LIB_DEPENDS= libblas.so:math/blas \ liblapack.so:math/lapack \ libopenblas.so:math/openblas RUN_DEPENDS= ${PYNUMPY} TEST_DEPENDS= bash:shells/bash USES= cmake compiler:gcc-c++11-lib fortran pkgconfig python:build shebangfix USE_LDCONFIG= yes SHEBANG_FILES= tools/dptools/bin/* tools/misc/* utils/srcmanip/* utils/build/* external/fypp/bin/* utils/get_opt_externals \ external/fypp/bin/fypp utils/test/testlist_to_fypp SHEBANG_GLOB= *.py *.sh USE_GITHUB= yes GH_TUPLE= \ aradi:fytest:94e05ac:aradi_fytest/external/fytest/origin \ dftbplus:testparams:cd7536f:testparams/external/slakos/origin \ dftd4:dftd4:056491b:dftd4_dftd4/external/dftd4/origin TEST_TARGET= test BINARY_ALIAS= git=false CMAKE_ON= BLAS_DETECTION BUILD_SHARED_LIBS WITH_API ENABLE_DYNAMIC_LOADING CMAKE_ARGS= -DLAPACK_LIBRARY=lapack -DSCALAPACK_LIBRARY=scalapack BINARY_ALIAS= git=false python=${PYTHON_CMD} python3=${PYTHON_CMD} OPTIONS_DEFINE= ARPACK CHIMES DFTD3 MBD MPIX PLUMED POISSON PYTHON SOCKETS TBLITE TRANSPORT # see config.cmake for a complete list OPTIONS_DEFAULT= CHIMES DFTD3 MBD MPIX PLUMED POISSON TRANSPORT SOCKETS # PYTHON TBLITE OPTIONS_SUB= yes ARPACK_DESC= Build with ARPACK for large eigenvalue problems ARPACK_CMAKE_BOOL= WITH_ARPACK ARPACK_LIB_DEPENDS= libarpack.so:math/arpack-ng ARPACK_PREVENTS= MPIX # ARPACK is only used in a single-core application CHIMES_DESC= Build with ChIMES CHIMES_CMAKE_BOOL= WITH_CHIMES CHIMES_LIB_DEPENDS= libchimescalc.so:science/chimes-calculator DFTD3_DESC= Build with s-dft3 DFTD3_CMAKE_BOOL= WITH_SDFTD3 DFTD3_LIB_DEPENDS= libs-dftd3.so:science/simple-dftd3 \ libmctc-lib.so:science/mctc-lib \ libmstore.so:science/mstore \ libtoml-f.so:textproc/toml-f # binaries not linked with libtoml-f.so, see https://github.com/dftbplus/dftbplus/issues/1040 MBD_DESC= Build with many-body-dispersion support MBD_CMAKE_BOOL= WITH_MBD MBD_LIB_DEPENDS= libmbd.so:science/libmbd MPIX_DESC= MPI (Message Passing Interface) support # the MPI option name causes failure in MPI_USES=mpi:openmpi MPIX_CMAKE_BOOL= WITH_MPI MPIX_USES= mpi:mpich MPIX_LIB_DEPENDS= libmpich.so:net/mpich \ libmpifx.so:net/mpifx \ libscalapack.so:math/scalapack \ libscalapackfx.so:math/scalapackfx MPIX_LDFLAGS= ${LOCALBASE}/lib/libmpich.so ${LOCALBASE}/lib/libmpifort.so ${LOCALBASE}/lib/libmpi.so PLUMED_DESC= Do metadynamics via the PLUMED2 library PLUMED_CMAKE_BOOL= WITH_PLUMED PLUMED_LIB_DEPENDS= libplumed.so:science/plumed POISSON_DESC= Include Poisson-solver POISSON_CMAKE_BOOL= WITH_POISSON PYTHON_USES= python PYTHON_CMAKE_BOOL= WITH_PYTHON PYTHON_BROKEN= fails to install into stage directory: https://github.com/dftbplus/dftbplus/issues/931 SOCKETS_DESC= Build with sockets library SOCKETS_CMAKE_BOOL= WITH_SOCKETS SOCKETS_BINARY_ALIAS= gcc=${CC} TBLITE_DESC= Include xTB support via tblite TBLITE_CMAKE_BOOL= WITH_TBLITE TBLITE_BROKEN= fails to build, see https://github.com/dftbplus/dftbplus/issues/1041 TRANSPORT_DESC= Transport via libNEGF TRANSPORT_CMAKE_BOOL= WITH_TRANSPORT TRANSPORT_LIB_DEPENDS= libnegf.so:science/libnegf \ libmpi.so:net/mpich \ libmpifx.so:net/mpifx .include .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/CHARACTER(*)). # in theory, this should set FCFLAGS, but the port does not conform FFLAGS+= -fallow-argument-mismatch .endif # 5 tests fail, see https://github.com/dftbplus/dftbplus/issues/1474 .include diff --git a/science/dftd4/Makefile b/science/dftd4/Makefile index 0723b650d798..7a1fea532da5 100644 --- a/science/dftd4/Makefile +++ b/science/dftd4/Makefile @@ -1,29 +1,30 @@ PORTNAME= dftd4 DISTVERSIONPREFIX= v DISTVERSION= 3.7.0 +PORTREVISION= 1 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Atomic-charge dependent london dispersion correction computation WWW= https://www.chemie.uni-bonn.de/pctc/mulliken-center/software/dftd4/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory BUILD_DEPENDS= mstore>0:science/mstore LIB_DEPENDS= libmctc-lib.so:science/mctc-lib \ libmulticharge.so:science/multicharge \ libopenblas.so:math/openblas USES= cmake:testing fortran USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS post-patch: # see https://github.com/toml-f/toml-f/issues/51 @${REINPLACE_CMD} -e 's|$${CMAKE_Fortran_COMPILER_ID}-$${CMAKE_Fortran_COMPILER_VERSION}||' ${WRKSRC}/config/CMakeLists.txt .include diff --git a/science/dynare/Makefile b/science/dynare/Makefile index a7a74260bab9..9022d96da77c 100644 --- a/science/dynare/Makefile +++ b/science/dynare/Makefile @@ -1,56 +1,56 @@ PORTNAME= dynare DISTVERSION= 5.4 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= science # economics MASTER_SITES= https://www.dynare.org/release/source/ MAINTAINER= yuri@FreeBSD.org COMMENT= Software platform for handling a wide class of economic models WWW= https://www.dynare.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory BUILD_DEPENDS= ${LOCALBASE}/include/boost/tokenizer.hpp:devel/boost-libs LIB_DEPENDS= libhdf5.so:science/hdf5 \ libmatio.so:math/matio \ libopenblas.so:math/openblas \ libsz.so:science/libaec RUN_DEPENDS= epstool:graphics/epstool \ gnuplot:math/gnuplot \ pstoedit:graphics/pstoedit \ xfig:graphics/xfig # README says that these executables are required for the test suite USES= bison compiler:c++17-lang fortran gmake localbase:ldflags tar:xz tex USE_TEX= pdftex GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-matlab \ --disable-doc FCFLAGS+= -fPIC # required because configure tests with -shared SUB_FILES= pkg-message OPTIONS_DEFINE= OCTAVE OPTIONS_DEFAULT= OCTAVE OPTIONS_SUB= yes OCTAVE_DESC= Integrate with Octave (main way to use Dynare) OCTAVE_CONFIGURE_ENABLE= octave OCTAVE_CONFIGURE_ON= --disable-mex-kalman-steady-state # Kalman Steady State MEX file for Octave - requires the non-free library slicot-5.0 OCTAVE_BUILD_DEPENDS= octave:math/octave OCTAVE_LIB_DEPENDS= libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libgsl.so:math/gsl \ libumfpack.so:math/suitesparse-umfpack OCTAVE_RUN_DEPENDS= octave:math/octave \ octave-forge-statistics>0:math/octave-forge-statistics post-install: # remove empty directories, see https://git.dynare.org/Dynare/dynare/-/issues/1835 @${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete .include diff --git a/science/elk/Makefile b/science/elk/Makefile index bae9a8772b7a..a092be431179 100644 --- a/science/elk/Makefile +++ b/science/elk/Makefile @@ -1,85 +1,85 @@ PORTNAME= elk DISTVERSION= 10.3.12 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MASTER_SITES= SF/${PORTNAME} PKGNAMESUFFIX= -chemistry DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= All-electron full-potential linearised augmented-planewave code WWW= http://elk.sourceforge.net/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libwannier.so:science/wannier90 \ libxc.so:science/libxc USES= fortran gmake tar:tgz BINARY_ALIAS= make=${GMAKE} LDFLAGS+= ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so OPTIONS_DEFINE= DOCS EXAMPLES NATIVE OPENMP OPTIONS_RADIO= MPI OPTIONS_RADIO_MPI= MPICH OPENMPI OPTIONS_DEFAULT= OPENMP MPICH PARALLEL_DESC= Enable parallelizations: NATIVE_MAKE_ARGS= FFLAGS="${FFLAGS} -march=native -mtune=native" NATIVE_VARS= FFLAGS="-march=native -mtune=native" OPENMP_VARS= OPENMP_FLAGS=-fopenmp MPICH_USES= mpi:mpich MPICH_MAKE_ARGS= F90=${MPIF90} OPENMPI_USES= mpi:openmpi OPENMPI_MAKE_ARGS= F90=${MPIF90} PORTDOCS= * PORTEXAMPLES= * MAKE_JOBS_UNSAFE= yes PLIST_FILES= bin/${PORTNAME} .include .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch in argument 'cc' at (1); passed COMPLEX(8) to REAL(8) FCFLAGS+= -fallow-argument-mismatch .endif post-patch: @${SED} 's|%%GMAKE%%|${GMAKE}|; s|%%FC%%|${FC}|; \ s|%%FCFLAGS%%|${FCFLAGS}|; \ s|%%OPENMP_FLAGS%%|${OPENMP_FLAGS}|' \ < ${FILESDIR}/make.inc.in \ > ${WRKSRC}/make.inc do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} do-test: # several tests fail, see https://sourceforge.net/p/elk/discussion/897822/thread/5d7862dd8b/ @cd ${WRKSRC}/tests && ./test.sh # 1 test (test_024) fails, reported to dewhurst@mpi-halle.mpg.de on 2026-06-26 (before was: see https://sourceforge.net/p/elk/discussion/897820/thread/f7b5859624/) .include diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile index 3638688dd1c3..07f6ca3a8231 100644 --- a/science/elmerfem/Makefile +++ b/science/elmerfem/Makefile @@ -1,121 +1,121 @@ PORTNAME= elmerfem DISTVERSIONPREFIX= release- DISTVERSION= 9.0 -PORTREVISION= 18 +PORTREVISION= 19 CATEGORIES= science PATCH_SITES= https://github.com/ElmerCSC/${PORTNAME}/commit/ PATCHFILES= 48e9430c.patch:-p1 # https://github.com/ElmerCSC/elmerfem/pull/294 MAINTAINER= henrik@gulbra.net COMMENT= Multiphysical simulation software WWW= https://www.csc.fi/web/elmer LICENSE= GPLv2 LIB_DEPENDS= libblas.so:math/blas \ libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libmpich.so:net/mpich \ libnetcdf.so:science/netcdf \ libopenblas.so:math/openblas \ libparpack.so:math/arpack-ng USES= cmake compiler:c++11-lang fortran USE_CXXSTD= c++14 USE_GITHUB= yes GH_ACCOUNT= ElmerCSC USE_LDCONFIG= ${PREFIX}/lib/elmersolver CMAKE_ARGS= -DELMER_FEM_REVISION:STRING=${GH_TAGNAME} ALL_TARGET= # empty LDFLAGS+= -L${LOCALBASE}/lib PORTSCOUT= limit:^release-[1-9] CMAKE_ARGS+= -DHAVE_INTTYPES_H=ON .if !defined(MAINTAINER_MODE) CMAKE_ARGS+= -Wno-dev .endif OPTIONS_DEFINE= GUI OCC OPTIONS_DEFAULT= GUI OCC OPTIONS_SUB= yes GUI_DESC= Build with ElmerGUI (Graphical User Interface) OCC_DESC= Use OpenCASCADE for CAD import in ElmerGUI GUI_LIB_DEPENDS= libqwt.so:x11-toolkits/qwt6@qt5 GUI_USES= gl jpeg qt:5 xorg GUI_USE= gl=gl,glu xorg=ice,sm,x11,xext,xt qt=${_QT5_LIBS:ts,} GUI_CMAKE_BOOL= WITH_ELMERGUI WITH_PARAVIEW GUI_CMAKE_ON= -DQWT_LIBRARY=${QT_LIBDIR}/libqwt.so \ -DQWT_INCLUDE_DIR=${QT_INCDIR}/qwt6 \ -DDESIRED_QT_VERSION=5 \ -DWITH_QT5:BOOL=TRUE \ -DQT_FOUND:BOOL=TRUE OCC_IMPLIES= GUI OCC_LIB_DEPENDS= libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libpng.so:graphics/png \ libpython${_PYVERSION}.so:lang/python${PYTHON_SUFFIX} \ libtiff.so:graphics/tiff \ libTKernel.so:cad/opencascade \ libvtksys-${VTK_VER}.so:math/vtk${VTK_VER:R} OCC_USES= python OCC_CMAKE_BOOL= WITH_OCC OCC_CMAKE_ON= -DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-9.0 \ -DPython3_EXECUTABLE=${PYTHON_CMD} _LIBSTAGEDIR= ${STAGEDIR}/${PREFIX}/lib/elmersolver _PYVERSION= ${PYTHON_VER}${PYTHON_ABIVER} _QT5_LIBS= buildtools:build core declarative gui network opengl \ printsupport qmake:build script sql svg widgets xml .include <../../math/vtk9/Makefile.version> .include .if ${ARCH} == "amd64" CFLAGS_${ARCH}= -fPIC CXXFLAGS_${ARCH}= -fPIC FCFLAGS+= -fPIC FFLAGS+= -fPIC .endif .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/COMPLEX(8)). # in theory, this should set FCFLAGS, but the port does not conform FFLAGS+= -fallow-argument-mismatch .endif post-patch: @${RM} ${WRKSRC}/cmake/Modules/CMakeParseArguments.cmake @${RM} -r ${WRKSRC}/elmergrid/src/metis-5.1.0 @${REINPLACE_CMD} -e 's,"metis.*/metis\.h",,' \ ${WRKSRC}/elmergrid/src/egparallel.c pre-configure-OCC-on: ${REINPLACE_CMD} -e "s|\$${VERSION}|`${PKG_QUERY} '%v' opencascade`|" \ "${WRKSRC}/cmake/Modules/FindOCE.cmake" ${REINPLACE_CMD} -e 's|$${INCLUDE}|${LOCALBASE}/include/OpenCASCADE|' \ "${WRKSRC}/cmake/Modules/FindOCE.cmake" post-configure: # workaround for https://github.com/ElmerCSC/elmerfem/issues/334 @${REINPLACE_CMD} -e 's| -lMPI::MPI_C | |' ${BUILD_WRKSRC}/ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/link.txt post-install: ${LN} -sf ElmerSolver_mpi ${STAGEDIR}${PREFIX}/bin/ElmerSolver ${LN} -sf libelmersolver.so ${_LIBSTAGEDIR}/libelmersolver.so.0 ${LN} -sf libfhuti.so ${_LIBSTAGEDIR}/libfhuti.so.0 ${LN} -sf libmatc.so ${_LIBSTAGEDIR}/libmatc.so.0 ${LN} -sf libmpi_stubs.so ${_LIBSTAGEDIR}/libmpi_stubs.so.0 @${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/ElmerGrid do-test: @cd ${TEST_WRKSRC} && ctest -C ${CMAKE_BUILD_TYPE} ${_MAKE_JOBS} .include diff --git a/science/erkale/Makefile b/science/erkale/Makefile index 28b59af794d4..4507ad3a0e26 100644 --- a/science/erkale/Makefile +++ b/science/erkale/Makefile @@ -1,73 +1,73 @@ PORTNAME= erkale DISTVERSION= g20220405 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum chemistry program to solve the electronic structure of atoms WWW= https://github.com/susilehtola/erkale LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_i386= liberkale_omp.so.0.1.0: undefined reference to `__atomic_compare_exchange' BUILD_DEPENDS= armadillo>0:math/armadillo LIB_DEPENDS= libderiv.so:science/libint \ libgsl.so:math/gsl \ libhdf5.so:science/hdf5 \ libint.so:science/libint \ libsz.so:science/libaec \ libxc.so:science/libxc RUN_DEPENDS= ${LOCALBASE}/share/erkale/basis/6-21G.gbs:science/erkale-pseudopotentials FLAVORS= parallel serial FLAVOR?= ${FLAVORS:[1]} serial_PKGNAMESUFFIX= -serial USES= cmake:noninja compiler:c11 fortran pkgconfig USE_LDCONFIG= yes USE_CXXSTD= c++14 # fix build with clang16 due to use of deprecated feature std::random_shuffle USE_GITHUB= yes GH_ACCOUNT= susilehtola GH_TAGNAME= f005a9ed588d7b6fcda54648db16523419308cbd TEST_TARGET= test CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DERKALE_SYSTEM_LIBRARY=${DATADIR}/basis PLIST_SUB= SUFFIX="${SUFFIX}" .if ${FLAVOR} == serial CMAKE_OFF= USE_OPENMP .else # parallel CMAKE_ON+= USE_OPENMP SUFFIX= _omp . if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture . endif .endif OPTIONS_SINGLE= LINALG OPTIONS_SINGLE_LINALG= NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS LINALG_DESC= Linear algebra library NETLIB_USES= blaslapack:netlib NETLIB_CMAKE_ON= -DLAPACK_LIBRARIES:STRING=-llapack -DBLAS_LIBRARIES:STRING=-lblas NETLIB_LDFLAGS= ${LOCALBASE}/lib/libcblas.so ${LOCALBASE}/lib/liblapack.so ${LOCALBASE}/lib/libblas.so NETLIB_LIB_DEPENDS= libcblas.so:math/cblas NETLIB_BROKEN= choosing NETLIB causes a conflict: openblas-0.3.7_3,1 conflicts with cblas-1.0_12 on /usr/local/include/cblas.h OPENBLAS_USES= blaslapack:openblas OPENBLAS_CMAKE_ON= -DLAPACK_LIBRARIES:STRING=-lopenblas -DBLAS_LIBRARIES:STRING=-lopenblas .if ${FLAVOR} == parallel post-install: @${MV} ${STAGEDIR}${PREFIX}/include/erkale ${STAGEDIR}${PREFIX}/include/erkale${SUFFIX} @${MV} ${STAGEDIR}${PREFIX}/bin/erkale_bastool ${STAGEDIR}${PREFIX}/bin/erkale_bastool${SUFFIX} .endif .include diff --git a/science/fleur/Makefile b/science/fleur/Makefile index f0a0029d0988..1ad5d6a1c62f 100644 --- a/science/fleur/Makefile +++ b/science/fleur/Makefile @@ -1,87 +1,87 @@ PORTNAME= fleur DISTVERSION= 7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= FLAPW code for atomic computations in quantum chemistry and physics WWW= https://www.flapw.de/master/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= Fatal Error: Cannot find an intrinsic module named 'ieee_arithmetic' at (1) LIB_DEPENDS= libfftw3.so:math/fftw3 \ libhdf5.so:science/hdf5 \ liblapack.so:math/lapack \ libopenblas.so:math/openblas TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ USES= cmake:noninja fortran gnome localbase:ldflags python:test tar:tgz USE_GNOME= libxml2 USE_GITLAB= yes GL_SITE= https://iffgit.fz-juelich.de GL_TAGNAME= 447eed3b7ec3de5fcdfbd232cd1eda4caefb51d3 FFLAGS= -I${LOCALBASE}/include LDFLAGS+= -llapack -lopenblas -lxml2 # to fix missing symbols, see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/670 OPTIONS_DEFINE= HDF5 KPLIB MPI SCALAPACK ELPA LIBXC WANNIER OPTIONS_DEFAULT= MPI SCALAPACK ELPA WANNIER # HDF5 KPLIB LIBXC HDF5_CMAKE_BOOL= CLI_FLEUR_USE_HDF5 HDF5_CMAKE_ON= -DHDF5_INCLUDE_DIRS=${LOCALBASE}/include HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5 HDF5_BROKEN= Missing hdf5.mod in hdf5 # hdf5 doesn't include Fortran binding KPLIB_DESC= Use kpLib library #KPLIB_CMAKE_BOOL= CLI_FLEUR_USE_KPLIB KPLIB_DEPENDS= libkplib.so:science/kplib KPLIB_BROKEN= Fails to find the pre-installed libkplib.so library, see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/691 MPI_CMAKE_BOOL= CLI_FLEUR_USE_MPI MPI_LDFLAGS= -lmpich -lmpifort MPI_LIB_DEPENDS= libmpich.so:net/mpich MPI_VARS= SUFFIX=_MPI SCALAPACK_DESC= Use the ScaLAPACK Scalable LAPACK library SCALAPACK_CMAKE_BOOL= FLEUR_USE_SCALAPACK # no such variable, see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/692, it works only through LDFLAGS set below SCALAPACK_VARS= FFLAGS+=-fallow-argument-mismatch SCALAPACK_LDFLAGS= -lscalapack SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack SCALAPACK_IMPLIES= MPI ELPA_DESC= Use libelpa, Eigenvalue SoLver for Petaflop Applications ELPA_CMAKE_BOOL= FLEUR_USE_ELPA # no such variable, see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/689, it works only through FFLAGS set below ELPA_VARS= FFLAGS+=-I${LOCALBASE}/include/elpa-2021.11.001/modules ELPA_LDFLAGS= -lelpa ELPA_LIB_DEPENDS= libelpa.so:math/elpa LIBXC_DESC= Use libxc library LIBXC_CMAKE_BOOL= CLI_FLEUR_USE_LIBXC LIBXC_LIB_DEPENDS= libxc.so:science/libxc LIBXC_BROKEN= Silently links with libxc when CLI_FLEUR_USE_LIBXC=OFF, see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/690 WANNIER_DESC= Use Wannier library WANNIER_CMAKE_BOOL= CLI_FLEUR_USE_WANNIER WANNIER_LIB_DEPENDS= libwannier.so:science/wannier90 EXECUTABLES= bin/fleur${SUFFIX} \ bin/inpgen PLIST_FILES= ${EXECUTABLES} CONFLICTS_BUILD= libxc # see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/690 post-install: # strip @cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} ${EXECUTABLES} do-test: # now: some tests fail or freeze, possibly because of missing hdf5 and kplib dependencies # was: 9 testcases are known to fail, see https://iffgit.fz-juelich.de/fleur/fleur/-/issues/671 @cd ${WRKSRC}/testing && pytest tests --build_dir=${TEST_WRKSRC} # tests fail to run: INTERNALERROR> pluggy._manager.PluginValidationError: unknown hook 'pytest_html_report_title' in plugin .include diff --git a/science/frontistr/Makefile b/science/frontistr/Makefile index 0627f3182f1b..2cf27d500822 100644 --- a/science/frontistr/Makefile +++ b/science/frontistr/Makefile @@ -1,56 +1,56 @@ PORTNAME= FrontISTR PORTVERSION= 5.2 -PORTREVISION= 4 +PORTREVISION= 5 DISTVERSIONPREFIX= v CATEGORIES= science cad MAINTAINER= thierry@FreeBSD.org COMMENT= Large-Scale Parallel FEM Program for Nonlinear Structural Analysis WWW= https://gitlab.com/FrontISTR-Commons/FrontISTR LICENSE= MIT LIB_DEPENDS= libmetis.so:math/metis \ libscotch.so:cad/scotch \ libcmumps.so.5:math/mumps \ libscalapack.so:math/scalapack TEST_DEPENDS= bash:shells/bash \ gawk:lang/gawk USE_GITLAB= yes GL_ACCOUNT= ${PORTNAME}-Commons GL_TAGNAME= c66bdc397de319ca59a0565b3f3b1a3b33f0c50c USES= blaslapack:openblas cmake:testing fortran mpi shebangfix SHEBANG_GLOB= *.sh FFLAGS+= -fallow-argument-mismatch ALL_TARGET= all OPTIONS_DEFINE= DOCS EXAMPLES DOCS_USES= python:build DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ dot:graphics/graphviz \ ${PYTHON_PKGNAMEPREFIX}mkdocs>0:textproc/py-mkdocs@${PY_FLAVOR} DOCS_CMAKE_BOOL= WITH_DOC DOCS_ALL_TARGET= doc PORTDOCS= * PORTEXAMPLES= * pre-configure: ${REINPLACE_CMD} -e 's/awk/gawk/' ${WRKSRC}/tests/test.sh do-install-DOCS-on: ${FIND} ${BUILD_WRKSRC}/doc/html -type d -empty -delete ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${BUILD_WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} do-test: (cd ${TEST_WRKSRC} && ctest) .include diff --git a/science/gbtolib/Makefile b/science/gbtolib/Makefile index 137ca54a4f2c..8450c7e98d09 100644 --- a/science/gbtolib/Makefile +++ b/science/gbtolib/Makefile @@ -1,36 +1,36 @@ PORTNAME= gbtolib DISTVERSION= 3.0.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= science # chemistry, physics MASTER_SITES= https://zenodo.org/record/5798035/files/ DISTNAME= GBTOLib-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= High-performance library for evaluation of molecular integrals WWW= https://zenodo.org/record/5798035 #.Yo1sazXMKV4 LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc64= compilation fails in the Fortran code: Error: Kind -1 not supported for type REAL at (1) BROKEN_powerpc64le= compilation fails in the Fortran code: Error: Kind -1 not supported for type REAL at (1) .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif LIB_DEPENDS= libopenblas.so:math/openblas USES= cmake fortran zip CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_DOC BUILD_TESTING FFLAGS= -fdefault-integer-8 OPTIONS_DEFINE= MPI MPI_CMAKE_BOOL= WITH_MPI MPI_CMAKE_ON= -DMPIEXEC_EXECUTABLE=${LOCALBASE}/bin/mpiexec MPI_BROKEN= MPI build fails with error: Failed to detemine MPI integer interface. .include diff --git a/science/harminv/Makefile b/science/harminv/Makefile index 1d899aad5b5d..69da7cd5029f 100644 --- a/science/harminv/Makefile +++ b/science/harminv/Makefile @@ -1,25 +1,25 @@ PORTNAME= harminv DISTVERSION= 1.4.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MASTER_SITES= https://github.com/NanoComp/harminv/releases/download/v${DISTVERSION}/ MAINTAINER= devel@stasyan.com COMMENT= Solver of harmonic inversion WWW= https://github.com/NanoComp/harminv/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libopenblas.so:math/openblas USES= blaslapack fortran gmake libtool pathfix USE_LDCONFIG= yes GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS= --enable-shared INSTALL_TARGET= install-strip .include diff --git a/science/hypre/Makefile b/science/hypre/Makefile index e5a75ebbd5ac..c9a9efed21df 100644 --- a/science/hypre/Makefile +++ b/science/hypre/Makefile @@ -1,73 +1,74 @@ PORTNAME= hypre DISTVERSIONPREFIX= v DISTVERSION= 2.32.0 +PORTREVISION= 1 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Scalable Linear Solvers and Multigrid Methods WWW= https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods \ https://github.com/hypre-space/hypre LICENSE= APACHE20 MIT LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/../LICENSE-APACHE LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE-MIT .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif LIB_DEPENDS= libsuperlu.so:math/superlu USES= blaslapack:openblas cmake:testing fortran localbase USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= hypre-space WRKSRC_SUBDIR= src CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP HYPRE_WITH_SUPERLU CMAKE_OFF= HYPRE_ENABLE_HYPRE_BLAS HYPRE_ENABLE_HYPRE_LAPACK CMAKE_ARGS= -DTPL_BLAS_LIBRARIES="${_BLASLIB}" \ -DTPL_SUPERLU_LIBRARIES="${LOCALBASE}/lib/libsuperlu.so" \ -DTPL_SUPERLU_INCLUDE_DIRS="${LOCALBASE}/include/superlu" CMAKE_TESTING_ON= HYPRE_BUILD_TESTS # tests are only built and not run, see https://github.com/hypre-space/hypre/issues/502 OPTIONS_DEFINE= DOCS OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI OPTIONS_DEFAULT= MPICH NOMPI_DESC= Build without parallel processing support NOMPI_CMAKE_ON= -DHYPRE_WITH_MPI=OFF MPICH_USES= mpi:mpich MPICH_CMAKE_ON= -DHYPRE_WITH_MPI=ON OPENMPI_USES= mpi:openmpi OPENMPI_CMAKE_ON= -DHYPRE_WITH_MPI=ON OPENMPI_BROKEN= doesn't switch to openmpi in cmake build, see https://github.com/hypre-space/hypre/issues/720 PORTDOCS= * post-install: ${MV} ${STAGEDIR}${PREFIX}/lib/libHYPRE.so \ ${STAGEDIR}${PREFIX}/lib/libHYPRE.so.0 ${RLN} ${STAGEDIR}${PREFIX}/lib/libHYPRE.so.0 \ ${STAGEDIR}${PREFIX}/lib/libHYPRE.so post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/docs && ${COPYTREE_SHARE} usr-manual ${STAGEDIR}${DOCSDIR} post-test: # run tests; unclear how to to run tests, see https://github.com/hypre-space/hypre/issues/502 .for t in ij ij_assembly ij_mv maxwell_unscaled @cd ${WRKSRC}/test && \ ${ECHO} "==> running test ${t}" && \ ${BUILD_WRKSRC}/test/${t} .endfor # the test ij_mv fails, see https://github.com/hypre-space/hypre/issues/1161 .include diff --git a/science/iboview/Makefile b/science/iboview/Makefile index dbec694c51a0..8213655283da 100644 --- a/science/iboview/Makefile +++ b/science/iboview/Makefile @@ -1,30 +1,30 @@ PORTNAME= iboview PORTVERSION= 20150427 -PORTREVISION= 27 +PORTREVISION= 28 CATEGORIES= science MASTER_SITES= http://www.iboview.org/bin/ DISTNAME= ibo-view.20150427 MAINTAINER= ports@FreeBSD.org COMMENT= Program for analyzing molecular electronic structure WWW= http://www.iboview.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= boost-libs>=0:devel/boost-libs RUN_DEPENDS= boost-libs>=0:devel/boost-libs ONLY_FOR_ARCHS= amd64 USES= blaslapack:openblas fortran gl qmake:outsource qt:5 tar:bz2 USE_CXXSTD= c++14 USE_GL= gl glu USE_QT= buildtools:build core gui widgets opengl script svg PLIST_FILES= bin/iboview do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/iboview ${STAGEDIR}${PREFIX}/bin .include diff --git a/science/lammps/Makefile b/science/lammps/Makefile index 3b4e0f88837b..905342162978 100644 --- a/science/lammps/Makefile +++ b/science/lammps/Makefile @@ -1,150 +1,151 @@ PORTNAME= lammps PORTVERSION= ${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/S/_update/./:C/\.([1-9])$/.0\1/:S/.//g} +PORTREVISION= 1 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Classical molecular dynamics code with a focus on materials modeling WWW= https://lammps.sandia.gov/ \ https://github.com/lammps/lammps LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= undefined reference to `__atomic_load' LIB_DEPENDS= libevent.so:devel/libevent \ libfftw3.so:math/fftw3 \ libhwloc.so:devel/hwloc2 \ libnghttp2.so:www/libnghttp2 \ libpciaccess.so:devel/libpciaccess \ libssh2.so:security/libssh2 \ libzstd.so:archivers/zstd USES= blaslapack:openblas cmake:noninja,testing compiler:c++17-lang eigen:3 fortran gnome localbase:ldflags python shebangfix USE_GNOME= libxml2 USE_LDCONFIG= yes USE_PYTHON= cython USE_GITHUB= yes GH_TAGNAME= patch_19Nov2024 SHEBANG_GLOB= *.sh *.bash SHEBANG_FILES= lib/kokkos/bin/nvcc_wrapper CMAKE_ON= BUILD_SHARED_LIBS CMAKE_SOURCE_PATH= ${WRKSRC}/cmake CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" ${CMAKE_ARGS_${CHOSEN_COMPILER_TYPE}} \ -DPython_EXECUTABLE=${PYTHON_CMD} CMAKE_ARGS_gcc= -DBUILD_OMP:BOOL=false CMAKE_TESTING_ON= ENABLE_TESTING # 3 tests fail, see https://github.com/lammps/lammps/issues/3875 # enable packages (for a complete list see STANDARD_PACKAGES in cmake/CMakeLists.txt) CMAKE_ON+= ${LAMMPS_STANDARD_PACKAGES:S/^/PKG_/} # LAMMPS_STANDARD_PACKAGES is defined in Makefile.packages # Packages requiring extra downloades or dependencies: PKG_MSCG PKG_ADIOS PKG_MDI PKG_MESONT PKG_ML-PACE PKG_NETCDF PKG_ML-QUIP PKG_SCAFACOS PKG_VTK # PKG_ML-HDNNP downloads https://github.com/CompPhysVienna/n2p2/archive/v2.1.4.tar.gz OPTIONS_DEFINE= EXCEPTIONS JPEG PNG GZIP FFMPEG OPTIONS_GROUP= PARALLEL PACKAGES OPTIONS_DEFAULT= EXCEPTIONS MPI OPENMP JPEG PNG GZIP FFMPEG H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI ${OPTIONS_DEFAULT_${CHOSEN_COMPILER_TYPE}} OPTIONS_SUB= yes PARALLEL_DESC= Enable parallelizations: PACKAGES_DESC= Enable packages: OPTIONS_GROUP_PARALLEL= MPI OPENMP ${OPTIONS_DEFINE_${CHOSEN_COMPILER_TYPE}} OPTIONS_GROUP_PACKAGES= H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI VTK EXCEPTIONS_DESC= Enable the use of C++ exceptions EXCEPTIONS_CMAKE_BOOL= LAMMPS_EXCEPTIONS MPI_CMAKE_BOOL= BUILD_MPI PKG_MPIIO MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4 MPI_USES= compiler:c11 FFMPEG_CMAKE_BOOL= WITH_FFMPEG FFMPEG_BUILD_DEPENDS= ffmpeg:multimedia/ffmpeg FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg JPEG_CMAKE_BOOL= WITH_JPEG JPEG_USES= jpeg PNG_CMAKE_BOOL= WITH_PNG PNG_LIB_DEPENDS= libpng.so:graphics/png GZIP_DESC= Enable GZIP support GZIP_CMAKE_BOOL= WITH_GZIP H5MD_DESC= H5MD package based on the libhdf5 library H5MD_CMAKE_BOOL= PKG_H5MD H5MD_LIB_DEPENDS= libhdf5.so:science/hdf5 KIM_DESC= KIM package based on the OpenKim library/repository KIM_USES= pkgconfig KIM_CMAKE_BOOL= PKG_KIM KIM_CMAKE_ON= -DDOWNLOAD_KIM:BOOL=OFF KIM_LIB_DEPENDS= libkim-api.so:science/kim-api \ libcurl.so:ftp/curl KIM_RUN_DEPENDS= openkim-models>0:science/openkim-models KOKKOS_DESC= Kokkos package based on the libkokkos library KOKKOS_CMAKE_BOOL= PKG_KOKKOS EXTERNAL_KOKKOS KOKKOS_LIB_DEPENDS= libkokkoscore.so:devel/kokkos LATTE_DESC= Latte package based on the liblatte library LATTE_CMAKE_BOOL= PKG_LATTE LATTE_LIB_DEPENDS= liblatte.so:science/latte NETCDF_DESC= NetCDF package based on the NetCDF library NETCDF_CMAKE_BOOL= PKG_NETCDF NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf PLUMED_DESC= Plumed package based on the plumed library PLUMED_USES= pkgconfig PLUMED_CMAKE_BOOL= PKG_PLUMED PLUMED_CMAKE_ON= -DPLUMED_MODE=shared PLUMED_LIB_DEPENDS= libplumed.so:science/plumed VORONOI_DESC= Voro++, Voronoi tessellation package VORONOI_CMAKE_BOOL= PKG_VORONOI VORONOI_LIB_DEPENDS= libvoro++.so:science/voro++ VTK_DESC= VTK package based on the external VTK-${VTK_VER:R} library VTK_CMAKE_BOOL= PKG_VTK VTK_CMAKE_ON= -DVTK_DIR:PATH=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} VTK_USES= gl qt:5 xorg VTK_USE= GL=opengl qt=core,declarative,gui,network,opengl,sql,widgets xorg=ice,sm,x11,xext,xt VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libtiff.so:graphics/tiff PORTSCOUT= ignore:1 # due to a special version tagging scheme that this project uses portscout fails to find new versions, watching their GitHub release page instead .include .if ${PORT_OPTIONS:MOPENMP} CMAKE_ARGS+= -DBUILD_OMP:BOOL=true .endif xpost-patch: # adjust SHELL in Makefile @${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/src/Makefile # fix python version, also see https://github.com/lammps/lammps/issues/3098, https://github.com/lammps/lammps/issues/3099 @${FIND} ${WRKSRC} -name "CMakeLists.txt" -o -name "*.cmake" | ${XARGS} ${REINPLACE_CMD} -e ' \ s|find_package(Python3 REQUIRED |find_package(Python $${FREEBSD_PYTHON_VER} EXACT REQUIRED |; \ s|find_package(Python 3.5 COMPONENTS |find_package(Python $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python 3.6 COMPONENTS |find_package(Python $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python3 REQUIRED |find_package(Python $${FREEBSD_PYTHON_VER} EXACT REQUIRED |; \ s|find_package(Python COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python3 COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python QUIET COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT QUIET COMPONENTS |; \ s|find_package(Python REQUIRED COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS | \ ' post-patch-FFMPEG-off: @${REINPLACE_CMD} 's|find_program(FFMPEG_EXECUTABLE|#&|' ${WRKSRC}/cmake/CMakeLists.txt post-install: @${RM} -r ${STAGEDIR}${PREFIX}/lib/python* .include "Makefile.packages" .include <../../math/vtk9/Makefile.version> .include diff --git a/science/latte/Makefile b/science/latte/Makefile index eda59a36323a..9c1328dd1f19 100644 --- a/science/latte/Makefile +++ b/science/latte/Makefile @@ -1,51 +1,51 @@ PORTNAME= latte DISTVERSIONPREFIX= v DISTVERSION= 1.2.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum chemistry: Density functional tight binding molecular dynamics WWW= https://github.com/lanl/LATTE LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE_GPL-2.0 USES= blaslapack:openblas cmake:noninja fortran shebangfix SHEBANG_FILES= tests/run_test.sh USE_GITHUB= yes GH_ACCOUNT= lanl GH_PROJECT= ${PORTNAME:tu} USE_LDCONFIG= yes CMAKE_SOURCE_PATH= ${WRKSRC}/cmake CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" OPTIONS_DEFINE= DBCSR OPENMP MPI # TODO PROGRESS needs to be ported OPTIONS_DEFAULT= OPENMP MPI DBCSR_DESC= Use distributed block compressed sparse row matrix library DBCSR_CMAKE_BOOL= DBCSR_OPT DBCSR_LIB_DEPENDS= libdbcsr.so:math/dbcsr DBCSR_BROKEN= see https://github.com/lanl/LATTE/issues/92 OPENMP_CMAKE_BOOL= OPENMP MPI_CMAKE_BOOL= DO_MPI MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4 MPI_LDFLAGS= ${LOCALBASE}/mpi/openmpi/lib/libmpi_mpifh.so MPI_PLIST_FILES= bin/LATTE_MPI_DOUBLE MPI_PLIST_FILES_OFF= bin/LATTE_DOUBLE CONFLICTS_INSTALL= latte-integrale .include .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)). # in theory, this should set FCFLAGS, but the port does not conform FFLAGS+= -fallow-argument-mismatch .endif .include diff --git a/science/libcint/Makefile b/science/libcint/Makefile index 15c8ca0f07e0..af528fdf2ec6 100644 --- a/science/libcint/Makefile +++ b/science/libcint/Makefile @@ -1,42 +1,42 @@ PORTNAME= libcint DISTVERSIONPREFIX= v DISTVERSION= 6.1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= General GTO integrals for quantum chemistry WWW= https://github.com/sunqm/libcint LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}pyscf>0:science/py-pyscf@${PY_FLAVOR} USES= cmake blaslapack:openblas python:test USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= sunqm PLIST_FILES= include/cint.h \ include/cint_funcs.h \ lib/libcint.so \ lib/libcint.so.${PORTVERSION:R:R} \ lib/libcint.so.6.1.1 # see https://github.com/sunqm/libcint/issues/106 #lib/libcint.so.${PORTVERSION} post-patch: @${REINPLACE_CMD} -e "s|\\.\\./\\.\\./build/libcint\\.so|${BUILD_WRKSRC}/libcint.so|" \ ${WRKSRC}/testsuite/test_3c2e.py @${REINPLACE_CMD} -e "s|os\\.path\\.abspath(os\\.path\\.join(__file__, '\\.\\./\\.\\./build/libcint\\.so'))|'${BUILD_WRKSRC}/libcint.so'|" \ ${WRKSRC}/testsuite/test_cint.py do-test: # needs science/py-pyscf, pending https://github.com/pyscf/pyscf/issues/935 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DENABLE_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/science/libmbd/Makefile b/science/libmbd/Makefile index cdd6485dae8b..8ae40356b776 100644 --- a/science/libmbd/Makefile +++ b/science/libmbd/Makefile @@ -1,21 +1,21 @@ PORTNAME= libmbd DISTVERSION= 0.12.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science # chemistry MASTER_SITES= https://github.com/libmbd/libmbd/releases/download/${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Many-body dispersion library WWW= https://github.com/libmbd/libmbd LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libopenblas.so:math/openblas USES= cmake:testing fortran do-test: # fails to find tests, see https://github.com/libmbd/libmbd/issues/43 @cd ${BUILD_WRKSRC} && ctest --test-dir . .include diff --git a/science/libnegf/Makefile b/science/libnegf/Makefile index 804a1876ea89..0f74f9734203 100644 --- a/science/libnegf/Makefile +++ b/science/libnegf/Makefile @@ -1,37 +1,37 @@ PORTNAME= libnegf DISTVERSIONPREFIX= v DISTVERSION= 1.1.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Non Equilibrium Green's Functions library WWW= https://github.com/libnegf/libnegf LICENSE= GPLv3 .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif LIB_DEPENDS= libmpi.so:net/mpich \ libopenblas.so:math/openblas USES= cmake:testing fortran python:build USE_GITHUB= yes CMAKE_ON= BUILD_SHARED_LIBS BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD} OPTIONS_DEFINE= INELASTIC MPI OPTIONS_DEFAULT= MPI # MPI default has to be in sync with science/dftbplus INELASTIC_DESC= Build with inelastic scattering INELASTIC_CMAKE_BOOL= WITH_INELASTIC INELASTIC_BROKEN= Error: Can't open included file 'fftw3.f03', see https://github.com/libnegf/libnegf/issues/56 MPI_CMAKE_BOOL= WITH_MPI MPI_LIB_DEPENDS= libmpifx.so:net/mpifx .include diff --git a/science/meep/Makefile b/science/meep/Makefile index dd0f276ef192..0fafbcf12a33 100644 --- a/science/meep/Makefile +++ b/science/meep/Makefile @@ -1,65 +1,65 @@ PORTNAME= meep DISTVERSIONPREFIX= v DISTVERSION= 1.29.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= science cad MAINTAINER= yuri@FreeBSD.org COMMENT= Finite-difference time-domain software for electromagnetic simulations WWW= https://github.com/NanoComp/meep LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/lib/libharminv.a:science/harminv LIB_DEPENDS= libblas.so:math/blas \ libctlgeom.so:science/libctl \ libfftw3.so:math/fftw3 \ libGDSII.so:cad/libgdsii \ libgsl.so:math/gsl \ libhdf5.so:science/hdf5 \ liblapack.so:math/lapack \ libmpb.so:science/mpb \ libopenblas.so:math/openblas RUN_DEPENDS= ${LOCALBASE}/lib/libharminv.a:science/harminv USES= autoreconf compiler:c++11-lang fortran gmake libtool localbase USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= NanoComp GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-scheme CXXFLAGS_i386= -msse2 # to fix this error: '_mm_getcsr' needs target feature sse INSTALL_TARGET= install-strip TEST_TARGET= check # some python binding's tests fail due to bug#270105 (in needed dependency science/mpb) and https://github.com/NanoComp/meep/issues/2434 BINARY_ALIAS= make=${GMAKE} OPTIONS_DEFINE= PYTHON OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_CONFIGURE_WITH= python PYTHON_CONFIGURE_ENABLE= maintainer-mode PYTHON_USES= python PYTHON_BUILD_DEPENDS= swig:devel/swig PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}autograd>0:math/py-autograd@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jax>0:math/py-jax@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jupyter-rfb>0:devel/py-jupyter-rfb@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-image>0:graphics/py-scikit-image@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}vispy>0:graphics/py-vispy@${PY_FLAVOR} PYTHON_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jax>0:math/py-jax@${PY_FLAVOR} # 2 python tests fail because the py-jaxlib test dependency is missing .include diff --git a/science/mopac/Makefile b/science/mopac/Makefile index 4d20faa6f934..7b5c29c657f5 100644 --- a/science/mopac/Makefile +++ b/science/mopac/Makefile @@ -1,33 +1,34 @@ PORTNAME= mopac DISTVERSIONPREFIX= v DISTVERSION= 23.0.3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Semi-empirical (MNDO, etc.) molecular orbital calculation WWW= http://openmopac.net/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING TEST_DEPENDS= ${PYNUMPY} USES= blaslapack:openblas cmake:testing fortran python:test USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= openmopac CMAKE_OFF= TESTS CMAKE_TESTING_ON= TESTS # all tests pass CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD} #-DPython3_NumPy_INCLUDE_DIRS=${PYTHONPREFIX_SITELIBDIR}/numpy/core/include PLIST_FILES= bin/mopac \ bin/mopac-makpol \ bin/mopac-param \ include/mopac.h \ lib/libmopac.so \ lib/libmopac.so.2 .include diff --git a/science/mpb/Makefile b/science/mpb/Makefile index e737ce290106..dd5346c3087d 100644 --- a/science/mpb/Makefile +++ b/science/mpb/Makefile @@ -1,52 +1,52 @@ PORTNAME= mpb DISTVERSION= 1.11.1 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= science MASTER_SITES= https://github.com/NanoComp/mpb/releases/download/v${DISTVERSION}/ MAINTAINER= rhurlin@FreeBSD.org COMMENT= MIT Photonic-Bands WWW= https://mpb.readthedocs.io/en/latest/ LICENSE= GPLv2 BUILD_DEPENDS= bash:shells/bash # NLOPT should be enabled in science/libctl LIB_DEPENDS= libctl.so:science/libctl \ libfftw3.so:math/fftw3 \ libhdf5.so:science/hdf5 \ libnlopt.so:math/nlopt USES= fortran guile:2.2,alias libtool pkgconfig readline USE_GCC= yes USE_LDCONFIG= yes # Do not use --with-mpi, because it is not guaranted # that science/hdf5 also built with option PARALLEL GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS= --enable-shared MAKE_JOBS_UNSAFE= yes INSTALL_TARGET= install-strip TEST_TARGET= check CPPFLAGS+= -I${LOCALBASE}/include -fpermissive LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= ATLAS OPENMP ATLAS_DESC= Use math/atlas instead of math/openblas OPENMP_DESC= Use OpenMP (enable also in math/fftw3) ATLAS_LIB_DEPENDS= libatlas.so:math/atlas ATLAS_USES_OFF= blaslapack:openblas ATLAS_CONFIGURE_ON= --with-lapack=-lalapack ATLAS_CONFIGURE_OFF= --with-blas=openblas --with-lapack=-lopenblas OPENMP_CONFIGURE_ON= --with-openmp post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && \ ${COPYTREE_SHARE} "*.ctl *.scm" ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/science/multicharge/Makefile b/science/multicharge/Makefile index d658fb9a669b..13da7abc8c2c 100644 --- a/science/multicharge/Makefile +++ b/science/multicharge/Makefile @@ -1,28 +1,29 @@ PORTNAME= multicharge DISTVERSIONPREFIX= v DISTVERSION= 0.3.0 +PORTREVISION= 1 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Electronegativity equilibration model for atomic partial charges WWW= https://github.com/grimme-lab/mstore LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= mstore>0:science/mstore LIB_DEPENDS= libmctc-lib.so:science/mctc-lib \ libopenblas.so:math/openblas USES= cmake:testing fortran USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= grimme-lab CMAKE_ON= BUILD_SHARED_LIBS post-patch: # see https://github.com/toml-f/toml-f/issues/51 @${REINPLACE_CMD} -e 's|$${CMAKE_Fortran_COMPILER_ID}-$${CMAKE_Fortran_COMPILER_VERSION}||' ${WRKSRC}/config/CMakeLists.txt .include diff --git a/science/multiwfn/Makefile b/science/multiwfn/Makefile index d32e6aa1b4dc..83a72befe1f6 100644 --- a/science/multiwfn/Makefile +++ b/science/multiwfn/Makefile @@ -1,57 +1,57 @@ PORTNAME= multiwfn DISTVERSIONPREFIX= v DISTVERSION= 3.8 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= science MASTER_SITES= http://sobereva.com/multiwfn/misc/:main \ https://www.dislin.de/downloads/unix/:dislin DISTFILES= Multiwfn_${DISTVERSION}_dev_src_Linux.zip:main \ dislin-${DISLIN_VERSION}.fbsd.64.tar.gz:dislin # (!!!) dislin is a closed-source library distributed as binary, source code is sold for $$ MAINTAINER= yuri@FreeBSD.org COMMENT= Multifunctional wavefunction analysis for quantum chemistry WWW= http://sobereva.com/multiwfn/index.html LICENSE= GPLv2 ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= dislin library is closed source for which binary is only available for amd64 LIB_DEPENDS= libblas.so:math/blas \ liblapack.so:math/lapack \ libopenblas.so:math/openblas RUN_DEPENDS= bash:shells/bash USES= gl gmake fortran motif xorg USE_GL= gl USE_XORG= x11 xt #USE_GITHUB= yes #GH_ACCOUNT= stecue #GH_PROJECT= gMultiwfn WRKSRC= ${WRKDIR}/Multiwfn_${DISTVERSION}_dev_src_Linux FCFLAGS+= -ffree-line-length-none LDFLAGS+= -lblas -llapack ALL_TARGET= default DISLIN_VERSION= 11.5 BINARY_ALIAS= ifort=gfortran${GCC_DEFAULT} \ gcc=${CC} PLIST_FILES= bin/Multiwfn \ bin/Multiwfn_noGUI post-patch: # replace the dislin.a library with the FreeBSD version @${CP} \ ${WRKDIR}/dislin-${DISLIN_VERSION}/fbsd_64/lib/dislin_d-${DISLIN_VERSION}.a \ ${WRKSRC}/dislin_d-11.0.a do-install: ${INSTALL_PROGRAM} ${WRKSRC}/Multiwfn ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/Multiwfn_noGUI ${STAGEDIR}${PREFIX}/bin .include diff --git a/science/nlcglib/Makefile b/science/nlcglib/Makefile index 117c28e5b54b..6fd8a974b7bd 100644 --- a/science/nlcglib/Makefile +++ b/science/nlcglib/Makefile @@ -1,38 +1,38 @@ PORTNAME= nlcglib DISTVERSIONPREFIX= v DISTVERSION= 1.1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Nonlinear CG methods for wave-function optimization in DFT WWW= https://github.com/simonpintarelli/nlcglib LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json LIB_DEPENDS= libkokkoscore.so:devel/kokkos \ libopenblas.so:math/openblas TEST_DEPENDS= googletest>0:devel/googletest USES= cmake:testing pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= simonpintarelli CMAKE_TESTING_ON= BUILD_TESTS # tests fail to compile, see https://github.com/simonpintarelli/nlcglib/issues/19 OPTIONS_DEFINE= OPENMP OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= MPICH OPENMP MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi OPENMP_CMAKE_BOOL= USE_OPENMP # binaries are still linked with libomp when USE_OPENMP=OFF, see https://github.com/simonpintarelli/nlcglib/issues/13 .include diff --git a/science/ocean/Makefile b/science/ocean/Makefile index 6a0165fa3d4a..53efc444abf5 100644 --- a/science/ocean/Makefile +++ b/science/ocean/Makefile @@ -1,59 +1,59 @@ PORTNAME= ocean DISTVERSIONPREFIX= v DISTVERSION= 3.1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science PKGNAMESUFFIX= -spectroscopy-code MAINTAINER= yuri@FreeBSD.org COMMENT= BSE code for core spectroscopy WWW= https://github.com/times-software/OCEAN LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/License LIB_DEPENDS= libfftw3.so:math/fftw3 \ libopenblas.so:math/openblas RUN_DEPENDS= abinit>0:science/abinit \ quantum-espresso>0:science/quantum-espresso USES= fortran gmake localbase perl5 shebangfix USE_PERL5= build run SHEBANG_GLOB= *.pl USE_GITHUB= yes GH_ACCOUNT= times-software GH_PROJECT= ${PORTNAME:tu} MAKE_ARGS= MPIFC=${MPIFC} \ MPI_HOME=${MPI_HOME} \ MPI_LIBS="${MPI_LIBS}" MAKE_JOBS_UNSAFE= yes # parallel build fails, see https://github.com/times-software/OCEAN/issues/327 BINARY_ALIAS= make=${GMAKE} OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= OPENMPI MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi post-extract: # copy in the Makefile.arch file @${LN} -s ${FILESDIR}/Makefile.arch ${WRKSRC}/ # set execution flag on all *.pl files @${FIND} ${WRKSRC} -name "*.pl" | ${XARGS} ${CHMOD} +x post-patch: # patch the bash path (but run_examples.pl is currently dysfunctional, according to README) @${REINPLACE_CMD} -i '' -e 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|' ${WRKSRC}/EXAMPLE/run_examples.pl post-install: # strip binaries @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*.x .include diff --git a/science/opensim-core/Makefile b/science/opensim-core/Makefile index 10b4f02a1343..6abf60350b4d 100644 --- a/science/opensim-core/Makefile +++ b/science/opensim-core/Makefile @@ -1,57 +1,57 @@ PORTNAME= OpenSim DISTVERSION= 4.1 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= science PKGNAMESUFFIX= -core MAINTAINER= yuri@FreeBSD.org COMMENT= Software for modeling of musculoskeletal structures WWW= https://opensim.stanford.edu/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libdocopt.so:devel/docopt.cpp \ libSimTKcommon.so:science/simbody USES= blaslapack:openblas cmake compiler:c++11-lib fortran gl shebangfix xorg # fortran only for simbody/openblas SHEBANG_FILES= Applications/opensim-install-command-line.sh USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME:tl}-org GH_PROJECT= ${PORTNAME:tl}-core USE_GL= gl glu glut USE_XORG= xi xmu USE_LDCONFIG= yes CXXFLAGS+= -I${LOCALBASE}/include/docopt CONFIGURE_ENV+= SIMBODY_HOME=${LOCALBASE} CMAKE_OFF= OPENSIM_COPY_DEPENDENCIES DO_TESTING OPTIONS_DEFINE= PYTHON JAVA DOCS OPTIONS_DEFAULT= PYTHON JAVA OPTIONS_SUB= yes PYTHON_CMAKE_BOOL= BUILD_PYTHON_WRAPPING PYTHON_USES= python PYTHON_BUILD_DEPENDS= swig40:devel/swig40 PYTHON_BINARY_ALIAS= swig=swig40 JAVA_CMAKE_BOOL= BUILD_JAVA_WRAPPING JAVA_CMAKE_ON= -DJAVA_AWT_LIBRARY=${LOCALBASE}/openjdk8/jre/lib/amd64/libawt.so \ -DJAVA_JVM_LIBRARY=${LOCALBASE}/openjdk8/jre/lib/amd64/server/libjvm.so \ -DJAVA_INCLUDE_PATH=${LOCALBASE}/openjdk8/include JAVA_USES= java JAVA_BUILD_DEPENDS= swig40:devel/swig40 JAVA_BINARY_ALIAS= swig=swig40 DOCS_CMAKE_BOOL= INSTALL_DOCS PORTDOCS= * do-test: # 4 testcases are known to fail: https://github.com/opensim-org/opensim-core/issues/2379 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DDO_TESTING=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/science/pastix/Makefile b/science/pastix/Makefile index 9de785c209b9..4520f4c93ef1 100644 --- a/science/pastix/Makefile +++ b/science/pastix/Makefile @@ -1,59 +1,59 @@ PORTNAME= pastix PORTVERSION= 6.3.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MASTER_SITES= https://gitlab.inria.fr/solverstack/pastix/uploads/${GL_TAG}/ MAINTAINER= thierry@FreeBSD.org COMMENT= PaStiX: a sparse direct solver WWW= https://solverstack.gitlabpages.inria.fr/pastix/ LICENSE= LGPL3 BUILD_DEPENDS= bash:shells/bash \ ${PYNUMPY} LIB_DEPENDS= libmetis.so:math/metis \ libjulia.so:lang/julia \ libscotch.so:cad/scotch \ libhwloc.so:devel/hwloc2 RUN_DEPENDS= bash:shells/bash \ ${PYNUMPY} USES= cmake blaslapack:openblas fortran pkgconfig python #USE_GITLAB= yes #GL_SITE= https://gitlab.inria.fr/ #GL_ACCOUNT= solverstack #GL_PROJECT= pastix spm:s morse_cmake:m #GL_TAGNAME= 6e35c2ba179013b058f5d4e1afd4b451953149c6 \ # 14e36c1586c9ba13f938b1a89f51c080d6551392:s \ # 31cd2bbb0d76f2b9fd83011d8f079d97540b0ba8:m #GL_SUBDIR= spm:s cmake_modules/morse_cmake:m GL_TAG= 32711239db22edb6c291282b581b9e0b # tarball with submodules LDFLAGS+= -lm CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON \ -DPASTIX_ORDERING_METIS:BOOL=ON \ -DPython_VERSION_MAJOR=${PYTHON_MAJOR_VER} \ -DPython_VERSION_MINOR=${PYTHON_VER:E} USE_LDCONFIG= yes TEST_TARGET= test PLIST_SUB= VER=${PORTVERSION} OPTIONS_DEFINE= EXAMPLES EX2FIX= spm/examples spm/wrappers/fortran90 spm/wrappers/python EX2FIX2= example example/old wrappers/julia wrappers/fortran90 wrappers/python pre-configure: .for ex in ${EX2FIX} ${REINPLACE_CMD} -e 's|DESTINATION examples|DESTINATION ${EXAMPLESDIR}/${ex:C/examples//:C/example//}|' \ -e 's|share/doc/spm/examples|${EXAMPLESDIR}/spm|' \ ${WRKSRC}/${ex}/CMakeLists.txt .endfor .for ex in ${EX2FIX2} ${REINPLACE_CMD} -e 's|share/doc/pastix/examples|share/examples/pastix|' \ ${WRKSRC}/${ex}/CMakeLists.txt .endfor .include diff --git a/science/psi4/Makefile b/science/psi4/Makefile index f8e3e4fcbf06..4670af321999 100644 --- a/science/psi4/Makefile +++ b/science/psi4/Makefile @@ -1,83 +1,83 @@ PORTNAME= psi4 DISTVERSIONPREFIX= v DISTVERSION= 1.9.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= science # quantum-chemistry EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= yuri@FreeBSD.org COMMENT= Open-source suite of ab initio quantum chemistry programs WWW= https://psicode.org/ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gau2grid>0:math/py-gau2grid@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}optking>0:science/py-optking@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}qcelemental>0:science/py-qcelemental@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}qcengine>0:science/py-qcengine@${PY_FLAVOR} BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ ${LOCALBASE}/include/pybind11/pybind11.h:devel/pybind11 \ ${PY_DEPENDS} \ ${PY_SETUPTOOLS} \ libint2-psi4>0:science/libint2-psi4 # has to be this library LIB_DEPENDS= libgg.so:math/gau2grid \ libxc.so:science/libxc RUN_DEPENDS= ${PY_DEPENDS} \ libint2-psi4>0:science/libint2-psi4 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} USES= blaslapack:openblas cmake compiler:c++17-lang eigen:3 fortran localbase:ldflags python USE_GITHUB= yes CMAKE_ARGS= -DLibxc_DIR=${LOCALBASE} \ -DFREEBSD_PYTHON_VER=${PYTHON_VER} \ -DPython_EXECUTABLE=${PYTHON_CMD} \ -DPYMOD_INSTALL_LIBDIR=${PYTHONPREFIX_SITELIBDIR:S|${PREFIX}/lib||} CONFIGURE_ENV= FREEBSD_PYTHON_VER=${PYTHON_VER} LDFLAGS+= -lexecinfo # for backtrace_symbols TEST_ENV= ${MAKE_ENV} \ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}:${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/tests \ PSIDATADIR=${STAGEDIR}${DATADIR} \ PSIPATH=${STAGEDIR}${DATADIR}/basis TEST_WRKSRC= ${WRKSRC}/tests/pytests BINARY_ALIAS= python=${PYTHON_CMD} # only for tests OPTIONS_DEFINE= NATIVE NATIVE_CMAKE_BOOL= ENABLE_XHOST post-patch: # correct the default data dir @${REINPLACE_CMD} \ -E 's|%%DATADIR%%|${DATADIR}|' \ ${WRKSRC}/psi4/run_psi4.py do-install: # project fails to install itself into a stage directory due to a convoluted cmake code structure (DESTDIR isn't handled correctly) # main cd ${BUILD_WRKSRC}/stage && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX} ${FIND} ${STAGEDIR}${PREFIX} -name "*.pyc" -delete # samples cd ${WRKSRC} && ${COPYTREE_SHARE} samples ${STAGEDIR}${DATADIR} ${FIND} ${STAGEDIR}${PREFIX} -name "example_psi4rc_file" -delete # delete empty directories ${FIND} ${STAGEDIR} -type d -empty -delete # set executable flag ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/psi4 # correct version number @${REINPLACE_CMD} -i '' -e "s|__version__ = 'undefined'|__version__ = '${DISTVERSION}'|" \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/metadata.py @${REINPLACE_CMD} -i '' -e "s|__version_long = 'undefined+11'|__version_long = '${DISTVERSION}'|" \ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/psi4/metadata.py # psi4 sometimes fails to print its version: https://github.com/psi4/psi4/issues/2831 do-test: # 2 tests fail, see https://github.com/psi4/psi4/issues/3014 # 1.9: many tests fail: https://github.com/psi4/psi4/issues/3099 @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest # tests can run without this target too, but this way tests output is more concise and it looks more appealing .include diff --git a/science/py-gpaw/Makefile b/science/py-gpaw/Makefile index 3d809a970bd1..29bc4c0e3806 100644 --- a/science/py-gpaw/Makefile +++ b/science/py-gpaw/Makefile @@ -1,43 +1,43 @@ PORTNAME= gpaw DISTVERSION= 24.6.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= DFT and beyond within the projector-augmented wave method in chemistry WWW= https://wiki.fysik.dtu.dk/gpaw/ \ https://gitlab.com/gpaw/gpaw LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYNUMPY} LIB_DEPENDS= libblas.so:math/blas \ libmpich.so:net/mpich \ libopenblas.so:math/openblas \ libxc.so:science/libxc RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ase>0:science/py-ase@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ gpaw-setups>0:science/gpaw-setups USES= gettext-runtime localbase python shebangfix USE_PYTHON= distutils concurrent autoplist SHEBANG_FILES= tools/* LDFLAGS= -lmpi # otherwise: ImportError: /usr/local/lib/python3.8/site-packages/_gpaw.cpython-38.so: Undefined symbol "MPI_Comm_rank" post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_gpaw*.so do-test: install # tests fail to run, see https://gitlab.com/gpaw/gpaw/-/issues/1273 @${ECHO} "== Performing a test calculation on one CPU ==" @gpaw test @${ECHO} "== Performing a test calculation on 8 CPUs ==" @gpaw -P 8 test .include diff --git a/science/py-phono3py/Makefile b/science/py-phono3py/Makefile index ceffdb6d33b0..44d7932674ed 100644 --- a/science/py-phono3py/Makefile +++ b/science/py-phono3py/Makefile @@ -1,40 +1,41 @@ PORTNAME= phono3py DISTVERSION= 3.9.0 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Software to calculate phonon-phonon interaction and related properties WWW= https://phonopy.github.io/phono3py/ \ https://github.com/phonopy/phono3py LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}h5py>=3.0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=2.2.2:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}phonopy>=2.32:science/py-phonopy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}spglib>=2.3:science/py-spglib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>=5.3:devel/py-pyyaml@${PY_FLAVOR} BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build-core>0:devel/py-scikit-build-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nanobind>0:devel/py-nanobind@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ cmake:devel/cmake-core \ ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} CFLAGS+= -fPIC USES= blaslapack:openblas fortran localbase python USE_PYTHON= pep517 cython autoplist pytest TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/test # tests as of 3.9.0: 11 failed, 179 passed, 8 skipped, 6 warnings, 4 errors in 2175.15s (0:36:15), see https://github.com/phonopy/phono3py/issues/307 # - tests fail to find mubmodules that are installed and import fine when run standalone .include diff --git a/science/py-pyscf/Makefile b/science/py-pyscf/Makefile index 117bac5d3c99..207276626f66 100644 --- a/science/py-pyscf/Makefile +++ b/science/py-pyscf/Makefile @@ -1,49 +1,50 @@ PORTNAME= pyscf DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 +PORTREVISION= 1 CATEGORIES= science python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python module for quantum chemistry WWW= https://pyscf.org/ \ https://github.com/pyscf/pyscf LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}h5py>=2.7:science/py-h5py@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ cmake:devel/cmake-core \ gmake:devel/gmake LIB_DEPENDS= libcint.so:science/libcint \ libxc.so:science/libxc \ libxcfun.so:science/xcfun RUN_DEPENDS= ${PY_DEPENDS} USES= fortran blaslapack:openblas compiler:c++11-lang python USE_PYTHON= distutils autoplist pytest USE_GITHUB= yes POST_PLIST= fix-plist TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/pyscf TEST_ARGS= -c ${WRKSRC}/setup.cfg post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyscf/lib/lib*.so fix-plist: @${REINPLACE_CMD} -e 's|.*pyscf_lib_placeholder.so$$||' ${TMPPLIST} post-test: @${ECHO} "==> simple test ..." @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py # tests fail to run: https://github.com/pyscf/pyscf/issues/2601 .include diff --git a/science/py-scipy/Makefile b/science/py-scipy/Makefile index 8875c12299bd..987a357849e5 100644 --- a/science/py-scipy/Makefile +++ b/science/py-scipy/Makefile @@ -1,65 +1,65 @@ PORTNAME= scipy DISTVERSION= 1.11.1 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= science python MASTER_SITES= https://docs.scipy.org/doc/scipy-${DISTVERSION}/:doc \ PYPI:source \ SF:source PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \ scipy-html-${DISTVERSION}.zip:doc EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} PATCH_SITES= https://github.com/scipy/scipy/commit/ PATCHFILES= ab7d08c6148286059f6498ab5c3070268d13cbd9.patch:-p1 # https://github.com/scipy/scipy/pull/21069 MAINTAINER= python@FreeBSD.org COMMENT= Scientific tools for Python WWW= https://www.scipy.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pythran>=0:devel/py-pythran@${PY_FLAVOR} \ unzip>0:archivers/unzip LIB_DEPENDS= libblas.so:math/blas \ libopenblas.so:math/openblas RUN_DEPENDS= ${PYNUMPY} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mpmath>0:math/py-mpmath@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pooch>0:devel/py-pooch@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-umfpack>0:math/py-scikit-umfpack@${PY_FLAVOR} USES= compiler:c++14-lang cpe fortran python:3.9-3.11 shebangfix USE_PYTHON= autoplist concurrent cython distutils FFLAGS+= -std=legacy LDFLAGS+= -shared PYDISTUTILS_BUILDARGS= --fcompiler=gnu95 PYDISTUTILS_CONFIGUREARGS= --fcompiler=gnu95 PIE_UNSAFE= yes PORTDOCS= * OPTIONS_DEFINE= DOCS post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${UNZIP_CMD} -d ${STAGEDIR}${DOCSDIR} ${DISTDIR}/scipy-html-${DISTVERSION}.zip @${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo do-test: @cd ${WRKSRC} && ${TOUCH} .coveragerc && ${PYTHON_CMD} runtests.py .include diff --git a/science/qiskit-aer/Makefile b/science/qiskit-aer/Makefile index 35fa47e29c6f..a1b70b1e7462 100644 --- a/science/qiskit-aer/Makefile +++ b/science/qiskit-aer/Makefile @@ -1,30 +1,31 @@ PORTNAME= qiskit-aer DISTVERSION= 0.16.0.1 +PORTREVISION= 1 CATEGORIES= science # quantum-computing MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum circuits simulator submodule of the Qiskit framework WWW= https://qiskit.org/aer/ \ https://github.com/Qiskit/qiskit-aer LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BROKEN_i386= undefined reference to `__atomic_load' # ' BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json \ pybind11>0:devel/pybind11 LIB_DEPENDS= libfmt.so:devel/libfmt \ libopenblas.so:math/openblas \ libspdlog.so:devel/spdlog USES= cmake compiler:c++11-lang localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= Qiskit CONFIGURE_ENV= DISABLE_CONAN=yes PLIST_FILES= qiskit_aer/backends/controller_wrappers .include diff --git a/science/qmcpack/Makefile b/science/qmcpack/Makefile index fdc0db74169a..f3e3506b39be 100644 --- a/science/qmcpack/Makefile +++ b/science/qmcpack/Makefile @@ -1,67 +1,68 @@ PORTNAME= qmcpack DISTVERSIONPREFIX= v DISTVERSION= 3.17.1 +PORTREVISION= 1 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Many-body ab initio Quantum Monte Carlo code for quantum chemistry WWW= https://www.qmcpack.org/ \ https://github.com/QMCPACK/qmcpack LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= undefined reference to `__atomic_load' .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libfftw3.so:math/fftw3 \ libhdf5.so:science/hdf5 \ libmpich.so:net/mpich \ libopenblas.so:math/openblas \ libsz.so:science/libaec TEST_DEPENDS= bash:shells/bash USES= cmake:testing compiler:c++17-lang fortran gnome localbase:ldflags pkgconfig python shebangfix USE_GNOME= libxml2 USE_GITHUB= yes GH_ACCOUNT= ${PORTNAME:tu} SHEBANG_FILES= src/QMCTools/gpaw4qmcpack.py \ ${NEXUS_PLIST_FILES:C/^/nexus\//} SHEBANG_GLOB= check.sh CMAKE_OFF= BUILD_UNIT_TESTS CMAKE_ARGS= -DFREEBSD_PYTHON_VER=${PYTHON_VER} CMAKE_TESTING_ON= BUILD_UNIT_TESTS # many tests fail, see https://github.com/QMCPACK/qmcpack/issues/4274 PROGS= convert4qmc convertpw4qmc gpaw4qmcpack.py ppconvert qmc-check-affinity qmc-extract-eshdf-kvectors qmc-get-supercell qmcfinitesize qmcpack qmcpack.settings PLIST_FILES= ${PROGS:C/^/bin\//} BINARY_ALIAS= python=${PYTHON_CMD} python3=${PYTHON_CMD} OPTIONS_DEFINE= NEXUS OPTIONS_DEFAULT= NEXUS OPTIONS_SUB= yes NEXUS_DESC= Install Nexus (workflow utility) alongside QMCPACK NEXUS_CMAKE_BOOL= INSTALL_NEXUS NEXUS_PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyscf>0:science/py-pyscf@${PY_FLAVOR} NEXUS_BUILD_DEPENDS= ${NEXUS_PY_DEPENDS} NEXUS_RUN_DEPENDS= ${NEXUS_PY_DEPENDS} NEXUS_PLIST_FILES= bin/eshdf \ bin/nxs-redo \ bin/nxs-sim \ bin/nxs-test \ bin/qdens \ bin/qdens-radial \ bin/qmc-fit \ bin/qmca .include diff --git a/science/quantum-espresso/Makefile b/science/quantum-espresso/Makefile index 61c3ead87a3b..9557826c3c85 100644 --- a/science/quantum-espresso/Makefile +++ b/science/quantum-espresso/Makefile @@ -1,91 +1,92 @@ PORTNAME= quantum-espresso DISTVERSIONPREFIX= qe- DISTVERSION= 7.4 +PORTREVISION= 1 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Package for research in electronic structure, simulation, optimization WWW= https://www.quantum-espresso.org \ https://gitlab.com/QEF/q-e \ https://github.com/QEF/q-e LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/License BROKEN_aarch64= compilation fails: cannot find an intrinsic module named 'ieee_arithmetic', see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278942 BROKEN_armv6= fails to build: gfortran8: error: iotk_base_tmp.f90: No such file or directory BROKEN_armv7= fails to build: gfortran8: error: iotk_base_tmp.f90: No such file or directory BUILD_DEPENDS= fox-xml>0:textproc/fox-xml \ bash:shells/bash LIB_DEPENDS= libblas.so:math/blas \ libfftw3.so:math/fftw3 \ liblapack.so:math/lapack \ libopenblas.so:math/openblas USES= cmake fortran python shebangfix GNU_CONFIGURE= yes USE_GITHUB= yes GH_ACCOUNT= QEF GH_PROJECT= q-e GH_TUPLE= anharmonic:d3q:de47183:anharmonic_d3q/external/d3q \ pietrodelugas:fox:3453648e6837658b747b895bb7bef4b1ed2eac40:pietrodelugas_fox/external/fox \ Reference-LAPACK:lapack:12d825396fcef1e0a1b27be9f119f9e554621e55:Reference_LAPACK_lapack/external/lapack \ libmbd:libmbd:89a3cc1:libmbd_libmbd/external/mbd \ QMCPACK:pw2qmcpack:f72ab25fa4ea755c1b4b230ae8074b47d5509c70:QMCPACK_pw2qmcpack/external/pw2qmcpack \ dceresoli:qe-gipaw:490046d:dceresoli_qe_gipaw/external/qe-gipaw \ wannier-developers:wannier90:1d6b187374a2d50b509e5e79e2cab01a79ff7ce1:wannier_developers_wannier90/external/wannier90 USE_GITLAB= nodefault GL_TUPLE= max-centre/components:devicexlib:a6b89ef:devxlib/external/devxlib SHEBANG_FILES= configure SHEBANG_GLOB= *.sh *.py #MAKE_ARGS= TOPDIR=${WRKSRC} #BINARY_ALIAS= make=gmake cpp=/usr/local/bin/cpp${GCC_DEFAULT} FFLAGS+= ${MPI_CFLAGS} LDFLAGS+= ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so -lm \ ${MPI_LIBS} BINARY_ALIAS= git=false wget=false curl=false OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= OPENMPI MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi .include . if ${GCC_DEFAULT} >= 10 FFLAGS+= -fallow-argument-mismatch # workaround for https://github.com/QEF/q-e/issues/34 . endif post-extract: @${RM} \ ${WRKSRC}/archive/lapack-3.6.1.tgz \ ${WRKSRC}/PP/src/bgw2pw.f90.orig @cd ${WRKSRC} && ${MKDIR} FoX && ${LN} -s ${LOCALBASE}/include FoX/finclude post-install: # remove wannier90 binaries that come from the bundled wannier90 package (reported to the upstream vie e-mail on 2024-03-11) .for p in wannier90.x postw90.x w90chk2chk.x ${RM} ${STAGEDIR}${PREFIX}/bin/${p} .endfor # strip binaries @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*.x do-test: @cd ${WRKSRC}/test-suite && ${GMAKE} run-tests run-examples: build .for c in PP PW PWCOND PHonon @cd ${WRKSRC}/$c/examples && PREFIX=${STAGEDIR}${PREFIX} ./run_all_examples .endfor # all tests fail, possibly due to wrong pseudo-potentials, see https://gitlab.com/QEF/q-e/-/issues/745 .include diff --git a/science/quantum-jet/Makefile b/science/quantum-jet/Makefile index e6f620fd047b..26ac0db1bbc6 100644 --- a/science/quantum-jet/Makefile +++ b/science/quantum-jet/Makefile @@ -1,37 +1,37 @@ PORTNAME= quantum-jet DISTVERSIONPREFIX= v DISTVERSION= 0.2.2-2 -PORTREVISION= 3 +PORTREVISION= 4 DISTVERSIONSUFFIX= -g99c55ce CATEGORIES= science # quantum-computing MAINTAINER= yuri@FreeBSD.org COMMENT= Cross-platform header-only library for simulating quantum circuits WWW= https://github.com/XanaduAI/jet LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= openblas>0:math/openblas RUN_DEPENDS= taskflow>0:devel/taskflow \ openblas>0:math/openblas TEST_DEPENDS= git:devel/git USES= cmake:testing compiler:c++17-lang USE_GITHUB= yes GH_ACCOUNT= XanaduAI GH_PROJECT= jet CMAKE_TESTING_ON= BUILD_TESTS NO_BUILD= yes NO_ARCH= yes do-configure: # no configure because it clones the taskflow repository @${NADA} do-install: # tests fail to compile, see https://github.com/XanaduAI/jet/issues/77 @cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX} .include diff --git a/science/siconos/Makefile b/science/siconos/Makefile index 7d875913ff18..463c424c080d 100644 --- a/science/siconos/Makefile +++ b/science/siconos/Makefile @@ -1,53 +1,53 @@ PORTNAME= siconos DISTVERSION= 4.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Simulation framework for nonsmooth dynamical systems WWW= https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/index.html LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_i386= non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp', see https://github.com/siconos/siconos/issues/416 BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ help2man:misc/help2man LIB_DEPENDS= libBulletCollision.so:devel/bullet \ libcxsparse.so:math/suitesparse-cxsparse \ libgmp.so:math/gmp \ libldl.so:math/suitesparse-ldl \ libopenblas.so:math/openblas TEST_DEPENDS= cppunit>0:devel/cppunit USES= cmake:testing compiler:c++17-lang fortran pkgconfig USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_ARGS= -DFREEBSD_PYTHON_VER=${PYTHON_VER} CMAKE_ON= CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT SICONOS_SYSTEM_WIDE_INSTALL CMAKE_OFF= WITH_GIT WITH_TESTING CMAKE_TESTING_ON= WITH_TESTING # tests are broken, see https://github.com/siconos/siconos/issues/415 CFLAGS+= -DCLOCKTIME -DCLOCKS_PER_SEC=128 # workaround for 'Undefined symbol "ftime"', see https://github.com/siconos/siconos/issues/411 BINARY_ALIAS= python3=${PYTHON_CMD} OPTIONS_DEFINE= PYTHON OPTIONS_DEFAULT= #PYTHON OPTIONS_SUB= yes PYTHON_CMAKE_BOOL= WITH_PYTHON_WRAPPER PYTHON_USES= python PYTHON_USES_OFF= python:build PYTHON_PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \ swig:devel/swig PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS} PYTHON_BROKEN= compilation fails, see https://github.com/siconos/siconos/issues/501 .include diff --git a/science/simbody/Makefile b/science/simbody/Makefile index 2cd984a392c6..866ee6ffbdff 100644 --- a/science/simbody/Makefile +++ b/science/simbody/Makefile @@ -1,52 +1,52 @@ PORTNAME= simbody DISTVERSIONPREFIX= Simbody- DISTVERSION= 3.7 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= science biology PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/ PATCHFILES= 1b306f66bcd15e9bf6b27882e2daa6375ac4cd2e.patch:-p1 MAINTAINER= yuri@FreeBSD.org COMMENT= Multibody dynamics library for (bio)mechanical systems simulation WWW= https://simtk.org/projects/simbody LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libopenblas.so:math/openblas USES= blaslapack:openblas cmake compiler:c++11-lang fortran # fortran only for openblas USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_OFF= BUILD_TESTING CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so -DFREEBSD_EXAMPLESDIR=${EXAMPLESDIR} OPTIONS_DEFINE= DOCS VISUALIZER EXAMPLE_PROGRAMS # EXAMPLE_PROGRAMS significanly increases the build time and package size, so it is not called EXAMPLES to prevent it from being installed by default OPTIONS_DEFAULT= VISUALIZER OPTIONS_SUB= yes DOCS_CMAKE_BOOL= INSTALL_DOCS VISUALIZER_DESC= Build the visualizer component VISUALIZER_CMAKE_BOOL= BUILD_VISUALIZER VISUALIZER_USES= gl xorg VISUALIZER_USE= GL=gl,glu,glut XORG=xi,xmu EXAMPLE_PROGRAMS_DESC= Build and install example programs EXAMPLE_PROGRAMS_CMAKE_BOOL= BUILD_EXAMPLES PORTDOCS= * # this port installs examples into ${EXAMPLESDIR} when EXAMPLE_PROGRAMS=ON, but check-plist doesn't complain for some reason post-install-DOCS-on: # https://github.com/simbody/simbody/issues/652 @${RMDIR} ${STAGEDIR}${DOCSDIR}/api do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/science/simple-dftd3/Makefile b/science/simple-dftd3/Makefile index a6d6db2e8708..843579f49f3f 100644 --- a/science/simple-dftd3/Makefile +++ b/science/simple-dftd3/Makefile @@ -1,32 +1,32 @@ PORTNAME= simple-dftd3 DISTVERSIONPREFIX= v DISTVERSION= 1.1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Reimplementation of the DFT-D3 program WWW= https://github.com/awvwgk/simple-dftd3 LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory BUILD_DEPENDS= mstore>0:science/mstore LIB_DEPENDS= libmctc-lib.so:science/mctc-lib \ libopenblas.so:math/openblas \ libtoml-f.so:textproc/toml-f USES= cmake:testing fortran USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= dftd3 CMAKE_ON= BUILD_SHARED_LIBS post-patch: # see https://github.com/toml-f/toml-f/issues/51 @${REINPLACE_CMD} -e 's|$${CMAKE_Fortran_COMPILER_ID}-$${CMAKE_Fortran_COMPILER_VERSION}||' ${WRKSRC}/config/CMakeLists.txt .include diff --git a/science/sirius/Makefile b/science/sirius/Makefile index 8bbe2b24b7e1..f87146a0d93e 100644 --- a/science/sirius/Makefile +++ b/science/sirius/Makefile @@ -1,53 +1,54 @@ PORTNAME= sirius DISTVERSIONPREFIX= v DISTVERSION= 7.6.0 +PORTREVISION= 1 CATEGORIES= science PKGNAMESUFFIX= -quantum-chemistry # other software also has the name "sirius" MAINTAINER= yuri@FreeBSD.org COMMENT= Domain specific library for electronic structure calculations WWW= https://github.com/electronic-structure/SIRIUS LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_FreeBSD_15= clang crashes, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276196 LIB_DEPENDS= libcosta.so:math/costa \ libgsl.so:math/gsl \ libhdf5.so:science/hdf5 \ libopenblas.so:math/openblas \ libscalapack.so:math/scalapack \ libspfft.so:math/spfft \ libspla.so:math/spla \ libsymspg.so:science/spglib \ libxc.so:science/libxc USES= cmake:testing compiler:c++14-lang eigen:3,test fortran pkgconfig USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= electronic-structure GH_PROJECT= SIRIUS CMAKE_OFF= SIRIUS_USE_MEMORY_POOL # depends on umpire - not yet ported OPTIONS_DEFINE= NLCGLIB OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= MPICH # NLCGLIB NLCGLIB_DESC= Enable nlcglib NLCGLIB_CMAKE_BOOL= USE_NLCGLIB NLCGLIB_LIB_DEPENDS= libnlcglib.so:science/nlcglib \ libkokkoscore.so:devel/kokkos NLCGLIB_BROKEN= build breaks, see https://github.com/electronic-structure/SIRIUS/issues/759 MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi # pre-7.4.0: many tests fail, see https://github.com/electronic-structure/SIRIUS/issues/760 # 7.6.0: several tests fail: Can't divide 1 ranks into groups of size 4 .include diff --git a/science/tblite/Makefile b/science/tblite/Makefile index 4ea6acc2b2fa..1764e8c96a3f 100644 --- a/science/tblite/Makefile +++ b/science/tblite/Makefile @@ -1,36 +1,37 @@ PORTNAME= tblite DISTVERSIONPREFIX= v DISTVERSION= 0.4.0 +PORTREVISION= 1 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Light-weight tight-binding framework WWW= https://github.com/tblite/tblite LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= mstore>0:science/mstore # unclear if this is really needed LIB_DEPENDS= libdftd4.so:science/dftd4 \ libmctc-lib.so:science/mctc-lib \ libmulticharge.so:science/multicharge \ libopenblas.so:math/openblas \ libs-dftd3.so:science/simple-dftd3 \ libtoml-f.so:textproc/toml-f USES= cmake:testing fortran USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= WITH_TESTS CMAKE_TESTING_ON= WITH_TESTS post-patch: # see https://github.com/toml-f/toml-f/issues/51 @${REINPLACE_CMD} -e 's|$${CMAKE_Fortran_COMPILER_ID}-$${CMAKE_Fortran_COMPILER_VERSION}||' ${WRKSRC}/config/CMakeLists.txt .include diff --git a/science/ukrmol+/Makefile b/science/ukrmol+/Makefile index 0920e683d6bd..6d088907cf30 100644 --- a/science/ukrmol+/Makefile +++ b/science/ukrmol+/Makefile @@ -1,53 +1,53 @@ PORTNAME= ukrmol+ DISTVERSION= 3.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= science # chemistry, physics MASTER_SITES= https://zenodo.org/record/5799134/files/:out \ https://zenodo.org/record/5799110/files/:in # the project is a sum of two projects, "in" and "out" DISTFILES= ukrmol-out-${DISTVERSION}${EXTRACT_SUFX}:out \ ukrmol-in-${DISTVERSION}${EXTRACT_SUFX}:in MAINTAINER= yuri@FreeBSD.org COMMENT= Code to compute electron and positron scattering from molecules WWW= https://zenodo.org/record/5799134 #.Yo1lCknMKV4 LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= fails to build: Cannot open module file 'ieee_arithmetic.mod' for reading LIB_DEPENDS= libGBTO.so:science/gbtolib \ libopenblas.so:math/openblas USES= cmake:testing fortran python:test CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= WITH_MPI BUILD_DOC WITH_GIT BUILD_TESTING CMAKE_TESTING_ON= BUILD_TESTING CMAKE_ARGS= -DFREEBSD_DOCSDIR=${DOCSDIR} \ -DFREEBSD_PYTHON_VER=${PYTHON_VER} CMAKE_ARGS+= -DUKRMOL_OUT_DIR=${WRKSRC_OUT} # the "out" project is built and installed from the "in" project FFLAGS+= -I${LOCALBASE}/include/gbtolib \ -fdefault-integer-8 LDFLAGS+= -lGBTO WRKSRC_OUT= ${WRKDIR}/ukrmol-out-${PORTVERSION} WRKSRC_IN= ${WRKDIR}/ukrmol-in-${PORTVERSION} WRKSRC= ${WRKSRC_IN} OPTIONS_DEFINE= DOCS PORTDOCS= * post-extract: @cd ${WRKDIR} && ${LN} -s ukrmol-out-${PORTVERSION} ukrmol-out post-install: # remove GBTOlib that it bundles @cd ${STAGEDIR}${PREFIX} && \ ${RM} -r bin/basis_read bin/print_orbital_table bin/scatci_integrals include/gbtolib lib/libGBTO.so # remove an empty directory @${RMDIR} ${STAGEDIR}${PREFIX}/include/den .include diff --git a/science/xtb/Makefile b/science/xtb/Makefile index 8e62d7311f2c..e3e2acdca569 100644 --- a/science/xtb/Makefile +++ b/science/xtb/Makefile @@ -1,29 +1,29 @@ PORTNAME= xtb DISTVERSIONPREFIX= v DISTVERSION= 6.5.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= science MAINTAINER= ports@FreeBSD.org COMMENT= Semiempirical Extended Tight-Binding Program Package WWW= https://github.com/grimme-lab/xtb LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif LIB_DEPENDS= libmctc-lib.so:science/mctc-lib TEST_DEPENDS= test-drive>0:devel/test-drive USES= blaslapack:openblas cmake:testing fortran blaslapack:openblas USE_GITHUB= yes GH_ACCOUNT= grimme-lab USE_LDCONFIG= yes FFLAGS+= -std=legacy .include