| git.druid.rocks | index | druid520 | ports | ports/ | sysutils/ | gnu-texinfo/ | add.sh |
ports/sysutils/gnu-texinfo/add.sh
set -e
# release tarball, which ships a pre-generated configure needing only a C
# compiler -- building from git would need ./autogen.sh (autoconf/
# automake/libtool), and texinfo is itself a dependency of that same
# chain (autoconf's own build needs makeinfo to build its docs), so a
# tarball is the only way to avoid texinfo -> autotools -> texinfo, the
# same reasoning gnu-m4 already uses for the same underlying problem.
curl -LO https://ftp.gnu.org/gnu/texinfo/texinfo-7.3.tar.gz
tar xf texinfo-7.3.tar.gz
mv texinfo-7.3 texinfo
cd texinfo
./configure CC="${CC:-cc}" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" --prefix=$MP_PREFIX
make -j$MP_JOBS
make install
make clean || true
cd ..
rm -rf texinfo texinfo-7.3.tar.gz