a24143b0c7
The template had a note: `TODO: find out why these files aren't generated for the cross build`, regarding the desktop files and icons that weren't being installed. This was actually because the GUI application's weren't being built at all! The build system could not find QT. Force enabling these applications and doing qt shenanigans, including `build_helper=qmake`, fixes these issues.
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# 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 <abenson+void@gmail.com>"
|
|
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"
|
|
}
|
|
}
|