diff options
Diffstat (limited to 'media-libs/libprojectm/libprojectm-4.1.1-r1.ebuild')
-rw-r--r-- | media-libs/libprojectm/libprojectm-4.1.1-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-libs/libprojectm/libprojectm-4.1.1-r1.ebuild b/media-libs/libprojectm/libprojectm-4.1.1-r1.ebuild new file mode 100644 index 000000000000..85e9805a42d7 --- /dev/null +++ b/media-libs/libprojectm/libprojectm-4.1.1-r1.ebuild @@ -0,0 +1,47 @@ +# 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/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 +} |