Files
guru/media-gfx/KTX-Software/KTX-Software-4.3.2.ebuild
Patrick Nicolas 8b6cc09e70 media-gfx/KTX-Software: patches for O3 and Werror
Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
2024-10-30 16:31:05 +01:00

49 lines
997 B
Bash

# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic
DESCRIPTION="KTX (Khronos Texture) Library and Tools"
HOMEPAGE="https://github.com/KhronosGroup/KTX-Software"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
SRC_URI="https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
RDEPEND="
"
DEPEND="
${RDEPEND}
"
BDEPEND="
app-shells/bash
"
PATCHES=(
"${FILESDIR}/${P}-remove-O3.patch"
"${FILESDIR}/${P}-remove-Werror.patch"
)
src_configure() {
# basisu_kernels_sse.cpp has a #error if any of those are set
append-cxxflags $(test-flags-CXX -mno-avx)
append-cxxflags $(test-flags-CXX -mno-avx2)
append-cxxflags $(test-flags-CXX -mno-avx512f)
local mycmakeargs=(
-DKTX_VERSION=${PV}
-DKTX_FEATURE_TESTS=OFF
-DBUILD_SHARED_LIBS=OFF # https://github.com/KhronosGroup/KTX-Software/issues/935
)
cmake_src_configure
}
src_install() {
cmake_src_install
}