1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 07:27:44 +00:00

Ports/readline: Build it as a shared library

This commit is contained in:
Tim Schumacher 2022-06-08 00:39:32 +02:00 committed by Linus Groh
parent 29c408d9db
commit 86d71028df
3 changed files with 64 additions and 0 deletions

View file

@ -7,3 +7,13 @@ config_sub_paths=("support/config.sub")
use_fresh_config_sub=true
files="https://ftpmirror.gnu.org/gnu/readline/readline-${version}.tar.gz readline-${version}.tar.gz 7589a2381a8419e68654a47623ce7dfcb756815c8fee726b98f90bf668af7bc6"
auth_type=sha256
configopts=(
"--disable-static"
"--enable-shared"
)
post_install() {
# readline specifies termcap as a dependency in its pkgconfig file, without checking if it exists.
# Remove it manually to keep other ports from discarding readline because termcap is supposedly missing.
sed -i -e '/^Requires.private:/s/termcap//' "${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig/readline.pc"
}