2007-06-28 18:14:25 -04:00
|
|
|
{stdenv, fetchurl, unicode ? true}:
|
2004-03-05 05:13:23 -05:00
|
|
|
|
2004-03-29 12:23:01 -05:00
|
|
|
stdenv.mkDerivation {
|
2006-12-25 18:28:35 -05:00
|
|
|
name = "ncurses-5.6";
|
2004-03-05 05:13:23 -05:00
|
|
|
src = fetchurl {
|
2007-08-27 09:42:00 -04:00
|
|
|
url = mirror://gnu/ncurses/ncurses-5.6.tar.gz;
|
2006-12-25 18:28:35 -05:00
|
|
|
md5 = "b6593abe1089d6aab1551c105c9300e3";
|
2004-03-05 05:13:23 -05:00
|
|
|
};
|
2007-06-28 18:14:25 -04:00
|
|
|
configureFlags="--with-shared --includedir=\${out}/include"+(if unicode then " --enable-widec " else " ") +" --without-debug";
|
2008-02-21 22:06:12 -05:00
|
|
|
preBuild = ''sed -e "s@\([[:space:]]\)sh @\1''${SHELL} @" -i */Makefile Makefile'';
|
2007-06-28 18:14:25 -04:00
|
|
|
postInstall= if unicode then "
|
2007-06-26 07:34:05 -04:00
|
|
|
chmod -v 644 $out/lib/libncurses++w.a
|
|
|
|
for lib in curses ncurses form panel menu; do
|
|
|
|
rm -vf $out/lib/lib\${lib}.so
|
|
|
|
echo \"INPUT(-l\${lib}w)\" > $out/lib/lib\${lib}.so
|
|
|
|
ln -svf lib\${lib}w.a $out/lib/lib\${lib}.a
|
2007-06-28 05:53:12 -04:00
|
|
|
ln -svf lib\${lib}w.so.5 $out/lib/lib\${lib}.so.5
|
2007-06-26 07:34:05 -04:00
|
|
|
done;
|
2007-06-28 18:14:25 -04:00
|
|
|
" else "";
|
2004-03-05 05:13:23 -05:00
|
|
|
}
|