1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/development/libraries/qt-3/builder.sh
Eelco Dolstra 8e5b302403 * Qt: enable OpenGL, Xrandr, Xinerama support.
* MythTV: add OpenGL stuff.

svn path=/nixpkgs/trunk/; revision=6520
2006-09-14 13:24:06 +00:00

45 lines
1.1 KiB
Bash

source $stdenv/setup
source $substitute
ensureDir $out/nix-support
substitute "$hook" "$out/nix-support/setup-hook" --subst-var out
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/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do
echo "patching $i..."
substituteInPlace "$i" \
--replace " /lib" " /FOO" \
--replace "/usr" "/FOO"
done
}
# !!! TODO: -system-libmng
configureFlags="-prefix $out $configureFlags"
dontAddPrefix=1
configureScript=configureScript
configureScript() {
echo yes | ./configure $configureFlags
export LD_LIBRARY_PATH=$(pwd)/lib
}
postInstall=postInstall
postInstall() {
# Qt's `make install' is broken; it copies ./bin/qmake, which
# is a symlink to ./qmake/qmake. So we end up with a dangling
# symlink.
rm $out/bin/qmake
cp -p qmake/qmake $out/bin
}
genericBuild