void-packages/srcpkgs/qjackctl/template

29 lines
877 B
Bash

# Template file for 'qjackctl'
pkgname=qjackctl
version=0.5.2
revision=1
build_style=gnu-configure
configure_args="--enable-jack-version --enable-qt4"
hostmakedepends="pkg-config"
makedepends="qt-devel jack-devel"
depends="desktop-file-utils hicolor-icon-theme jack"
short_desc="JACK Audio Connection Kit - Qt GUI Interface"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://qjackctl.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=5ffd2fc629bdd30b06a5fa12e9652ca412c435ceb571e42289c3672a902b195b
if [ -n "${CROSS_BUILD}" ]; then
hostmakedepends+=" qt-devel"
fi
post_extract() {
sed -i '21i#include <unistd.h> // gethostname()' src/qjackctl.cpp
}
# when cross compiling the correct flags are used, but not the cross-compiler
do_build() {
make CC="$CC" CXX="$CXX" LINK="$CXX" ${makejobs}
}