media-libs/libbpg: drop 0.9.8

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2023-09-17 22:43:36 +02:00
parent 9899215675
commit 0dd9a2fc18
2 changed files with 0 additions and 82 deletions

View File

@@ -1,80 +0,0 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Better Portable Graphics reference implementation"
HOMEPAGE="https://bellard.org/bpg/"
SRC_URI="https://bellard.org/bpg/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+x265 bpgview jctvc emcc static-libs"
PATCHES=(
"${FILESDIR}"/${P}-remove-forced-options.patch
"${FILESDIR}"/${P}-dont-strip-bins.patch
"${FILESDIR}"/${P}-add-chost.patch
"${FILESDIR}"/${P}-add-fpic.patch
)
DEPEND="sys-process/numactl"
RDEPEND="${DEPEND}"
BDEPEND="
media-video/ffmpeg
media-libs/libpng
media-libs/libjpeg-turbo
bpgview? ( media-libs/sdl-image
media-libs/libsdl )
dev-lang/yasm
"
src_prepare() {
default
cat <<EOF > ${PN}.pc
prefix="${EPREFIX}/usr"
libdir="\${prefix}/$(get_libdir)"
includedir="\${prefix}/include"
Name: ${PN}
Description: ${DESCRIPTION}
URL: ${HOMEPAGE}
Version: ${PV}
Libs: "-L\${libdir}" -lbpg
Cflags: "-I\${includedir}"
EOF
sed -Ei 's/^(X265_LIBS:=.+\.a)$/\1 -lnuma/' Makefile || die
}
src_compile() {
emake \
$(usex x265 USE_X265=y '') \
$(usex bpgview USE_BPGVIEW=y '') \
$(usex jctvc USE_JCTVC=y '') \
$(usex emcc USE_EMCC=y '') \
CXX="$(tc-getCXX)" \
CC="$(tc-getCC)"
}
src_install() {
mkdir -p "${D}"/usr/bin
emake prefix="${D}"/usr install
if use bpgview; then
dobin bpgview
fi
if use static-libs; then
dolib.a libbpg.a
doheader libbpg.h
doheader bpgenc.h
insinto /usr/$(get_libdir)/pkgconfig
doins ${PN}.pc
fi
}

View File

@@ -17,9 +17,7 @@
</upstream>
<use>
<!-- useflag description copied from the Makefile -->
<flag name="x265">Enable x265 for the encoder</flag>
<flag name="bpgview">Compile bpgview (<pkg>media-libs/libsdl</pkg> and <pkg>media-libs/sdl-image</pkg> needed)</flag>
<flag name="jctvc">Enable the JCTVC code (best quality but slow) for the encoder</flag>
<flag name="emcc">Enable compilation of Javascript decoder with Emscripten</flag>
</use>
</pkgmetadata>