mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:37:35 +00:00
Ports: Move SDL_sound to SDL2_sound
This commit is contained in:
parent
27f93a3052
commit
de31f51bbe
5 changed files with 10 additions and 10 deletions
18
Ports/SDL2_sound/package.sh
Executable file
18
Ports/SDL2_sound/package.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='SDL2_sound'
|
||||
version='git'
|
||||
_commit='df3fc779774c2c5dc1147239da1af858c88f1a74'
|
||||
workdir="SDL_sound-${_commit}"
|
||||
useconfigure='true'
|
||||
depends=('SDL2')
|
||||
files="https://github.com/icculus/SDL_sound/archive/${_commit}.zip ${_commit}.zip bf655a03ab96a49c4140e19135433d62893c124330955e85e3dfddbe9963bac2"
|
||||
auth_type='sha256'
|
||||
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
||||
|
||||
configure() {
|
||||
run cmake "${configopts[@]}"
|
||||
}
|
||||
|
||||
install() {
|
||||
run make install
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: xSlendiX <gamingxslendix@gmail.com>
|
||||
Date: Sun, 19 Sep 2021 22:46:10 +0300
|
||||
Subject: [PATCH] Use pkgconfig to find SDL2
|
||||
|
||||
---
|
||||
CMakeLists.txt | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c1b9241..a659246 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -24,7 +24,10 @@ if(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
|
||||
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.
|
7
Ports/SDL2_sound/patches/ReadMe.md
Normal file
7
Ports/SDL2_sound/patches/ReadMe.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Patches for SDL2_sound on SerenityOS
|
||||
|
||||
## `0001-Use-pkgconfig-to-find-SDL2.patch`
|
||||
|
||||
Use pkgconfig to find SDL2
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue