nixpkgs-suyu/pkgs/development/libraries/qt-3/builder.sh
Eelco Dolstra 35443bddea * Added Qt 3.3.3. Basic installation, except that Xrender and Xft
support are enabled (for anti-aliased fonts).

  BUG: Qt currently searches for plugins and documentation in the
  temporary build directory, instead of in its prefix.  So, e.g., help
  in Qt Designer doesn't work.

svn path=/nixpkgs/trunk/; revision=2066
2005-01-19 22:51:27 +00:00

44 lines
No EOL
1.1 KiB
Bash

. $stdenv/setup
preConfigure=preConfigure
preConfigure() {
# Patch some of the configure files a bit to get of global paths.
# (Buildings using stuff in those paths will fail anyway, but it
# will cause ./configure misdetections).
for i in config.tests/x11/*.test mkspecs/*/qmake.conf; do
echo "patching $i..."
sed < $i > $i.tmp \
-e 's^ /lib^ /FOO^g' \
-e 's^/usr^/FOO^g'
mv $i.tmp $i
done
chmod +x config.tests/x11/*.test
}
# !!! TODO: -system-libmng
configureFlags="-v -prefix $out -system-zlib -system-libpng -system-libjpeg"
dontAddPrefix=1
if test -n "$xftSupport"; then
configureFlags="-xft -L$libXft/lib -I$libXft/include \
-L$freetype/lib -I$freetype/include \
-L$fontconfig/lib -I$fontconfig/include \
$configureFlags"
fi
if test -n "$xrenderSupport"; then
configureFlags="-xrender -L$libXrender/lib -I$libXrender/include $configureFlags"
fi
configureScript=configureScript
configureScript() {
echo yes | ./configure $configureFlags
export LD_LIBRARY_PATH=$(pwd)/lib
}
genericBuild