summaryrefslogtreecommitdiff
path: root/media-libs/jasper
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-10 19:03:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-10 19:03:44 +0000
commit6a4408b9bbd9fe61dc0966f587db94081fa5f52b (patch)
treeb169c2aac67648694c722324d81d57fd34c69d23 /media-libs/jasper
parent8c8f1cfd2aa9e839aad7dad6fd43b370cfbc0a1e (diff)
gentoo auto-resync : 10:01:2024 - 19:03:44
Diffstat (limited to 'media-libs/jasper')
-rw-r--r--media-libs/jasper/Manifest2
-rw-r--r--media-libs/jasper/jasper-4.1.1.ebuild60
2 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest
index 388758f5acd8..6049e50121d8 100644
--- a/media-libs/jasper/Manifest
+++ b/media-libs/jasper/Manifest
@@ -1,4 +1,6 @@
DIST jasper-4.0.0.tar.gz 1975127 BLAKE2B d4d8ae3324f3753e999adee57c215b89fa0ddeb3d945f10de15459a7d6566f1de9cbcd27a418bcc3c128bc138fff7e3f1cc157b6750d2d7dc1216f8e8cbc8bea SHA512 dc03434870e85b1fdbdf41a3e07ce5a8044c8d225717d3d7a5969d45e3bd716bfb2abc4b4e0b8cec2f4071a7520c5d3e48939dba0cabe6d192eacd593de0c563
+DIST jasper-4.1.1.tar.gz 1979438 BLAKE2B 7f72c7f5633b7b0b119733ea7cdaa51684d3593ea19de21ae45f036ac79245b418b4f72a90f4b7d458b38ea480f008a8b67a74a0c4f440c9d86f76419e04e712 SHA512 a15c196d7e448fb3c8b6512793d4b430e58ba6adf343b46392cac0880ae8c385cd75b43dd566c4a25baab983089cb95c00ae538dc0b84282cc98f2a9ce398d43
EBUILD jasper-4.0.0.ebuild 1274 BLAKE2B 9eaa72962ac0bed19172c64363ed3e875c6899c6c6b68e83a6a1c448c12cf9bbf3958344f6fecf5444c255daee10814232c759ec4aec643e3c0126d76c83d47e SHA512 7987d3e79be0c2a97850b1cf37423785f5733e1c431e8d5bc7d81a11d82099779fdbf6aacf258e25abbd6fce0ecf58a7373817610d29c76310d820f419772554
+EBUILD jasper-4.1.1.ebuild 1274 BLAKE2B 9eaa72962ac0bed19172c64363ed3e875c6899c6c6b68e83a6a1c448c12cf9bbf3958344f6fecf5444c255daee10814232c759ec4aec643e3c0126d76c83d47e SHA512 7987d3e79be0c2a97850b1cf37423785f5733e1c431e8d5bc7d81a11d82099779fdbf6aacf258e25abbd6fce0ecf58a7373817610d29c76310d820f419772554
EBUILD jasper-9999.ebuild 1274 BLAKE2B 9eaa72962ac0bed19172c64363ed3e875c6899c6c6b68e83a6a1c448c12cf9bbf3958344f6fecf5444c255daee10814232c759ec4aec643e3c0126d76c83d47e SHA512 7987d3e79be0c2a97850b1cf37423785f5733e1c431e8d5bc7d81a11d82099779fdbf6aacf258e25abbd6fce0ecf58a7373817610d29c76310d820f419772554
MISC metadata.xml 705 BLAKE2B 1ec5282be2bb47e2aec8ff90ce6838c7d21675141450f9c4e1d7b00a61129c3dc01f987f4c31d442caed3121f4bae85a83078fa46f5a2dd05d41ab40e8c3adcd SHA512 69cf7881e582eb205283ad2ffdf6823f2dc6ce0200f88d8bb5cd31b983fb57c19b261e4f56fa95ae2aa1515d2eb34a805729d75585a671a36a782e37ea98c9d7
diff --git a/media-libs/jasper/jasper-4.1.1.ebuild b/media-libs/jasper/jasper-4.1.1.ebuild
new file mode 100644
index 000000000000..c9b2cc7fa814
--- /dev/null
+++ b/media-libs/jasper/jasper-4.1.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
+HOMEPAGE="https://jasper-software.github.io/jasper"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/jasper-software/jasper.git"
+else
+ SRC_URI="https://github.com/jasper-software/${PN}/archive/version-${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~x86"
+ S="${WORKDIR}/${PN}-version-${PV}"
+fi
+
+LICENSE="JasPer2.0"
+SLOT="0/7"
+IUSE="doc heif jpeg opengl"
+
+RDEPEND="
+ heif? ( media-libs/libheif:= )
+ jpeg? ( media-libs/libjpeg-turbo:= )
+ opengl? (
+ media-libs/freeglut
+ virtual/opengl
+ virtual/glu
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-shells/bash
+ doc? (
+ app-doc/doxygen
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-plaingeneric
+ virtual/latex-base
+ )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBASH_PROGRAM="${BROOT}"/bin/bash
+
+ # documentation
+ $(cmake_use_find_package doc Doxygen)
+ $(cmake_use_find_package doc LATEX)
+
+ # HEIF
+ -DJAS_ENABLE_LIBHEIF=$(usex heif)
+
+ # JPEG
+ -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
+
+ # OpenGL
+ -DJAS_ENABLE_OPENGL=$(usex opengl)
+ )
+ cmake_src_configure
+}