Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDL3, add SDL3_image #328

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdl3/VITABUILD
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pkgname=sdl3
pkgver=3.2.0
pkgver=3.2.2
pkgrel=1
url='https://www.libsdl.org'
license=('Zlib')
source=("https://github.com/libsdl-org/SDL/releases/download/release-${pkgver}/SDL3-${pkgver}.tar.gz")
sha256sums=('bf308f92c5688b1479faf5cfe24af72f3cd4ce08d0c0670d6ce55bc2ec1e9a5e')
sha256sums=('d3dcf1b2f64746be0f248ef27b35aec4f038dafadfb83491f98a7fecdaf6efec')

build() {
cd "SDL3-${pkgver}"
Expand Down
20 changes: 20 additions & 0 deletions sdl3_image/VITABUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pkgname=sdl3_image
pkgver=3.2.0
pkgrel=1
url="https://github.com/libsdl-org/SDL_image"
license=('Zlib')
source=("https://github.com/libsdl-org/SDL_image/releases/download/release-${pkgver}/SDL3_image-${pkgver}.tar.gz")
sha256sums=("1690baea71b2b4ded9895126cddbc03a1000b027d099a4fb4669c4d23d73b19f")
depends=('sdl3 libwebp libpng libjpeg-turbo zlib')

build() {
cd SDL3_image-${pkgver}
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DBUILD_SHARED_LIBS=OFF -DSDLIMAGE_SAMPLES=OFF -DSDLIMAGE_TESTS=OFF -DSDLIMAGE_DEPS_SHARED=OFF -DSDLIMAGE_BACKEND_STB=OFF
make -j$(nproc)
}

package () {
cd SDL3_image-${pkgver}/build
make DESTDIR=$pkgdir install
}