summaryrefslogtreecommitdiff
path: root/repo/media/sfml
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-17 17:11:50 +0100
committerdavidovski <david@davidovski.xyz>2022-05-17 17:11:50 +0100
commitd296884edbe61022623e343a115e147fafe1c62b (patch)
treeac9e6643a6475e21fc16e23888a1a7e31ebb13de /repo/media/sfml
parent72b41d959aac1c0e0e16de51fad5e4b6f8ecda98 (diff)
added extremetuxracer
Diffstat (limited to 'repo/media/sfml')
-rw-r--r--repo/media/sfml/musl-1.2.3.patch11
-rw-r--r--repo/media/sfml/sfml.xibuild28
2 files changed, 39 insertions, 0 deletions
diff --git a/repo/media/sfml/musl-1.2.3.patch b/repo/media/sfml/musl-1.2.3.patch
new file mode 100644
index 0000000..54d2f6d
--- /dev/null
+++ b/repo/media/sfml/musl-1.2.3.patch
@@ -0,0 +1,11 @@
+--- a/src/SFML/Window/Unix/WindowImplX11.cpp
++++ b/src/SFML/Window/Unix/WindowImplX11.cpp
+@@ -1556,7 +1556,7 @@
+ m_window,
+ XNInputStyle,
+ XIMPreeditNothing | XIMStatusNothing,
+- reinterpret_cast<void*>(NULL));
++ reinterpret_cast<void*>(0));
+ }
+ else
+ {
diff --git a/repo/media/sfml/sfml.xibuild b/repo/media/sfml/sfml.xibuild
new file mode 100644
index 0000000..c0001dd
--- /dev/null
+++ b/repo/media/sfml/sfml.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="sfml"
+DESC="Simple and Fast Multimedia Library"
+
+MAKEDEPS="cmake "
+DEPS="eudev freetype2 flac libogg libvorbis libx11 libxrandr mesa musl openal-soft "
+
+PKG_VER=2.5.1
+SOURCE="https://github.com/SFML/SFML/archive/$PKG_VER/sfml-$PKG_VER.tar.gz"
+ADDITIONAL="musl-1.2.3.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}