Merge pull request #163 from Steveice10/qt6_multimedia
Fix qt6-multimedia build on mingw-w64.
This commit is contained in:
commit
92d1c4e89d
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue