media-gfx/KTX-Software - 4.4.2 (guru)

Search

Install

Install this version:

emerge -a =media-gfx/KTX-Software-4.4.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-gfx/KTX-Software-4.4.2

Or alternatively:

emerge --autounmask-write -a =media-gfx/KTX-Software-4.4.2

Package Information

Description:
KTX (Khronos Texture) Library and Tools
Homepage:
https://github.com/KhronosGroup/KTX-Software
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
4.4.2 8 ~amd64 0
View Raw Ebuild
# 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"

SRC_URI="https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"

BDEPEND="
	app-shells/bash
"

PATCHES=(
	"${FILESDIR}/${P}-remove-O3.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
		-DCMAKE_CXX_STANDARD=14 # https://github.com/KhronosGroup/KTX-Software/issues/1172
	)

	cmake_src_configure
}

src_install() {
	cmake_src_install
}

Inherited Eclasses

Dependencies

BDEPEND

	app-shells/bash

Manifest for 4.4.2

Type File Size Source URLs
DIST KTX-Software-4.4.2.tar.gz 212599126 bytes https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v4.4.2.tar.gz