media-libs/charls - 2.4.2 (jm-overlay)

Search

Install

Install this version:

emerge -a =media-libs/charls-2.4.2

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

autounmask =media-libs/charls-2.4.2

Or alternatively:

emerge --autounmask-write -a =media-libs/charls-2.4.2

Package Information

Description:
C++ implementation of the JPEG-LS standard
Homepage:
https://github.com/team-charls/charls
License:
BSD

Ebuild Details

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

EAPI=8

CMAKE_ECLASS=cmake
inherit cmake-multilib

DESCRIPTION="C++ implementation of the JPEG-LS standard"
HOMEPAGE="https://github.com/team-charls/charls"
SRC_URI="https://github.com/team-charls/charls/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs"

DEPEND=""
RDEPEND="${DEPEND}"

multilib_src_configure() {
	myconfig() {
		local mycmakeargs=(
			-DCHARLS_BUILD_SAMPLES=OFF
			-DCHARLS_BUILD_TESTS=OFF
			-DCHARLS_INSTALL=ON
		)
		if [[ ${MULTIBUILD_VARIANT} = static-libs ]]; then
			mycmakeargs+=( -DBUILD_SHARED_LIBS=OFF )
		else
			mycmakeargs+=( -DBUILD_SHARED_LIBS=ON )
		fi
		cmake_src_configure
	}
	MULTIBUILD_VARIANTS=($(usev static-libs) shared)
	multibuild_foreach_variant myconfig
}

multilib_src_compile() {
	MULTIBUILD_VARIANTS=($(usev static-libs) shared)
	multibuild_foreach_variant cmake_src_compile
}

multilib_src_install() {
	MULTIBUILD_VARIANTS=($(usev static-libs) shared)
	multibuild_foreach_variant cmake_src_install
}

multilib_src_install_all() {
	dodoc CHANGELOG.md README.md SECURITY.md
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-libs/charls | euse -E <flag> -p media-libs/charls | euse -D <flag> -p media-libs/charls

Global/Standard Flags

Inherited Eclasses

Manifest for 2.4.2

Type File Size Source URLs
DIST charls-2.4.2.tar.gz 9492449 bytes https://github.com/team-charls/charls/archive/2.4.2.tar.gz