1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 09:20:46 +00:00
serenity/Ports/SDL2/package.sh
Tim Schumacher 418d69c0ad Ports: Fix dependencies for SDL2
We are doing nonstandard stuff with our headers, so SDL assumed that
both iconv and dlopen are available inside LibC, which they aren't.

Fix that by adding a dependency on libiconv and adding additional
linker flags.
2021-10-16 15:36:04 -07:00

17 lines
448 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port=SDL2
version=git
workdir=SDL-main-serenity
useconfigure=true
files="https://github.com/SerenityPorts/SDL/archive/main-serenity.tar.gz SDL2-git.tar.gz"
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DPULSEAUDIO=OFF" "-DJACK=OFF" "-DEXTRA_LDFLAGS=-liconv;-ldl")
depends=("libiconv")
configure() {
run cmake "${configopts[@]}"
}
install() {
run make install
}