# Copyright 1999-2024 Gentoo Authors, 2007-2024 Mir Calculate # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake MY_PN=libjpeg-turbo DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library" HOMEPAGE="https://libjpeg-turbo.org/ https://sourceforge.net/projects/libjpeg-turbo/" SRC_URI="https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz mirror://gentoo/libjpeg8_8d-2.debian.tar.gz" S="${WORKDIR}/${MY_PN}-${PV}" LICENSE="BSD IJG ZLIB" SLOT="0/0.2" if [[ $(ver_cut 3) -lt 90 ]] ; then KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" fi IUSE="cpu_flags_arm_neon" ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )" BDEPEND=" amd64? ( ${ASM_DEPEND} ) x86? ( ${ASM_DEPEND} ) amd64-linux? ( ${ASM_DEPEND} ) x86-linux? ( ${ASM_DEPEND} ) " MULTILIB_WRAPPED_HEADERS=( /usr/include/jconfig.h ) src_prepare() { local FILE ln -snf ../debian/extra/*.c . || die for FILE in ../debian/extra/*.c; do FILE=${FILE##*/} cat >> CMakeLists.txt <