2022-08-17 20:35:41 +03:00
|
|
|
distributable:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: https://ftp.gnu.org/gnu/automake/automake-{{ version }}.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/automake/
|
|
|
|
match: /automake-(\d+\.\d+(\.\d+)?)\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /automake-/
|
|
|
|
- /.tar.gz/
|
2022-08-17 20:35:41 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/aclocal
|
|
|
|
- bin/automake
|
|
|
|
|
2022-09-18 19:01:10 +03:00
|
|
|
dependencies:
|
|
|
|
gnu.org/autoconf: ^2.65.0
|
|
|
|
perl.org: '*'
|
|
|
|
|
2022-08-17 20:35:41 +03:00
|
|
|
build:
|
|
|
|
dependencies:
|
2023-06-12 20:43:30 +03:00
|
|
|
gnu.org/patch: '*'
|
2022-08-17 20:35:41 +03:00
|
|
|
script: |-
|
|
|
|
./configure \
|
|
|
|
--build={{ hw.target }} \
|
|
|
|
--prefix="{{ prefix }}"
|
2023-06-12 20:43:30 +03:00
|
|
|
make -j {{ hw.concurrency }} install
|
2022-08-17 20:35:41 +03:00
|
|
|
|
2022-09-25 15:41:58 +03:00
|
|
|
cd "{{prefix}}"
|
2022-09-18 19:01:10 +03:00
|
|
|
|
|
|
|
# fix hardcoded paths
|
2022-09-25 15:41:58 +03:00
|
|
|
perl -pi -e "s|'{{prefix}}/|\\\$prefix.'/|" bin/* share/automake-{{version.marketing}}/Automake/Config.pm
|
2023-06-12 20:43:30 +03:00
|
|
|
patch -p1 <"$SRCROOT"/props/relocatable.diff
|
|
|
|
ln -sf aclocal bin/aclocal-{{version.marketing}}
|
|
|
|
ln -sf automake bin/automake-{{version.marketing}}
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2022-09-25 15:41:58 +03:00
|
|
|
fix-shebangs.ts bin/*
|
2023-06-12 20:43:30 +03:00
|
|
|
env:
|
2023-10-02 03:41:57 +03:00
|
|
|
PERL5LIB: '{{prefix}}/share/automake-{{version.marketing}}'
|
2022-09-18 19:01:10 +03:00
|
|
|
|
2022-08-17 20:35:41 +03:00
|
|
|
# TODO to prove automake doesn't require autoconf we should
|
|
|
|
# use “depend” on the autoconf test to generate our `configure` separately
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
aclocal
|
|
|
|
automake --add-missing --foreign
|
|
|
|
autoconf
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
./test
|