diff options
author | Grigoris Pavlakis <grigpavl@ece.auth.gr> | 2022-06-13 13:20:06 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-20 23:24:45 +0100 |
commit | de31f51bbe3a180ceb8698c17bc54e0d420830ef (patch) | |
tree | 05dddc7cdcfd05ea8c90e1711f35269cf1c35470 /Ports/SDL2_sound | |
parent | 27f93a30522b332602474acd652800c35b76015a (diff) | |
download | serenity-de31f51bbe3a180ceb8698c17bc54e0d420830ef.zip |
Ports: Move SDL_sound to SDL2_sound
Diffstat (limited to 'Ports/SDL2_sound')
-rwxr-xr-x | Ports/SDL2_sound/package.sh | 18 | ||||
-rw-r--r-- | Ports/SDL2_sound/patches/0001-Use-pkgconfig-to-find-SDL2.patch | 25 | ||||
-rw-r--r-- | Ports/SDL2_sound/patches/ReadMe.md | 7 |
3 files changed, 50 insertions, 0 deletions
diff --git a/Ports/SDL2_sound/package.sh b/Ports/SDL2_sound/package.sh new file mode 100755 index 0000000000..e990e09185 --- /dev/null +++ b/Ports/SDL2_sound/package.sh @@ -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 +} diff --git a/Ports/SDL2_sound/patches/0001-Use-pkgconfig-to-find-SDL2.patch b/Ports/SDL2_sound/patches/0001-Use-pkgconfig-to-find-SDL2.patch new file mode 100644 index 0000000000..303321fc10 --- /dev/null +++ b/Ports/SDL2_sound/patches/0001-Use-pkgconfig-to-find-SDL2.patch @@ -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. diff --git a/Ports/SDL2_sound/patches/ReadMe.md b/Ports/SDL2_sound/patches/ReadMe.md new file mode 100644 index 0000000000..516be49c88 --- /dev/null +++ b/Ports/SDL2_sound/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for SDL2_sound on SerenityOS + +## `0001-Use-pkgconfig-to-find-SDL2.patch` + +Use pkgconfig to find SDL2 + + |