# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 CMAKE_ECLASS=cmake inherit cmake-multilib java-pkg-opt-2 libtool toolchain-funcs DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library" HOMEPAGE="https://libjpeg-turbo.org/ https://sourceforge.net/projects/libjpeg-turbo/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://gentoo/libjpeg8_8d-2.debian.tar.gz" LICENSE="BSD IJG ZLIB" SLOT="0/0.2" [[ "$(ver_cut 3)" -ge 90 ]] || \ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="java static-libs" ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )" COMMON_DEPEND="!media-libs/jpeg:0 !media-libs/jpeg:62" BDEPEND=">=dev-util/cmake-3.16.5 amd64? ( ${ASM_DEPEND} ) x86? ( ${ASM_DEPEND} ) amd64-fbsd? ( ${ASM_DEPEND} ) x86-fbsd? ( ${ASM_DEPEND} ) amd64-linux? ( ${ASM_DEPEND} ) x86-linux? ( ${ASM_DEPEND} ) x64-macos? ( ${ASM_DEPEND} ) x64-cygwin? ( ${ASM_DEPEND} )" DEPEND="${COMMON_DEPEND} java? ( >=virtual/jdk-1.5 )" RDEPEND="${COMMON_DEPEND} java? ( >=virtual/jre-1.5 )" 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 <> CMakeLists.txt <> CMakeLists.txt <