blob: 6540d381994287d571a0eb6bb82f7498d8856154 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# 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 test"
RESTRICT="!test? ( test )"
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-text/doxygen
dev-texlive/texlive-latexextra
dev-texlive/texlive-plaingeneric
virtual/latex-base
)
test? ( media-libs/openjpeg )"
PATCHES=(
"${FILESDIR}"/${PN}-4.1.2-which-hunt.patch
)
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
}
|