2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2005-02-15 18:44:45 +01:00
|
|
|
|
2005-01-19 23:51:27 +01:00
|
|
|
|
|
|
|
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).
|
2005-01-22 01:19:27 +01:00
|
|
|
for i in config.tests/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do
|
2005-01-19 23:51:27 +01:00
|
|
|
echo "patching $i..."
|
2005-02-15 18:44:45 +01:00
|
|
|
substituteInPlace "$i" \
|
|
|
|
--replace " /lib" " /FOO" \
|
|
|
|
--replace "/usr" "/FOO"
|
2005-01-19 23:51:27 +01:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# !!! TODO: -system-libmng
|
2006-09-14 15:24:06 +02:00
|
|
|
configureFlags="-prefix $out $configureFlags"
|
2005-01-19 23:51:27 +01:00
|
|
|
dontAddPrefix=1
|
|
|
|
|
|
|
|
configureScript=configureScript
|
|
|
|
configureScript() {
|
|
|
|
echo yes | ./configure $configureFlags
|
|
|
|
export LD_LIBRARY_PATH=$(pwd)/lib
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-01-20 12:39:12 +01:00
|
|
|
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
|