From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B2B1C15800F for ; Sat, 28 Jan 2023 05:11:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B20A2E0858; Sat, 28 Jan 2023 05:11:07 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9257BE0858 for ; Sat, 28 Jan 2023 05:11:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9456340E2D for ; Sat, 28 Jan 2023 05:11:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F24EC858 for ; Sat, 28 Jan 2023 05:11:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1674882653.5144810b848e0bf43bbdd7185e4405f5cc5cea2b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/basis_universal/, games-util/basis_universal/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/basis_universal/Manifest games-util/basis_universal/basis_universal-1.16.3.ebuild games-util/basis_universal/files/basis_universal-1.16.3-fix-RPATH.patch games-util/basis_universal/files/basis_universal-1.16.3-respect-CFLAGS.patch games-util/basis_universal/metadata.xml X-VCS-Directories: games-util/basis_universal/files/ games-util/basis_universal/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5144810b848e0bf43bbdd7185e4405f5cc5cea2b X-VCS-Branch: master Date: Sat, 28 Jan 2023 05:11:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f8167f7-13f8-4f62-8e27-3c04dd7edd76 X-Archives-Hash: 382292231fa047a81c98d8c571ef971c commit: 5144810b848e0bf43bbdd7185e4405f5cc5cea2b Author: Sam James gentoo org> AuthorDate: Sat Jan 28 05:01:23 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 28 05:10:53 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5144810b games-util/basis_universal: new package, add 1.16.3 Bug: https://bugs.gentoo.org/879319 Signed-off-by: Sam James gentoo.org> games-util/basis_universal/Manifest | 1 + .../basis_universal/basis_universal-1.16.3.ebuild | 43 ++++++++++++++++++++++ .../files/basis_universal-1.16.3-fix-RPATH.patch | 10 +++++ .../basis_universal-1.16.3-respect-CFLAGS.patch | 11 ++++++ games-util/basis_universal/metadata.xml | 14 +++++++ 5 files changed, 79 insertions(+) diff --git a/games-util/basis_universal/Manifest b/games-util/basis_universal/Manifest new file mode 100644 index 000000000000..58fd6f56d6b3 --- /dev/null +++ b/games-util/basis_universal/Manifest @@ -0,0 +1 @@ +DIST basis_universal-1.16.3.tar.gz 29151155 BLAKE2B e3ef3ead6223aa73012bd74e51dae269746cfcf2720c524be8096ce8643777723888f98a140d2e28c881ed60ab54b7ea6fef4205b72757d72e766f85806b4484 SHA512 3dca02ad6c14e74df7a89d3b2a59b970635cf5e268b96eb91b10033e2b8e635c83aca6b8e9b34a1b689ed5ffe7c8348d15b8524385f6d07a51cc34a46246a0b7 diff --git a/games-util/basis_universal/basis_universal-1.16.3.ebuild b/games-util/basis_universal/basis_universal-1.16.3.ebuild new file mode 100644 index 000000000000..d89b78821f60 --- /dev/null +++ b/games-util/basis_universal/basis_universal-1.16.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="Basis Universal GPU Texture Codec" +HOMEPAGE="https://github.com/BinomialLLC/basis_universal" +# dist .zip is just a exe for windows +SRC_URI="https://github.com/BinomialLLC/basis_universal/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 zstd? ( BSD )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cpu_flags_x86_sse4_1 opencl zstd" + +# zstd is bundled, see https://github.com/BinomialLLC/basis_universal/pull/228 +DEPEND=" + opencl? ( virtual/opencl ) +" +RDEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.16.3-respect-CFLAGS.patch + "${FILESDIR}"/${PN}-1.16.3-fix-RPATH.patch +) + +src_configure() { + local x64=ON + if $(tc-getCC) -dM -E -x c - < <(echo 'int main() { }') | grep -qi "#define __PTRDIFF_WIDTH__ 32" ; then + x64=OFF + fi + + local mycmakeargs=( + -DBUILD_X64=${x64} + -DOPENCL=$(usex opencl) + -DSSE=$(usex cpu_flags_x86_sse4_1) + -DZSTD=$(usex zstd) + ) + + cmake_src_configure +} diff --git a/games-util/basis_universal/files/basis_universal-1.16.3-fix-RPATH.patch b/games-util/basis_universal/files/basis_universal-1.16.3-fix-RPATH.patch new file mode 100644 index 000000000000..d15ba0d4ddfb --- /dev/null +++ b/games-util/basis_universal/files/basis_universal-1.16.3-fix-RPATH.patch @@ -0,0 +1,10 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -103,7 +103,6 @@ if (NOT MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBASISU_SUPPORT_SSE=0") + endif() + +- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_LINK_FLAGS} -Wl,-rpath .") + endif() + + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COMPILE_FLAGS}") diff --git a/games-util/basis_universal/files/basis_universal-1.16.3-respect-CFLAGS.patch b/games-util/basis_universal/files/basis_universal-1.16.3-respect-CFLAGS.patch new file mode 100644 index 000000000000..e7c1db7ea2bf --- /dev/null +++ b/games-util/basis_universal/files/basis_universal-1.16.3-respect-CFLAGS.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -72,7 +72,7 @@ if (NOT MSVC) + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined") + endif() + +- set(CMAKE_CXX_FLAGS -std=c++11) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + set(GCC_COMPILE_FLAGS "-fvisibility=hidden -fPIC -fno-strict-aliasing -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wno-unused-local-typedefs -Wno-unused-value -Wno-unused-parameter -Wno-unused-variable") + + if (NOT BUILD_X64) diff --git a/games-util/basis_universal/metadata.xml b/games-util/basis_universal/metadata.xml new file mode 100644 index 000000000000..20e5846d4192 --- /dev/null +++ b/games-util/basis_universal/metadata.xml @@ -0,0 +1,14 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + Enable OpenCL support + + + BinomialLLC/basis_universal + +