mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +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
|
||||
version=0.6.0
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-jack-version --disable-xunique"
|
||||
build_style=qmake
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="qt5-devel jack-devel qt5-x11extras-devel"
|
||||
depends="desktop-file-utils hicolor-icon-theme jack"
|
||||
|
@ -16,9 +15,16 @@ checksum=9dd5ee9a7f0a2d1d530b10652e09972732dc210239b7c082be816f0e7bdfadcd
|
|||
|
||||
if [ "${CROSS_BUILD}" ]; then
|
||||
hostmakedepends+=" qt5-host-tools qt5-devel qt5-x11extras-devel"
|
||||
crossargs="--host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE"
|
||||
fi
|
||||
|
||||
do_patch() {
|
||||
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
|
||||
}
|
||||
|
||||
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