Ncurses: more compatibility .la's

svn path=/nixpkgs/branches/stdenv-updates/; revision=10604
This commit is contained in:
Yury G. Kudryashov 2008-02-10 17:41:10 +00:00
parent 07e6d98fd5
commit 80d81c1a82
3 changed files with 23 additions and 20 deletions

View File

@ -0,0 +1,22 @@
args: with args;
stdenv.mkDerivation {
name = "ncurses-5.6";
src = fetchurl {
url = mirror://gnu/ncurses/ncurses-5.6.tar.gz;
sha256 = "1m94axgq3y9c4ld0sba63rls1611fncra49ppijpv8w32srw5jpr";
};
configureFlags = [ "--with-shared" "--without-normal"
"--includedir=\${out}/include" "--without-debug"]
++ (if unicode then ["--enable-widec"] else []);
postInstall= if unicode then "
chmod -v 644 $out/lib/libncurses++w.a
for lib in curses ncurses form panel menu; do
echo \"INPUT(-l\${lib}w)\" > $out/lib/lib\${lib}.so
done
echo \"INPUT(-lncursesw)\" > $out/lib/libcursesw.so
" else "
chmod -v 644 $out/lib/libncurses++.a
echo \"INPUT(-lncurses)\" > $out/lib/libcurses.so
";
}

View File

@ -1,19 +0,0 @@
{stdenv, fetchurl, unicode ? true}:
stdenv.mkDerivation {
name = "ncurses-5.6";
src = fetchurl {
url = mirror://gnu/ncurses/ncurses-5.6.tar.gz;
md5 = "b6593abe1089d6aab1551c105c9300e3";
};
configureFlags="--with-shared --includedir=\${out}/include"+(if unicode then " --enable-widec " else " ") +" --without-debug";
postInstall= if unicode then "
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
ln -svf lib\${lib}w.so.5 $out/lib/lib\${lib}.so.5
done;
" else "";
}

View File

@ -2465,7 +2465,7 @@ rec {
inherit fetchurl stdenv mysql libtool zlib unixODBC;
};
ncurses = import ../development/libraries/ncurses {
ncurses = selectVersion ../development/libraries/ncurses "5.6" {
inherit fetchurl stdenv;
unicode = (system != "i686-cygwin");
};