Fix qt6-multimedia build on mingw-w64.

This commit is contained in:
Steveice10 2023-04-05 17:21:25 -07:00
parent f7c4d5b87a
commit a921b58a37
3 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,10 @@ prepare () {
msg2 "Applying patch $patch"
patch -p1 -i "$patch"
done
# work around case-insensitive includes on case-sensitive filesystems
sed -i'' 's/\(.*\) \(Mf.*\|Propsys\) HINTS \(.*\)/\1 \L\2 HINTS \3/g' cmake/FindWMF.cmake
find src -type f -exec sed -i'' 's/#include <\(Dbt.*\|InitGuid.*\|Mf.*\|Wmcodec.*\|Functiondiscoverykeys_devpkey.*\)>/#include <\L\1>/g' {} \;
find src -type f -exec sed -i'' 's/#include "\(Dbt.*\|InitGuid.*\|Mf.*\|Wmcodec.*\|QUrl.*\)"/#include "\L\1"/g' {} \;
}
build() {

View File

@ -32,6 +32,10 @@ prepare () {
msg2 "Applying patch $patch"
patch -p1 -i "$patch"
done
# work around case-insensitive includes on case-sensitive filesystems
sed -i'' 's/\(.*\) \(Mf.*\|Propsys\) HINTS \(.*\)/\1 \L\2 HINTS \3/g' cmake/FindWMF.cmake
find src -type f -exec sed -i'' 's/#include <\(Dbt.*\|InitGuid.*\|Mf.*\|Wmcodec.*\|Functiondiscoverykeys_devpkey.*\)>/#include <\L\1>/g' {} \;
find src -type f -exec sed -i'' 's/#include "\(Dbt.*\|InitGuid.*\|Mf.*\|Wmcodec.*\|QUrl.*\)"/#include "\L\1"/g' {} \;
}
build() {

View File

@ -20,3 +20,9 @@ makedepends=('mingw-w64-cmake<%== $static_suffix %>' <%== qt6deps qw(declarative
# Unfortunately it doesn't build as well (maybe it would using a newer mingw-w64 version).
# Disabling ffmpeg and gstreamer at this point explicitly due to lack of testing.\
% end
% content_for prepare => begin
# work around case-insensitive includes on case-sensitive filesystems
sed -i'' 's/\(.*\) \(Mf.*\|Propsys\) HINTS \(.*\)/\1 \L\2 HINTS \3/g' cmake/FindWMF.cmake
find src -type f -exec sed -i'' 's/#include <\(Dbt.*\|InitGuid.*\|Mf.*\|Wmcodec.*\|Functiondiscoverykeys_devpkey.*\)>/#include <\L\1>/g' {} \;
find src -type f -exec sed -i'' 's/#include "\(Dbt.*\|InitGuid.*\|Mf.*\|Wmcodec.*\|QUrl.*\)"/#include "\L\1"/g' {} \;
%end