From nobody Sun Dec 04 06:48:30 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 4NPy1p3rNTz4jYRg; Sun, 4 Dec 2022 06:48:30 +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 4NPy1p2yJhz3BpK; Sun, 4 Dec 2022 06:48:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670136510; 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=x1Y1q9NTzYIrU7U5oMcfKgkw5hPiWwzrMBJdJYCraBU=; b=tVpxu/ViteABGNE66lqjwyKqqFZ87by8/7aQXOXh4ZYjl9bS3DFjQ7MgR+4PWWmhPdYEhK IiDcVmoUqoCLkWk+ZgbCwocDqap/1g3MQno5nTqPdQPYRd/PbqkpH/kkHTuQeRsuZfdDXO g1Iihci27fIgt0Z0vSkdX7mGDofpyCUTp7nGx0ZnIgHzik4x48idIalO8+3lWlC9TpuabY jAhlE3uEdr/WpnDD/FNSBVvjK9X5mb3t8RqJaa2V5WxOcmmt3NKHLaLi9NlnN/VtImJ+Yb MhDUn1s9Ik6fP6aAwy0AbeSIWI40gF/Ts61qPrYDS6MsTg4U5oCOX2QDdG3l2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670136510; 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=x1Y1q9NTzYIrU7U5oMcfKgkw5hPiWwzrMBJdJYCraBU=; b=bRjuI6vUhOOmgOlsfy9XuDiZnVM1mb7PjB1xBszl8+mi8jLBQvYH6h7i/jMKDCtqhL6c3P LWAUySGeeaGUHLz60HDWqCoeYelWChvqWN2iSaT6axS4PhNxSqD9x/yivTq9QSWWGDST7c 5sQKg1sCvadF+6UlhXRPcVckZptcZhgkK7BXwWwIe7G4nMYYWtCdNRIJdj9vnJgP4MPfua 6Y+If9NgkP+HYJ8W6cXJcn/4rHWwopW0mCgA/QjE12Ke7zfrgFCud6uLaGkRIaCS+Y8KHR 8r9QnJAIz0CarOqIultzRZXqT/4X19rSiiZRA6OrtJ8buJPMs+qbUU2yl1U8zA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670136510; a=rsa-sha256; cv=none; b=aGH4fU0EjPh7s36pADHRqBIm4QL87j/o7Lxm5EkjYSsoXaiRKItzQA6sG3Fa2WACZlKRwF Dc/7gvNYt7qlsnNoJV4SWScBkIA3gjMjLGkhHUK/cjB7WZXX2pY3oaVwwRgFmq4sMCRuim rKK3Anu/palel0CMowMtd5d+gbk2sR0J6jYSaCUx71aXC5x1Pztgkr7Tu5LT8rP7olV4Dw RLjFHdiGNwKC4DsH+YObRwwm44VMQH7gaEnNAV1BpRX0U3D+DA7R8p/ojBlRUyNykcSKsK 13bcxgMhmqSihv83OPztz9uM0o5DqALgOoasS/mCBpA0j3oU5vSCBcXGw4gkfA== 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 4NPy1p22Dsz1P63; Sun, 4 Dec 2022 06:48:30 +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 2B46mUnx058071; Sun, 4 Dec 2022 06:48:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B46mU2c058070; Sun, 4 Dec 2022 06:48:30 GMT (envelope-from git) Date: Sun, 4 Dec 2022 06:48:30 GMT Message-Id: <202212040648.2B46mU2c058070@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: b41577a705c4 - main - security/openfhe: Add the OPENMP option enabled only where OpenMP is enabled 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: b41577a705c45eeab937a34fe4a0f97d1b2d9e12 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=b41577a705c45eeab937a34fe4a0f97d1b2d9e12 commit b41577a705c45eeab937a34fe4a0f97d1b2d9e12 Author: Yuri Victorovich AuthorDate: 2022-12-04 03:28:19 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-04 06:48:23 +0000 security/openfhe: Add the OPENMP option enabled only where OpenMP is enabled Reported by: fallout --- security/openfhe/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/security/openfhe/Makefile b/security/openfhe/Makefile index f478a54f7a7b..98069d7ed9f0 100644 --- a/security/openfhe/Makefile +++ b/security/openfhe/Makefile @@ -1,7 +1,7 @@ PORTNAME= openfhe DISTVERSIONPREFIX= v DISTVERSION= 1.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security math MAINTAINER= yuri@FreeBSD.org @@ -30,7 +30,7 @@ CMAKE_TESTING_TARGET= testall BINARY_ALIAS= git=false -OPTIONS_DEFINE= HEXL NTL +OPTIONS_DEFINE= HEXL NTL OPENMP OPTIONS_DEFAULT= NTL HEXL_DESC= Buld with Intel hexl @@ -42,4 +42,11 @@ NTL_CMAKE_BOOL= WITH_NTL NTL_LIB_DEPENDS= libgmp.so:math/gmp \ libntl.so:math/ntl +OPENMP_CMAKE_BOOL= WITH_OPENMP +.if exists(/usr/include/omp.h) +OPTIONS_DEFAULT+= OPENMP +.else +OPENMP_BROKEN= OpenMP isn't enabled on this architecture +.endif + .include