first commit
This commit is contained in:
commit
528f89a79b
90 changed files with 13567 additions and 0 deletions
1
games-util/slade/Manifest
Normal file
1
games-util/slade/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST slade-3.2.6.tar.gz 7027328 BLAKE2B ba0db4926f5706166ec2439cbb539a9d5330e2d3ea3dbd8e29b586cf57a23b7b254823d84b7ba79b604a86ed0e5753b4e7c4fcf825ba7d3217c52824f36c5be4 SHA512 d09631b24c83769482480c24dfc1f6992ae293bdfe4c8661d967d6ac0fcbba6f0e1bf58c58afc84a82fb5f900d9e0e99413800a42edc353a4f7f1f52781db54f
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
From dc0057d1200f9bb6b67f1b1a2094b7e402d1d370 Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Sat, 20 Feb 2021 12:28:48 +0000
|
||||
Subject: [PATCH] Don't force FluidSynth to use ALSA on Linux
|
||||
|
||||
---
|
||||
src/Audio/MIDIPlayer.cpp | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/src/Audio/MIDIPlayer.cpp b/src/Audio/MIDIPlayer.cpp
|
||||
index bb001339..f33ffe67 100644
|
||||
--- a/src/Audio/MIDIPlayer.cpp
|
||||
+++ b/src/Audio/MIDIPlayer.cpp
|
||||
@@ -344,10 +344,6 @@ public:
|
||||
fs_initialised_ = false;
|
||||
file_ = "";
|
||||
|
||||
- // Set fluidsynth driver to alsa in linux (no idea why it defaults to jack)
|
||||
- if (app::platform() == app::Platform::Linux && fs_driver.value.empty())
|
||||
- fs_driver = "alsa";
|
||||
-
|
||||
// Init soundfont path
|
||||
if (fs_soundfont_path.value.empty())
|
||||
{
|
||||
--
|
||||
2.30.0
|
||||
|
||||
25
games-util/slade/files/slade-3.2.2-wayland.patch
Normal file
25
games-util/slade/files/slade-3.2.2-wayland.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
SFML's render window only supports X11 under Linux, so SLADE crashes if GDK
|
||||
chooses the Wayland backend. This patch tells GDK to prefer the X11 backend.
|
||||
SLADE 3.3.0 will apparently not use the render window.
|
||||
|
||||
diff --git a/src/Application/SLADEWxApp.cpp b/src/Application/SLADEWxApp.cpp
|
||||
index 3dadf241..de01e340 100644
|
||||
--- a/src/Application/SLADEWxApp.cpp
|
||||
+++ b/src/Application/SLADEWxApp.cpp
|
||||
@@ -52,6 +52,16 @@
|
||||
using namespace slade;
|
||||
|
||||
|
||||
+#ifdef __WXGTK__
|
||||
+#include <gdk/gdk.h>
|
||||
+
|
||||
+struct PreferX11 {
|
||||
+ PreferX11() { gdk_set_allowed_backends("x11,*"); }
|
||||
+};
|
||||
+static PreferX11 preferx11;
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
// -----------------------------------------------------------------------------
|
||||
//
|
||||
// Variables
|
||||
14
games-util/slade/metadata.xml
Normal file
14
games-util/slade/metadata.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>games@gentoo.org</email>
|
||||
<name>Gentoo Games Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">sirjuddington/SLADE</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="fluidsynth">Enable MIDI software synthesis using <pkg>media-sound/fluidsynth</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
80
games-util/slade/slade-3.2.6.ebuild
Normal file
80
games-util/slade/slade-3.2.6.ebuild
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..3} )
|
||||
WX_GTK_VER="3.2-gtk3"
|
||||
|
||||
inherit cmake lua-single wxwidgets
|
||||
|
||||
MY_PV="${PV/beta/b}"
|
||||
DESCRIPTION="Modern editor for Doom-engine based games and source ports"
|
||||
HOMEPAGE="https://slade.mancubus.net/"
|
||||
SRC_URI="https://github.com/sirjuddington/${PN^^}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-2 MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="fluidsynth timidity webkit"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${LUA_DEPS}
|
||||
app-arch/bzip2:=
|
||||
dev-libs/libfmt:=
|
||||
>=media-libs/dumb-2:=
|
||||
media-libs/freeimage[jpeg,png,tiff]
|
||||
media-libs/glew:0=
|
||||
media-libs/libsfml:=
|
||||
media-sound/mpg123
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
x11-libs/wxGTK:${WX_GTK_VER}[opengl,webkit?,X]
|
||||
fluidsynth? ( media-sound/fluidsynth:= )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
timidity? ( media-sound/timidity++ )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
app-arch/p7zip
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN^^}-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.2.0_beta2-fluidsynth-driver.patch
|
||||
"${FILESDIR}"/${PN}-3.2.2-wayland.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# Delete bundled libraries just in case.
|
||||
rm -r thirdparty/dumb/ thirdparty/fmt/ || die
|
||||
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local luav=$(lua_get_version)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DLua_FIND_VERSION_MAJOR=$(ver_cut 1 "${luav}")
|
||||
-DLua_FIND_VERSION_MINOR=$(ver_cut 2 "${luav}")
|
||||
-DLua_FIND_VERSION_COUNT=2
|
||||
-DLua_FIND_VERSION_EXACT=ON
|
||||
-DNO_COTIRE=ON
|
||||
-DNO_FLUIDSYNTH=$(usex fluidsynth OFF ON)
|
||||
-DNO_WEBVIEW=$(usex webkit OFF ON)
|
||||
-DUSE_SFML_RENDERWINDOW=ON
|
||||
-DUSE_SYSTEM_DUMB=ON
|
||||
-DUSE_SYSTEM_FMT=ON
|
||||
-DWX_GTK3=ON
|
||||
)
|
||||
|
||||
setup-wxwidgets
|
||||
cmake_src_configure
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue