| git.druid.rocks | index | druid520 | ports | ports/ | libraries/ | libmd/ | add.sh |
ports/libraries/libmd/add.sh
set -e
# freedesktop.org's standalone extraction of the BSD libmd digest
# functions (MD2/MD4/MD5/RMD160/SHA1/SHA2/SHA3) -- musl provides none of
# these under their BSD names, and libraries/libbsd (which several BSD-
# portability-minded ports, editors/mg included, actually link against)
# hard-requires this at configure time ("cannot find required MD5
# functions in libc or libmd").
# source checkout deliberately NOT self-cleaned on success (unlike most
# ports here) -- del.sh below needs it: re-running "make install" under
# a throwaway DESTDIR is how it recomputes the exact installed file list
# to remove, the same pattern libraries/ncurses' own del.sh already uses
# for the identical reason (a plain autotools/libtool project like this
# one has no "make uninstall" target of its own to lean on instead).
# "mp clean libmd" reclaims the disk this leaves behind once no longer
# needed.
git clone https://gitlab.freedesktop.org/libbsd/libmd.git
cd libmd
autoreconf -fi
./configure --prefix=$MP_PREFIX
make
make install
make clean || true