mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
39 lines
927 B
Bash
39 lines
927 B
Bash
source $stdenv/setup
|
|
|
|
|
|
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() {
|
|
# 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
|