30 lines
1 KiB
Bash
30 lines
1 KiB
Bash
# Template file for 'qsynth'
|
|
pkgname=qsynth
|
|
version=0.5.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config 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.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://qsynth.sourceforge.io"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=2d6befb4023f8a64f35d802991d0d413e11d0307e87485428c969b94bb2bf84e
|
|
|
|
if [ "${CROSS_BUILD}" ]; then
|
|
hostmakedepends+=" qt5-x11extras-devel"
|
|
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
|
|
}
|
|
|