mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-12 16:18:42 +02:00
*Should* fix bug #944902 but lazily haven't actually tried gcc15+musl given my ready-to-use musl chroot is llvm-musl. Did try it with glibc and gcc-15 is fine as-is though. Closes: https://bugs.gentoo.org/944902 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
40 lines
940 B
Bash
40 lines
940 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake flag-o-matic
|
|
|
|
DESCRIPTION="Utility to optimize JPEG files"
|
|
HOMEPAGE="https://www.kokkonen.net/tjko/projects.html"
|
|
SRC_URI="https://github.com/tjko/jpegoptim/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
# TODO: switch back to this if tarballs become available in a timely fashion
|
|
#SRC_URI="https://www.kokkonen.net/tjko/src/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
|
|
|
RDEPEND="media-libs/libjpeg-turbo:="
|
|
DEPEND="${RDEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.5.3-system-libjpeg-libm.patch
|
|
)
|
|
|
|
src_configure() {
|
|
use elibc_musl && append-cppflags -D__GNU_LIBRARY__ #944902
|
|
|
|
local mycmakeargs=(
|
|
-DUSE_MOZJPEG=no
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
# lacks an install target with cmake
|
|
dobin "${BUILD_DIR}"/${PN}
|
|
doman ${PN}.1
|
|
einstalldocs
|
|
}
|