1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-15 07:52:06 +00:00
serenity/Ports/SDL2/package.sh
2022-05-25 23:04:52 +01:00

16 lines
550 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=SDL2
version=2.0.22
useconfigure=true
auth_type=sha256
files="https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL2-${version}.tar.gz SDL2-${version}.tar.gz fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e"
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DPULSEAUDIO=OFF" "-DJACK=OFF" "-DEXTRA_LDFLAGS=-laudio;-liconv;-ldl")
depends=("libiconv")
configure() {
run cmake "${configopts[@]}"
}
install() {
run make install
}