Browse Source

qt4: fixed to get correct X11 prefix in pkg-config files

user/amery/mess
Christian Wiese 15 years ago
parent
commit
8c977ad15f
  1. 13
      qt/qt4/qt4.conf

13
qt/qt4/qt4.conf

@ -23,12 +23,25 @@ if [ "$prefix" = "usr" ]; then
fi
pkg_qt4_preconf() {
# fix X11 prefix to get correct pkg-config files
echo 'Fixing X11 prefix ...'
for x in $(egrep -rl X11R6 *) ; do sed -i -e "s,usr/X11R6,$(pkgprefix libx11)," $x ; done
# helping the linker to find libraries
QTDIR=$PWD
var_insert LD_LIBRARY_PATH ':' "$QTDIR/lib"
var_insert PATH ':' "$QTDIR/bin"
export QTDIR LD_LIBRARY_PATH PATH
QMAKE_INCDIR_X11="$( pkgprefix includedir libx11 )"
QMAKE_LIBDIR_X11="$( pkgprefix libdir libx11 )"
# cat > .qmake.vars <<-EOT
#QMAKE_INCDIR_X11="$QMAKE_INCDIR_X11"
#QMAKE_LIBDIR_X11="$QMAKE_LIBDIR_X11"
#EOT
# cp .qmake.vars{,.sde}
# Somehow config options get removed if using the standard config
# handling. So we use a custom one here.
./configure $confopt

Loading…
Cancel
Save