Ports: Fix issues with the libmodplug and SDL_sound ports
- Lock SDL_sound to specific commit - Convert properties to arrays where required - Fix depends being called "deps"
This commit is contained in:
parent
262b718912
commit
3908753347
Notes:
sideshowbarker
2024-07-18 02:49:43 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/39087533475 Pull-request: https://github.com/SerenityOS/serenity/pull/10431
2 changed files with 8 additions and 7 deletions
|
@ -1,15 +1,16 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=SDL_sound
|
||||
version=git
|
||||
workdir=SDL_sound-main
|
||||
_commit=9dfd90e9aebeb8c29248af673a46507f10e0e893
|
||||
workdir=SDL_sound-${_commit}
|
||||
useconfigure=true
|
||||
deps="SDL2"
|
||||
files="https://github.com/icculus/SDL_sound/archive/refs/heads/main.zip main.zip f8a322d090a172b9c66a41758f7ece850a8ff231058733a13e44bc380342651b"
|
||||
depends=("SDL2")
|
||||
files="https://github.com/icculus/SDL_sound/archive/${_commit}.zip ${_commit}.zip c701f31fcef9238d6a439d94020ce8957aa5aaea29878312dc0b6d1c247d77ca"
|
||||
auth_type=sha256
|
||||
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
||||
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
||||
|
||||
configure() {
|
||||
run cmake $configopts
|
||||
run cmake "${configopts[@]}"
|
||||
}
|
||||
|
||||
install() {
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
port=libmodplug
|
||||
version=0.8.8.5
|
||||
useconfigure=true
|
||||
configopts="ac_cv_c_bigendian=no"
|
||||
configopts=("ac_cv_c_bigendian=no")
|
||||
files="https://download.sourceforge.net/modplug-xmms/libmodplug-${version}.tar.gz libmodplug-${version}.tar.gz 77462d12ee99476c8645cb5511363e3906b88b33a6b54362b4dbc0f39aa2daad"
|
||||
auth_type=sha256
|
||||
workdir="libmodplug-$version"
|
||||
|
||||
install() {
|
||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
||||
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.so -Wl,-soname,libmodplug.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.a -Wl,--no-whole-archive
|
||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.la
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue