2021-04-25 15:29:28 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2023-09-01 13:27:50 +00:00
|
|
|
port='readline'
|
2023-09-01 22:43:07 +00:00
|
|
|
version='8.2'
|
2023-09-01 13:27:50 +00:00
|
|
|
useconfigure='true'
|
|
|
|
use_fresh_config_sub='true'
|
|
|
|
config_sub_paths=(
|
|
|
|
'support/config.sub'
|
|
|
|
)
|
2023-07-10 11:10:29 +00:00
|
|
|
files=(
|
2023-09-01 22:43:07 +00:00
|
|
|
"https://ftpmirror.gnu.org/gnu/readline/readline-${version}.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35"
|
2023-07-10 11:10:29 +00:00
|
|
|
)
|
2022-06-07 22:39:32 +00:00
|
|
|
configopts=(
|
2023-09-01 13:27:50 +00:00
|
|
|
'--disable-static'
|
|
|
|
'--enable-shared'
|
2022-06-07 22:39:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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.
|
2023-01-08 22:16:04 +00:00
|
|
|
sed_in_place '/^Requires.private:/s/termcap//' "${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig/readline.pc"
|
2022-06-07 22:39:32 +00:00
|
|
|
}
|