diff options
author | Michael Vetter <jubalh@iodoru.org> | 2024-01-08 10:03:41 +0000 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-01-10 13:38:49 +0100 |
commit | 279f5747382c017d448215903ddfa212919ab1ae (patch) | |
tree | 547228ef01fbdd22fe891cc602cb275036ef1679 | |
parent | media-libs/partio: add 1.17.1 (diff) | |
download | gentoo-279f5747382c017d448215903ddfa212919ab1ae.tar.gz gentoo-279f5747382c017d448215903ddfa212919ab1ae.tar.bz2 gentoo-279f5747382c017d448215903ddfa212919ab1ae.zip |
media-libs/jasper: add 4.1.1
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Closes: https://github.com/gentoo/gentoo/pull/34707
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r-- | media-libs/jasper/Manifest | 1 | ||||
-rw-r--r-- | media-libs/jasper/jasper-4.1.1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest index cb9e39b4d412..8889ed116334 100644 --- a/media-libs/jasper/Manifest +++ b/media-libs/jasper/Manifest @@ -1 +1,2 @@ DIST jasper-4.0.0.tar.gz 1975127 BLAKE2B d4d8ae3324f3753e999adee57c215b89fa0ddeb3d945f10de15459a7d6566f1de9cbcd27a418bcc3c128bc138fff7e3f1cc157b6750d2d7dc1216f8e8cbc8bea SHA512 dc03434870e85b1fdbdf41a3e07ce5a8044c8d225717d3d7a5969d45e3bd716bfb2abc4b4e0b8cec2f4071a7520c5d3e48939dba0cabe6d192eacd593de0c563 +DIST jasper-4.1.1.tar.gz 1979438 BLAKE2B 7f72c7f5633b7b0b119733ea7cdaa51684d3593ea19de21ae45f036ac79245b418b4f72a90f4b7d458b38ea480f008a8b67a74a0c4f440c9d86f76419e04e712 SHA512 a15c196d7e448fb3c8b6512793d4b430e58ba6adf343b46392cac0880ae8c385cd75b43dd566c4a25baab983089cb95c00ae538dc0b84282cc98f2a9ce398d43 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 +} |