From 47845349c82e0dc325da9142036a2c3d2e8c07bc Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Fri, 24 May 2024 17:36:46 +0200 Subject: [PATCH] New package: raze-1.10.2 --- srcpkgs/raze/patches/nullptr.patch | 13 +++++++++++++ srcpkgs/raze/template | 28 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/raze/patches/nullptr.patch create mode 100644 srcpkgs/raze/template diff --git a/srcpkgs/raze/patches/nullptr.patch b/srcpkgs/raze/patches/nullptr.patch new file mode 100644 index 00000000000000..40012f87f56de8 --- /dev/null +++ b/srcpkgs/raze/patches/nullptr.patch @@ -0,0 +1,13 @@ +diff --git a/source/common/platform/posix/sdl/sdlglvideo.cpp b/source/common/platform/posix/sdl/sdlglvideo.cpp +index 92bdb15a7..4ed3a896d 100644 +--- a/source/common/platform/posix/sdl/sdlglvideo.cpp ++++ b/source/common/platform/posix/sdl/sdlglvideo.cpp +@@ -400,7 +400,7 @@ DFrameBuffer *SDLVideo::CreateFrameBuffer () + builder.RequireExtension(names[i]); + auto instance = builder.Create(); + +- VkSurfaceKHR surfacehandle = nullptr; ++ VkSurfaceKHR surfacehandle = VK_NULL_HANDLE; + if (!I_CreateVulkanSurface(instance->Instance, &surfacehandle)) + VulkanError("I_CreateVulkanSurface failed"); + diff --git a/srcpkgs/raze/template b/srcpkgs/raze/template new file mode 100644 index 00000000000000..30263a8d3eae16 --- /dev/null +++ b/srcpkgs/raze/template @@ -0,0 +1,28 @@ +# Template file for 'raze' +pkgname=raze +version=1.10.2 +revision=1 +build_style=cmake +configure_args="-DINSTALL_PK3_PATH=share/raze -DDYN_GTK=OFF -DDYN_OPENAL=OFF" +hostmakedepends="pkg-config" +makedepends="SDL2-devel gtk+3-devel ZMusic-devel libopenal-devel libvpx-devel" +short_desc="Build engine port backed by GZDoom tech" +maintainer="Mihail Ivanchev " +license="GPL-2.0-only, custom:BUILD" +homepage="https://raze.zdoom.org/" +distfiles="https://github.com/ZDoom/Raze/archive/refs/tags/${version}.tar.gz" +checksum=80f9b258271e316aca52751be8035eafc34fe2c6fa0e3a199206a5fe77be3406 +nocross=yes +repository=nonfree +restricted=yes + +#CXXFLAGS=-std=gnu++11 + +if [ "$XBPS_TARGET_LIBC" = musl ]; then + CFLAGS="-D_7ZIP_AFFINITY_DISABLE" + makedepends+=" musl-fts-devel libexecinfo-devel" +fi + +post_install() { + vlicense package/common/buildlic.txt +}