Merge pull request #8484 from newbluemoon/qjackctl

qjackctl: fix cross compilation
This commit is contained in:
Enno Boland 2017-10-23 18:49:26 +02:00 committed by GitHub
commit 862dab32cd
1 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'qjackctl' # Template file for 'qjackctl'
pkgname=qjackctl pkgname=qjackctl
version=0.4.5 version=0.4.5
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-jack-version --enable-qt4 --disable-qt5" configure_args="--enable-jack-version --enable-qt4 --disable-qt5"
hostmakedepends="pkg-config qt-qmake" hostmakedepends="pkg-config qt-qmake"
@ -14,8 +14,15 @@ homepage="http://qjackctl.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=c50da569ec8466ac6cc72c65e2d8212eb9c40149daed0a10fb7795ff9ddc4ab7 checksum=c50da569ec8466ac6cc72c65e2d8212eb9c40149daed0a10fb7795ff9ddc4ab7
nocross="https://build.voidlinux.eu/builders/armv6l-musl_builder/builds/2366/steps/shell_3/logs/stdio" if [ -n "${CROSS_BUILD}" ]; then
hostmakedepends+=" qt-host-tools qt-devel"
fi
post_extract() { post_extract() {
sed -i '21i#include <unistd.h> // gethostname()' src/qjackctl.cpp 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}
}