From nobody Fri Jul 21 08:04:19 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 4R6hsb49k7z4p1jn; Fri, 21 Jul 2023 08:04:19 +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 4R6hsb3lpHz3xPf; Fri, 21 Jul 2023 08:04:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689926659; 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=qosmJTT8ahAr73eicn2pY4s4p/ri1lDZB6oU0WeHx8g=; b=eh0xtflqk3EDv5TFRYMhqtLd+I9/9WKUZyrkAozBTtRKULspEOPnNlPnxr+g3o5CTXZacU 7P9/N5cF4EvD0+bChqfFKqlRzwxj/uKXicWQGweoFZDTsAatX6odSZLmxyZ6gE0TsD+yGp xxiQyP9GwY0t90L+2G0u2igaHMxlinesWtbCnr8FcRwf1nGXGxCVtfFm74jSf8sULeBKZf p6LRdbjoldOd6R5XX4avov5bLIJ81eX5TgIpAjm5TIjh57UzQmT/q9ozna3s1LEN3CIrCw 2mJdtudTqIGRBUwoG1cYni3jASecvD1hHY7ViizGMWwmGiEB0X30Dt1DOCpQTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689926659; 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=qosmJTT8ahAr73eicn2pY4s4p/ri1lDZB6oU0WeHx8g=; b=SFvxsIg0LvSutDWrBuOoq/0dHgQcEMe40NT2Hr2U/dp5Pznfi6QAou3FCnyqOFX+lR54r2 ZFIqtJATdCGAoY0kMRwYgZF0Rgv8wF5bLwDJnF1SwOkieUZMVAYbbNfDjUJzMvoGsxsft4 /goEa36Q37kAdSyXtp8tDdqoIyWGE/LA7AJg0p2ZtaCTgP9N4PLJvNkOBXgpB9RzccUfJ7 sPt1J192bO1ZgQEtwfNm658nzQYPrhJuvadbXyNp3J8y5Out1lye75k4SRQ5au5CCwxEGV qzuumleSZnSyL/3Bxhp2Hgt8KMhGACptoeFwtHdg6yfL/7PTlVitrG1yvSmgdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689926659; a=rsa-sha256; cv=none; b=xAgO5sliO1GQAzFEe8eg6Kakc23tcwirshl85/RIFUtV3lp1pNy7nxRPsvSF4R2CxkjqtH 6aMQr/5FzarVDBhTMxbCQE6C5cRRfb0Kww4Jz558MODYeCtI7NEyI9ma6R3n3qd/NKMkzx iEzTtcpo+TO1I72qQchSjZGMXnGtx03Ai8nYrZ9VIon9pONnDxJhPShwTgKgZxIxIqS3WI cZorlpetXwizbP9viYrI9SxkFoiGSUHQOSINXWNPm0LxWOuYET+HA5EziuOS2QJ0MkBrl7 M2r7V1SOuoJfEv8pVhBiI1mhF/vt6XsUEJTaxJ2Ai/16HboeSovPPk0yumHDYw== 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 4R6hsb2r2Xz14tB; Fri, 21 Jul 2023 08:04:19 +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 36L84JVJ063490; Fri, 21 Jul 2023 08:04:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36L84Jgr063489; Fri, 21 Jul 2023 08:04:19 GMT (envelope-from git) Date: Fri, 21 Jul 2023 08:04:19 GMT Message-Id: <202307210804.36L84Jgr063489@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Yuri Victorovich Subject: git: 4ab93272f790 - 2023Q3 - 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/2023Q3 X-Git-Reftype: branch X-Git-Commit: 4ab93272f7909c0fb11d8110519b32c141fff4c6 Auto-Submitted: auto-generated The branch 2023Q3 has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4ab93272f7909c0fb11d8110519b32c141fff4c6 commit 4ab93272f7909c0fb11d8110519b32c141fff4c6 Author: Yuri Victorovich AuthorDate: 2023-07-21 07:56:35 +0000 Commit: Yuri Victorovich CommitDate: 2023-07-21 08:04:14 +0000 math/libdivide: Add NATIVE option PR: 272497 Approved by: thierry@ (maintainer) (cherry picked from commit 8bafc25ae4f48be3af984c4be1b9cd0d7a181350) --- 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()