$OpenBSD: patch-qtbase_configure,v 1.3 2016/03/06 11:56:41 zhuk Exp $
1. Tests fail due to incorrect _POSIX_TIMERS value in <unistd.h>.
   Allow functions to be actually used.
2. Unbreak disabling build parts.
3. Pass parameters to make(1) invocation.
--- qtbase/configure.ports.orig	Tue Oct 13 07:35:07 2015
+++ qtbase/configure	Thu Dec 10 09:24:28 2015
@@ -719,8 +719,8 @@ CFG_ACCESSIBILITY_ATSPI_BRIDGE=no # will be enabled de
 CFG_NEON=auto
 CFG_MIPS_DSP=auto
 CFG_MIPS_DSPR2=auto
-CFG_CLOCK_GETTIME=auto
-CFG_CLOCK_MONOTONIC=auto
+CFG_CLOCK_GETTIME=yes
+CFG_CLOCK_MONOTONIC=yes
 CFG_POSIX_FALLOCATE=auto
 CFG_MREMAP=auto
 CFG_GETADDRINFO=auto
@@ -3591,7 +3591,7 @@ if [ -z "$CFG_BUILD_PARTS" ]; then
     fi
 fi
 for nobuild in $CFG_NOBUILD_PARTS; do
-    CFG_BUILD_PARTS=`echo "$CFG_BUILD_PARTS" | sed "s, $nobuild,,g"`
+    CFG_BUILD_PARTS=`echo " $CFG_BUILD_PARTS" | sed "s, $nobuild,,g"`
 done
 if echo $CFG_BUILD_PARTS | grep -v libs >/dev/null 2>&1; then
 #    echo
@@ -4064,7 +4064,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
 
     if [ "$OPT_VERBOSE" = yes ]; then
         # Show the output of make
-        (cd "$outpath/qmake"; "$MAKE") || exit 2
+        (cd "$outpath/qmake"; "$MAKE" $MAKEFLAGS) || exit 2
     else
         # Hide the output of make
         # Use bash to print dots, if we have it, and stdout is a tty.
@@ -4072,9 +4072,9 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
             bash -c 'set -o pipefail
                 cd "$0/qmake"; "$1" | while read line; do
                     builtin echo -n .
-                done' "$outpath" "$MAKE" || exit 2
+                done' "$outpath" "$MAKE" $MAKEFLAGS || exit 2
         else
-            (cd "$outpath/qmake"; "$MAKE" -s) || exit 2
+            (cd "$outpath/qmake"; "$MAKE" $MAKEFLAGS -s) || exit 2
         fi
         echo "Done."
     fi
