diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/qt-3/xrandr.patch')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/qt-3/xrandr.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/qt-3/xrandr.patch b/nixpkgs/pkgs/development/libraries/qt-3/xrandr.patch new file mode 100644 index 000000000000..0389c7fdd068 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/qt-3/xrandr.patch @@ -0,0 +1,42 @@ +diff -rc qt-x11-free-3.3.6-orig/config.tests/x11/xrandr.test qt-x11-free-3.3.6/config.tests/x11/xrandr.test +*** qt-x11-free-3.3.6-orig/config.tests/x11/xrandr.test 2006-09-14 14:00:08.000000000 +0200 +--- qt-x11-free-3.3.6/config.tests/x11/xrandr.test 2006-09-14 14:10:39.000000000 +0200 +*************** +*** 52,69 **** + INCDIRS="$IN_INCDIRS $XDIRS /FOO/include /include" + F= + for INCDIR in $INCDIRS; do +! if [ -f $INCDIR/$INC -a -f $INCDIR/$INC2 ]; then + F=yes +! XRANDR_H=$INCDIR/$INC + RANDR_H=$INCDIR/$INC2 +! [ "$VERBOSE" = "yes" ] && echo " Found $INC in $INCDIR" + break + fi + done + if [ -z "$F" ] + then + XRANDR=no +! [ "$VERBOSE" = "yes" ] && echo " Could not find $INC anywhere in $INCDIRS" + fi + fi + +--- 52,69 ---- + INCDIRS="$IN_INCDIRS $XDIRS /FOO/include /include" + F= + for INCDIR in $INCDIRS; do +! if [ -f $INCDIR/$INC2 ]; then + F=yes +! # XRANDR_H=$INCDIR/$INC + RANDR_H=$INCDIR/$INC2 +! [ "$VERBOSE" = "yes" ] && echo " Found $INC2 in $INCDIR" + break + fi + done + if [ -z "$F" ] + then + XRANDR=no +! [ "$VERBOSE" = "yes" ] && echo " Could not find $INC2 anywhere in $INCDIRS" + fi + fi + |