The static Qt modules in the base repository are already packaged as a separate package (mingw-w64-qt5-base-static). This change applies the same separation to Qt modules found in further repositories. That means it is no longer required to build a static version of Qt if only shared libraries are required. Note that there's no static variant for mingw-w64-qt5-activeqt because this module ends up being built as a static library anyways. There is also no static version of mingw-w64-qt5-translations because it does not contain any libraries.
23 lines
1.2 KiB
Plaintext
23 lines
1.2 KiB
Plaintext
% layout 'mingw-w64-qt5-module';
|
|
\
|
|
pkgver=5.15.0
|
|
pkgrel=1
|
|
arch=(<%== include 'fragments/mingw-w64-qt5-non_any_archs' %>)
|
|
pkgdesc="Inter-process communication (IPC) module developed for Qt (mingw-w64)"
|
|
depends=(<%== qt5deps qw(base) %>)
|
|
optdepends=(<%== qt5optdeps declarative => 'QML bindings' %>)
|
|
makedepends=('mingw-w64-gcc' <%== qt5deps qw(declarative) %>)
|
|
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" {} \;
|
|
|
|
% end
|