fix(automake)

This commit is contained in:
Jacob Heider 2023-06-12 13:43:30 -04:00 committed by Jacob Heider
parent e8666a6212
commit a36c657dad

View file

@ -21,20 +21,26 @@ build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
git-scm.org: 2
gnu.org/patch: '*'
gnu.org/automake: '*' # when did this become self-requiring?
gnu.org/texinfo: '*'
script: |-
./configure \
--build={{ hw.target }} \
--prefix="{{ prefix }}"
make --jobs {{ hw.concurrency }} install
make -j {{ hw.concurrency }} install
cd "{{prefix}}"
# fix hardcoded paths
perl -pi -e "s|'{{prefix}}/|\\\$prefix.'/|" bin/* share/automake-{{version.marketing}}/Automake/Config.pm
git apply "$SRCROOT"/props/relocatable.diff
patch -p1 <"$SRCROOT"/props/relocatable.diff
ln -sf aclocal bin/aclocal-{{version.marketing}}
ln -sf automake bin/automake-{{version.marketing}}
fix-shebangs.ts bin/*
env:
PERL5LIB: "{{prefix}}/share/automake-{{version.marketing}}"
# TODO to prove automake doesn't require autoconf we should
# use “depend” on the autoconf test to generate our `configure` separately