2019-12-29 00:08:47 +01:00
% layout 'mingw-w64-qt5-module';
\
2024-01-04 16:09:11 +01:00
pkgver=5.15.12
2019-12-29 00:08:47 +01:00
pkgrel=1
2020-06-18 23:42:42 +02:00
arch=(<%== include 'fragments/mingw-w64-qt5-non_any_archs' %>)
2019-12-29 00:08:47 +01:00
pkgdesc="Inter-process communication (IPC) module developed for Qt (mingw-w64)"
2020-06-18 23:42:42 +02:00
depends=(<%== qt5deps qw(base) %>)
optdepends=(<%== qt5optdeps declarative => 'QML bindings' %>)
makedepends=('mingw-w64-gcc' <%== qt5deps qw(declarative) %>)
2019-12-29 00:08:47 +01:00
license=('GPL3' 'LGPL' 'FDL' 'custom')
\
% content_for build_config_before_make => begin
# search paths for host standard library (/usr/lib) and for Qt5Bootstrap (/usr/$_arch/lib) are not set correctly by qmake
# hence we need insert those paths manually
make qmake_all
find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5QmlDevTools -lQt5Bootstrap|-L/usr/lib /usr/$_arch/lib/libQt5QmlDevTools.a /usr/$_arch/lib/libQt5Bootstrap.so|g" {} \;
find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5QmlDevTools|-L/usr/lib /usr/$_arch/lib/libQt5QmlDevTools.a|g" {} \;
find . -type f -iname 'Makefile' -exec sed -i "s|-L/usr/$_arch/lib -lQt5Bootstrap|-L/usr/lib /usr/$_arch/lib/libQt5Bootstrap.so|g" {} \;
find . -type f -iname 'Makefile' -exec sed -i "s|-lQt5Bootstrap ||g" {} \;
2022-03-07 13:23:02 +01:00
# avoid `.obj/release/qconnectionfactories.o:qconnectionfactories.cpp:(.text.unlikely+0xf): relocation truncated to fit: IMAGE_REL_AMD64_REL32 against undefined symbol `__cxa_pure_virtual'`
[[ $_arch == x86_64-w64-mingw32 ]] && find . -type f -iname 'Makefile*' -exec sed -i 's|\(CXX.*\)\( -o .obj/release/qconnectionfactories.o\)|\1 -mcmodel=large \2|g' {} \;
2019-12-29 00:08:47 +01:00
% end