Add mingw-qmake-qt6 macros, drop mingw-cmake-kde4 macros
This commit is contained in:
parent
846156c1bd
commit
feac8b0097
49
macros.mingw
49
macros.mingw
@ -100,29 +100,6 @@ popd \
|
||||
} \
|
||||
run_mingw_cmake
|
||||
|
||||
%mingw_cmake_kde4 \
|
||||
run_mingw_cmake_kde4() \
|
||||
{ \
|
||||
%if 0%{?mingw_build_win32} == 1 \
|
||||
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
||||
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
||||
%{?mingw32_cmake_kde4 "$@"} \
|
||||
popd \
|
||||
%endif \
|
||||
%if 0%{?mingw_build_win64} == 1 \
|
||||
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
||||
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
||||
%{?mingw64_cmake_kde4 "$@"} \
|
||||
popd \
|
||||
%endif \
|
||||
%if 0%{?mingw_build_ucrt64} == 1 \
|
||||
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
||||
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
||||
%{?ucrt64_cmake_kde4 "$@"} \
|
||||
popd \
|
||||
%endif \
|
||||
} \
|
||||
run_mingw_cmake_kde4
|
||||
|
||||
%mingw_qmake_qt5 \
|
||||
run_mingw_qmake_qt5() \
|
||||
@ -148,6 +125,32 @@ popd \
|
||||
} \
|
||||
run_mingw_qmake_qt5
|
||||
|
||||
|
||||
%mingw_qmake_qt6 \
|
||||
run_mingw_qmake_qt6() \
|
||||
{ \
|
||||
%if 0%{?mingw_build_win32} == 1 \
|
||||
mkdir -p build_win32$MINGW_BUILDDIR_SUFFIX \
|
||||
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
||||
%{?mingw32_qmake_qt6} "$@" \
|
||||
popd \
|
||||
%endif \
|
||||
%if 0%{?mingw_build_win64} == 1 \
|
||||
mkdir -p build_win64$MINGW_BUILDDIR_SUFFIX \
|
||||
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
||||
%{?mingw64_qmake_qt6} "$@" \
|
||||
popd \
|
||||
%endif \
|
||||
%if 0%{?mingw_build_ucrt64} == 1 \
|
||||
mkdir -p build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
||||
pushd build_ucrt64$MINGW_BUILDDIR_SUFFIX \
|
||||
%{?ucrt64_qmake_qt6} "$@" \
|
||||
popd \
|
||||
%endif \
|
||||
} \
|
||||
run_mingw_qmake_qt6
|
||||
|
||||
|
||||
%mingw_meson \
|
||||
run_mingw_meson() \
|
||||
{ \
|
||||
|
@ -146,12 +146,10 @@
|
||||
MINGW32_CMAKE_ARGS="-DINCLUDE_INSTALL_DIR:PATH=%{mingw32_includedir} ${MINGW32_CMAKE_ARGS}" \
|
||||
%mingw32_cmake_generic
|
||||
|
||||
%mingw32_cmake_kde4 \
|
||||
MINGW32_CMAKE_ARGS="-DINCLUDE_INSTALL_DIR:PATH=%{mingw32_includedir}/kde4 ${MINGW32_CMAKE_ARGS}" \
|
||||
%mingw32_cmake_generic
|
||||
|
||||
%mingw32_qmake_qt5 /usr/bin/mingw32-qmake-qt5
|
||||
|
||||
%mingw32_qmake_qt6 /usr/bin/%{mingw32_target}-qmake-qt6
|
||||
|
||||
%mingw32_meson %{mingw32_env} ; \
|
||||
unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS; \\\
|
||||
CFLAGS="${MINGW32_CFLAGS-%mingw32_cflags}"; export CFLAGS; \\\
|
||||
|
@ -146,12 +146,10 @@
|
||||
MINGW64_CMAKE_ARGS="-DINCLUDE_INSTALL_DIR:PATH=%{mingw64_includedir} ${MINGW64_CMAKE_ARGS}" \
|
||||
%mingw64_cmake_generic
|
||||
|
||||
%mingw64_cmake_kde4 \
|
||||
MINGW64_CMAKE_ARGS="-DINCLUDE_INSTALL_DIR:PATH=%{mingw64_includedir}/kde4 ${MINGW64_CMAKE_ARGS}" \
|
||||
%mingw64_cmake_generic
|
||||
|
||||
%mingw64_qmake_qt5 /usr/bin/mingw64-qmake-qt5
|
||||
|
||||
%mingw64_qmake_qt6 /usr/bin/%{mingw64_target}-qmake-qt6
|
||||
|
||||
%mingw64_meson %{mingw64_env} ; \
|
||||
unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS; \\\
|
||||
CFLAGS="${MINGW64_CFLAGS-%mingw64_cflags}"; export CFLAGS; \\\
|
||||
|
@ -9,7 +9,7 @@
|
||||
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||
|
||||
Name: mingw-filesystem
|
||||
Version: 143
|
||||
Version: 144
|
||||
Release: 1%{?dist}
|
||||
Summary: MinGW cross compiler base filesystem and environment
|
||||
|
||||
@ -376,6 +376,9 @@ echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/x86_64-w64-mingw32ucrt-p
|
||||
%dir %{_prefix}/lib/debug/%{_prefix}/x86_64-w64-mingw32ucrt
|
||||
|
||||
%changelog
|
||||
* Fri Dec 23 2022 Sandro Mani <manisandro@gmail.com> - 144-1
|
||||
- Add mingw-qmake-qt6 macros, drop mingw-cmake-kde4 macros
|
||||
|
||||
* Fri Dec 09 2022 Sandro Mani <manisandro@gmail.com> - 143-1
|
||||
- Prevent mingw-find-lang.sh from clobbering previous find-lang results
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user