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

Ports: Make sed work on macOS

The ports `libvorbis`, `readline` and `timidity` would not install on
macOS as a result of using `sed -i` without an extension provided. GNU
sed is available through Homebrew, but it does not replace `sed` by
default.

Instead, provide a new `sed_in_place` function that calls `sed` with the
right arguments.
This commit is contained in:
Jelle Raaijmakers 2023-01-08 23:16:04 +01:00 committed by Linus Groh
parent 3110f5b328
commit 7c2976e006
4 changed files with 11 additions and 3 deletions

View file

@ -11,5 +11,5 @@ depends=("libogg")
post_install() {
# Fix up broken libtool paths
# FIXME: apply a proper libtool fix
sed -i "s# /usr/local# ${SERENITY_INSTALL_ROOT}/usr/local#g" "${SERENITY_INSTALL_ROOT}"/usr/local/lib/libvorbis*.la
sed_in_place "s# /usr/local# ${SERENITY_INSTALL_ROOT}/usr/local#g" "${SERENITY_INSTALL_ROOT}"/usr/local/lib/libvorbis*.la
}