From nobody Sat Oct 28 17:31:05 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 4SHmls6FR4z503pc; Sat, 28 Oct 2023 17:31:05 +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 4SHmls5lDlz3bJT; Sat, 28 Oct 2023 17:31:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698514265; 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=F9tjIXEBe016+9sklu921XLCv+J5Ycyi4Yvrk+F7g+M=; b=uo/iM4j/Xv8pS/tMCVK+QIDG5u5SsqDHl8YzPp1x4T3bY1AhWrYjYbBp55S/qWnt1GW7gv pI9HtCD5TTzqKNObNUVlpgLs0tJ1WeYwFDFph1BhtbMQcXQMoUahK4qX2NFsm5cIv8Yx7t 4XYWgUlHLP2sRPszchDD1NsDUI4UXlTPXxTlTfhSRSNagcMpdC/WXT8CO1Xuv90QvUulT5 ji9PKYXGh4lLrg28DwQAolF/SSQl54r+C6xFdkl3WKQs3oGMwO9HUqyX7/pdJzGq1qyXDE 9lt3a9Z1UuxBQqyqN96MfmDxxEqXs4gLr3q6cVd2gMHWoNMhRCVsaThuCMAsBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698514265; 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=F9tjIXEBe016+9sklu921XLCv+J5Ycyi4Yvrk+F7g+M=; b=Rdl4Ob+wMnt081v/9kZkN+FNNi/naYCRAGKpC97wf/A8n5lEYtzs87LKQ5BWM9SVVp/7Wd 0hnRENsA1FZOaxIbJ6MTHFSLO6cG/Si3HxmS/p4cCnjnp7KoEDJ8umOCcTiRjspoBtjEsr j/FfaluqOoKOvqHi0InR2IXfh8/8JLIL3ZVLwPsNTZ+k77GbGHG3J/jk3Fq3ivtabYYFx/ +bIvXQRzeR2UI4zqynHQVdSfycCXZC//JSjPq68gdgiIhHZczTPkL+KJguUkPjuxp4Q8P0 aNDyhQcQNlk9OCSocqTxHz6Vd4s7k6Q36lfy9HFUi2dFM2iAWSzPcEsZKdE2MA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698514265; a=rsa-sha256; cv=none; b=wVItyWeBTX0M3vCJfb7cRtPv2ryHfg9bpYNdKhNvYUdpbO9DfWWLABNHYqGz4JdrxLZsix 0GtVgAi3nXc2Q+MX857T7iqWq/COKDTCXRBgiYdcglkhAz03VQQriujFcYnE8xxI/N1XD0 d2YzqD21PrxMWwIdfieBeuxf0z8nTLhDqBRC5+zscucGT+Vu4+HQikNyU0vj772RkWSSSm qiLQyQOh/EimzbYa2pKLhFjWtHKHFgF8YeJm7IPN76IDyNAXBjmHmvxOD6H6KB6I+wGXn6 q7kvtUmUpFXpMUkz6SH4Wjcij+0knSZKszOzAmwh5v+V91I++xwG84X9O4HwHQ== 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 4SHmls4qmbz14fT; Sat, 28 Oct 2023 17:31:05 +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 39SHV5Mh089159; Sat, 28 Oct 2023 17:31:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39SHV5YH089156; Sat, 28 Oct 2023 17:31:05 GMT (envelope-from git) Date: Sat, 28 Oct 2023 17:31:05 GMT Message-Id: <202310281731.39SHV5YH089156@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason E. Hale" Subject: git: bf02e174350c - main - science/qt6-quick3dphysics: Add SIMD option 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: jhale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bf02e174350cd0b77640d114941a18517cd5f26f Auto-Submitted: auto-generated The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=bf02e174350cd0b77640d114941a18517cd5f26f commit bf02e174350cd0b77640d114941a18517cd5f26f Author: Jason E. Hale AuthorDate: 2023-10-28 17:01:41 +0000 Commit: Jason E. Hale CommitDate: 2023-10-28 17:31:00 +0000 science/qt6-quick3dphysics: Add SIMD option This fixes building on i386 when SSE2 instructions are not available [1]. Vector intrinsics require either SSE2 or NEON intruction sets, so this option is only available for aarch64, amd64, armv7, and i386. Off by default on i386, since the package builders build for the least common denominator and don't assume that the processor has SSE2 like the headers in PhysX do. Reported by: pkg-fallout [1] --- science/qt6-quick3dphysics/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/science/qt6-quick3dphysics/Makefile b/science/qt6-quick3dphysics/Makefile index 2f8ac5d7d9f6..578413a0b34a 100644 --- a/science/qt6-quick3dphysics/Makefile +++ b/science/qt6-quick3dphysics/Makefile @@ -1,5 +1,6 @@ PORTNAME= quick3dphysics DISTVERSION= ${QT6_VERSION} +PORTREVISION= 1 CATEGORIES= science PKGNAMEPREFIX= qt6- @@ -12,7 +13,32 @@ LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon USES= cmake compiler:c++17-lang gl pkgconfig qt-dist:6 USE_GL= opengl +USE_LDCONFIG= yes USE_LOCALE= C.UTF-8 USE_QT= base declarative quick3d shadertools +OPTIONS_DEFINE_aarch64= SIMD +OPTIONS_DEFINE_amd64= SIMD +OPTIONS_DEFINE_armv7= SIMD +OPTIONS_DEFINE_i386= SIMD +OPTIONS_DEFAULT_aarch64=SIMD +OPTIONS_DEFAULT_amd64= SIMD +OPTIONS_DEFAULT_armv7= SIMD + +.include + +# Either SSE2 or NEON instruction sets are required on i386/amd64 or armv7/ +# aarch64, respectively, to compile vector intrinsics. However i386 does not +# guarantee SSE2, nor does armv7 NEON, but from what I understand, llvm implies +# NEON for armv7. If the SIMD option is selected on i386 and SSE2 is not +# available, we ignore. SIMD support on other platforms is not implemented. + +.if ${PORT_OPTIONS:MSIMD} +. if ${ARCH} == "i386" && empty(MACHINE_CPU:Msse2) +IGNORE= sse2 instructions required +. endif +.else +CFLAGS+= -DPX_SIMD_DISABLED +.endif + .include