31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
# Template file for 'qsynth'
|
|
pkgname=qsynth
|
|
version=0.5.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config qt5-qmake qt5-tools"
|
|
makedepends="qt5-x11extras-devel jack-devel fluidsynth-devel"
|
|
depends="fluidsynth jack desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Qt GUI Interface for FluidSynth"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://qsynth.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=0415d5744a0d950ced0ab84a25d653b951cc1e35a847d6934c29a78f7ede26eb
|
|
|
|
if [ -n "${CROSS_BUILD}" ]; then
|
|
hostmakedepends+=" qt5-x11extras-devel qt5-host-tools"
|
|
fi
|
|
|
|
post_configure() {
|
|
# make qmake use the right compiler when cross compiling, flags are recognized
|
|
sed -i -e "s/\(export QMAKE = .\+\)/\1 QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX/" Makefile
|
|
}
|
|
|
|
pre_install() {
|
|
# revert previous changes else installation aborts with
|
|
# “Could not find qmake configuration file default.”
|
|
sed -i -e "s/\(export QMAKE = .\+\) QMAKE_CC.\+/\1/" Makefile
|
|
}
|
|
|