From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/sfml/musl-1.2.3.patch | 11 +++++++++++ repo/sfml/sfml.xibuild | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 repo/sfml/musl-1.2.3.patch create mode 100644 repo/sfml/sfml.xibuild (limited to 'repo/sfml') diff --git a/repo/sfml/musl-1.2.3.patch b/repo/sfml/musl-1.2.3.patch new file mode 100644 index 0000000..54d2f6d --- /dev/null +++ b/repo/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(NULL)); ++ reinterpret_cast(0)); + } + else + { diff --git a/repo/sfml/sfml.xibuild b/repo/sfml/sfml.xibuild new file mode 100644 index 0000000..c0001dd --- /dev/null +++ b/repo/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 +} -- cgit v1.2.1