# Template file for 'projectM' pkgname=projectM version=3.1.7 revision=3 build_style=gnu-configure build_helper=qmake configure_args="--datadir=/usr/libexec --enable-qt --enable-pulseaudio --enable-jack --enable-sdl" hostmakedepends="pkg-config qt5-host-tools automake libtool which qt5-qmake qt5-tools-devel" makedepends="pulseaudio-devel alsa-lib-devel glew-devel ftgl-devel libXext-devel SDL2-devel gtkglext-devel jack-devel qt5-tools-devel libvisual-devel glm MesaLib-devel glu-devel" short_desc="Music visualization" maintainer="Andrew Benson " license="LGPL-2.1-or-later" homepage="https://github.com/projectM-visualizer/projectm" distfiles="${homepage}/releases/download/v${version}/projectM-${version}.tar.gz" checksum=30af6d1c108efc19311a5636efbbedbe83d23905bb8472dd3fe4b07a21fb5fd3 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then makedepends+=" musl-fts-devel" LDFLAGS="-lfts" fi post_install() { # fix location of desktop files vmkdir usr/share mv $DESTDIR/usr/libexec/{applications,icons} $DESTDIR/usr/share } projectM-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" vmove "usr/lib/*.so" } }