media-libs/lodepng - 20210627 (ros-overlay)

Search

Install

Install this version:

emerge -a =media-libs/lodepng-20210627

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

autounmask =media-libs/lodepng-20210627

Or alternatively:

emerge --autounmask-write -a =media-libs/lodepng-20210627

Package Information

Description:
PNG encoder and decoder
Homepage:
http://lodev.org/lodepng https://github.com/lvandeve/lodepng
License:
ZLIB

Ebuild Details

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

EAPI=8

COMMIT="8c6a9e30576f07bf470ad6f09458a2dcd7a6a84a"

DESCRIPTION="PNG encoder and decoder"
HOMEPAGE="
	http://lodev.org/lodepng
	https://github.com/lvandeve/lodepng
"
SRC_URI="https://github.com/lvandeve/lodepng/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT}.gh.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="benchmark pngdetail showpng test"

DEPEND="
	benchmark? ( media-libs/libsdl )
	showpng? ( media-libs/libsdl )
"
RDEPEND="${DEPEND}"

RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}/${PN}-makefile.patch" )

src_compile() {
	emake liblodepng.so
	use test && emake unittest
	use benchmark && emake benchmark
	use showpng && emake showpng
	use pngdetail && emake pngdetail
}

src_install() {
	dodoc README.md
	doheader lodepng.h
	dolib.so liblodepng.so
	use showpng && dobin showpng
	use pngdetail && dobin pngdetail
	exeinto /usr/libexec/lodepng
	use benchmark && doexe benchmark
}

src_test() {
	LD_LIBRARY_PATH="${S}:${LD_LIBRARY_PATH}" ./unittest || die
}

USE Flags

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

Global/Standard Flags

Dependencies

DEPEND

	benchmark? ( media-libs/libsdl )
	showpng? ( media-libs/libsdl )

RDEPEND

	benchmark? ( media-libs/libsdl )
	showpng? ( media-libs/libsdl )

Manifest for 20210627

Type File Size Source URLs
DIST lodepng-20210627-8c6a9e30576f07bf470ad6f09458a2dcd7a6a84a.gh.tar.gz 242778 bytes https://github.com/lvandeve/lodepng/archive/8c6a9e30576f07bf470ad6f09458a2dcd7a6a84a.tar.gz