diff --git a/biology/bolt-lmm/Makefile b/biology/bolt-lmm/Makefile index 39711d551b40..7a8aae5635b4 100644 --- a/biology/bolt-lmm/Makefile +++ b/biology/bolt-lmm/Makefile @@ -1,52 +1,52 @@ PORTNAME= bolt-lmm DISTVERSION= 2.3.6 -PORTREVISION= 6 +PORTREVISION= 7 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/gemma/Makefile b/biology/gemma/Makefile index 8ad9c168566e..1bab682d681b 100644 --- a/biology/gemma/Makefile +++ b/biology/gemma/Makefile @@ -1,38 +1,38 @@ PORTNAME= gemma DISTVERSION= 0.98.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= biology MAINTAINER= jwb@FreeBSD.org COMMENT= Genome-wide Efficient Mixed Model Association WWW= 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 4d88ae60d13f..3eb1d24acf4c 100644 --- a/biology/plink/Makefile +++ b/biology/plink/Makefile @@ -1,59 +1,59 @@ PORTNAME= plink DISTVERSIONPREFIX= v DISTVERSION= 1.90b6.17 -PORTREVISION= 2 +PORTREVISION= 3 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 sparc64 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 5fa566f7981f..d67a4a4868fc 100644 --- a/cad/gmsh/Makefile +++ b/cad/gmsh/Makefile @@ -1,70 +1,70 @@ PORTNAME= gmsh DISTVERSION= 4.11.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= cad MASTER_SITES= http://gmsh.info/src/ DISTNAME= ${PORTNAME}-${PORTVERSION}-source DIST_SUBDIR= gmsh MAINTAINER= wen@FreeBSD.org COMMENT= Automatic 3D finite element mesh generator WWW= https://www.geuz.org/gmsh/ LICENSE= AGPLv3+ APACHE20 GPLv3+ GPLv2+ LGPL21 LICENSE_COMB= multi LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \ libfontconfig.so:x11-fonts/fontconfig \ libgmp.so:math/gmp \ libhdf5.so:science/hdf5 \ libpng.so:graphics/png \ libsz.so:science/libaec \ libfreetype.so:print/freetype2 RUN_DEPENDS= getdp:science/getdp USES= blaslapack compiler:c++11-lang cmake fortran gl jpeg tar:tgz \ xorg USE_GL= gl glu USE_XORG= ice sm x11 xcursor xext xinerama xfixes xft xrender CMAKE_ARGS= -DCMAKE_SKIP_RPATH:BOOL=YES CXXFLAGS_powerpc64= -mvsx LDFLAGS+= -lexecinfo OPTIONS_DEFINE= CGNS DOCS MED OCC SHARED 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 SHARED_DESC= Build shared library and install header files 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_CMAKE_BOOL= INSTALL_DOCS 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 SHARED_CMAKE_BOOL= ENABLE_BUILD_SHARED SHARED_USE= LDCONFIG=yes STATIC_CMAKE_BOOL= ENABLE_BUILD_LIB post-install-SHARED-on: ${RM} -r ${STAGEDIR}/wrkdirs .include diff --git a/editors/openoffice-4/Makefile b/editors/openoffice-4/Makefile index b366bc684755..39d192072f3e 100644 --- a/editors/openoffice-4/Makefile +++ b/editors/openoffice-4/Makefile @@ -1,529 +1,529 @@ 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 \ libpng.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 jpeg perl5 pkgconfig \ shared-mime-info ssl tar:bzip2 xorg USE_GL= gl glu USE_GNOME= gdkpixbuf2 gdkpixbuf2xlib gtk20 libxslt libidl glib20 USE_JAVA= yes JAVA_BUILD= jdk JAVA_RUN= jdk 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= 14 # From solenv/inc/minor.mk SOURCEREVISION LAST_MINOR BUILD AOOTAG= AOO4114m1\(Build:9811\) GITREVISION= a0d24fb625 EXTSRC= ApacheOpenOffice.ext_sources.${AOOVERSION1}.x.x.20150707.tar.gz AOOVERSION= ${AOOVERSION1}.${AOOVERSION2}.${AOOVERSION3} AOOXXX= ${AOOVERSION1}${AOOVERSION2}${AOOVERSION3} AOOSUFFIX= ${PORTVERSION} 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 ${OPSYS} == FreeBSD && ( \ (${OSVERSION} >= 1400051 && ${OSVERSION} < 1400057)) BROKEN= please update FreeBSD base system first to fix an ABI incompatibility .endif .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-symbols .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 63e6ffbc2f6a..79d9cbcea32d 100644 --- a/editors/openoffice-devel/Makefile +++ b/editors/openoffice-devel/Makefile @@ -1,531 +1,531 @@ PORTNAME= apache-openoffice PORTVERSION= ${AOOVERSION1}.${AOOVERSION2}.${TIMESTAMP} -PORTREVISION= 3 +PORTREVISION= 4 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}/include/boost/shared_ptr.hpp:devel/boost-libs \ ${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 \ libpng.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 jpeg perl5 pkgconfig \ python:3.9 shared-mime-info ssl tar:${TARTYPE} xorg USE_GL= gl glu USE_GNOME= gdkpixbuf2 gdkpixbuf2xlib gtk20 libxslt libidl glib20 USE_JAVA= yes JAVA_BUILD= jdk JAVA_RUN= jdk 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= e501375395 TIMESTAMP= 1678061694 #AOORC=rc3 EXTSRC= ApacheOpenOffice.ext_sources.${AOOVERSION1}.x.x.20150707.tar.gz AOOVERSION= ${AOOVERSION1}.${AOOVERSION2}.${AOOVERSION3} AOOXXX= ${AOOVERSION1}${AOOVERSION2}${AOOVERSION3} .if defined(AOORC) AOOSUFFIX= ${AOOVERSION}-${AOORC} AOOSRC= apache-openoffice-${AOOVERSION}-${GITREVISION}-src${EXTRACT_SUFX} AOODISTTAG= TARTYPE= bzip2 .else AOOSUFFIX= ${PORTVERSION} 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 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 ${OPSYS} == FreeBSD && ( \ (${OSVERSION} >= 1400051 && ${OSVERSION} < 1400057)) BROKEN= please update FreeBSD base system first to fix an ABI incompatibility .endif .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-symbols .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 \ 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/french/aster/Makefile b/french/aster/Makefile index 5a06165bf505..821af1c997ad 100644 --- a/french/aster/Makefile +++ b/french/aster/Makefile @@ -1,434 +1,434 @@ PORTNAME= aster DISTVERSION= ${ASTER_DISTVERSION} -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= french cad MAINTAINER= thierry@FreeBSD.org COMMENT= Code_Aster finite element method solver WWW= http://www.code-aster.org/ LICENSE= GPLv2 NOT_FOR_ARCHS= armv6 armv7 i386 mips powerpc NOT_FOR_ARCHS_REASON= ARG_MAX is too small for Code_Aster on 32 bits systems #----------------------------------------------------------------------- # You may define these options: # # - WITH_ZSH or WITH_BASH or WITH_KSH: select a shell among # zsh (default), bash or ksh; # - WITH_ED: select an editor accepting '-display' (e.g. gvim, nedit); # - WITHOUT_ASTK_CLI: won't use the GUI from this machine; # - WITHOUT_GMSH: don't install GMSH (a mesh generator); # - WITHOUT_GRACE: don't install Grace (used to create 2D graph); # - WITH_MUMPS: install the interface between Code_Aster and MUMPS (experimental) # #----------------------------------------------------------------------- BUILD_DEPENDS+= astk-serveur>0:cad/astk-serveur \ ${SHELL_INSTALL_ASTER}:shells/${SHIADEP} \ gnproc:sysutils/coreutils \ bash:shells/bash \ getopt>0:misc/getopt \ xterm:x11/xterm \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR} # pylupdate5:textproc/py-qt5-xml LIB_DEPENDS+= libhdf5-110.so:science/hdf5-110 \ libscotch.so:cad/scotch \ libmetis.so:math/metis \ libmed.so:french/med \ libAsterInterface.so:science/tfel-edf RUN_DEPENDS+= ${SHELL_INSTALL_ASTER}:shells/${SHIADEP} \ astk-serveur>0:cad/astk-serveur \ xterm:x11/xterm \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR} USES= bison blaslapack:openblas fortran gettext python qt:5 tk USE_BINUTILS= yes USE_QT= linguisttools:build #CONFLICTS_BUILD=${PYTHON_PKGNAMEPREFIX}cysignals-1.* HAS_CONFIGURE= yes CFLAGS+= -I${LOCALBASE}/include/hdf5-110 MAKE_ENV= INCLUDES="${LOCALBASE}/include" \ INCLUDEDIR="${LOCALBASE}/include" \ LD_PRELOAD="${LOCALBASE}/lib/gcc${_GCC_VER}/libgcc_s.so.1" \ PYTHONPATH="${PYTHON_SITELIBDIR}:${LOCALBASE}/aster/ASTK/ASTK_SERV" \ PYTHONIOENCODING="utf-8" LANG=C LC_ALL="en_US.UTF-8" \ LINKFLAGS="${LDFLAGS}" LD_LIBRARY_PATH="${LOCALBASE}/lib/gcc${_GCC_VER}" REINPLACE_ARGS= -i "" BINARY_ALIAS= python=${PYTHON_CMD} VER= ${PORTVERSION:R} VE= ${VER:R} WRKSRC= ${WRKDIR}/${PORTNAME}-full-src-${VER} PLIST_SUB= VE=${VE} .if defined(WITHOUT_ASTK_CLI) SUB_FILES= pkg-message.sans-astk .else SUB_FILES= pkg-message .endif SUB_LIST= tools_dir=${tools_dir} INTERACTIVE_SCRIPTS= check_compilers.py setup.py .include "${.CURDIR}/../../french/aster/bsd.aster.mk" .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300068 BROKEN= a larger value of ARG_MAX is needed for Code_Aster, please upgrade your system .endif .if ${ARCH} == "i386" FLAGARCH= -DP_LINUX -DLINUX .else FLAGARCH= -DLINUX64 .endif .if defined(WITH_DEBUG) DEBUG_FLAGS= --debug CFLAGS+= -D__DEBUG_ALLOCATE__ FFLAGS+= -D__DEBUG_ALLOCATE__ MAKE_ENV+= FCFLAGS="-g ${FFLAGS:C|O2|O0|} -fno-tree-dse ${FLAGARCH}" .else MAKE_ENV+= FCFLAGS="${FFLAGS} -fno-tree-dse ${FLAGARCH}" .endif .if !defined(WITHOUT_ASTK_CLI) RUN_DEPENDS+= astk-client>0:cad/astk-client PLIST_SUB+= ASTK_CLIENT="" ASTKDIR=${ASTKDIR} .else PLIST_SUB+= ASTK_CLIENT="@comment " ASTKDIR="" .endif .if !defined(WITHOUT_GMSH) RUN_DEPENDS+= ${LOCALBASE}/bin/gmsh:cad/gmsh PLIST_SUB+= GMSH="" .else PLIST_SUB+= GMSH="@comment " .endif .if !defined(WITHOUT_GRACE) RUN_DEPENDS+= xmgrace:math/grace PLIST_SUB+= GRACE="" .else PLIST_SUB+= GRACE="@comment " .endif .if defined(WITH_BOOST) LIB_DEPENDS+= ${PY_BOOST} .endif .if !defined(WITH_MPI) MPISEQ= -lmpiseq MUMPSLIB= -L${LOCALBASE}/lib -ldmumps -lzmumps -lsmumps -lcmumps -lmumps_common -lpord ${MPISEQ} LIB_DEPENDS+= libmpiseq.so.5:math/mumps .else BUILD_DEPENDS+= ${LOCALBASE}/lib/libscalapack.a:math/scalapack MUMPSLIB= -L${LOCALBASE}/lib -ldmumps -lzmumps -lsmumps -lcmumps -lmumps_common -lpord -lscalapack -lexecinfo -L${LOCALBASE}/lib -lmpi LIB_DEPENDS+= libcmumps.so.5:math/mumps .endif .if defined(WITH_MPI) LIB_DEPENDS+= libmpi.so:net/mpich HOME_MPI= ${LOCALBASE} .endif .if defined(WITH_ZSH) SHIA= zsh .elif defined(WITH_BASH) SHIA= bash .elif defined(WITH_KSH) SHIA= ksh93 .elif exists(${LOCALBASE}/bin/zsh) SHIA= zsh .elif exists(${LOCALBASE}/bin/bash) SHIA= bash .elif exists(${LOCALBASE}/bin/ksh93) SHIA= ksh93 .else SHIA= zsh .endif SHIADEP= ${SHIA} .if !defined(WITH_ED) . if exists(${LOCALBASE}/bin/nedit) WITH_ED= nedit RUN_DEPENDS+= ${LOCALBASE}/bin/nedit:editors/nedit . elif exists(${LOCALBASE}/bin/gvim) WITH_ED= gvim RUN_DEPENDS+= ${LOCALBASE}/bin/gvim:editors/vim . elif exists(${LOCALBASE}/bin/emacs) WITH_ED= emacs RUN_DEPENDS+= ${LOCALBASE}/bin/emacs:editors/emacs . elif exists(${LOCALBASE}/bin/gedit) WITH_ED= gedit RUN_DEPENDS+= ${LOCALBASE}/bin/gedit:editors/gedit . elif exists(${LOCALBASE}/bin/xedit) WITH_ED= xedit RUN_DEPENDS+= ${LOCALBASE}/bin/xedit:x11/xedit . else WITH_ED= vi . endif .endif INST_DAT= elements INST_SH= as_run parallel_cp PFX2FIX= bin/as_run etc/codeaster/aster etc/codeaster/profile.sh \ ${VE}/aster.conf ${VE}/lib/aster/aster_pkginfo.py \ ${VE}/share/aster/CTestTestfile.cmake \ ${VE}/include/aster/asterf_config.h \ ${VE}/include/aster/asterc_config.h \ ${VE}/share/aster/execute_codeaster \ ${VE}/share/aster/config.txt ${VE}/share/aster/profile.sh POSTPY2FIX= post-patch-waf.engine post-patch-data__post_install POSTBASH2FIX= execute_codeaster create_install_script inst_dir= ${PREFIX}/${PORTNAME} tools_dir= ${PREFIX}/${PORTNAME}/outils tools= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis gnuplot .if !defined(WITHOUT_GMSH) tools+= gmsh .endif .if !defined(WITHOUT_GRACE) tools+= gracebat xmgrace .endif v_ifdef= ${OPSYS:tu} SHELL_INSTALL_ASTER= ${LOCALBASE}/bin/${SHIA} tcl_dir= ${LOCALBASE} hdf_dir= ${LOCALBASE} lib_math= "-L${LOCALBASE}/lib ${BLASLIB} ${LAPACKLIB} -lscotch -lscotcherr" LASTKDIR?= ${PORTNAME}/ASTK/ASTK_CLIENT ASTKDIR= ${LOCALBASE}/${LASTKDIR} BASH2RC= products_data.py ExportPATH?= /tmp/maillages pre-configure: ${REINPLACE_CMD} -e 's|PREFER_SHARED_LIBS=False|PREFER_SHARED_LIBS=True|' \ -e 's|/opt/aster|${STAGEDIR}${inst_dir}|' ${WRKSRC}/setup.cfg ${REINPLACE_CMD} -e 's|?ASTER_ROOT?|${STAGEDIR}${inst_dir}|' \ ${WRKSRC}/products.py ${REINPLACE_CMD} -e "s|'gfortran'|'${FC}'|g;s|'gcc'|'${CC}'|g" \ -e "s|'g++'|'${CXX}'|g" ${WRKSRC}/check_compilers.py ${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" \ -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|" \ -e "s|%%WRKDIR%%|${WRKDIR}|" ${WRKSRC}/as_setup.py .for sh in ${BASH2RC} ${REINPLACE_CMD} -e 's|/bin/bash|${SHELL_INSTALL_ASTER}|' ${WRKSRC}/${sh} .endfor ${REINPLACE_CMD} -e 's|%%PYTHON_ABIVER%%|${PYTHON_ABIVER}|' ${WRKSRC}/setup.py ${ECHO_CMD} "_install_hdf5 = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_med = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_tcl = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_tk = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_Pmw = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_Numeric = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_gmsh = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_gmsh2 = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_gibi = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_grace = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "XMGRACE = 'xmgrace'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_homard = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_eficas = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_astk = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_astk_serv = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_metis = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_mfront = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_mumps = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_omniORB = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_omniORBpy = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_pylotage = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_crpcrs = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_aster_Linux = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "_install_scotch = False" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "OPT_ENV = 'verbose=True'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "PYTHONPATH = '${PYTHON_SITELIBDIR}:${LOCALBASE}/aster/ASTK/ASTK_SERV'"\ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "PYTHON_INCLUDE = '${PYTHON_INCLUDEDIR}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_PYTHON = '${PYTHONBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "PYTHON_EXE = '${PYTHON_CMD}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_SCOTCH = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_METIS = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_GMSH = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_GIBI = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_HOMARD = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "INCLUDEDIR = ['${LOCALBASE}/include/hdf5-110', '${LOCALBASE}/include', '${LOCALBASE}/include/metis', ]"\ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_MUMPS = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_MFRONT = '${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "MUMPSLIB = '${MUMPSLIB}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CC='${CC}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "gcc='${CC}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CXX='${CXX}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "LD='${FC}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "F90='${FC}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "MATHLIB='${lib_math} ${LDFLAGS} -lgfortran -lm -lkvm'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "OTHERLIB='-Xlinker -export-dynamic ${MPISEQ} -lc++ -lexecinfo -lutil -lpthread -lz'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "SYSLIB='-lpthread -lz'" >> ${WRKSRC}/setup.cfg .if defined(WITH_MPI) ${ECHO_CMD} "HOME_MPI = '${HOME_MPI}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "MPIRUN = 'mpirun'" >> ${WRKSRC}/setup.cfg .else ${ECHO_CMD} "HOME_MPI = ''" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "MPIRUN = ''" >> ${WRKSRC}/setup.cfg .endif ${ECHO_CMD} "HOME_ZMAT = ''" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_HDF='${hdf_dir}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_MED='${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "HOME_TCL_TK='${tcl_dir}'" >> ${WRKSRC}/setup.cfg .if defined(WITH_BOOST) ${ECHO_CMD} "HOME_BOOST='${LOCALBASE}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "LIBPATH_BOOST='${LOCALBASE}/lib'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "LIBNAME_BOOST='${PY_BOOST_LIB}'" >> ${WRKSRC}/setup.cfg .endif ${ECHO_CMD} "BLASLIB='${_BLASLIB}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "LAPACKLIB='lapack'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "GZIP='/usr/bin/gzip'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "SHELL_EXECUTION='${SHELL_INSTALL_ASTER}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "TERMINAL='xterm'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "EDITOR='${WITH_ED}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CXXFLAGS='${CXXFLAGS}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CXXFLAGS_DBG='${CXXFLAGS:C|-O2|--debug|}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "LDFLAGS='${LDFLAGS}'" >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "FFLAGS='-c ${FFLAGS} -fno-tree-dse ${FLAGARCH}'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "FFLAGS_DBG='-c -g ${FFLAGS:C|O2|O0|} -fno-tree-dse ${FLAGARCH}'" \ >> ${WRKSRC}/setup.cfg .if defined(WITH_MPI) ${ECHO_CMD} "F90FLAGS='-c ${FFLAGS} -fno-tree-dse ${FLAGARCH} -I${HOME_MPI}/include'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "F90FLAGS_DBG='-c -g ${FFLAGS:C|O2|O0|} -fno-tree-dse ${FLAGARCH} -I${HOME_MPI}/include'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CFLAGS='-c ${CFLAGS} ${FLAGARCH} -I${HOME_MPI}/include'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CFLAGS_DBG='-c -g -O -pipe ${FLAGARCH} -I${HOME_MPI}/include'" \ >> ${WRKSRC}/setup.cfg .else ${ECHO_CMD} "F90FLAGS='-c ${FFLAGS} -fno-tree-dse ${FLAGARCH}'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "F90FLAGS_DBG='-c -g ${FFLAGS:C|O2|O0|} -fno-tree-dse ${FLAGARCH}'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CFLAGS='-c ${CFLAGS} ${FLAGARCH}'" \ >> ${WRKSRC}/setup.cfg ${ECHO_CMD} "CFLAGS_DBG='-c -g -O -pipe ${FLAGARCH}'" \ >> ${WRKSRC}/setup.cfg .endif .for is in ${INTERACTIVE_SCRIPTS} ${REINPLACE_CMD} -e '/should_continue()/d' \ ${WRKSRC}/${is} .endfor ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} do-configure: (cd ${CONFIGURE_WRKSRC} \ && TMPDIR=${WRKDIR} ${MAKE_ENV} ${PYTHON_CMD} setup.py ${DEBUG_FLAGS} \ --prefix=${STAGEDIR}${inst_dir} test | tee ${CONFIGURE_LOG}) @${ECHO_MSG} "---------------- Debug ------------------" ${CAT} ${CONFIGURE_WRKSRC}/setup.log @${ECHO_MSG} "------------ Fin debug ------------------" post-configure: ${MKDIR} ${STAGEDIR}${inst_dir}/etc ${CP} -R ${LOCALBASE}/aster/etc/codeaster ${STAGEDIR}${inst_dir}/etc/ ${ECHO_CMD} "#?vers : VVV?" >> ${STAGEDIR}${inst_dir}/etc/codeaster/aster ${CP} -R ${LOCALBASE}/aster/ASTK/ASTK_SERV/bin \ ${LOCALBASE}/aster/ASTK/ASTK_SERV/asrun \ ${LOCALBASE}/aster/ASTK/ASTK_SERV/share \ ${STAGEDIR}${inst_dir} ${REINPLACE_CMD} -e 's|${LOCALBASE}/aster|${STAGEDIR}${inst_dir}|' \ ${STAGEDIR}${inst_dir}/bin/as_run ${MV} ${STAGEDIR}${inst_dir}/etc/codeaster/profile_astk.sh \ ${STAGEDIR}${inst_dir}/etc/codeaster/profile.sh .for sf in etc/codeaster/profile.sh asrun/installation.py ${REINPLACE_CMD} -e 's|${LOCALBASE}/aster/ASTK/ASTK_SERV|${STAGEDIR}${inst_dir}|g' \ -e 's|${LOCALBASE}/aster|${STAGEDIR}${inst_dir}|g' \ ${STAGEDIR}${inst_dir}/${sf} .endfor pre-build: ${MKDIR} ${WRKDIR}/post_patches ${CP} ${FILESDIR}/post-patch-* ${WRKDIR}/post_patches/ .for pp in ${POSTPY2FIX} ${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' ${WRKDIR}/post_patches/${pp} .endfor do-build: (cd ${BUILD_WRKSRC} && \ TMPDIR=${WRKDIR} ${MAKE_ENV} ${PYTHON_CMD} setup.py ${DEBUG_FLAGS} install aster \ --prefix=${STAGEDIR}${inst_dir} | tee ${BUILD_WRKSRC}/build.log) do-install: # build: already did the installation @${DO_NADA} post-install: .for f in ${PFX2FIX} ${REINPLACE_CMD} -e 's|${STAGEDIR}||g' ${STAGEDIR}${inst_dir}/${f} .endfor .for f in ${POSTBASH2FIX} ${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \ ${STAGEDIR}${inst_dir}/${VE}/share/aster/${f} .endfor ${REINPLACE_CMD} -e 's|LINUX64|LINUX64, FREEBSD|' \ ${STAGEDIR}${inst_dir}/asrun/core/default_configuration.py (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ -d ${PREFIX} -f ${inst_dir:S|${PREFIX}/||}) (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -d ${PREFIX} -f ${inst_dir:S|${PREFIX}/||}) ${CP} -p ${STAGEDIR}${inst_dir}/${VE}/bin/aster \ ${STAGEDIR}${inst_dir}/${VE}/bin/asterd ${STRIP_CMD} ${STAGEDIR}${inst_dir}/${VE}/bin/aster ${SED} -e 's|%%VER%%|${VE}|' < ${FILESDIR}/astout.export \ > ${STAGEDIR}${inst_dir}/${VE}/astout.export (cd ${STAGEDIR}${inst_dir} && \ ${LN} -fs ${VE} ${STAGEDIR}${inst_dir}/STA${VE}) .for conf in config.txt profile.sh (cd ${STAGEDIR} && ${LN} -fs ${inst_dir}/${VE}/share/aster/${conf} \ ${STAGEDIR}${inst_dir}/STA${VE}/${conf}) .endfor ${MKDIR} ${STAGEDIR}${tools_dir} .for outil in ${tools} ${LN} -fs ${LOCALBASE}/bin/${outil} ${STAGEDIR}${tools_dir}/${outil} .endfor .if !defined(WITHOUT_ASTK_CLI) ${MKDIR} ${STAGEDIR}${PREFIX}/aster/ASTK/ASTK_SERV/etc/codeaster/astkrc ${LN} -fs ${ASTKDIR}/etc/astkrc/* \ ${STAGEDIR}${PREFIX}/aster/ASTK/ASTK_SERV/etc/codeaster/astkrc . for outil in astk bsf ${LN} -fs ${ASTKDIR}/bin/${outil} ${STAGEDIR}${tools_dir}/${outil} . endfor .endif ${MKDIR} ${WRKDIR}/AvoidConflictWithASTK .for f in aster.install_${VE} profile.sh ${MV} ${STAGEDIR}${inst_dir}/etc/codeaster/${f} ${WRKDIR}/AvoidConflictWithASTK/ .endfor ${RM} -r ${STAGEDIR}${inst_dir}/etc/codeaster/* .for f in aster.install_${VE} profile.sh ${MV} ${WRKDIR}/AvoidConflictWithASTK/${f} ${STAGEDIR}${inst_dir}/etc/codeaster/ .endfor .for f in aster_pkginfo.cpython-${PYTHON_SUFFIX}.pyc aster_pkginfo.cpython-${PYTHON_SUFFIX}.opt-1.pyc ${RM} ${STAGEDIR}${inst_dir}/${VE}/lib/aster/__pycache__/${f} .endfor ${FIND} ${STAGEDIR}${PREFIX} -name "*.bak" -delete .if defined(MAINTAINER_MODE) regression-test: install @${ECHO_MSG} "Note: homard must be installed to run some steps succesfully." ${MKDIR} ${ExportPATH} ${CP} ${inst_dir}/${VE}/astout.export /tmp/ (cd ${inst_dir}/${VE} && \ ${LOCALBASE}/aster/bin/as_run --list --all --vers=${VE} \ --filter='"I" not in testlist' -o /tmp/list_seq ) (cd /tmp && \ ${LOCALBASE}/aster/bin/as_run astout.export) || ${TRUE} @${ECHO_MSG} "Check /tmp/resu_test/NOOK" .endif .include diff --git a/games/leela-zero/Makefile b/games/leela-zero/Makefile index 71d88784d260..df984cd426c2 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= 5 +PORTREVISION= 6 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/games/naev/Makefile b/games/naev/Makefile index d41614feb303..86e07af068b0 100644 --- a/games/naev/Makefile +++ b/games/naev/Makefile @@ -1,52 +1,52 @@ PORTNAME= naev PORTVERSION= 0.10.6 DISTVERSIONSUFFIX= -source -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= games MASTER_SITES= https://github.com/naev/naev/releases/download/v${PORTVERSION}/ MAINTAINER= acm@FreeBSD.org COMMENT= 2D action/RPG space game WWW= https://naev.org/ LICENSE= GPLv2 GPLv3 CC-BY-3.0 CC-BY-SA-3.0 PD LICENSE_COMB= multi BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libbacktrace.so:devel/libbacktrace \ libblas.so:math/blas \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libcxsparse.so:math/suitesparse-cxsparse \ libenet.so:net/enet \ libfreetype.so:print/freetype2 \ libglpk.so:math/glpk \ libopenblas.so:math/openblas \ libpcre2-8.so:devel/pcre2 \ libphysfs.so:devel/physfs \ libpng.so:graphics/png \ libunibreak.so:textproc/libunibreak \ libvorbisfile.so:audio/libvorbis \ libwebp.so:graphics/webp \ libzip.so:archivers/libzip RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} USES= desktop-file-utils gettext gl gnome localbase:ldflags \ luajit:luajit-openresty meson openal pkgconfig python sdl \ shebangfix tar:xz USE_GL= gl glu USE_GNOME= intltool libxml2 USE_SDL= sdl2 image2 SHEBANG_GLOB= *.py *.sh MESON_ARGS= -Ddocs_c=disabled -Ddocs_lua=disabled BINARY_ALIAS= python3=${PYTHON_CMD} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} .include diff --git a/graphics/matplotplusplus/Makefile b/graphics/matplotplusplus/Makefile index c497af3eb313..a65f3f31f1c0 100644 --- a/graphics/matplotplusplus/Makefile +++ b/graphics/matplotplusplus/Makefile @@ -1,30 +1,30 @@ PORTNAME= matplotplusplus DISTVERSIONPREFIX= v DISTVERSION= 1.2.0 -PORTREVISION= 2 +PORTREVISION= 3 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_TESTS BUILD_EXAMPLES .include diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index be8dcf65a99c..972d12e318f2 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -1,250 +1,250 @@ PORTNAME= opencv DISTVERSION= 4.6.0 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= graphics PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/ PATCHFILES= 496eed950f6d0e7fd92619d47e3cec8f06e96ace.patch:-p1 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 \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libharfbuzz.so:print/harfbuzz \ libhdf5.so:science/hdf5 USES= cmake compiler:c++14-lang cpe 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 CMAKE_OFF= OPENCV_GENERATE_SETUPVARS \ BUILD_opencv_python2 \ BUILD_TESTS 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 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_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_USE= JAVA=yes 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 PROTOBUF_LIB_DEPENDS= libprotobuf.so:devel/protobuf 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_USES= gnome GTK3_USE= gnome=gtk30 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 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 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 ba0db72d7b42..05e3d5c0e09d 100644 --- a/lang/julia/Makefile +++ b/lang/julia/Makefile @@ -1,149 +1,150 @@ PORTNAME= julia DISTVERSION= 1.9.4 +PORTREVISION= 1 DISTVERSIONSUFFIX= -full CATEGORIES= lang math MASTER_SITES= https://github.com/JuliaLang/${PORTNAME}/releases/download/v${DISTVERSION}/ MAINTAINER= ports@FreeBSD.org COMMENT= Implementation of Julia, a language for technical computing WWW= https://julialang.org/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= Has not been ported to this platform for freebsd MY_DEPENDS= 7zz:archivers/7-zip BUILD_DEPENDS= patchelf:sysutils/patchelf \ cmake:devel/cmake-core \ gfortran${_GCC_VER}:lang/gcc${_GCC_VER} \ ${MY_DEPENDS} LIB_DEPENDS= libcurl.so:ftp/curl \ libdSFMT.so:math/dsfmt \ libgit2.so:devel/libgit2 \ libgmp.so:math/gmp \ libmbedtls.so:security/mbedtls \ libmpfr.so:math/mpfr \ libpcre2-8.so:devel/pcre2 \ libssh2.so:security/libssh2 \ libutf8proc.so:textproc/utf8proc \ libnghttp2.so:www/libnghttp2 \ libunwind.so:devel/libunwind \ libopenlibm.so:math/openlibm RUN_DEPENDS= ${MY_DEPENDS} \ gfortran${_GCC_VER}:lang/gcc${_GCC_VER} BUILD_DEPENDS_amd64= ittapi>0:devel/ittapi BUILD_DEPENDS_i386= ittapi>0:devel/ittapi # Do not set USES=fortran to avoid extra-linkage USES= gmake cpe python perl5 blaslapack:openblas _GCC_VER= ${GCC_DEFAULT:S/.//} CPE_VENDOR= julialang USE_CXXSTD= c++14 USE_LDCONFIG= yes MAKE_ARGS+= NO_GIT=1 \ USE_BINARYBUILDER=0 \ prefix=${PREFIX} \ JCXXFLAGS="${CXXFLAGS}" \ USE_GPL_LIBS=0 \ ARCH=x86_64 \ JULIA_CPU_TARGET=generic \ 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_MBEDTLS=1 \ USE_SYSTEM_MPFR=1 \ USE_SYSTEM_PATCHELF=1 \ USE_SYSTEM_PCRE=1 \ USE_SYSTEM_UTF8PROC=1 \ USE_SYSTEM_P7ZIP=1 \ USE_SYSTEM_BLAS=1 \ USE_SYSTEM_NGHTTP2=1 \ USE_SYSTEM_CSL=1 \ USE_SYSTEM_ZLIB=1 \ USE_SYSTEM_LIBUNWIND=1 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: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_MAKE_ARGS= FORCE_ASSERTIONS=1 \ ALL_TARGET=all \ BUNDLE_DEBUG_LIBS=1 DOCS_VARS= INSTALL_TARGET+=install-docs .include .if ${ARCH} == amd64 || ${ARCH} == i386 MAKE_ARGS+= USE_SYSTEM_ITTAPI=1 .endif 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: ${CP} ${WRKSRC}/deps/srccache/cacert-2022-10-11.pem ${WRKSRC}/usr/share/julia/cert.pem post-install: # clean up for Pkg3.jl .for file in .codecov.yml .travis.yml appveyor.yml bors.toml .gitignore source-extracted *.orig ${FIND} ${STAGEDIR}${PREFIX}/share/julia/ -name "${file}" -delete .endfor .for dir in Statistics SuiteSparse ArgTools Pkg Downloads LibCURL NetworkOptions Tar ${RM} -fr ${STAGEDIR}${PREFIX}/share/julia/stdlib/v${PORTVERSION:R}/${dir}/.github/ .endfor ${RM} -rf ${STAGEDIR}${PREFIX}/share/julia/compiled post-install-DEBUG-off: ${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* 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 post-install-DOCS-off: ${RM} -r ${STAGEDIR}${PREFIX}/${INSTALLDIR}/share/doc .include diff --git a/math/adept/Makefile b/math/adept/Makefile index a16a6d93a7a7..8884b1c64a8d 100644 --- a/math/adept/Makefile +++ b/math/adept/Makefile @@ -1,34 +1,34 @@ PORTNAME= adept DISTVERSION= 2.1.1 -PORTREVISION= 1 +PORTREVISION= 2 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 24c6e415b514..282e7212688e 100644 --- a/math/alps/Makefile +++ b/math/alps/Makefile @@ -1,32 +1,33 @@ PORTNAME= alps DISTVERSIONPREFIX= releases/ DISTVERSION= 2.0.2 +PORTREVISION= 1 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 1d9f31d0a5ea..e897ec240986 100644 --- a/math/ambit/Makefile +++ b/math/ambit/Makefile @@ -1,30 +1,31 @@ PORTNAME= ambit DISTVERSIONPREFIX= v DISTVERSION= 0.7.1 +PORTREVISION= 1 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 28f8bbd5e9f1..245aca026c9d 100644 --- a/math/armadillo/Makefile +++ b/math/armadillo/Makefile @@ -1,24 +1,25 @@ PORTNAME= armadillo DISTVERSION= 12.6.6 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= SF/arma MAINTAINER= salvadore@FreeBSD.org COMMENT= C++ linear algebra library WWW= https://arma.sourceforge.net/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libarpack.so:math/arpack-ng \ liblapack.so:math/lapack \ libsuperlu.so:math/superlu USES= blaslapack:openblas cmake:testing compiler:c++11-lang pkgconfig tar:xz USE_LDCONFIG= yes CMAKE_ARGS+= -DPKG_CONFIG_DIR=${LOCALBASE}/libdata/pkgconfig/ CMAKE_OFF= BUILD_SMOKE_TEST CMAKE_TESTING_ON= BUILD_SMOKE_TEST .include diff --git a/math/arpack++/Makefile b/math/arpack++/Makefile index cb37273bf90b..e0e674ea23f5 100644 --- a/math/arpack++/Makefile +++ b/math/arpack++/Makefile @@ -1,65 +1,65 @@ PORTNAME= arpack++ PORTVERSION= 2.4.0 -PORTREVISION= 2 +PORTREVISION= 3 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 81a795dbe070..83dac77e1126 100644 --- a/math/bcps/Makefile +++ b/math/bcps/Makefile @@ -1,34 +1,34 @@ PORTNAME= bcps DISTVERSIONPREFIX= releases/ DISTVERSION= 0.99.2 -PORTREVISION= 2 +PORTREVISION= 3 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 8c8e264b528c..f07b21e7d1d1 100644 --- a/math/blaspp/Makefile +++ b/math/blaspp/Makefile @@ -1,24 +1,24 @@ PORTNAME= blaspp DISTVERSION= 2022.05.00 -PORTREVISION= 1 +PORTREVISION= 2 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 8eab0e8d0bf6..3880f32daeb7 100644 --- a/math/blaze/Makefile +++ b/math/blaze/Makefile @@ -1,28 +1,28 @@ PORTNAME= blaze DISTVERSION= 3.8 -PORTREVISION= 2 +PORTREVISION= 3 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 8a6eee2605e8..0aa254d7c1ac 100644 --- a/math/bonmin/Makefile +++ b/math/bonmin/Makefile @@ -1,47 +1,47 @@ PORTNAME= bonmin DISTVERSIONPREFIX= releases/ DISTVERSION= 1.8.9 -PORTREVISION= 2 +PORTREVISION= 3 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 570d96ffb215..7ec7e12a5885 100644 --- a/math/casadi/Makefile +++ b/math/casadi/Makefile @@ -1,72 +1,72 @@ PORTNAME= casadi DISTVERSION= 3.6.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Symbolic framework for numeric optimization WWW= https://web.casadi.org/ 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 QPOASES OPTIONS_DEFAULT= BLASFEO BONMIN IPOPT LAPACK QPOASES 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 QPOASES_DESC= Build with qpOASES QPOASES_CMAKE_BOOL= WITH_QPOASES QPOASES_LIB_DEPENDS= libopenblas.so:math/openblas QPOASES_IMPLIES= LAPACK PORTSCOUT= limit:^.*[1-9]\..* # prevent tags like ge2 .include diff --git a/math/cbc/Makefile b/math/cbc/Makefile index 1d7affd3a611..76f9981350e7 100644 --- a/math/cbc/Makefile +++ b/math/cbc/Makefile @@ -1,50 +1,51 @@ PORTNAME= cbc DISTVERSIONPREFIX= releases/ DISTVERSION= 2.10.11 +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 84857d47e5fb..54f5c6d0478d 100644 --- a/math/ceres-solver/Makefile +++ b/math/ceres-solver/Makefile @@ -1,110 +1,110 @@ PORTNAME= ceres-solver DISTVERSION= 2.2.0 -PORTREVISION= 3 +PORTREVISION= 4 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 6319f1257f97..5bfdcacd72ef 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= 3 +PORTREVISION= 4 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 2a3e35aa4f66..5139ac8c1eba 100644 --- a/math/cgl/Makefile +++ b/math/cgl/Makefile @@ -1,36 +1,37 @@ PORTNAME= cgl DISTVERSIONPREFIX= releases/ DISTVERSION= 0.60.8 +PORTREVISION= 1 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 b5156f4b87dc..47560f69a427 100644 --- a/math/cminpack/Makefile +++ b/math/cminpack/Makefile @@ -1,28 +1,28 @@ PORTNAME= cminpack PORTVERSION= 1.3.6 DISTVERSIONPREFIX= v -PORTREVISION= 5 +PORTREVISION= 6 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 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 f779727d2179..52981cb293b1 100644 --- a/math/coinmp/Makefile +++ b/math/coinmp/Makefile @@ -1,74 +1,74 @@ PORTNAME= CoinMP DISTVERSIONPREFIX= releases/ DISTVERSION= 1.8.4 -PORTREVISION= 9 +PORTREVISION= 10 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 9c1fd02b7837..e7b58df515bf 100644 --- a/math/coinutils/Makefile +++ b/math/coinutils/Makefile @@ -1,38 +1,39 @@ PORTNAME= CoinUtils DISTVERSIONPREFIX= releases/ DISTVERSION= 2.11.10 +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 post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/coin .include diff --git a/math/cosma/Makefile b/math/cosma/Makefile index ae7acf0ab004..c3b9f79649ec 100644 --- a/math/cosma/Makefile +++ b/math/cosma/Makefile @@ -1,43 +1,43 @@ PORTNAME= cosma DISTVERSIONPREFIX= v DISTVERSION= 2.6.2 -PORTREVISION= 1 +PORTREVISION= 2 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= openmpi>0:net/openmpi LIB_DEPENDS= libopenblas.so:math/openblas RUN_DEPENDS= openmpi>0:net/openmpi 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 ca0226717fce..73b9a574bb7d 100644 --- a/math/costa/Makefile +++ b/math/costa/Makefile @@ -1,43 +1,43 @@ PORTNAME= costa DISTVERSIONPREFIX= v DISTVERSION= 2.2 -PORTREVISION= 3 +PORTREVISION= 4 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 5f66656c329c..5c7c6bc2146c 100644 --- a/math/couenne/Makefile +++ b/math/couenne/Makefile @@ -1,47 +1,47 @@ PORTNAME= couenne DISTVERSIONPREFIX= releases/ DISTVERSION= 0.5.8 -PORTREVISION= 11 +PORTREVISION= 12 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 7158fdee03da..25f68743a099 100644 --- a/math/dbcsr/Makefile +++ b/math/dbcsr/Makefile @@ -1,55 +1,56 @@ PORTNAME= dbcsr DISTVERSIONPREFIX= v DISTVERSION= 2.6.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_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= MPI OPENMP C_API # libxsmm is supposed to be supported, but cmake build lacks the corresponding option: https://github.com/cp2k/dbcsr/issues/73 OPTIONS_DEFAULT= MPI OPENMP C_API OPTIONS_SUB= yes MPI_CMAKE_BOOL= USE_MPI MPI_LIB_DEPENDS= libmpi.so:net/openmpi OPENMP_CMAKE_BOOL= USE_OPENMP C_API_DESC= Build the C API library C_API_CMAKE_BOOL= WITH_C_API .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/disco/Makefile b/math/disco/Makefile index e6534328309e..975e937651fa 100644 --- a/math/disco/Makefile +++ b/math/disco/Makefile @@ -1,48 +1,48 @@ PORTNAME= disco DISTVERSIONPREFIX= releases/ DISTVERSION= 1.0.0-33 -PORTREVISION= 6 +PORTREVISION= 7 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 56bb8b80e344..c367029c377f 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= 7 +PORTREVISION= 8 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.so:net/openmpi \ 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 a882316ec5dd..303a93ab12d6 100644 --- a/math/dune-common/Makefile +++ b/math/dune-common/Makefile @@ -1,47 +1,47 @@ PORTNAME= dune-common DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= math 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 \ openmpi>0:net/openmpi \ 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 a24471097ed7..addd8eb37d66 100644 --- a/math/dune-fem/Makefile +++ b/math/dune-fem/Makefile @@ -1,68 +1,68 @@ PORTNAME= dune-fem DISTVERSION= 2.8.0.5 -PORTREVISION= 15 +PORTREVISION= 16 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 \ ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 \ ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 6ed63325fbfc..f4bb13ea1dbe 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= 9 +PORTREVISION= 10 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= openmpi>0:net/openmpi \ 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 1b4a728ed8f2..8b3d13af914e 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= 7 +PORTREVISION= 8 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 \ openmpi>0:net/openmpi \ 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 895646c43ad5..7e0e1b974228 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= 9 +PORTREVISION= 10 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 \ openmpi>0:net/openmpi \ 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 16ba047dbfb1..0b0865f7816c 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= 16 +PORTREVISION= 17 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 \ ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 \ ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 35f6cd13dbcd..c3fa134615d7 100644 --- a/math/dune-polygongrid/Makefile +++ b/math/dune-polygongrid/Makefile @@ -1,32 +1,32 @@ PORTNAME= dune-polygongrid DISTVERSION= 2.8.0 -PORTREVISION= 7 +PORTREVISION= 8 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= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 7e688ef77954..0c47f3f0225d 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= 9 +PORTREVISION= 10 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= openmpi>0:net/openmpi \ vc>0:devel/vc LIB_DEPENDS= libdunecommon.so:math/dune-common \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb RUN_DEPENDS= openmpi>0:net/openmpi 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 88f95ad3fd13..6254d9bda08b 100644 --- a/math/dune-vtk/Makefile +++ b/math/dune-vtk/Makefile @@ -1,63 +1,63 @@ PORTNAME= dune-vtk DISTVERSION= 2.8.0 -PORTREVISION= 14 +PORTREVISION= 15 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 \ ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 \ ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi 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 f64d34aee343..4f83a89b24cc 100644 --- a/math/elemental/Makefile +++ b/math/elemental/Makefile @@ -1,47 +1,48 @@ PORTNAME= elemental DISTVERSIONPREFIX= v DISTVERSION= 1.5.2 +PORTREVISION= 1 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_FreeBSD_12_powerpc64= fails to compile: include/El/blas_like/level1/Copy.hpp:522:27: ambiguous template specialization 'Copy<>' for 'void El::Copy(const El::Matrix&, El::Matrix&)' 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/openmpi \ 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 4dd9e569e127..b2269869e083 100644 --- a/math/elpa/Makefile +++ b/math/elpa/Makefile @@ -1,72 +1,72 @@ PORTNAME= elpa DISTVERSION= 2021.11.001 -PORTREVISION= 1 +PORTREVISION= 2 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 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 d7cf891c9c8f..37269968021c 100644 --- a/math/faiss/Makefile +++ b/math/faiss/Makefile @@ -1,32 +1,32 @@ PORTNAME= faiss DISTVERSIONPREFIX= v DISTVERSION= 1.7.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math 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 link, see https://github.com/facebookresearch/faiss/issues/2654 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 71fb75b57fbf..597bf4cbdb9d 100644 --- a/math/fenics-basix/Makefile +++ b/math/fenics-basix/Makefile @@ -1,32 +1,32 @@ PORTNAME= fenics-basix DISTVERSIONPREFIX= v DISTVERSION= 0.5.1 -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 .if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/c++/v1/concepts) # true only on FreeBSD_12 BROKEN= system is missing a required C++ feature std::concepts .endif .include diff --git a/math/fflas-ffpack/Makefile b/math/fflas-ffpack/Makefile index fd4f880b9b48..95fefe1ecc42 100644 --- a/math/fflas-ffpack/Makefile +++ b/math/fflas-ffpack/Makefile @@ -1,48 +1,49 @@ PORTNAME= fflas-ffpack PORTVERSION= 2.5.0 +PORTREVISION= 1 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 6ab0fedb78b6..90feb021bab6 100644 --- a/math/flexiblas/Makefile +++ b/math/flexiblas/Makefile @@ -1,45 +1,46 @@ PORTNAME= flexiblas PORTVERSION= 3.3.1 +PORTREVISION= 1 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= GPLv3 LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ liblapack.so:math/lapack USES= cmake:testing fortran python tar:xz CONFIGURE_ENV= PYTHON_EXECUTABLE=${PYTHON_CMD} USE_LDCONFIG= yes .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/flint2/Makefile b/math/flint2/Makefile index ad2b225a9e7e..db44aff536f9 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= 1 +PORTREVISION= 2 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/freefem++/Makefile b/math/freefem++/Makefile index 342803365596..213af214ea52 100644 --- a/math/freefem++/Makefile +++ b/math/freefem++/Makefile @@ -1,75 +1,76 @@ PORTNAME= freefem++ DISTVERSIONPREFIX= v DISTVERSION= 4.14 +PORTREVISION= 1 CATEGORIES= math science MAINTAINER= yuri@FreeBSD.org COMMENT= Partial differential equation solver WWW= https://freefem.org/index.html LICENSE= LGPL3 BUILD_DEPENDS= bash:shells/bash \ gmm++>0:math/gmm++ \ pipe:misc/pipe \ tetgen:math/tetgen LIB_DEPENDS= libhdf5.so:science/hdf5 \ libamd.so:math/suitesparse-amd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libumfpack.so:math/suitesparse-umfpack \ libarpack.so:math/arpack-ng \ libfftw3.so:math/fftw3 \ libgsl.so:math/gsl \ libipopt.so:math/ipopt \ libmetis.so:math/metis \ libscotch.so:cad/scotch \ libcmumps.so:math/mumps \ libnlopt.so:math/nlopt \ libsuperlu.so:math/superlu RUN_DEPENDS= bash:shells/bash \ pipe:misc/pipe USES= autoreconf bison blaslapack:openblas compiler:c++14-lang fortran \ gl gmake localbase perl5 pkgconfig shebangfix xorg USE_GITHUB= yes GH_ACCOUNT= FreeFem GH_PROJECT= FreeFem-sources SHEBANG_GLOB= ff-pkg-download.in SHEBANG_FILES= examples/CheckAllEdp ./examples/misc/speedtest.sh CPPFLAGS+= -I${LOCALBASE}/include/superlu .if !defined{WITH_DEBUG} LDFLAGS+= -s .endif LDFLAGS+= -pthread # workaround for https://github.com/FreeFem/FreeFem-sources/issues/296#issuecomment-1839198380 GNU_CONFIGURE= yes CONFIGURE_ENV= CNOFLAGS="${CFLAGS}" LIBS=-lz CONFIGURE_ARGS= --disable-download \ --without-mpi \ --with-blas=${BLASLIB} \ --with-lapack=${LAPACKLIB} USE_GL= gl glu glut OPTIONS_DEFINE= EXAMPLES OPTIONS_DEFAULT=EXAMPLES PORTEXAMPLES= * PLIST_SUB= VER=${PORTVERSION} DATADIR= ${PREFIX}/share/FreeFEM/${PORTVERSION} TEST_TARGET= check # 1 test fails, see https://github.com/FreeFem/FreeFem-sources/issues/281 pre-configure: @${REINPLACE_CMD} -e 's|-llapack|${LAPACKLIB}|' ${WRKSRC}/configure.ac post-install: @${MV} ${STAGEDIR}${DATADIR}/examples ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/math/g2o/Makefile b/math/g2o/Makefile index f3ea735e4a01..e1c6b7a6fbf4 100644 --- a/math/g2o/Makefile +++ b/math/g2o/Makefile @@ -1,74 +1,74 @@ PORTNAME= g2o DISTVERSION= 20230806 -PORTREVISION= 4 +PORTREVISION= 5 DISTVERSIONSUFFIX= _git CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= General framework for graph optimization WWW= https://openslam-org.github.io/g2o.html LICENSE= LGPL3 GPLv3 LICENSE_COMB= dual 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-qt5.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 fc149b2c964d..4de561c7b294 100644 --- a/math/gravity/Makefile +++ b/math/gravity/Makefile @@ -1,42 +1,42 @@ PORTNAME= gravity DISTVERSIONPREFIX= v DISTVERSION= 1.1-20220309 -PORTREVISION= 2 +PORTREVISION= 3 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 3a06ff3c6021..2cdb2c62eb58 100644 --- a/math/hmat-oss/Makefile +++ b/math/hmat-oss/Makefile @@ -1,36 +1,37 @@ PORTNAME= hmat-oss DISTVERSION= 1.9.0 +PORTREVISION= 1 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 58c6de653f4b..aab257fffd4f 100644 --- a/math/hydrogen/Makefile +++ b/math/hydrogen/Makefile @@ -1,44 +1,44 @@ PORTNAME= hydrogen DISTVERSIONPREFIX= v DISTVERSION= 1.5.3 -PORTREVISION= 1 +PORTREVISION= 2 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 5718114a5bae..1e8922a5f2dc 100644 --- a/math/igraph/Makefile +++ b/math/igraph/Makefile @@ -1,33 +1,33 @@ PORTNAME= igraph DISTVERSION= 0.10.6 -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 d72734297ffb..a665d9001cd7 100644 --- a/math/iml/Makefile +++ b/math/iml/Makefile @@ -1,23 +1,23 @@ PORTNAME= iml PORTVERSION= 1.0.5 -PORTREVISION= 2 +PORTREVISION= 3 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 451807b70ead..3591b4c22c25 100644 --- a/math/jags/Makefile +++ b/math/jags/Makefile @@ -1,88 +1,88 @@ PORTNAME= mcmc-jags DISTVERSION= 4.3.1 -PORTREVISION= 1 +PORTREVISION= 2 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 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 6759cfce2f62..5b32009370e9 100644 --- a/math/lapack++/Makefile +++ b/math/lapack++/Makefile @@ -1,45 +1,45 @@ PORTNAME= lapack++ PORTVERSION= 2.5.4 -PORTREVISION= 11 +PORTREVISION= 12 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/moab/Makefile b/math/moab/Makefile index 7905400092a3..ec7beaa99fd9 100644 --- a/math/moab/Makefile +++ b/math/moab/Makefile @@ -1,47 +1,47 @@ PORTNAME= moab DISTVERSION= 5.3.1 -PORTREVISION= 3 +PORTREVISION= 4 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= 65880ffe833d 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.so:net/openmpi 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 383f6e95fc25..70d6ea163db4 100644 --- a/math/ntpoly/Makefile +++ b/math/ntpoly/Makefile @@ -1,60 +1,60 @@ PORTNAME= NTPoly DISTVERSIONPREFIX= ${PORTNAME:tl}-v DISTVERSION= 3.0.0 -PORTREVISION= 1 +PORTREVISION= 2 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>0:net/py-mpi4py@${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/octave-forge-ltfat/Makefile b/math/octave-forge-ltfat/Makefile index 5aed57f307e2..057566e61a98 100644 --- a/math/octave-forge-ltfat/Makefile +++ b/math/octave-forge-ltfat/Makefile @@ -1,32 +1,33 @@ PORTNAME= octave-forge-ltfat PORTVERSION= 2.6.0 +PORTREVISION= 1 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 BROKEN_FreeBSD_12_powerpc64= fails to compile: modules/libltfat/src/dgt_multi.c:47:31: 'cexpl' undeclared (first use in this function); did you mean 'cexpf'? 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 6a8f4d69eb57..391714927305 100644 --- a/math/octave/Makefile +++ b/math/octave/Makefile @@ -1,135 +1,136 @@ PORTNAME= octave PORTVERSION= ${OCTAVE_VERSION} +PORTREVISION= 1 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= core gui help network opengl printsupport sql widgets xml \ buildtools:build linguist:build qmake:build 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/qt5 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} 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 QT5 OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= ATLAS NETLIB OPENBLAS OPTIONS_DEFAULT= JAVA OPENBLAS QT5 OPTIONS_SUB= yes DOCS_CONFIGURE_ENABLE= docs JAVA_CONFIGURE_ENABLE= java QT5_CONFIGURE_WITH= qscintilla qt=5 QT5_LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2-qt5 DOCS_USES= tex DOCS_USE= TEX=dvipsk:build,formats:build JAVA_USE= JAVA=yes JAVA_CFLAGS= -I${JAVA_HOME}/include/${OPSYS:tl} QT5_USES= qt:5 OPENBLAS_USES= blaslapack:openblas NETLIB_USES= blaslapack:netlib ATLAS_USES= blaslapack:atlas pre-configure: ${REINPLACE_CMD} 's+"makeinfo"+"${LOCALBASE}/bin/makeinfo"+' ${WRKSRC}/libinterp/corefcn/help.cc ${REINPLACE_CMD} 's/"-qt=$$qt_version"/"-qt=qt$$qt_version"/' ${WRKSRC}/configure #post-install: # (cd ${STAGEDIR}${DATADIR} && ${LN} -s ${PORTVERSION}/imagelib .) # ${RM} -r ${STAGEDIR}${DATADIR}/${PORTVERSION}/etc/tests/fixed/${WRKDIR:C+/++:C+/.*++} 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 db27af9653e6..19d8be528454 100644 --- a/math/openturns/Makefile +++ b/math/openturns/Makefile @@ -1,99 +1,99 @@ PORTNAME= openturns DISTVERSIONPREFIX= v DISTVERSION= 1.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Uncertainty treatment library WWW= https://openturns.github.io/www/ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING.LESSER 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 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} .include diff --git a/math/or-tools/Makefile b/math/or-tools/Makefile index 2a4fe1708a00..00cfeffe76d9 100644 --- a/math/or-tools/Makefile +++ b/math/or-tools/Makefile @@ -1,61 +1,61 @@ PORTNAME= or-tools DISTVERSIONPREFIX= v DISTVERSION= 9.5 -PORTREVISION= 4 +PORTREVISION= 5 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 CXXFLAGS+= -DABSL_LEGACY_THREAD_ANNOTATIONS 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-install: @${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete .include diff --git a/math/osi-conic/Makefile b/math/osi-conic/Makefile index 443722391ce1..71d3e8299794 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= 1 +PORTREVISION= 2 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 5b66a0c745de..cd456775cf8a 100644 --- a/math/osi/Makefile +++ b/math/osi/Makefile @@ -1,37 +1,38 @@ PORTNAME= Osi DISTVERSIONPREFIX= releases/ DISTVERSION= 0.108.9 +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://projects.coin-or.org/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 post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/coin .include diff --git a/math/osiipopt/Makefile b/math/osiipopt/Makefile index d486fc309357..1782018c5309 100644 --- a/math/osiipopt/Makefile +++ b/math/osiipopt/Makefile @@ -1,37 +1,37 @@ PORTNAME= osiipopt DISTVERSIONPREFIX= releases/ DISTVERSION= 0.1-8 -PORTREVISION= 2 +PORTREVISION= 3 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 363b17daaa3b..6a1a9f8d2e3c 100644 --- a/math/primme/Makefile +++ b/math/primme/Makefile @@ -1,56 +1,56 @@ PORTNAME= primme DISTVERSIONPREFIX= v DISTVERSION= 3.2 -PORTREVISION= 2 +PORTREVISION= 3 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} 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 .include diff --git a/math/py-ambit/Makefile b/math/py-ambit/Makefile index 5eace52b40cc..af47300ade08 100644 --- a/math/py-ambit/Makefile +++ b/math/py-ambit/Makefile @@ -1,44 +1,45 @@ PORTNAME= ambit DISTVERSIONPREFIX= v DISTVERSION= 0.7.1 +PORTREVISION= 1 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 a2418c9a2506..be1951faf349 100644 --- a/math/py-igraph/Makefile +++ b/math/py-igraph/Makefile @@ -1,41 +1,42 @@ PORTNAME= igraph DISTVERSION= 0.10.6 +PORTREVISION= 1 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 667ab4ed74b9..0e2c778463ff 100644 --- a/math/py-numpy/Makefile +++ b/math/py-numpy/Makefile @@ -1,80 +1,80 @@ PORTNAME= numpy PORTVERSION= 1.25.0 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= PYPI \ https://numpy.org/doc/1.23/:doc PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${PORTNAME}-ref.pdf:doc \ ${PORTNAME}-user.pdf:doc DIST_SUBDIR= ${PORTNAME}-${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-3.11 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 PORTDOCS= * 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_USES= blaslapack:netlib NETLIB_VARS= BLASLIBS="blas, cblas" BLASNAME=atlas LAPACKLIBS=lapack LIBRARIES=atlas_libs NETLIB_LIB_DEPENDS= libcblas.so:math/cblas 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} ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}-ref.pdf ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}-user.pdf ${STAGEDIR}${DOCSDIR} do-test: @cd ${WRKSRC} && ${PYTHON_CMD} runtests.py .include diff --git a/math/py-or-tools/Makefile b/math/py-or-tools/Makefile index 669048625ccc..6d9b00915929 100644 --- a/math/py-or-tools/Makefile +++ b/math/py-or-tools/Makefile @@ -1,87 +1,87 @@ PORTNAME= or-tools DISTVERSIONPREFIX= v DISTVERSION= 9.5 -PORTREVISION= 4 +PORTREVISION= 5 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} \ 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} CXXFLAGS+= -DABSL_LEGACY_THREAD_ANNOTATIONS 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 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 d89e731dbdb7..f88e001fbe05 100644 --- a/math/py-scikit-umfpack/Makefile +++ b/math/py-scikit-umfpack/Makefile @@ -1,33 +1,33 @@ PORTNAME= scikit-umfpack DISTVERSION= 0.3.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python interface to UMFPACK sparse direct solver WWW= https://scikit-umfpack.github.io/scikit-umfpack/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${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 python USE_PYTHON= distutils cython autoplist pytest # tests fail, see https://github.com/scikit-umfpack/scikit-umfpack/issues/77 TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} 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 880ad52c2c45..f0d8cf8ed81b 100644 --- a/math/py-scs/Makefile +++ b/math/py-scs/Makefile @@ -1,28 +1,28 @@ PORTNAME= scs DISTVERSION= 3.2.0 -PORTREVISION= 1 +PORTREVISION= 2 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= ${PYNUMPY} RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}scipy>=0.13.2:science/py-scipy@${PY_FLAVOR} USES= python blaslapack:openblas fortran # fortran is for openblas USE_PYTHON= distutils autoplist CONFIGURE_ENV= BLAS_LAPACK_LIBS="openblas" MAKE_ENV= ${CONFIGURE_ENV} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_scs_*.so .include diff --git a/math/qposases/Makefile b/math/qposases/Makefile index d63ad158909b..9e0d6406167b 100644 --- a/math/qposases/Makefile +++ b/math/qposases/Makefile @@ -1,39 +1,39 @@ PORTNAME= qpOASES DISTVERSION= 3.2.1 -PORTREVISION= 7 +PORTREVISION= 8 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://projects.coin-or.org/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 f8ac03ad6057..ddd34e7d0156 100644 --- a/math/scalapack/Makefile +++ b/math/scalapack/Makefile @@ -1,98 +1,98 @@ PORTNAME= scalapack PORTVERSION= 2.2.0 -PORTREVISION= 2 +PORTREVISION= 3 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} == "sparc64" || ${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 e290f922b87e..85ea6d011148 100644 --- a/math/scalapackfx/Makefile +++ b/math/scalapackfx/Makefile @@ -1,33 +1,33 @@ PORTNAME= scalapackfx DISTVERSION= 1.2 -PORTREVISION= 1 +PORTREVISION= 2 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 4b508c2fa2b8..c1f5fd7ed8d5 100644 --- a/math/scs/Makefile +++ b/math/scs/Makefile @@ -1,31 +1,32 @@ PORTNAME= scs DISTVERSION= 3.2.3 +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 028c5ade07c7..d36160230967 100644 --- a/math/slicot/Makefile +++ b/math/slicot/Makefile @@ -1,68 +1,68 @@ PORTNAME= SLICOT PORTVERSION= 5.8 DISTVERSIONPREFIX= v -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org COMMENT= Fortran subroutines library for systems and control WWW= http://slicot.org/ LICENSE= BSD3CLAUSE USE_GITHUB= yes GH_PROJECT= SLICOT-Reference USES= blaslapack:openblas fortran WRKSRC_SUBDIR= src PATCH_WRKSRC= ${WRKDIR}/${GH_PROJECT}-${PORTVERSION} MAKEFILE= makefile MAKE_ENV= FORTRAN=${FC} OPTS="${FFLAGS} -fPIC" LOADER=${FC} \ LOADOPTS="../src/libslicot.a ${FFLAGS} ${BLASLIB} ${LAPACKLIB}" USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS EXAMPLES PORTDOCS= * post-build: (cd ${WRKSRC} && \ ${AR} ${ARFLAGS} libslicot.a *.o && \ ${FC} ${LDFLAGS} -shared -Wl,-soname=libslicot.so.0 \ -o libslicot.so.0.0 *.o ${BLASLIB} ${LAPACKLIB} && \ ${LN} -sf libslicot.so.0.0 libslicot.so.0 && \ ${LN} -sf libslicot.so.0.0 libslicot.so) pre-configure-EXAMPLES-on: ${REINPLACE_CMD} -e 's|\\src\\|/src/|;s|\.obj|.o|g;s|\-exe:|-o |;s|exe; T|exe; ./T|' \ ${WRKSRC}/../examples/${MAKEFILE} post-build-EXAMPLES-on: (cd ${WRKSRC}/../examples && ${DO_MAKE_BUILD} ${ALL_TARGET}) 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 3d3706315d2a..b30f482bea95 100644 --- a/math/spla/Makefile +++ b/math/spla/Makefile @@ -1,42 +1,42 @@ PORTNAME= spla DISTVERSIONPREFIX= v DISTVERSION= 1.5.5 -PORTREVISION= 1 +PORTREVISION= 2 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++11-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 .include diff --git a/math/suitesparse-cholmod/Makefile b/math/suitesparse-cholmod/Makefile index be36b824c99d..0c0e7f5c25c2 100644 --- a/math/suitesparse-cholmod/Makefile +++ b/math/suitesparse-cholmod/Makefile @@ -1,29 +1,30 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 5.0.1 +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-spqr/Makefile b/math/suitesparse-spqr/Makefile index 732f792ab028..32d70d23cb8c 100644 --- a/math/suitesparse-spqr/Makefile +++ b/math/suitesparse-spqr/Makefile @@ -1,30 +1,31 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 4.2.2 +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 307b71a817df..9c3af7754dba 100644 --- a/math/suitesparse-umfpack/Makefile +++ b/math/suitesparse-umfpack/Makefile @@ -1,32 +1,33 @@ PORTNAME= ${MPORTNAME:tl} PORTVERSION= 6.2.2 +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 e9d7c0f66bdc..4ae0b895db91 100644 --- a/math/sundials/Makefile +++ b/math/sundials/Makefile @@ -1,81 +1,81 @@ PORTNAME= sundials DISTVERSION= 6.6.0 -PORTREVISION= 3 +PORTREVISION= 4 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 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 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 145974826761..547dc057b16d 100644 --- a/math/symphony/Makefile +++ b/math/symphony/Makefile @@ -1,37 +1,38 @@ PORTNAME= symphony DISTVERSIONPREFIX= releases/ DISTVERSION= 5.7.1 +PORTREVISION= 1 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 0ef11f2f0dc8..66242879f87b 100644 --- a/math/trlib/Makefile +++ b/math/trlib/Makefile @@ -1,25 +1,26 @@ PORTNAME= trlib DISTVERSION= 0.4 +PORTREVISION= 1 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/mxnet/Makefile b/misc/mxnet/Makefile index 79d67c8d2770..ba6c7a5e2883 100644 --- a/misc/mxnet/Makefile +++ b/misc/mxnet/Makefile @@ -1,64 +1,64 @@ PORTNAME= mxnet DISTVERSION= 1.9.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Apache MXNet: Ultra-scalable deep learning framework WWW= https://mxnet.apache.org/ 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 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 xpost-patch: @${RM} ${WRKSRC}/include/mkldnn/* .for h in dnnl.h dnnl.hpp mkldnn.h mkldnn.hpp mkldnn_dnnl_mangling.h mkldnn_types.h mkldnn_version.h @${LN} -s ${LOCALBASE}/include/${h} ${WRKSRC}/include/mkldnn/${h} .endfor 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/openmvg/Makefile b/misc/openmvg/Makefile index 31e9cc19de71..8fece05084a2 100644 --- a/misc/openmvg/Makefile +++ b/misc/openmvg/Makefile @@ -1,96 +1,96 @@ PORTNAME= openmvg DISTVERSIONPREFIX= v DISTVERSION= 2.0-78 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONSUFFIX= -gd67601b7 CATEGORIES= misc science MAINTAINER= yuri@FreeBSD.org COMMENT= Multiple View Geometry (MVG) library WWW= https://imagine.enpc.fr/%7Emoulonp/openMVG/ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/../LICENSE ONLY_FOR_ARCHS= amd64 armv7 i386 powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= need to figure out which TARGET_ARCHITECTURE values correspond to other architectures, plus "generic" is broken #HPP_DEPENDS= cereal>0:devel/cereal # external cereal is currently broken, see https://github.com/openMVG/openMVG/issues/1963 #BUILD_DEPENDS= ${HPP_DEPENDS} LIB_DEPENDS= libamd.so:math/suitesparse-amd \ libblas.so:math/blas \ libcamd.so:math/suitesparse-camd \ libCbc.so:math/cbc \ libccolamd.so:math/suitesparse-ccolamd \ libceres.so:math/ceres-solver \ libCgl.so:math/cgl \ libcholmod.so:math/suitesparse-cholmod \ libClp.so:math/clp \ libcoinasl.so:math/asl \ libCoinUtils.so:math/coinutils \ libcolamd.so:math/suitesparse-colamd \ libcoinmumps.so:math/coin-or-mumps \ libcxsparse.so:math/suitesparse-cxsparse \ libemon.so:math/lemon \ libflann_cpp.so:math/flann \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libglpk.so:math/glpk \ libgmp.so:math/gmp \ libjbig.so:graphics/jbigkit \ libmetis.so:math/metis \ libopenblas.so:math/openblas \ libOsi.so:math/osi \ libpng.so:graphics/png \ libspqr.so:math/suitesparse-spqr \ libsuitesparseconfig.so:math/suitesparse-config \ libtiff.so:graphics/tiff \ libunwind.so:devel/libunwind LIB_DEPENDS+= liblz4.so:archivers/liblz4 # workaround for https://github.com/openMVG/openMVG/issues/1798 #RUN_DEPENDS= ${HPP_DEPENDS} USES= cmake compiler:c++11-lang eigen:3 jpeg qt:5 USE_GITHUB= yes GH_ACCOUNT= openMVG GH_PROJECT= openMVG GH_TUPLE= openMVG-thirdparty:cereal:ac168fe:cereal/dependencies/cereal WRKSRC_SUBDIR= src USE_QT= core gui opengl svg widgets buildtools:build qmake:build USE_LDCONFIG= yes CMAKE_ARGS= -DEIGEN_INCLUDE_DIR_HINTS=${LOCALBASE}/include/eigen3 \ -DFLANN_INCLUDE_DIR_HINTS=${LOCALBASE}/include \ -DLEMON_INCLUDE_DIR_HINTS=${LOCALBASE}/include \ -DOSI_INCLUDE_DIR_HINTS=${LOCALBASE}/include \ -DCOINUTILS_INCLUDE_DIR_HINTS=${LOCALBASE}/include \ -DCLP_INCLUDE_DIR_HINTS=${LOCALBASE}/include \ -DCERES_DIR_HINTS=${LOCALBASE}/include CMAKE_ON= OpenMVG_BUILD_SHARED CMAKE_OFF= OpenMVG_BUILD_TESTS OpenMVG_BUILD_EXAMPLES CXXFLAGS+= -fPIC \ -I${LOCALBASE}/include # because flann is looked for in a wrong directiory: https://github.com/openMVG/openMVG/issues/1284 LDFLAGS+= -L${LOCALBASE}/lib -llz4 # workaround for https://github.com/openMVG/openMVG/issues/1798 OPTIONS_SINGLE= SIMD_${ARCH:tu} OPTIONS_SINGLE_SIMD_AMD64= K8 CORE MEROM NEHALEM OPTIONS_SINGLE_SIMD_I386= ${OPTIONS_SINGLE_SIMD_AMD64} OPTIONS_DEFAULT_amd64= K8 OPTIONS_DEFAULT_i386= K8 SIMD_AMD64_DESC= Use SSE SIMD optimizations for SIMD_I386_DESC= ${SIMD_AMD64_DESC} K8_DESC= K8 architecture (SSE2) CORE_DESC= Core architecture (up to SSE3) MEROM_DESC= Merom architecture (up to SSSE3) NEHALEM_DESC= Nehalem architecture (up to SSE4.2) K8_CMAKE_ON= -DTARGET_ARCHITECTURE=k8 CORE_CMAKE_ON= -DTARGET_ARCHITECTURE=core MEROM_CMAKE_ON= -DTARGET_ARCHITECTURE=merom NEHALEM_CMAKE_ON= -DTARGET_ARCHITECTURE=nehalem post-install: @${RM} -r ${STAGEDIR}${PREFIX}/include/openMVG_dependencies/osi_clp .include diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile index 845d248edadc..0c45cad6dade 100644 --- a/misc/py-pytorch/Makefile +++ b/misc/py-pytorch/Makefile @@ -1,70 +1,71 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.1.1 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} 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 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}yaml>0:devel/py-yaml@${PY_FLAVOR} LIB_DEPENDS= libblis.so:math/blis \ libmpi.so:net/openmpi \ 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}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>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 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 LDFLAGS+= -lexecinfo BINARY_ALIAS= make=${GMAKE} POST_PLIST= fix-plist .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) USES+= llvm:max=15 .endif 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/visp/Makefile b/misc/visp/Makefile index 5571c3d1a2d9..f15549eb0da8 100644 --- a/misc/visp/Makefile +++ b/misc/visp/Makefile @@ -1,60 +1,60 @@ PORTNAME= visp DISTVERSION= 3.5.0 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= misc MASTER_SITES= https://visp-doc.inria.fr/download/releases/ PATCH_SITES= https://github.com/lagadic/${PORTNAME}/commit/ PATCHFILES= ff554ca8be5f43a3470e1cb20150d8171a66b463.patch:-p1 # fix https://github.com/lagadic/visp/issues/1059 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 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 \ libqhull_r.so:math/qhull \ libpng.so:graphics/png \ libv4l2.so:multimedia/libv4l \ liblz4.so:archivers/liblz4 \ libdc1394.so:multimedia/libdc1394 USES= cmake compiler:c++14-lang eigen:3 fortran gl gnome jpeg python:build xorg zip 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 e1e49d90cc5f..fa65703e24e8 100644 --- a/multimedia/opentoonz/Makefile +++ b/multimedia/opentoonz/Makefile @@ -1,66 +1,66 @@ PORTNAME= opentoonz DISTVERSIONPREFIX= v DISTVERSION= 1.5.0 -PORTREVISION= 6 +PORTREVISION= 7 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 4d48d0f04c75..736b576602c4 100644 --- a/science/bagel/Makefile +++ b/science/bagel/Makefile @@ -1,60 +1,60 @@ PORTNAME= bagel DISTVERSIONPREFIX= v DISTVERSION= 1.2.2-132 -PORTREVISION= 7 +PORTREVISION= 8 DISTVERSIONSUFFIX= -g2955e4d1a CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Brilliantly Advanced General Electronic-structure Library WWW= https://nubakery.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING 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 6d9902cf416f..a9febd693f06 100644 --- a/science/berkeleygw/Makefile +++ b/science/berkeleygw/Makefile @@ -1,49 +1,49 @@ PORTNAME= BerkeleyGW DISTVERSION= 3.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MASTER_SITES= https://berkeley.box.com/shared/static/ DISTFILES= m1dgnhiemo47lhxczrn6si71bwxoxor8.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 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|' post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*.x .include diff --git a/science/bout++/Makefile b/science/bout++/Makefile index e4edc43ba765..ba8a90d97021 100644 --- a/science/bout++/Makefile +++ b/science/bout++/Makefile @@ -1,114 +1,114 @@ PORTNAME= bout++ DISTVERSIONPREFIX= v DISTVERSION= 4.4.2 -PORTREVISION= 4 +PORTREVISION= 5 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 \ libopenblas.so:math/openblas \ libuuid.so:misc/e2fsprogs-libuuid RUN_DEPENDS= bash:shells/bash USES= cmake:testing python gettext-runtime shebangfix USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= boutproject GH_PROJECT= BOUT-dev GH_TUPLE= boutproject:boutdata:3a66e6c:boutdata/externalpackages/boutdata \ boutproject:boututils:a79a00a:boututils/externalpackages/boututils \ google:googletest:96f4ce0:googletest/externalpackages/googletest \ meitar:git-archive-all.sh:fc86194:git_archive_all_sh/externalpackages/git-archive-all.sh \ mpark:variant:0b488da:variant/externalpackages/mpark.variant SHEBANG_GLOB= *.sh SHEBANG_FILES= 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 CMAKE_OFF= BOUT_TESTS CMAKE_TESTING_ON= BOUT_TESTS # tests fail to build, see https://github.com/boutproject/BOUT-dev/issues/2618 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} .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-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 .include diff --git a/science/cantera/Makefile b/science/cantera/Makefile index 437f335b6372..6178f298be3a 100644 --- a/science/cantera/Makefile +++ b/science/cantera/Makefile @@ -1,91 +1,92 @@ PORTNAME= cantera DISTVERSIONPREFIX= v DISTVERSION= 3.0.0 +PORTREVISION= 1 CATEGORIES= science # chemistry physics MAINTAINER= yuri@FreeBSD.org COMMENT= Chemical kinetics, thermodynamics, and transport tool suite WWW= https://cantera.org/ 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 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 CXXFLAGS+= ${CXXFLAGS_${OPSYS}_${OSREL:R}} CXXFLAGS_FreeBSD_12= -D_GNU_SOURCE 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 # some tests fail, see https://github.com/Cantera/cantera/issues/1095 OPTIONS_DEFINE= OCTAVE PYTHON OPTIONS_DEFAULT= # PYTHON is broken; 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_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} PYTHON_BROKEN= https://github.com/Cantera/cantera/issues/1601 do-install: cd ${WRKSRC} && \ ${MAKE_CMD} install \ stage_dir="${STAGEDIR}" @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcantera_shared.so.${PORTVERSION} do-install-PYTHON-on: # strip @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/_cantera.cpython-${PYTHON_SUFFIX}.so 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 951ee73b8c3a..27ab08fc6eb0 100644 --- a/science/chemps2/Makefile +++ b/science/chemps2/Makefile @@ -1,29 +1,29 @@ PORTNAME= CheMPS2 DISTVERSIONPREFIX= v DISTVERSION= 1.8.12 -PORTREVISION= 3 +PORTREVISION= 4 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 e44293e510f7..2ba7831f06ce 100644 --- a/science/chrono/Makefile +++ b/science/chrono/Makefile @@ -1,121 +1,121 @@ PORTNAME= chrono DISTVERSION= 8.0.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= science devel PKGNAMESUFFIX= -physics-simulation-engine MAINTAINER= yuri@FreeBSD.org COMMENT= C++ library for multi-physics simulation WWW= https://projectchrono.org/ 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/flatbuffers205 # until https://github.com/projectchrono/chrono/issues/391 is fixed SYNCHRONO_LIB_DEPENDS= libmpi.so:net/mpich SYNCHRONO_IMPLIES= VEHICLE 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 #.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/dalton/Makefile b/science/dalton/Makefile index 8c6047336bb5..f82a5bb9ac41 100644 --- a/science/dalton/Makefile +++ b/science/dalton/Makefile @@ -1,38 +1,38 @@ PORTNAME= dalton DISTVERSION= 2020.0 -PORTREVISION= 1 +PORTREVISION= 2 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 ec8501ace119..9fc886c35e92 100644 --- a/science/dftbplus/Makefile +++ b/science/dftbplus/Makefile @@ -1,110 +1,110 @@ PORTNAME= dftbplus DISTVERSION= 23.1 -PORTREVISION= 2 +PORTREVISION= 3 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 BROKEN_FreeBSD_12_powerpc= Lack of IEEE754 support in gcc causes "Cannot find an intrinsic module named 'ieee_arithmetic'", see bug\#255890 BROKEN_FreeBSD_12_powerpc64= 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 .include diff --git a/science/dftd4/Makefile b/science/dftd4/Makefile index 2d886da5981f..1d152685b2a8 100644 --- a/science/dftd4/Makefile +++ b/science/dftd4/Makefile @@ -1,29 +1,30 @@ PORTNAME= dftd4 DISTVERSIONPREFIX= v DISTVERSION= 3.5.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/elk/Makefile b/science/elk/Makefile index d0b7f9363f7d..ad2fbbfc080d 100644 --- a/science/elk/Makefile +++ b/science/elk/Makefile @@ -1,83 +1,83 @@ PORTNAME= elk DISTVERSION= 9.2.5 -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 .include diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile index afab7b41c60b..a34248be4820 100644 --- a/science/elmerfem/Makefile +++ b/science/elmerfem/Makefile @@ -1,118 +1,118 @@ PORTNAME= elmerfem DISTVERSIONPREFIX= release- DISTVERSION= 9.0 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= science 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= libqwt6.so:x11-toolkits/qwt6 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}/libqwt6.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 post-patch-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 5845b14c1f37..cb392e320849 100644 --- a/science/erkale/Makefile +++ b/science/erkale/Makefile @@ -1,70 +1,70 @@ PORTNAME= erkale DISTVERSION= g20220405 -PORTREVISION= 7 +PORTREVISION= 8 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 .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 1130278fd8e2..a5cbfcdf4981 100644 --- a/science/fleur/Makefile +++ b/science/fleur/Makefile @@ -1,85 +1,85 @@ PORTNAME= fleur DISTVERSION= 6.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= a9f84b504efcb04c6d5bd2f59b6b1a0f9eb6e831 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}/tests && pytest ../tests --build_dir=${TEST_WRKSRC} .include diff --git a/science/frontistr/Makefile b/science/frontistr/Makefile index aa4f92f0320b..a70b9cfae312 100644 --- a/science/frontistr/Makefile +++ b/science/frontistr/Makefile @@ -1,56 +1,56 @@ PORTNAME= FrontISTR PORTVERSION= 5.2 -PORTREVISION= 2 +PORTREVISION= 3 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 842fd3224579..e35ebf9dda4d 100644 --- a/science/gbtolib/Makefile +++ b/science/gbtolib/Makefile @@ -1,34 +1,34 @@ PORTNAME= gbtolib DISTVERSION= 3.0.3 -PORTREVISION= 2 +PORTREVISION= 3 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 .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/iboview/Makefile b/science/iboview/Makefile index 399ad139db5e..c6ea95abd2c6 100644 --- a/science/iboview/Makefile +++ b/science/iboview/Makefile @@ -1,30 +1,30 @@ PORTNAME= iboview PORTVERSION= 20150427 -PORTREVISION= 25 +PORTREVISION= 26 CATEGORIES= science MASTER_SITES= http://www.iboview.org/bin/ DISTNAME= ibo-view.20150427 MAINTAINER= jmd@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/latte/Makefile b/science/latte/Makefile index 739ee649739d..0099a4e8279a 100644 --- a/science/latte/Makefile +++ b/science/latte/Makefile @@ -1,51 +1,51 @@ PORTNAME= latte DISTVERSIONPREFIX= v DISTVERSION= 1.2.2 -PORTREVISION= 2 +PORTREVISION= 3 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.so:net/openmpi 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 fe8795e2cfec..71577f937dbc 100644 --- a/science/libcint/Makefile +++ b/science/libcint/Makefile @@ -1,40 +1,41 @@ PORTNAME= libcint DISTVERSIONPREFIX= v DISTVERSION= 6.1.0 +PORTREVISION= 1 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.${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 d4900d7c8489..6ced3cdf9cc6 100644 --- a/science/libmbd/Makefile +++ b/science/libmbd/Makefile @@ -1,21 +1,21 @@ PORTNAME= libmbd DISTVERSION= 0.12.5 -PORTREVISION= 1 +PORTREVISION= 2 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 f1ac8216ae20..c7057db2f445 100644 --- a/science/libnegf/Makefile +++ b/science/libnegf/Makefile @@ -1,33 +1,33 @@ PORTNAME= libnegf DISTVERSIONPREFIX= v DISTVERSION= 1.1.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science # chemistry MAINTAINER= yuri@FreeBSD.org COMMENT= Non Equilibrium Green's Functions library WWW= https://github.com/libnegf/libnegf LICENSE= GPLv3 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 ab56439b09e9..c0d29cadd189 100644 --- a/science/meep/Makefile +++ b/science/meep/Makefile @@ -1,54 +1,55 @@ PORTNAME= meep DISTVERSIONPREFIX= v DISTVERSION= 1.27.0 +PORTREVISION= 1 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 \ libhdf5.so:science/hdf5 \ liblapack.so:math/lapack \ libopenblas.so:math/openblas 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}jax>0:math/py-jax@${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} .include diff --git a/science/mopac/Makefile b/science/mopac/Makefile index 0a28520b8b26..c4b9ba57c028 100644 --- a/science/mopac/Makefile +++ b/science/mopac/Makefile @@ -1,33 +1,33 @@ PORTNAME= mopac DISTVERSIONPREFIX= v DISTVERSION= 22.0.6 -PORTREVISION= 1 +PORTREVISION= 2 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 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 \ lib/libmopac.so \ lib/libmopac.so.1 .include diff --git a/science/mpb/Makefile b/science/mpb/Makefile index 06e456abe78b..b2c29deda284 100644 --- a/science/mpb/Makefile +++ b/science/mpb/Makefile @@ -1,51 +1,51 @@ PORTNAME= mpb DISTVERSION= 1.11.1 -PORTREVISION= 4 +PORTREVISION= 5 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 CONFIGURE_ARGS= --enable-shared MAKE_JOBS_UNSAFE= yes INSTALL_TARGET= install-strip TEST_TARGET= check CPPFLAGS+= -I${LOCALBASE}/include 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 342698812a07..631facb80f8c 100644 --- a/science/multicharge/Makefile +++ b/science/multicharge/Makefile @@ -1,29 +1,29 @@ PORTNAME= multicharge DISTVERSIONPREFIX= v DISTVERSION= 0.2.0 -PORTREVISION= 1 +PORTREVISION= 2 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 b7ad6fa69f9d..892c43ed79c0 100644 --- a/science/multiwfn/Makefile +++ b/science/multiwfn/Makefile @@ -1,56 +1,57 @@ PORTNAME= multiwfn DISTVERSIONPREFIX= v DISTVERSION= 3.8 +PORTREVISION= 1 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 272fb1b09293..634da8121a4a 100644 --- a/science/nlcglib/Makefile +++ b/science/nlcglib/Makefile @@ -1,39 +1,39 @@ PORTNAME= nlcglib DISTVERSIONPREFIX= v DISTVERSION= 1.0b-20230622 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONSUFFIX= -gac293eb 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 b01af1c17067..5decab202f49 100644 --- a/science/ocean/Makefile +++ b/science/ocean/Makefile @@ -1,56 +1,57 @@ PORTNAME= ocean DISTVERSIONPREFIX= v DISTVERSION= 3.1.0 +PORTREVISION= 1 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}" 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 585b30dae8ca..8e1c83ce5011 100644 --- a/science/opensim-core/Makefile +++ b/science/opensim-core/Makefile @@ -1,55 +1,55 @@ PORTNAME= OpenSim DISTVERSION= 4.1 -PORTREVISION= 5 +PORTREVISION= 6 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= swig:devel/swig 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_USE= JAVA=yes JAVA_BUILD_DEPENDS= swig:devel/swig 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 e0b31dba7f1d..90eaef1a2bfd 100644 --- a/science/pastix/Makefile +++ b/science/pastix/Makefile @@ -1,55 +1,56 @@ PORTNAME= pastix PORTVERSION= 6.3.1 +PORTREVISION= 1 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= ad8f528a3f6c012762e9a903b28315f8 # tarball with submodules LDFLAGS+= -lm CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON \ -DPASTIX_ORDERING_METIS:BOOL=ON 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//}|' \ ${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 4888bcdb87ec..3a3cddf1ddff 100644 --- a/science/psi4/Makefile +++ b/science/psi4/Makefile @@ -1,81 +1,82 @@ PORTNAME= psi4 DISTVERSIONPREFIX= v DISTVERSION= 1.9 +PORTREVISION= 1 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} \ 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 pytest 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 a3fc9015d591..91c3b351c287 100644 --- a/science/py-gpaw/Makefile +++ b/science/py-gpaw/Makefile @@ -1,45 +1,45 @@ PORTNAME= gpaw DISTVERSION= 22.1.0 -PORTREVISION= 3 +PORTREVISION= 4 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/ 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-patch: @${REINPLACE_CMD} "s|'/usr/local/|'${LOCALBASE}/|" ${WRKSRC}/gpaw/__init__.py post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_gpaw*.so do-test: install @${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 92a104049b4d..449984fb3ce8 100644 --- a/science/py-phono3py/Makefile +++ b/science/py-phono3py/Makefile @@ -1,28 +1,28 @@ PORTNAME= phono3py DISTVERSION= 1.22.3 -PORTREVISION= 1 +PORTREVISION= 2 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://atztogo.github.io/phono3py/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}phonopy>=2.9.3:science/py-phonopy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}spglib>0:science/py-spglib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} BUILD_DEPENDS= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} USES= blaslapack:openblas fortran localbase python USE_PYTHON= distutils cython autoplist .include diff --git a/science/py-pyscf/Makefile b/science/py-pyscf/Makefile index e41b1072f57d..7eff60c3787e 100644 --- a/science/py-pyscf/Makefile +++ b/science/py-pyscf/Makefile @@ -1,46 +1,47 @@ PORTNAME= pyscf DISTVERSIONPREFIX= v DISTVERSION= 2.4.0 +PORTREVISION= 1 CATEGORIES= science python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python module for quantum chemistry WWW= https://pyscf.org/ 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 # 3818 warnings, 57 errors in tests, see https://github.com/pyscf/pyscf/issues/1536 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 .include diff --git a/science/py-scipy/Makefile b/science/py-scipy/Makefile index ef0103e6a33d..c4946ac4b6b6 100644 --- a/science/py-scipy/Makefile +++ b/science/py-scipy/Makefile @@ -1,58 +1,59 @@ PORTNAME= scipy DISTVERSION= 1.11.1 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= https://docs.scipy.org/doc/${PORTNAME}-${DISTVERSION}/:doc \ PYPI:source \ SF:source PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \ scipy-html-${DISTVERSION}.zip:doc EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} 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 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}${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}/.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 838a66029a9c..363ced79002c 100644 --- a/science/qiskit-aer/Makefile +++ b/science/qiskit-aer/Makefile @@ -1,32 +1,32 @@ PORTNAME= qiskit-aer DISTVERSION= 0.10.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= science # quantum-computing PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES= 46d86944f349a177acb40fb8a3adc301c395fe60.patch:-p1 # https://github.com/Qiskit/qiskit-aer/pull/1576 MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum circuits simulator submodule of the Qiskit framework WWW= https://qiskit.org/aer/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt BROKEN_i386= undefined reference to `__atomic_load' BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json 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= bin/qasm_simulator .include diff --git a/science/qmcpack/Makefile b/science/qmcpack/Makefile index ef01e878308c..3122fc318a50 100644 --- a/science/qmcpack/Makefile +++ b/science/qmcpack/Makefile @@ -1,64 +1,64 @@ PORTNAME= qmcpack DISTVERSIONPREFIX= v DISTVERSION= 3.15.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Many-body ab initio Quantum Monte Carlo code for quantum chemistry WWW= https://www.qmcpack.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= undefined reference to `__atomic_load' 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-jet/Makefile b/science/quantum-jet/Makefile index 02a52677bff6..676dfead82e5 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= 1 +PORTREVISION= 2 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 448cfc75f4de..2d513fe7398e 100644 --- a/science/siconos/Makefile +++ b/science/siconos/Makefile @@ -1,49 +1,49 @@ PORTNAME= siconos DISTVERSION= 4.4.0 -PORTREVISION= 7 +PORTREVISION= 8 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} \ help2man:misc/help2man LIB_DEPENDS= 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_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= Fails to import, see https://github.com/siconos/siconos/issues/420 .include diff --git a/science/simbody/Makefile b/science/simbody/Makefile index a40a3738e189..865c10675dc9 100644 --- a/science/simbody/Makefile +++ b/science/simbody/Makefile @@ -1,52 +1,52 @@ PORTNAME= simbody DISTVERSIONPREFIX= Simbody- DISTVERSION= 3.7 -PORTREVISION= 5 +PORTREVISION= 6 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 45ea69f41c27..7d9bc3d6055a 100644 --- a/science/simple-dftd3/Makefile +++ b/science/simple-dftd3/Makefile @@ -1,31 +1,32 @@ PORTNAME= simple-dftd3 DISTVERSIONPREFIX= v DISTVERSION= 1.0.0 +PORTREVISION= 1 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 5624e8c1b7a0..5cf96e487e60 100644 --- a/science/sirius/Makefile +++ b/science/sirius/Makefile @@ -1,49 +1,49 @@ PORTNAME= sirius DISTVERSIONPREFIX= v DISTVERSION= 7.4.3 -PORTREVISION= 2 +PORTREVISION= 3 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= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE 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 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 # many tests fail, see https://github.com/electronic-structure/SIRIUS/issues/760 .include diff --git a/science/tblite/Makefile b/science/tblite/Makefile index 0900490bdbc1..ef00936c53e0 100644 --- a/science/tblite/Makefile +++ b/science/tblite/Makefile @@ -1,35 +1,35 @@ PORTNAME= tblite DISTVERSIONPREFIX= v DISTVERSION= 0.3.0 -PORTREVISION= 1 +PORTREVISION= 2 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 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 e4961b91fef3..baa586deb18d 100644 --- a/science/ukrmol+/Makefile +++ b/science/ukrmol+/Makefile @@ -1,53 +1,53 @@ PORTNAME= ukrmol+ DISTVERSION= 3.2 -PORTREVISION= 3 +PORTREVISION= 4 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 1bae17e247a3..e3920b494caf 100644 --- a/science/xtb/Makefile +++ b/science/xtb/Makefile @@ -1,29 +1,29 @@ PORTNAME= xtb DISTVERSIONPREFIX= v DISTVERSION= 6.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= science MAINTAINER= jmd@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