From nobody Fri Jul 21 08:03:15 2023 X-Original-To: dev-commits-ports-all@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 4R6hrN16Hcz4p11P; Fri, 21 Jul 2023 08:03:16 +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 4R6hrN0KgXz3x8Y; Fri, 21 Jul 2023 08:03:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689926596; 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=4Z+4cta80q5F1Emc77qAYJr3XVgAmpd6FHuRFNUUt64=; b=Y6jpcqsEVtsbE0HcDXqhO+jeElOJ16vimoSxPn6ouQoKfOJyyKV//N1sftZuu6FwqJj8DG erS16iemkpYy1PMCG4VRIkUHl5tx6VfQrALKdLwfgGVKncudXqQf4NmrDnNhdEAhppMrmx O2Mc/dsAKPaqFwIwUIEYlG5jPM3owIhRBfAhqrQBWbFSdiuMD1x3nfKBgluf5Has+vLTWB b8ao6H2xcSwIUdsrbyRtlB01V3n4D8jdHHT+UkGOcua7qPFXw3ikXYxpuyEp7k8KsY4RYh yqAB45yI0PcM3KMuBnDrXdu7ZLjIaxe5GeiLV4cqEEKzzDP6PvZsuZ8Ncmk8LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689926596; 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=4Z+4cta80q5F1Emc77qAYJr3XVgAmpd6FHuRFNUUt64=; b=hxqYF7vtUSkh4vNygIHaD+HH5PSGTrATLf4km+Sx+/DHtatEZzs2wYWbLtI/A9RX/lEoOB 6GTy0Gbjz7W7ZBMcrlO5DiMYneLqV1w/FRjwb7Rd8vKFTznRoOWv0ZyLckrij7+eHz64L3 HKqa2O3d03/StkJNRdLI/puFCnTJtmZMiEkl2de5V8qafM+RTSpm3CRWoyGT8Y9rs64qBp 1A5sQDnLBDn7nN0m68n7iV6XNjIT+leF8hNGPMKKSlYgJEcE+v/Jy7a56Gp2HZrHNiC87w iOPHneBJlGB9zpexT8mCFOi/UfurOKiSMXreVXHbKsdsoJOajfScSt1lmWa++w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689926596; a=rsa-sha256; cv=none; b=ZWWGL7+qpE8gfEEYuHpM3FxM0rdvhmrzW/IhvfC5SuOXWOXLRfglMwtnVMVKDGdotTXZt4 YjQX5mXfv0lin2rPFj6vT7BELSjz4P8omH4WeHrHAZi/n7D84jnPFZEq6bOQNX4o6nt5yb L2i3o30QnSy+YuW6jZjXlLDy5L1NyK0qfRz5xtNCg62d9qh6ojhxl4M9cC0Q3DoL7XZs05 2UMmDf1oaebaAk0HUyZV7zGaxctU8CSKKuXohrOjOOT6NbfCBphzKCIhqeWHa+YX7tVswj NaWCBiWuDwf8/wg/ehVl3TChtlRKrKeA1h2UxuDF1H+yRJIi+oH1pgz1KfpajA== 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 4R6hrM6V9Nz14Tk; Fri, 21 Jul 2023 08:03:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36L83FEm063069; Fri, 21 Jul 2023 08:03:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36L83Fer063068; Fri, 21 Jul 2023 08:03:15 GMT (envelope-from git) Date: Fri, 21 Jul 2023 08:03:15 GMT Message-Id: <202307210803.36L83Fer063068@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: 8bafc25ae4f4 - main - math/libdivide: Add NATIVE option List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 8bafc25ae4f48be3af984c4be1b9cd0d7a181350 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8bafc25ae4f48be3af984c4be1b9cd0d7a181350 commit 8bafc25ae4f48be3af984c4be1b9cd0d7a181350 Author: Yuri Victorovich AuthorDate: 2023-07-21 07:56:35 +0000 Commit: Yuri Victorovich CommitDate: 2023-07-21 08:03:10 +0000 math/libdivide: Add NATIVE option PR: 272497 Approved by: thierry@ (maintainer) --- math/libdivide/Makefile | 5 +++++ math/libdivide/files/patch-CMakeLists.txt | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/math/libdivide/Makefile b/math/libdivide/Makefile index b2046853b51b..764f37805bd0 100644 --- a/math/libdivide/Makefile +++ b/math/libdivide/Makefile @@ -1,5 +1,6 @@ PORTNAME= libdivide DISTVERSION= 5.0 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= thierry@FreeBSD.org @@ -24,6 +25,10 @@ PLIST_FILES= include/libdivide.h \ lib/cmake/libdivide/libdivideConfig.cmake \ lib/cmake/libdivide/libdivideConfigVersion.cmake +OPTIONS_DEFINE= NATIVE + +NATIVE_CMAKE_BOOL= FREEBSD_NATIVE + do-test: ${CONFIGURE_WRKSRC}/tester diff --git a/math/libdivide/files/patch-CMakeLists.txt b/math/libdivide/files/patch-CMakeLists.txt index b89ebfba8f21..4cb7764bb3f4 100644 --- a/math/libdivide/files/patch-CMakeLists.txt +++ b/math/libdivide/files/patch-CMakeLists.txt @@ -13,7 +13,7 @@ ) # Build options ################################################ -@@ -93,7 +93,6 @@ if (BUILD_TESTS AND NOT CMAKE_CROSSCOMPILING) +@@ -93,11 +93,10 @@ if (BUILD_TESTS AND NOT CMAKE_CROSSCOMPILING) CPU_ARM_NEON) if (CPU_X86 OR CPU_ARM_NEON) cmake_push_check_state() @@ -21,3 +21,8 @@ check_cxx_compiler_flag(-march=native MARCH_NATIVE) cmake_pop_check_state() +- if (MARCH_NATIVE) ++ if (MARCH_NATIVE AND FREEBSD_NATIVE) + list(APPEND LIBDIVIDE_FLAGS "-march=native") + endif() + endif()