2021-01-22 16:44:05 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-08-21 11:43:54 +00:00
|
|
|
port='SDL2'
|
|
|
|
version='2.24.0'
|
|
|
|
useconfigure='true'
|
|
|
|
auth_type='sha256'
|
|
|
|
files="https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL2-${version}.tar.gz SDL2-${version}.tar.gz 91e4c34b1768f92d399b078e171448c6af18cafda743987ed2064a28954d6d97"
|
2022-04-27 15:17:08 +00:00
|
|
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DPULSEAUDIO=OFF" "-DJACK=OFF" "-DEXTRA_LDFLAGS=-laudio;-liconv;-ldl")
|
2021-10-16 13:03:00 +00:00
|
|
|
depends=("libiconv")
|
2019-09-24 06:56:39 +00:00
|
|
|
|
|
|
|
configure() {
|
2022-08-21 12:03:33 +00:00
|
|
|
mkdir -p "${PORT_BUILD_DIR}/SDL2-${version}-build"
|
|
|
|
cd "${PORT_BUILD_DIR}/SDL2-${version}-build"
|
|
|
|
cmake "${configopts[@]}" "${PORT_BUILD_DIR}/SDL2-${version}"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${PORT_BUILD_DIR}/SDL2-${version}-build"
|
|
|
|
make "${makeopts[@]}"
|
2019-09-24 06:56:39 +00:00
|
|
|
}
|
2019-12-25 22:18:08 +00:00
|
|
|
|
|
|
|
install() {
|
2022-08-21 12:03:33 +00:00
|
|
|
cd "${PORT_BUILD_DIR}/SDL2-${version}-build"
|
|
|
|
make install
|
2019-12-25 22:18:08 +00:00
|
|
|
}
|