96 lines
4.0 KiB
Plaintext
96 lines
4.0 KiB
Plaintext
|
# RPM macros for the Fedora MinGW Cross Compiler collection
|
||
|
|
||
|
%mingw_build_targets mingw32 mingw64
|
||
|
|
||
|
%mingw_strip mingw-strip
|
||
|
%mingw_objdump mingw-objdump
|
||
|
%mingw_objcopy mingw-objcopy
|
||
|
|
||
|
%mingw_findprovides %{_rpmconfigdir}/mingw-find-provides.sh %{mingw_build_targets}
|
||
|
%mingw_findrequires %{_rpmconfigdir}/mingw-find-requires.sh %{mingw_build_targets}
|
||
|
%mingw_finddebuginfo %{_rpmconfigdir}/mingw-find-debuginfo.sh
|
||
|
|
||
|
%mingw_find_lang %{_rpmconfigdir}/mingw-find-lang.sh %{buildroot}
|
||
|
|
||
|
%mingw_debug_install_post %{mingw_finddebuginfo} %{_builddir}/%{?buildsubdir} %{mingw_build_targets}
|
||
|
|
||
|
%mingw_debug_package \
|
||
|
%{?mingw_build_win32: %{?mingw32_debug_package}} \
|
||
|
%{?mingw_build_win64: %{?mingw64_debug_package}} \
|
||
|
%{nil}
|
||
|
|
||
|
%mingw_package_header \
|
||
|
%global __strip %{mingw_strip} \
|
||
|
%global __objdump %{mingw_objdump} \
|
||
|
%global __debug_install_post %%{mingw_debug_install_post} \
|
||
|
%{nil}
|
||
|
|
||
|
%mingw_configure \
|
||
|
run_mingw_configure() \
|
||
|
{ \
|
||
|
%{?mingw_build_win32: \
|
||
|
mkdir build_win32$MINGW_BUILDDIR_SUFFIX \
|
||
|
pushd build_win32$MINGW_BUILDDIR_SUFFIX \
|
||
|
%{?mingw32_configure} $@ \
|
||
|
popd } \
|
||
|
%{?mingw_build_win64: \
|
||
|
mkdir build_win64$MINGW_BUILDDIR_SUFFIX \
|
||
|
pushd build_win64$MINGW_BUILDDIR_SUFFIX \
|
||
|
%{?mingw64_configure} $@ \
|
||
|
popd } \
|
||
|
} \
|
||
|
run_mingw_configure
|
||
|
|
||
|
%mingw_make \
|
||
|
run_mingw_make() \
|
||
|
{ \
|
||
|
%{?mingw_build_win32: \
|
||
|
make -C build_win32$MINGW_BUILDDIR_SUFFIX $@} \
|
||
|
%{?mingw_build_win64: \
|
||
|
make -C build_win64$MINGW_BUILDDIR_SUFFIX $@} \
|
||
|
} \
|
||
|
run_mingw_make
|
||
|
|
||
|
%mingw_make_install \
|
||
|
run_mingw_make_install() \
|
||
|
{ \
|
||
|
%{?mingw_build_win32: \
|
||
|
make -C build_win32$MINGW_BUILDDIR_SUFFIX install $@} \
|
||
|
%{?mingw_build_win64: \
|
||
|
make -C build_win64$MINGW_BUILDDIR_SUFFIX install $@} \
|
||
|
} \
|
||
|
run_mingw_make_install
|
||
|
|
||
|
%mingw_cmake \
|
||
|
run_mingw_cmake() \
|
||
|
{ \
|
||
|
%{?mingw_build_win32: \
|
||
|
mkdir build_win32$suffix \
|
||
|
pushd build_win32$suffix \
|
||
|
%{?mingw32_cmake $@} \
|
||
|
popd } \
|
||
|
%{?mingw_build_win64: \
|
||
|
mkdir build_win64$suffix \
|
||
|
pushd build_win64$suffix \
|
||
|
%{?mingw64_cmake $@} \
|
||
|
popd } \
|
||
|
} \
|
||
|
run_mingw_cmake
|
||
|
|
||
|
%mingw_cmake_kde4 \
|
||
|
run_mingw_cmake_kde4() \
|
||
|
{ \
|
||
|
%{?mingw_build_win32: \
|
||
|
mkdir build_win32$suffix \
|
||
|
pushd build_win32$suffix \
|
||
|
%{?mingw32_cmake_kde4 $@} \
|
||
|
popd } \
|
||
|
%{?mingw_build_win64: \
|
||
|
mkdir build_win64$suffix \
|
||
|
pushd build_win64$suffix \
|
||
|
%{?mingw64_cmake_kde4 $@} \
|
||
|
popd } \
|
||
|
} \
|
||
|
run_mingw_cmake_kde4
|
||
|
|