1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 22:57:35 +00:00

Ports: Add SDL_sound

This commit is contained in:
xSlendiX 2021-09-19 22:46:10 +03:00 committed by Brian Gianforcaro
parent f573b7b47a
commit 6782cf5193
3 changed files with 32 additions and 0 deletions

17
Ports/SDL_sound/package.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=SDL_sound
version=git
workdir=SDL_sound-main
useconfigure=true
deps="SDL2"
files="https://github.com/icculus/SDL_sound/archive/refs/heads/main.zip main.zip f8a322d090a172b9c66a41758f7ece850a8ff231058733a13e44bc380342651b"
auth_type=sha256
configopts="-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
configure() {
run cmake $configopts
}
install() {
run make install
}

View file

@ -0,0 +1,14 @@
--- SDL_sound-main/CMakeLists.txt 2021-08-21 03:28:50.000000000 +0300
+++ SDL_sound-main.serenity/CMakeLists.txt 2021-09-18 15:59:24.321216126 +0300
@@ -29,7 +29,10 @@
add_definitions(-xldscope=hidden)
endif()
-find_package(SDL2 REQUIRED)
+INCLUDE(FindPkgConfig)
+
+PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
+
include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_INCLUDE_DIR})
if(WIN32)
# -lmingw32: gcc adds it automatically.