From nobody Mon Aug 22 08:01:44 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MB4ZK1KZxz4YvlT; Mon, 22 Aug 2022 08:01:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MB4ZK0p6Gz3VQX; Mon, 22 Aug 2022 08:01:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661155305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dZdmymK6A3djRGUYhseUFpro2xE161nTq95e98Sw+l8=; b=eiHeO4uRD4u0nJA9KvEKkU6+bZrXFpT5cfxxVDBB/fi4M2jxARUW+BGVgvKkTlIkKP9y9p byTVZJCRyEYy4D524wo6LeT3o1TB8lWU4LTWTrocqRVjvn5UK8VyFBsip+TkhVEfNyzCWv CmO2nUq8dXYyposd6AiMBMaAPD4b5uXc64A/1JVc8bXRSOQksiCPG5FETpzoTCmZSpCzH5 6/8tXCoZAEoPknnylMivrVE3r3HsEFeF3cxySX3hj7IWeG83KDuRt7tGEstLBRVHswdJ8b 0W6MI9d1n28skgoFDw6SuWokv+fnLslnpSnKjcgX3219H5NfofeGowHi9M4Udg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MB4ZJ6zCHzjDJ; Mon, 22 Aug 2022 08:01:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27M81ido047238; Mon, 22 Aug 2022 08:01:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M81iWE047237; Mon, 22 Aug 2022 08:01:44 GMT (envelope-from git) Date: Mon, 22 Aug 2022 08:01:44 GMT Message-Id: <202208220801.27M81iWE047237@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8aba6bd4da0c - main - math/mfem: Add options to use mpich, OpenMPI, or no MPI List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8aba6bd4da0c23892e4dd76584dff374d1296e57 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661155305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dZdmymK6A3djRGUYhseUFpro2xE161nTq95e98Sw+l8=; b=X5gxDgmzEiov3lmR3njyE/MAwRGx0u9QOiGNiSoNIFbWz//rVsbnkoHW2VpCnQpiHkDB2P 6TTTKlpsK/mK5sSFxHfnXDeDsDtRFxgRib2ADlcYf9zYvDRaVYPmOh1q8D5SJ/UmdGQxwi y2rb9cmtVediYOOkH5+p71vDoI+5WZSBgD07xufxB1KjDFKKD3HLsGJfrtyqJvfuHLiQ0M SWNXe8XKM3EDYqDWv6IXtL1qVHA7RwicvK6nx2suEMsJjeu2AX6EkJrm73sw1tTfSE8pKM D3t0Jj7BUcx0FpTBZFr1mex9BTL7J3TvZ58ExBSVBzuPT3D6ZKKR2qHOTt1/fw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661155305; a=rsa-sha256; cv=none; b=ZhcKOIZAnWN/Hj30R17TEoDmTcGlagtQvWFYnSccIL3yIamc/uIfvsJqfWycqOGPWRntnB jx3xGSCQGxpRde0kDzhVlooxQZN+V5ZFVbMHRttF2yloQNfr8fBXkt2aSlBwA5ntvF6s88 kj3nonlvCE1QYC6HdBuOd6PhJ3xIa+sltOHCgB6iC/3TV/cnOsFo0GI4rUG7TnHhq3ehLV xWiFuohAQFWr4PoM1feXIGOCoMUQxGbNKaHlLSewMSFylKvgzlvibITEKUq0bQoDCUdIvF /zzpLMT18zcwivuiINtUxGwMHDpNaQKnbPzlGEbw79UdZ/XBDi5uHnTNK51fOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8aba6bd4da0c23892e4dd76584dff374d1296e57 commit 8aba6bd4da0c23892e4dd76584dff374d1296e57 Author: Yuri Victorovich AuthorDate: 2022-08-22 08:00:41 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-22 08:01:42 +0000 math/mfem: Add options to use mpich, OpenMPI, or no MPI --- math/mfem/Makefile | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/math/mfem/Makefile b/math/mfem/Makefile index e083093a6c88..25fa7aa7156d 100644 --- a/math/mfem/Makefile +++ b/math/mfem/Makefile @@ -1,6 +1,7 @@ PORTNAME= mfem DISTVERSIONPREFIX= v DISTVERSION= 4.4 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org @@ -14,11 +15,27 @@ USE_GITHUB= yes USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS -CMAKE_TESTING_ON= MFEM_ENABLE_TESTING # tests are broken, see https://github.com/mfem/mfem/issues/2442 +CMAKE_TESTING_ON= MFEM_ENABLE_TESTING # tests are broken, see https://github.com/mfem/mfem/issues/3163 -OPTIONS_DEFINE= MPI +OPTIONS_SINGLE= MPI +OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI +OPTIONS_DEFAULT= MPICH # should be the same choice as in science/hypre -MPI_CMAKE_BOOL= MFEM_USE_MPI -MPI_BROKEN= see https://github.com/mfem/mfem/issues/622 +NOMPI_DESC= Build without parallel processing support +NOMPI_CMAKE_ON= -DMFEM_USE_MPI=OFF + +MPICH_CMAKE_ON= -DMFEM_USE_MPI=ON \ + -DMPI_HOME=${LOCALBASE} +MPICH_BUILD_DEPENDS= mpich>0:net/mpich +MPICH_LIB_DEPENDS= libHYPRE.so:science/hypre \ + libmetis.so:math/metis +OPENMPI_RUN_DEPENDS= mpich>0:net/mpich + +OPENMPI_CMAKE_ON= -DMFEM_USE_MPI=ON \ + -DMPI_HOME=${LOCALBASE}/mpi/openmpi +OPENMPI_BUILD_DEPENDS= openmpi>0:net/openmpi +OPENMPI_LIB_DEPENDS= libHYPRE.so:science/hypre \ + libmetis.so:math/metis +OPENMPI_RUN_DEPENDS= openmpi>0:net/openmpi .include