lol
at 16.09-beta 38 lines 927 B view raw
1source $stdenv/setup 2 3 4preConfigure() { 5 6 # Patch some of the configure files a bit to get of global paths. 7 # (Buildings using stuff in those paths will fail anyway, but it 8 # will cause ./configure misdetections). 9 for i in config.tests/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do 10 echo "patching $i..." 11 substituteInPlace "$i" \ 12 --replace " /lib" " /FOO" \ 13 --replace "/usr" "/FOO" 14 done 15} 16 17 18# !!! TODO: -system-libmng 19configureFlags="-prefix $out $configureFlags" 20dontAddPrefix=1 21 22configureScript=configureScript 23configureScript() { 24 echo yes | ./configure $configureFlags 25 export LD_LIBRARY_PATH=$(pwd)/lib 26} 27 28 29postInstall() { 30 # Qt's `make install' is broken; it copies ./bin/qmake, which 31 # is a symlink to ./qmake/qmake. So we end up with a dangling 32 # symlink. 33 rm $out/bin/qmake 34 cp -p qmake/qmake $out/bin 35} 36 37 38genericBuild