mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
qjackctl: fix cross
previously, qmake tried to link libs from the host. By using build-style=qmake, we now make use of the qtconf file which specifies correct sysroot and paths. A run of configure is still necessary
This commit is contained in:
parent
aa3baa3269
commit
b21a0a9d92
1 changed files with 8 additions and 2 deletions
|
@ -2,8 +2,7 @@
|
||||||
pkgname=qjackctl
|
pkgname=qjackctl
|
||||||
version=0.6.0
|
version=0.6.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=qmake
|
||||||
configure_args="--enable-jack-version --disable-xunique"
|
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="qt5-devel jack-devel qt5-x11extras-devel"
|
makedepends="qt5-devel jack-devel qt5-x11extras-devel"
|
||||||
depends="desktop-file-utils hicolor-icon-theme jack"
|
depends="desktop-file-utils hicolor-icon-theme jack"
|
||||||
|
@ -16,9 +15,16 @@ checksum=9dd5ee9a7f0a2d1d530b10652e09972732dc210239b7c082be816f0e7bdfadcd
|
||||||
|
|
||||||
if [ "${CROSS_BUILD}" ]; then
|
if [ "${CROSS_BUILD}" ]; then
|
||||||
hostmakedepends+=" qt5-host-tools qt5-devel qt5-x11extras-devel"
|
hostmakedepends+=" qt5-host-tools qt5-devel qt5-x11extras-devel"
|
||||||
|
crossargs="--host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_patch() {
|
do_patch() {
|
||||||
vsed -i '21i#include <unistd.h> // gethostname()' src/qjackctl.cpp
|
vsed -i '21i#include <unistd.h> // gethostname()' src/qjackctl.cpp
|
||||||
vsed -i "s/@\$(QMAKE).*/& QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX/" Makefile.in
|
vsed -i "s/@\$(QMAKE).*/& QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX/" Makefile.in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
local defargs="--prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --bindir=/usr/bin --with-libtool-sysroot=$XBPS_CROSS_BASE --mandir=/usr/share/man --infodir=/usr/share/info --localstatedir=/var"
|
||||||
|
local args="--enable-jack-version --disable-xunique"
|
||||||
|
./configure $defargs $args $crossargs
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue