2022-08-17 20:35:41 +03:00
|
|
|
distributable:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://ftp.gnu.org/gnu/autoconf/autoconf-{{ version.raw }}.tar.gz
|
2022-08-17 20:35:41 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://ftp.gnu.org/gnu/autoconf/
|
|
|
|
match: /autoconf-(\d+\.\d+(\.\d+)?)\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /autoconf-/
|
|
|
|
- /.tar.gz/
|
2022-08-17 20:35:41 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/autoconf
|
|
|
|
- bin/autoheader
|
|
|
|
- bin/autom4te
|
|
|
|
- bin/autoreconf
|
|
|
|
- bin/autoscan
|
|
|
|
- bin/autoupdate
|
|
|
|
- bin/ifnames
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
gnu.org/m4: 1
|
2022-08-23 00:33:05 +03:00
|
|
|
perl.org: '*'
|
2022-08-17 20:35:41 +03:00
|
|
|
|
|
|
|
build:
|
2023-12-23 02:22:57 +03:00
|
|
|
- ./configure
|
|
|
|
--build={{ hw.target }}
|
|
|
|
--prefix="{{ prefix }}"
|
2023-12-23 02:19:15 +03:00
|
|
|
- make --jobs {{ hw.concurrency }} install
|
2022-08-17 20:35:41 +03:00
|
|
|
|
2023-12-23 02:19:15 +03:00
|
|
|
- cd "{{prefix}}"
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2023-12-23 02:19:15 +03:00
|
|
|
- fix-shebangs.ts bin/*
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2023-12-23 02:19:15 +03:00
|
|
|
- perl -pi -e 's|'\''{{prefix}}|"\$PREFIX"'\''|g' bin/autoconf
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2023-12-23 02:19:15 +03:00
|
|
|
# fix specific m4 and perl paths
|
|
|
|
- perl -pi -e 's|{{ deps.perl.org.prefix }}/bin/perl|perl|g' bin/*
|
|
|
|
- perl -pi -e 's|{{ deps.gnu.org/m4.prefix }}/bin/m4|m4|g' bin/*
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2023-12-23 02:19:15 +03:00
|
|
|
# fix hardcoded paths
|
|
|
|
# this was a patch, but patches are fragile. this is more robust. for now.
|
|
|
|
- PREFIX="$(echo '{{prefix}}' | sed 's/\+/\\+/g')"
|
|
|
|
- perl -pi -e "s|'$PREFIX/|\\\$prefix.'/|g" bin/*
|
|
|
|
- run: patch -p1 < $SRCROOT/props/relocatable.diff
|
|
|
|
if: <2.72.0
|
|
|
|
- run: |
|
|
|
|
perl -p0i -e 's/\nBEGIN\n\{/use Cwd qw(abs_path);\nuse File::Basename;\n\nmy \$prefix;\nBEGIN\n{\n \$prefix = dirname(dirname(abs_path(__FILE__)));\n \$ENV{'\''PREFIX'\''} = \$prefix;\n/s' bin/*
|
|
|
|
perl -p0i -e 's|\n \# Normalize the|\n \# added by pkgx\n \@prepend_include = map { \$_ =~ s/\\\$PREFIX/\$prefix/r } \@prepend_include;\n\n \# Normalize the|g' bin/autom4te
|
|
|
|
if: '>=2.72.0'
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2023-12-23 02:19:15 +03:00
|
|
|
- perl -pi -e "s|$PREFIX|\\\$PREFIX|" share/autoconf/autom4te.cfg
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2022-09-01 01:02:46 +03:00
|
|
|
test:
|
2023-12-23 02:28:23 +03:00
|
|
|
dependencies:
|
|
|
|
llvm.org: '*' # requires a C compiler to configure
|
2023-12-23 02:41:04 +03:00
|
|
|
env:
|
|
|
|
CC: clang
|
2023-12-23 02:28:23 +03:00
|
|
|
script:
|
|
|
|
- autoconf --verbose --debug
|
|
|
|
- ./configure
|
|
|
|
- test -f config.status
|
|
|
|
- test -f config.log
|