11 |
11 |
inherit git-r3
|
12 |
12 |
else
|
13 |
13 |
GLAD_PV=2.0.4
|
|
14 |
FASTFLOAT_PV=5.2.0
|
14 |
15 |
SRC_URI="
|
15 |
16 |
https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${PV}.tar.bz2
|
|
17 |
https://github.com/fastfloat/fast_float/archive/refs/tags/v${FASTFLOAT_PV}.tar.gz
|
|
18 |
-> fast_float-${FASTFLOAT_PV}.tar.gz
|
16 |
19 |
opengl? (
|
17 |
20 |
https://github.com/Dav1dde/glad/archive/refs/tags/v${GLAD_PV}.tar.gz
|
18 |
|
-> glad-${GLAD_PV}.tar.gz
|
|
21 |
-> ${PN}-glad-${GLAD_PV}.tar.gz
|
19 |
22 |
)
|
20 |
23 |
"
|
21 |
24 |
S="${WORKDIR}/${PN}-v${PV}"
|
22 |
|
KEYWORDS="amd64 ppc64 x86"
|
|
25 |
KEYWORDS="~amd64 ~ppc64 ~x86"
|
23 |
26 |
fi
|
24 |
27 |
|
25 |
28 |
DESCRIPTION="Reusable library for GPU-accelerated image processing primitives"
|
... | ... | |
28 |
31 |
https://code.videolan.org/videolan/libplacebo/
|
29 |
32 |
"
|
30 |
33 |
|
31 |
|
LICENSE="LGPL-2.1+ opengl? ( MIT )"
|
|
34 |
LICENSE="
|
|
35 |
LGPL-2.1+
|
|
36 |
|| ( Apache-2.0 Boost-1.0 MIT )
|
|
37 |
opengl? ( MIT )
|
|
38 |
"
|
32 |
39 |
SLOT="0/$(ver_cut 2 ${PV}.9999)" # soname
|
33 |
|
IUSE="glslang lcms llvm-libunwind +opengl +shaderc test unwind +vulkan"
|
|
40 |
IUSE="glslang +lcms llvm-libunwind +opengl +shaderc test unwind +vulkan +xxhash"
|
34 |
41 |
RESTRICT="!test? ( test )"
|
35 |
42 |
REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )"
|
36 |
43 |
|
37 |
|
# libglvnd is used with dlopen() through glad (inc. egl/gles)
|
|
44 |
# dlopen: libglvnd (glad)
|
38 |
45 |
RDEPEND="
|
39 |
46 |
lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] )
|
40 |
47 |
opengl? ( media-libs/libglvnd[${MULTILIB_USEDEP}] )
|
... | ... | |
45 |
52 |
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
46 |
53 |
)
|
47 |
54 |
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
|
55 |
xxhash? ( dev-libs/xxhash[${MULTILIB_USEDEP}] )
|
48 |
56 |
"
|
49 |
57 |
# vulkan-headers is required even with USE=-vulkan (bug #882065)
|
50 |
58 |
DEPEND="
|
... | ... | |
67 |
75 |
|
68 |
76 |
src_unpack() {
|
69 |
77 |
if [[ ${PV} == 9999 ]]; then
|
70 |
|
local EGIT_SUBMODULES=( $(usev opengl 3rdparty/glad) )
|
|
78 |
local EGIT_SUBMODULES=(
|
|
79 |
3rdparty/fast_float
|
|
80 |
$(usev opengl 3rdparty/glad)
|
|
81 |
)
|
71 |
82 |
git-r3_src_unpack
|
72 |
83 |
else
|
73 |
84 |
default
|
|
85 |
|
|
86 |
rmdir "${S}"/3rdparty/fast_float || die
|
|
87 |
mv fast_float-${FASTFLOAT_PV} "${S}"/3rdparty/fast_float || die
|
|
88 |
|
74 |
89 |
if use opengl; then
|
75 |
90 |
rmdir "${S}"/3rdparty/glad || die
|
76 |
91 |
mv glad-${GLAD_PV} "${S}"/3rdparty/glad || die
|
... | ... | |
100 |
115 |
$(meson_feature vulkan)
|
101 |
116 |
$(meson_feature vulkan vk-proc-addr)
|
102 |
117 |
-Dvulkan-registry="${ESYSROOT}"/usr/share/vulkan/registry/vk.xml
|
|
118 |
$(meson_feature xxhash)
|
103 |
119 |
)
|
104 |
120 |
|
105 |
121 |
meson_src_configure
|