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