summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-02-04 22:52:11 +0000
committerSam James <sam@gentoo.org>2023-02-04 22:52:11 +0000
commita5354e41247c7fdbe742beada69b2aa0a3f38ce2 (patch)
tree48753e050ad9e3a136924503bf1a5ff05ea684dd /media-libs/libjpeg-turbo
parentnet-im/telegram-desktop-bin: add 4.6.0 (diff)
downloadgentoo-a5354e41247c7fdbe742beada69b2aa0a3f38ce2.tar.gz
gentoo-a5354e41247c7fdbe742beada69b2aa0a3f38ce2.tar.bz2
gentoo-a5354e41247c7fdbe742beada69b2aa0a3f38ce2.zip
media-libs/libjpeg-turbo: add 2.1.5
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libjpeg-turbo')
-rw-r--r--media-libs/libjpeg-turbo/Manifest1
-rw-r--r--media-libs/libjpeg-turbo/libjpeg-turbo-2.1.5.ebuild130
2 files changed, 131 insertions, 0 deletions
diff --git a/media-libs/libjpeg-turbo/Manifest b/media-libs/libjpeg-turbo/Manifest
index 16b2b74196f6..152fb21c687d 100644
--- a/media-libs/libjpeg-turbo/Manifest
+++ b/media-libs/libjpeg-turbo/Manifest
@@ -1,3 +1,4 @@
DIST libjpeg-turbo-2.1.3.tar.gz 2260756 BLAKE2B 87ef47105e66b2ee918e95962ac59963b6adea5b49ab0db692810aee0a13a215a0ef7fe0b549ecd5151274549e12d09eb0b42439bf0a4bc1ad2c4e62dcceb77c SHA512 975c9835de7d70c6c8c5a1959adfa18f7f956bc9946fde8f1b40c1d853245c38a3118ac06b93841ec3e90be6945c38d687d062b371496c2ee9b5638d7f60418d
DIST libjpeg-turbo-2.1.4.tar.gz 2261822 BLAKE2B 80ffd77d58a37eae0bdc1868d994f34ea52c13e2624c720b1d0b6ec4d6d14b16911163ccd4009c8d6eda214f31e1fff78bb7eb4739ae6589d0fd8c7008c0e972 SHA512 511f065767c022da06b6c36299686fa44f83441646f7e33b766c6cfab03f91b0e6bfa456962184071dadaed4057ba9a29cba685383f3eb86a4370a1a53731a70
+DIST libjpeg-turbo-2.1.5.tar.gz 2264471 BLAKE2B c65de2717ddc33447064412738b2db94a92693faad18f29f14c5c368d9eb4c617fe447a6f9428d9a101458dec0c65abc527e20632571eaa727d98cd5435241d4 SHA512 ceab6d1c3c46d2816b06402e3b912e950d887fc8a6fb32fa6876f4aaa663b4769d8f4c50e1b967addf6704d0760ca14ed723d55e0312d7ca69e7f2a91484c0dc
DIST libjpeg8_8d-2.debian.tar.gz 14764 BLAKE2B e93d12afa062da28b717b540492221f70e8d9ccf3885371647cf85a2937f938ca723d4a27d5e1c5d79c26aa25dddf69b38754558851a1704172e8b52baf8e17c SHA512 8c5959fb7583a2d61e9442187f67b91b45e72d9dd30db3360d583a3b5d8e1a908db5659f760bdd455b3056e6ae3535b2fd3b847df3d58b140a1816b754003675
diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.5.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.5.ebuild
new file mode 100644
index 000000000000..713c9e844e83
--- /dev/null
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.5.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib java-pkg-opt-2
+
+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"
+if [[ $(ver_cut 3) -lt 90 ]] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris ~x86-solaris"
+fi
+IUSE="cpu_flags_arm_neon java static-libs"
+
+ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )"
+COMMON_DEPEND="
+ !media-libs/jpeg:0
+ !media-libs/jpeg:62
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ java? ( >=virtual/jdk-1.8:*[-headless-awt] )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ java? ( >=virtual/jre-1.8:* )
+"
+BDEPEND="
+ amd64? ( ${ASM_DEPEND} )
+ x86? ( ${ASM_DEPEND} )
+ amd64-linux? ( ${ASM_DEPEND} )
+ x86-linux? ( ${ASM_DEPEND} )
+ x64-macos? ( ${ASM_DEPEND} )
+ x64-cygwin? ( ${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 <<EOF || die
+add_executable(${FILE%.c} ${FILE})
+install(TARGETS ${FILE%.c})
+EOF
+ done
+
+ cmake_src_prepare
+ java-pkg-opt-2_src_prepare
+}
+
+multilib_src_configure() {
+ if multilib_is_native_abi && use java ; then
+ export JAVACFLAGS="$(java-pkg_javac-args)"
+ export JNI_CFLAGS="$(java-pkg_get-jni-cflags)"
+ fi
+
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DEFAULT_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DENABLE_STATIC="$(usex static-libs)"
+ -DWITH_JAVA="$(multilib_native_usex java)"
+ -DWITH_MEM_SRCDST=ON
+ )
+
+ # Avoid ARM ABI issues by disabling SIMD for CPUs without NEON, bug #792810
+ if use arm || use arm64; then
+ mycmakeargs+=(
+ -DWITH_SIMD=$(usex cpu_flags_arm_neon)
+ -DNEON_INTRINSICS=$(usex cpu_flags_arm_neon)
+ )
+ fi
+
+ # We should tell the test suite which floating-point flavor we are
+ # expecting: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597
+ # For now, mark loong as fp-contract.
+ if use loong; then
+ mycmakeargs+=(
+ -DFLOATTEST=fp-contract
+ )
+ fi
+
+ # mostly for Prefix, ensure that we use our yasm if installed and
+ # not pick up host-provided nasm
+ if has_version -b dev-lang/yasm && ! has_version -b dev-lang/nasm; then
+ mycmakeargs+=(
+ -DCMAKE_ASM_NASM_COMPILER=$(type -P yasm)
+ )
+ fi
+
+ cmake_src_configure
+}
+
+multilib_src_install() {
+ cmake_src_install
+
+ if multilib_is_native_abi && use java ; then
+ rm -rf "${ED}"/usr/classes || die
+ java-pkg_dojar java/turbojpeg.jar
+ fi
+}
+
+multilib_src_install_all() {
+ find "${ED}" -type f -name '*.la' -delete || die
+
+ local -a DOCS=( README.md ChangeLog.md )
+ einstalldocs
+
+ newdoc "${WORKDIR}"/debian/changelog changelog.debian
+ dobin "${WORKDIR}"/debian/extra/exifautotran
+ doman "${WORKDIR}"/debian/extra/*.[0-9]*
+
+ docinto html
+ dodoc -r "${S}"/doc/html/.
+
+ if use java; then
+ docinto html/java
+ dodoc -r "${S}"/java/doc/.
+ newdoc "${S}"/java/README README.java
+ fi
+}