mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 17:39:01 +08:00
3dd12b9035
* [botan] Use bash from PATH rather then /bin (microsoft/vcpkg#32284) The configure script used to invoke python during the build process contains a shebang that invokes /bin/bash independend of whatever bash would usually resolve to. This breaks compilation on FreeBSD, where bash isn't part of the operating system. Rather then /bin/bash, invoke /usr/bin/env bash, which resolves the bash command by iterating PATH. * [botan] bump portrevision (microsoft/vcpkg#32284) * [botan] regenerate versions repository (microsoft/vcpkg#32284)
47 lines
897 B
Bash
Executable File
47 lines
897 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
declare -a OUT_OPTIONS
|
|
|
|
INTERPRETER=python3
|
|
|
|
LAST_SEEN=
|
|
COPY_OPTIONS=no
|
|
COPY_PREFIX=yes
|
|
BUILD_TYPE=RELEASE
|
|
for OPTION; do
|
|
case "${OPTION},${COPY_OPTIONS}" in
|
|
*/configure.py,no)
|
|
OUT_OPTIONS+=("${OPTION}")
|
|
INTERPRETER="${LAST_SEEN}"
|
|
COPY_OPTIONS=yes
|
|
;;
|
|
--prefix=*,yes)
|
|
if [ "${COPY_PREFIX}" = "yes" ] ; then
|
|
OUT_OPTIONS+=("${OPTION}")
|
|
COPY_PREFIX=no
|
|
fi
|
|
;;
|
|
--*=*,yes)
|
|
OUT_OPTIONS+=("${OPTION}")
|
|
;;
|
|
*=*)
|
|
;;
|
|
*,yes)
|
|
OUT_OPTIONS+=("${OPTION}")
|
|
if [ "${OPTION}" = "--debug-mode" ] ; then
|
|
BUILD_TYPE=DEBUG
|
|
fi
|
|
;;
|
|
esac
|
|
LAST_SEEN="${OPTION}"
|
|
done
|
|
|
|
set -x
|
|
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
|
|
"${INTERPRETER}" "${OUT_OPTIONS[@]}"
|
|
|
|
sed -e "1i\\
|
|
ZLIB_LIBS = \$(ZLIB_LIBS_${BUILD_TYPE})" -i -- Makefile
|