37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
/*
|
|
* autoconf — generates configure scripts (the heart of autotools).
|
|
*
|
|
* Perl-based; needs m4 (it drives m4 to generate scripts) and perl at
|
|
* both build and runtime. The release tarball ships its own configure.
|
|
*/
|
|
package "autoconf" {
|
|
const version = "2.73"
|
|
const source = "https://ftp.gnu.org/gnu/autoconf/autoconf-${version}.tar.gz"
|
|
sha256 = "259ddfa3bddc799cfb81489cc0f17dfdf1bd6d1505dda53c0f45ff60d6a4f9a7"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
provides = ["autoconf", "autom4te", "autoreconf"]
|
|
|
|
depends = [
|
|
{ name = "perl" },
|
|
{ name = "m4" },
|
|
{ name = "make" },
|
|
]
|
|
|
|
prepare {
|
|
curl -L -o autoconf-${version}.tar.gz ${source}
|
|
echo "259ddfa3bddc799cfb81489cc0f17dfdf1bd6d1505dda53c0f45ff60d6a4f9a7 autoconf-${version}.tar.gz" | sha256sum -c -
|
|
tar xf autoconf-${version}.tar.gz --strip-components=1
|
|
ROOT=$KAPPA_ROOT; [ -z $ROOT ] && ROOT=/usr/local/kappa; if [ -d $ROOT/temp/perl/destdir/usr/bin ]; then echo $ROOT/temp/perl/destdir/usr/bin; else echo $ROOT/bin/$(grep '^perl ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr/bin; fi > perl.path; if [ -d $ROOT/temp/m4/destdir/usr/bin ]; then echo $ROOT/temp/m4/destdir/usr/bin; else echo $ROOT/bin/$(grep '^m4 ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr/bin; fi > m4.path
|
|
}
|
|
|
|
build {
|
|
PATH=$(cat perl.path):$(cat m4.path):$PATH ./configure --prefix=${prefix}
|
|
PATH=$(cat perl.path):$(cat m4.path):$PATH make -j${jobs}
|
|
}
|
|
|
|
install {
|
|
PATH=$(cat perl.path):$(cat m4.path):$PATH make DESTDIR=${destdir} install
|
|
}
|
|
}
|