Fix qt6-multimedia build on mingw-w64.
This commit is contained in:
parent
f7c4d5b87a
commit
a921b58a37
|
@ -32,6 +32,10 @@ prepare () {
|
||||||
msg2 "Applying patch $patch"
|
msg2 "Applying patch $patch"
|
||||||
patch -p1 -i "$patch"
|
patch -p1 -i "$patch"
|
||||||
done
|
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() {
|
build() {
|
||||||
|
|
|
@ -32,6 +32,10 @@ prepare () {
|
||||||
msg2 "Applying patch $patch"
|
msg2 "Applying patch $patch"
|
||||||
patch -p1 -i "$patch"
|
patch -p1 -i "$patch"
|
||||||
done
|
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() {
|
build() {
|
||||||
|
|
|
@ -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).
|
# 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.\
|
# Disabling ffmpeg and gstreamer at this point explicitly due to lack of testing.\
|
||||||
% end
|
% 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
|
||||||
|
|
Loading…
Reference in New Issue