Apparently libtool cannot be installed separately from autoconf

and automake. Copying the files in $libtool/share/aclocal to 
$autoconf/share/aclocal does not work (and causes collisions when
installing the tools in the user environment). The solution seems to
be to install the three distributions in one single $out directory,
i.e., consider them as one package.
 

svn path=/nixpkgs/trunk/; revision=597
This commit is contained in:
Eelco Visser 2003-12-23 21:31:06 +00:00
parent b4ce40af2b
commit d5ec705667
5 changed files with 75 additions and 4 deletions

View File

@ -0,0 +1,14 @@
{stdenv, fetchurl, m4, perl, libtool}:
derivation {
name = "autoconf-2.58-with-libtool";
system = stdenv.system;
builder = ./libtoolbuilder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/autoconf/autoconf-2.58.tar.bz2;
md5 = "db3fa3069c6554b3505799c7e1022e2b";
};
stdenv = stdenv;
m4 = m4;
perl = perl;
libtool = libtool;
}

View File

@ -0,0 +1,22 @@
{stdenv, fetchurl, m4, perl}:
derivation {
name = "autoconf-2.58-automake-1.7.9-libtool-1.5";
system = stdenv.system;
builder = ./libtoolbuilder.sh;
autoconfsrc = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/autoconf/autoconf-2.58.tar.bz2;
md5 = "db3fa3069c6554b3505799c7e1022e2b";
};
automakesrc = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/automake/automake-1.7.9.tar.bz2;
md5 = "571fd0b0598eb2a27dcf68adcfddfacb";
};
libtoolsrc = fetchurl {
url = http://ftp.gnu.org/gnu/libtool/libtool-1.5.tar.gz;
md5 = "0e1844f25e2ad74c3715b5776d017545";
};
stdenv = stdenv;
m4 = m4;
perl = perl;
}

View File

@ -0,0 +1,28 @@
#! /bin/sh
buildinputs="$m4 $perl $out"
. $stdenv/setup || exit 1
tar xvfj $autoconfsrc || exit 1
cd autoconf-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
buildinputs="$m4 $perl $out"
. $stdenv/setup || exit 1
tar xvfj $automakesrc || exit 1
cd automake-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
buildinputs="$m4 $perl $out"
. $stdenv/setup || exit 1
tar xvfz $libtoolsrc || exit 1
cd libtool-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1

View File

@ -1,6 +1,6 @@
{stdenv, fetchurl, m4, perl}:
derivation {
name = "autoconf-2.58";
name = "libtool-1.5";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {

View File

@ -140,6 +140,13 @@
perl = perl;
};
autoconflibtool = (import ../development/tools/misc/autoconf/autoconf-libtool.nix) {
fetchurl = fetchurl;
stdenv = stdenv;
m4 = gnum4;
perl = perl;
};
automake = (import ../development/tools/misc/automake) {
fetchurl = fetchurl;
stdenv = stdenv;
@ -155,10 +162,10 @@
};
autotools = {
automake = automake;
autoconf = autoconf;
automake = autoconflibtool;
autoconf = autoconflibtool;
make = gnumake;
libtool = libtool;
libtool = autoconflibtool;
};
pkgconfig = (import ../development/tools/misc/pkgconfig) {