Skip to content

Commit ec2ef74

Browse files
committed
ports: Misc backports
1 parent 40db082 commit ec2ef74

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed

patches/m4/jinx-working-patch.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git m4-clean/tests/strerror_r.c m4-workdir/tests/strerror_r.c
2+
index 71965fb..be88d71 100644
3+
--- m4-clean/tests/strerror_r.c
4+
+++ m4-workdir/tests/strerror_r.c
5+
@@ -21,7 +21,7 @@
6+
7+
/* Enable declaration of sys_nerr and sys_errlist in <errno.h> on NetBSD. */
8+
#define _NETBSD_SOURCE 1
9+
-
10+
+#undef _GNU_SOURCE
11+
/* Specification. */
12+
#include <string.h>
13+

recipes/sdl2-compat

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#! /bin/sh
2+
3+
name=sdl2-compat
4+
version=2.32.50
5+
revision=1
6+
tarball_url="https://github.com/libsdl-org/sdl2-compat/releases/download/release-${version}/sdl2-compat-${version}.tar.gz"
7+
tarball_blake2b="f003f4b09633d3cef31fb00d6daefbcd329edd21c8dedd47d8adb07d7f65dede6bc818921dd73af3ab9483529f81a66460dc6aac80c2f277dca298b885849599"
8+
imagedeps="cmake ninja-build git"
9+
hostdeps="gcc pkg-config"
10+
deps="sdl3"
11+
12+
configure() {
13+
cmake_configure \
14+
-DSDL_STATIC=OFF
15+
}
16+
17+
build() {
18+
ninja -j${parallelism}
19+
}
20+
21+
package() {
22+
DESTDIR="${dest_dir}" ninja install
23+
24+
post_package_strip
25+
}

recipes/sdl2 recipes/sdl3

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! /bin/sh
22

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

55-
rm "${dest_dir}${prefix}"/lib/{libSDL2_test.a,libSDL2main.a}
56-
5755
post_package_strip
5856
}

0 commit comments

Comments
 (0)