# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit flag-o-matic DESCRIPTION="cross-platform music visualization. Open-source and Milkdrop-compatible" HOMEPAGE="https://github.com/projectM-visualizer/projectm" SRC_URI="https://github.com/projectM-visualizer/projectm/archive/v${PV}.tar.gz -> ${P}.tar.gz" # SRC_URI="https://github.com/projectM-visualizer/projectm/releases/download/v${PV}/projectM-${PV}-source.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" IUSE="sdl qt gles +threading static" RDEPEND=" media-libs/ftgl media-libs/glew:= sdl? ( media-libs/libsdl2 ) qt? ( dev-qt/qtopengl media-sound/pulseaudio ) " # media-libs/devil DEPEND="${RDEPEND} media-libs/glm virtual/pkgconfig" S=${WORKDIR}/projectm-${PV} # S=${WORKDIR}/projectM-${PV} PATCHES=( ${FILESDIR}/projectM-3.0.0-fix-paths.patch ) src_prepare() { default find -name '.*' -type f -exec rm -f '{}' + [ -x autogen.sh ] && ./autogen.sh } src_configure() { append-ldflags $(no-as-needed) econf \ $(use_enable sdl) \ $(use_enable qt) \ $(use_enable gles) \ $(use_enable threading) \ $(use_enable static) }