From nobody Mon Mar 13 00:05:35 2023 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 4PZcPC4cZYz3xqcH; Mon, 13 Mar 2023 00:05:35 +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 4PZcPC4Cncz3N4s; Mon, 13 Mar 2023 00:05:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678665935; 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=zAHqKQElLLGzlZ7ppBovaV67JlX92wy6Go9lhXRf6t4=; b=oMVlvnT/63/hSFc1lFn9b+sbBhA5v8+Ee71j7lX3B4ypfoivWXlW2sbuv3hePR901tYgN3 Xv3000eHZkaAArx5jYq+EA7EAVyePBkc3Esc6/apk46wzDHEv2SCoEr8PZP9TJVhXgtyEf hiGgUWakcE78peKTXVWyt0Cv5D6W+P0KyJL50p1y5gQaVV1giqBc2yquJHFdLTvLJg2TOh faLXmQ+wTmO+x6e3kYisB17O1zPDDB8WWftzvM53mjGmUzQ+rpAG6Wqsui35N1J338jxQN URFza5pzDHZCQKQNRtr5CwbnWXT5zQgquXfoZAmwdiaZOxcul7Zcm+IYyeF23Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678665935; 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=zAHqKQElLLGzlZ7ppBovaV67JlX92wy6Go9lhXRf6t4=; b=Y557vOF/DDmsyKjBOFkG0vYzoOrScbW5qTvxXWK8rD2YWruub6i5s9htNqrV20CC81TT2O cJLoXjrhiFCyhiNFBu5R/jEdFWl0CseX0ImAZXEg1Kamoz9ZFgfDVQW+0IaBJH/7EoZC/t pOO8Wk9Z1NQ3/2nmcPv9+0uFYkpZbKnM6IPbgQD23lhDZHZ9aBomnTlNLbHyPopf8bjEdJ EaNuuMMoqpCnzk9dma+6u2HlU9yRG1zbqMEJS8ZjYscONevzVvaWQ2TwqiCFsod7S+mHF4 fyLwRsziAgUWuvPDTmasWGHWUuhXuOZejreJVvsfqVcOMOOkfRojuI3N9x3I1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678665935; a=rsa-sha256; cv=none; b=N7DPuZRZIQEvl6bgSkMsQI5dEM9LH0HwJ6904jI058UCRCZrrw15AMSwIhP3EVQKlt0KU8 +oLyfrndN6km61PEI2qHF1WYDQJWqsTOeb8xAsHb9La/7KTVnkMUl0WeUmtG6IZqIvBYVP 92ccd09e5fHzvDPn/U8VET20sSbjTxkG7n1eAzU8bqG9xWj1RT49JOMFk4wTjQpzBUdSq/ RKL9NhCFG/avR+tjI0s7DP8KpjF7B2MDlPl/z0e6TzbFaptJXB0u9xSDkCU3GaF/336vZ8 w11Z+GutsdnYtrH1L8QUFKQ0VFImIhcszda5Nr4JZ+GFRsOc8nZu56Eb+4nimQ== 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 4PZcPC3LBqzWvF; Mon, 13 Mar 2023 00:05:35 +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 32D05ZKQ080257; Mon, 13 Mar 2023 00:05:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32D05ZCY080256; Mon, 13 Mar 2023 00:05:35 GMT (envelope-from git) Date: Mon, 13 Mar 2023 00:05:35 GMT Message-Id: <202303130005.32D05ZCY080256@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 4e0db8a74064 - main - astro/geographiclib: fix build without libomp 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: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4e0db8a7406485b81659c9b26b0629756faecc15 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=4e0db8a7406485b81659c9b26b0629756faecc15 commit 4e0db8a7406485b81659c9b26b0629756faecc15 Author: Piotr Kubaj AuthorDate: 2023-03-13 00:02:24 +0000 Commit: Piotr Kubaj CommitDate: 2023-03-13 00:02:24 +0000 astro/geographiclib: fix build without libomp CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile): Failed to generate test project build system. Call Stack (most recent call first): /usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS) examples/CMakeLists.txt:35 (find_package) --- astro/geographiclib/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/astro/geographiclib/Makefile b/astro/geographiclib/Makefile index 30bba17d135a..7a58ee99f264 100644 --- a/astro/geographiclib/Makefile +++ b/astro/geographiclib/Makefile @@ -15,7 +15,12 @@ WWW= https://geographiclib.sourceforge.io/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= cmake compiler:c++14-lang localbase python:env +USES= cmake localbase python:env +.if !exists(/usr/include/omp.h) +USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++14-lang +.endif USE_LDCONFIG= yes USE_PYTHON= optsuffix CMAKE_ARGS= -DGEOGRAPHICLIB_DATA:STRING=${DATADIR:Q} \