Merge pull request #163 from Steveice10/qt6_multimedia

Fix qt6-multimedia build on mingw-w64.
This commit is contained in:
Martchus 2023-04-06 12:43:47 +02:00 committed by GitHub
commit 92d1c4e89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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