Skip to content

Commit

Permalink
ports: Misc backports
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Feb 23, 2025
1 parent 40db082 commit ec2ef74
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
13 changes: 13 additions & 0 deletions patches/m4/jinx-working-patch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git m4-clean/tests/strerror_r.c m4-workdir/tests/strerror_r.c
index 71965fb..be88d71 100644
--- m4-clean/tests/strerror_r.c
+++ m4-workdir/tests/strerror_r.c
@@ -21,7 +21,7 @@

/* Enable declaration of sys_nerr and sys_errlist in <errno.h> on NetBSD. */
#define _NETBSD_SOURCE 1
-
+#undef _GNU_SOURCE
/* Specification. */
#include <string.h>

25 changes: 25 additions & 0 deletions recipes/sdl2-compat
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /bin/sh

name=sdl2-compat
version=2.32.50
revision=1
tarball_url="https://github.com/libsdl-org/sdl2-compat/releases/download/release-${version}/sdl2-compat-${version}.tar.gz"
tarball_blake2b="f003f4b09633d3cef31fb00d6daefbcd329edd21c8dedd47d8adb07d7f65dede6bc818921dd73af3ab9483529f81a66460dc6aac80c2f277dca298b885849599"
imagedeps="cmake ninja-build git"
hostdeps="gcc pkg-config"
deps="sdl3"

configure() {
cmake_configure \
-DSDL_STATIC=OFF
}

build() {
ninja -j${parallelism}
}

package() {
DESTDIR="${dest_dir}" ninja install

post_package_strip
}
10 changes: 4 additions & 6 deletions recipes/sdl2 → recipes/sdl3
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#! /bin/sh

name=sdl2
version=2.30.3
name=sdl3
version=3.2.4
revision=1
tarball_url="https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL2-${version}.tar.gz"
tarball_blake2b="9918723bc3a0bc3abfc6d47b4fc7eeabcafdc9925ee93e4f31b3637e843a5b060ae61aef9b93743340a9df914248cff510e5d38e758e032b5ed4df9eed587746"
tarball_url="https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL3-${version}.tar.gz"
tarball_blake2b="4886c938ff9eb00af9c7429580fd034bb933efb8a3273d34693dad997268c96619cac2157119cd88c4a330c1ce4d8f4ffd8e00d2a29416be8ccd68990822dc1e"
imagedeps="cmake ninja-build git"
hostdeps="gcc pkg-config"
deps="core-libs libx11 libxext libxcursor libxi libxfixes libxrandr libxrender libxxf86vm mesa"
Expand Down Expand Up @@ -52,7 +52,5 @@ build() {
package() {
DESTDIR="${dest_dir}" ninja install

rm "${dest_dir}${prefix}"/lib/{libSDL2_test.a,libSDL2main.a}

post_package_strip
}

0 comments on commit ec2ef74

Please sign in to comment.