media-gfx/nvidia-texture-tools - 2.1.2 (voyageur)

Search

Package Information

Description:
A set of cuda-enabled texture tools and compressors
Homepage:
https://github.com/castano/nvidia-texture-tools
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.1.2 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake toolchain-funcs

DESCRIPTION="A set of cuda-enabled texture tools and compressors"
HOMEPAGE="https://github.com/castano/nvidia-texture-tools"
SRC_URI="https://github.com/castano/nvidia-texture-tools/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cpu_flags_x86_sse2 openmp"

RDEPEND="
	media-libs/openexr:=
	media-libs/libpng:0=
	media-libs/tiff:0
	sys-libs/zlib
	media-libs/libjpeg-turbo:0=
	x11-libs/libX11
"
DEPEND="${RDEPEND}
	virtual/pkgconfig
"

PATCHES=(
	"${FILESDIR}"/${P}-cmake.patch
	"${FILESDIR}"/${P}-test_path.patch
	)
DOCS=( ChangeLog README.md )

pkg_pretend() {
	if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
		tc-check-openmp || die "Please switch to an openmp compatible compiler"
	fi
}

src_configure() {
	# May be able to restore CUDA, but needs an old gcc
	local mycmakeargs=(
		-DCUDA_FOUND=OFF
		-DGCONFTOOL2=OFF
		-DNVTT_SHARED=0
		-DBUILD_SQUISH_WITH_OPENMP=$(usex openmp)
		-DBUILD_SQUISH_WITH_SSE2=$(usex cpu_flags_x86_sse2)
	)
	cmake_src_configure
}

USE Flags

Dependencies

DEPEND

	media-libs/openexr:=
	media-libs/libpng:0=
	media-libs/tiff:0
	sys-libs/zlib
	media-libs/libjpeg-turbo:0=
	x11-libs/libX11

	virtual/pkgconfig

RDEPEND

	media-libs/openexr:=
	media-libs/libpng:0=
	media-libs/tiff:0
	sys-libs/zlib
	media-libs/libjpeg-turbo:0=
	x11-libs/libX11

Manifest for 2.1.2

Type File Size Source URLs
DIST nvidia-texture-tools-2.1.2.tar.gz 45172897 bytes https://github.com/castano/nvidia-texture-tools/archive/2.1.2.tar.gz