blob: 5060454642880e4e7bfad0b12797282efba23c33 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
DESCRIPTION="A graphical music visualization plugin similar to milkdrop"
HOMEPAGE="https://github.com/projectM-visualizer/projectm"
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="https://github.com/projectM-visualizer/projectm.git"
inherit git-r3
else
MY_PV="${PV/_/-}"
SRC_URI="https://github.com/projectM-visualizer/projectm/releases/download/v${MY_PV}/libprojectM-${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86"
S="${WORKDIR}/libprojectM-${MY_PV}"
fi
LICENSE="LGPL-2"
SLOT="4"
IUSE="gles2-only static-libs"
RDEPEND="
media-libs/glm
media-libs/libglvnd[X(+)]
"
DEPEND="${RDEPEND}"
multilib_prc_prepare() {
cmake_src_prepare
}
multilib_src_configure() {
local mycmakeargs=(
-DENABLE_SDL_UI=OFF
-DENABLE_CXX_INTERFACE=OFF
-DENABLE_GLES=$(usex gles2-only)
-DENABLE_SYSTEM_GLM=ON
-DBUILD_SHARED_LIBS=$(usex static-libs OFF ON)
)
cmake_src_configure
}
multilib_src_install_all() {
default
}
|