openbsd-ports/x11/qt5/qtbase/patches/patch-configure
zhuk 8ac2782675 Update from Qt 5.6.2 (LTS) to Qt 5.9.1 (LTS).
Tested with both GCC and CLang (less through).

This forces updating x11/py-qt5, which forces update of devel/py-sip,
which forces update of x11/py-qt4, but, thankfully, no breakage detected.
2017-07-17 08:34:37 +00:00

32 lines
882 B
Plaintext

$OpenBSD: patch-configure,v 1.3 2017/07/17 08:34:37 zhuk Exp $
Make bootstrap pick up CC/CXX we want.
Index: configure
--- configure.orig
+++ configure
@@ -577,7 +577,11 @@ if [ -z "$PLATFORM" ]; then
fi
;;
OpenBSD:*)
- PLATFORM=openbsd-g++
+ if cc -v 2>&1|grep -q clang; then
+ PLATFORM=openbsd-clang
+ else
+ PLATFORM=openbsd-g++
+ fi
;;
NetBSD:*)
PLATFORM=netbsd-g++
@@ -709,7 +713,11 @@ fi
# is where the resulting variable is written to
setBootstrapVariable()
{
- getQMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile"
+ if [ -n "$2" -a -n "$(eval echo \"\$$2\")" ]; then
+ echo ${2-$1} = "$(eval echo \"\$$2\")"
+ else
+ getQMakeConf "$1" | echo ${2-$1} = `if [ -n "$3" ]; then sed "$3"; else cat; fi` >> "$mkfile"
+ fi
}
# build qmake