mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
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
2 changed files with 8 additions and 7 deletions
|
@ -1,15 +1,16 @@
|
||||||
#!/usr/bin/env -S bash ../.port_include.sh
|
#!/usr/bin/env -S bash ../.port_include.sh
|
||||||
port=SDL_sound
|
port=SDL_sound
|
||||||
version=git
|
version=git
|
||||||
workdir=SDL_sound-main
|
_commit=9dfd90e9aebeb8c29248af673a46507f10e0e893
|
||||||
|
workdir=SDL_sound-${_commit}
|
||||||
useconfigure=true
|
useconfigure=true
|
||||||
deps="SDL2"
|
depends=("SDL2")
|
||||||
files="https://github.com/icculus/SDL_sound/archive/refs/heads/main.zip main.zip f8a322d090a172b9c66a41758f7ece850a8ff231058733a13e44bc380342651b"
|
files="https://github.com/icculus/SDL_sound/archive/${_commit}.zip ${_commit}.zip c701f31fcef9238d6a439d94020ce8957aa5aaea29878312dc0b6d1c247d77ca"
|
||||||
auth_type=sha256
|
auth_type=sha256
|
||||||
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
||||||
|
|
||||||
configure() {
|
configure() {
|
||||||
run cmake $configopts
|
run cmake "${configopts[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
port=libmodplug
|
port=libmodplug
|
||||||
version=0.8.8.5
|
version=0.8.8.5
|
||||||
useconfigure=true
|
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"
|
files="https://download.sourceforge.net/modplug-xmms/libmodplug-${version}.tar.gz libmodplug-${version}.tar.gz 77462d12ee99476c8645cb5511363e3906b88b33a6b54362b4dbc0f39aa2daad"
|
||||||
auth_type=sha256
|
auth_type=sha256
|
||||||
workdir="libmodplug-$version"
|
workdir="libmodplug-$version"
|
||||||
|
|
||||||
install() {
|
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
|
${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
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libmodplug.la
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue