diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-08-24 00:29:16 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-24 12:14:18 +0200 |
commit | eb6b78b9505844ae621ffa9b644de937bd32494e (patch) | |
tree | 194bb193de4af9cd425b76094d08fba536dae72a /Ports/libvorbis | |
parent | 1a9d4ffecfd59ec50d3067243436f41d42344624 (diff) | |
download | serenity-eb6b78b9505844ae621ffa9b644de937bd32494e.zip |
Ports: Set correct path in `.la` files for libvorbis
These libtool archives incorrectly pointed to `/usr/local` causing
other ports not to be able to find the libvorbis libraries.
We cannot use `configure --prefix=...` since that will add up with our
fixed `make DESTDIR=...` logic, causing the path to be duplicated.
We can also not change that `DESTDIR` logic without influencing all
other port builds.
Finally, `configure --with-sysroot=...` doesn't work since not all
other ports (such as SDL_mixer) have a recent enough libtool to
understand the sysroot syntax.
So let's `sed` this and be done with it :^)
Diffstat (limited to 'Ports/libvorbis')
-rwxr-xr-x | Ports/libvorbis/package.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Ports/libvorbis/package.sh b/Ports/libvorbis/package.sh index 3bb9f19a8d..d9c4fc1a39 100755 --- a/Ports/libvorbis/package.sh +++ b/Ports/libvorbis/package.sh @@ -7,3 +7,9 @@ use_fresh_config_sub=true files="https://github.com/xiph/vorbis/releases/download/v${version}/libvorbis-${version}.tar.gz libvorbis-${version}.tar.gz 0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab" auth_type=sha256 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 +} |