From fd618dfd97525a00cf1a0d6e00c6ee5f8c83611a Mon Sep 17 00:00:00 2001 From: Volodymyr Atamanenko Date: Wed, 5 Jul 2023 01:59:30 +0400 Subject: [PATCH] Add SDL Mixer X --- sdl2_mixer_ext/VITABUILD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sdl2_mixer_ext/VITABUILD diff --git a/sdl2_mixer_ext/VITABUILD b/sdl2_mixer_ext/VITABUILD new file mode 100644 index 00000000..abaefa75 --- /dev/null +++ b/sdl2_mixer_ext/VITABUILD @@ -0,0 +1,20 @@ +pkgname=sdl2_mixer_ext +pkgver=d149f1ecb1052ee207ca413e36b01923870faf17 +pkgrel=1 +url="https://github.com/WohlSoft/SDL-Mixer-X" +source=("https://github.com/WohlSoft/SDL-Mixer-X/archive/${pkgver}.zip") +sha256sums=("a4005a2e45838dd1d0f1205b7cb1e9c58b555b835bb5f651cfd4ab46de079b32") + +depends=('sdl2' 'libvorbis' 'libxmp' 'libmodplug' 'mpg123' 'flac' 'opusfile') + +build() { + cd SDL-Mixer-X-${pkgver} + mkdir build && cd build + cmake .. -DVITA=1 -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$prefix + make -j$(nproc) +} + +package () { + cd SDL-Mixer-X-${pkgver}/build + make DESTDIR=$pkgdir install +}