mingw64-filesystem/mingw64-scripts.sh
Ralf Habacker 222d8d5142 Accepting request 1071509 from home:rhabacker:branches:windows:mingw:win64:cmake-fixes
- Update to version 20230309
  * Let cmake macros be based on associated macros from macros.cmake
  * Add support to define a custom rpm macro when running mingw64
    related shell scripts, see mingw64-scripts.sh for details
  * Drop using external dependency generator (boo#1175587)
  * Add mingw64_*.attr files to support actual used dependency generator
  * Fix bug that rpm does not use attribute file for cmake by renaming
    to mingw64_cmake.attr (rpm does not like '-' in those file name
    and keys inside)
  * Extend mingw64_cmake.attr to find cmake support files in
    share subdirectory as required for example by mingw64-dlfcn-win32
  * Print deprecated message when using %_mingw64_makeinstall or
    %__mingw64_cmake
  * Reduce some differences to mingw32 in changes and other files,
    which are mostly indentions, hours, trailing '/', variable
    definition rows - make it easier to compare

OBS-URL: https://build.opensuse.org/request/show/1071509
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-filesystem?expand=0&rev=153
2023-03-15 21:41:19 +00:00

37 lines
1.4 KiB
Bash

#!/bin/sh -
# mingw64-scripts
# Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones.
# Copyright (C) 2008 Levente Farkas
# Copyright (C) 2023 Ralf Habacker
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
# This is a useful command-line script through which one can use the
# macros from mingw64-macros.mingw64 cross-compilation.
#
# It supports the environment variable MINGW64_MACROS=<value> to be
# able to override individual rpm macros. With
#
# MINGW64_MACROS='__cmake ~/bin/cmake' mingw64-cmake
#
# for example, the specified cmake executable is used instead of
# the internal default.
NAME="_`basename $0|tr -- - _`"
DEFINE=${MINGW64_MACROS:+--define="${MINGW64_MACROS}"}
eval "`rpm "${DEFINE}" --eval "%${NAME} $(printf " %q" "${@}")"`"