mirror of
https://git.suyu.dev/suyu/flatpak.git
synced 2025-12-28 18:24:56 +01:00
Init
This commit is contained in:
commit
e571c4fbe8
139 changed files with 8839 additions and 0 deletions
21
shared-modules/pygame/audiofile-gcc6.patch
Normal file
21
shared-modules/pygame/audiofile-gcc6.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
From b62c902dd258125cac86cd2df21fc898035a43d3 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Pruett <michael@68k.org>
|
||||
Date: Mon, 29 Aug 2016 23:08:26 -0500
|
||||
Subject: [PATCH] Fix undefined behavior in sign conversion.
|
||||
Origin: https://github.com/mpruett/audiofile/commit/b62c902dd258125cac86cd2df21fc898035a43d3
|
||||
|
||||
---
|
||||
diff --git a/libaudiofile/modules/SimpleModule.h b/libaudiofile/modules/SimpleModule.h
|
||||
index 03c6c69..bad85ad 100644
|
||||
--- a/libaudiofile/modules/SimpleModule.h
|
||||
+++ b/libaudiofile/modules/SimpleModule.h
|
||||
@@ -123,7 +123,8 @@ struct signConverter
|
||||
typedef typename IntTypes<Format>::UnsignedType UnsignedType;
|
||||
|
||||
static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
|
||||
- static const int kMinSignedValue = -1 << kScaleBits;
|
||||
+ static const int kMaxSignedValue = (((1 << (kScaleBits - 1)) - 1) << 1) + 1;
|
||||
+ static const int kMinSignedValue = -kMaxSignedValue - 1;
|
||||
|
||||
struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
|
||||
{
|
||||
34
shared-modules/pygame/cython-fixes.patch
Normal file
34
shared-modules/pygame/cython-fixes.patch
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
From ff04ba4bfbe65929534f61a9f66a39d03c973b78 Mon Sep 17 00:00:00 2001
|
||||
From: bbhtt <bbhtt.zn0i8@slmail.me>
|
||||
Date: Sat, 9 Sep 2023 15:15:00 +0530
|
||||
Subject: [PATCH 1/2] Cython fixes
|
||||
|
||||
---
|
||||
src_c/pypm.pyx | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src_c/pypm.pyx b/src_c/pypm.pyx
|
||||
index d66e7a10..706726c6 100644
|
||||
--- a/src_c/pypm.pyx
|
||||
+++ b/src_c/pypm.pyx
|
||||
@@ -5,6 +5,8 @@
|
||||
# harrison@media.mit.edu
|
||||
# written in Pyrex
|
||||
|
||||
+# cython: language_level=2
|
||||
+
|
||||
__version__ = "0.0.6"
|
||||
|
||||
import array
|
||||
@@ -277,7 +279,7 @@ cdef class Output:
|
||||
PmPtr = <PmTimeProcPtr>&Pt_Time
|
||||
|
||||
if self.debug:
|
||||
- print "Opening Midi Output"
|
||||
+ print "Opening Midi Output", output_device
|
||||
|
||||
# Why is buffer size 0 here?
|
||||
err = Pm_OpenOutput(&(self.midi), output_device, NULL, 0, PmPtr, NULL,
|
||||
--
|
||||
2.41.0
|
||||
|
||||
69
shared-modules/pygame/fluidsynth-no-rawmidi.patch
Normal file
69
shared-modules/pygame/fluidsynth-no-rawmidi.patch
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
diff -rupN fluidsynth-1.1.6.orig/src/drivers/fluid_alsa.c fluidsynth-1.1.6/src/drivers/fluid_alsa.c
|
||||
--- fluidsynth-1.1.6.orig/src/drivers/fluid_alsa.c 2012-08-16 05:01:13.000000000 +0100
|
||||
+++ fluidsynth-1.1.6/src/drivers/fluid_alsa.c 2017-02-28 21:26:57.033244239 +0000
|
||||
@@ -96,7 +96,7 @@ struct fluid_alsa_formats_t fluid_alsa_f
|
||||
};
|
||||
|
||||
|
||||
-
|
||||
+#if 0
|
||||
/*
|
||||
* fluid_alsa_rawmidi_driver_t
|
||||
*
|
||||
@@ -119,7 +119,7 @@ fluid_midi_driver_t* new_fluid_alsa_rawm
|
||||
|
||||
int delete_fluid_alsa_rawmidi_driver(fluid_midi_driver_t* p);
|
||||
static void fluid_alsa_midi_run(void* d);
|
||||
-
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* fluid_alsa_seq_driver_t
|
||||
@@ -535,7 +535,7 @@ static void fluid_alsa_audio_run_s16 (vo
|
||||
*
|
||||
*/
|
||||
|
||||
-
|
||||
+#if 0
|
||||
void fluid_alsa_rawmidi_driver_settings(fluid_settings_t* settings)
|
||||
{
|
||||
fluid_settings_register_str(settings, "midi.alsa.device", "default", 0, NULL, NULL);
|
||||
@@ -698,7 +698,7 @@ fluid_alsa_midi_run(void* d)
|
||||
}
|
||||
}
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
/**************************************************************
|
||||
*
|
||||
* Alsa sequencer
|
||||
diff -rupN fluidsynth-1.1.6.orig/src/drivers/fluid_mdriver.c fluidsynth-1.1.6/src/drivers/fluid_mdriver.c
|
||||
--- fluidsynth-1.1.6.orig/src/drivers/fluid_mdriver.c 2012-08-16 05:01:13.000000000 +0100
|
||||
+++ fluidsynth-1.1.6/src/drivers/fluid_mdriver.c 2017-02-28 21:24:43.887833321 +0000
|
||||
@@ -24,11 +24,13 @@
|
||||
|
||||
/* ALSA */
|
||||
#if ALSA_SUPPORT
|
||||
+#if 0
|
||||
fluid_midi_driver_t* new_fluid_alsa_rawmidi_driver(fluid_settings_t* settings,
|
||||
handle_midi_event_func_t handler,
|
||||
void* event_handler_data);
|
||||
int delete_fluid_alsa_rawmidi_driver(fluid_midi_driver_t* p);
|
||||
void fluid_alsa_rawmidi_driver_settings(fluid_settings_t* settings);
|
||||
+#endif
|
||||
|
||||
fluid_midi_driver_t* new_fluid_alsa_seq_driver(fluid_settings_t* settings,
|
||||
handle_midi_event_func_t handler,
|
||||
@@ -109,10 +111,12 @@ struct fluid_mdriver_definition_t fluid_
|
||||
fluid_oss_midi_driver_settings },
|
||||
#endif
|
||||
#if ALSA_SUPPORT
|
||||
+#if 0
|
||||
{ "alsa_raw",
|
||||
new_fluid_alsa_rawmidi_driver,
|
||||
delete_fluid_alsa_rawmidi_driver,
|
||||
fluid_alsa_rawmidi_driver_settings },
|
||||
+#endif
|
||||
{ "alsa_seq",
|
||||
new_fluid_alsa_seq_driver,
|
||||
delete_fluid_alsa_seq_driver,
|
||||
25
shared-modules/pygame/glib.patch
Normal file
25
shared-modules/pygame/glib.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
From 24d1e9c28518cb4b01344eaf8377f2d6d489ad50 Mon Sep 17 00:00:00 2001
|
||||
From: bbhtt <bbhtt.zn0i8@slmail.me>
|
||||
Date: Sat, 9 Sep 2023 12:04:16 +0530
|
||||
Subject: [PATCH] Fix deprecated GStaticMutex init with glib-2.70
|
||||
|
||||
---
|
||||
src/drivers/fluid_jack.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/drivers/fluid_jack.c b/src/drivers/fluid_jack.c
|
||||
index fe3cd752..613a9820 100644
|
||||
--- a/src/drivers/fluid_jack.c
|
||||
+++ b/src/drivers/fluid_jack.c
|
||||
@@ -100,7 +100,7 @@ int fluid_jack_driver_process(jack_nframes_t nframes, void *arg);
|
||||
int delete_fluid_jack_midi_driver(fluid_midi_driver_t *p);
|
||||
|
||||
|
||||
-static fluid_mutex_t last_client_mutex = G_STATIC_MUTEX_INIT; /* Probably not necessary, but just in case drivers are created by multiple threads */
|
||||
+static fluid_mutex_t last_client_mutex; /* Probably not necessary, but just in case drivers are created by multiple threads */
|
||||
static fluid_jack_client_t *last_client = NULL; /* Last unpaired client. For audio/MIDI driver pairing. */
|
||||
|
||||
|
||||
--
|
||||
2.41.0
|
||||
|
||||
105
shared-modules/pygame/portmidi-no-java.patch
Normal file
105
shared-modules/pygame/portmidi-no-java.patch
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
diff -rupN portmidi.orig/CMakeLists.txt portmidi/CMakeLists.txt
|
||||
--- portmidi.orig/CMakeLists.txt 2010-09-20 15:57:48.000000000 +0100
|
||||
+++ portmidi/CMakeLists.txt 2017-03-03 13:50:58.494561245 +0000
|
||||
@@ -71,7 +71,3 @@ add_subdirectory(pm_common)
|
||||
add_subdirectory(pm_test)
|
||||
|
||||
add_subdirectory(pm_dylib)
|
||||
-
|
||||
-# Cannot figure out how to make an xcode Java application with CMake
|
||||
-add_subdirectory(pm_java)
|
||||
-
|
||||
diff -rupN portmidi.orig/pm_common/CMakeLists.txt portmidi/pm_common/CMakeLists.txt
|
||||
--- portmidi.orig/pm_common/CMakeLists.txt 2010-09-20 15:57:48.000000000 +0100
|
||||
+++ portmidi/pm_common/CMakeLists.txt 2017-03-03 14:02:32.851938051 +0000
|
||||
@@ -67,14 +67,6 @@ if(UNIX)
|
||||
message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
|
||||
else(APPLE)
|
||||
# LINUX settings...
|
||||
- include(FindJNI)
|
||||
- message(STATUS "JAVA_JVM_LIB_PATH is " ${JAVA_JVM_LIB_PATH})
|
||||
- message(STATUS "JAVA_INCLUDE_PATH is " ${JAVA_INCLUDE_PATH})
|
||||
- message(STATUS "JAVA_INCLUDE_PATH2 is " ${JAVA_INCLUDE_PATH2})
|
||||
- message(STATUS "JAVA_JVM_LIBRARY is " ${JAVA_JVM_LIBRARY})
|
||||
- set(JAVA_INCLUDE_PATHS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
|
||||
- # libjvm.so is found relative to JAVA_INCLUDE_PATH:
|
||||
- set(JAVAVM_LIB ${JAVA_JVM_LIBRARY}/libjvm.so)
|
||||
|
||||
set(LINUXSRC pmlinuxalsa pmlinux finddefault)
|
||||
prepend_path(LIBSRC ../pm_linux/ ${LINUXSRC})
|
||||
@@ -99,7 +91,6 @@ else(UNIX)
|
||||
set(PM_NEEDED_LIBS winmm.lib)
|
||||
endif(WIN32)
|
||||
endif(UNIX)
|
||||
-set(JNI_EXTRA_LIBS ${PM_NEEDED_LIBS} ${JAVA_JVM_LIBRARY})
|
||||
|
||||
# this completes the list of library sources by adding shared code
|
||||
list(APPEND LIBSRC pmutil portmidi)
|
||||
@@ -109,19 +100,11 @@ add_library(portmidi-static ${LIBSRC})
|
||||
set_target_properties(portmidi-static PROPERTIES OUTPUT_NAME "portmidi_s")
|
||||
target_link_libraries(portmidi-static ${PM_NEEDED_LIBS})
|
||||
|
||||
-# define the jni library
|
||||
-include_directories(${JAVA_INCLUDE_PATHS})
|
||||
-
|
||||
-set(JNISRC ${LIBSRC} ../pm_java/pmjni/pmjni.c)
|
||||
-add_library(pmjni SHARED ${JNISRC})
|
||||
-target_link_libraries(pmjni ${JNI_EXTRA_LIBS})
|
||||
-set_target_properties(pmjni PROPERTIES EXECUTABLE_EXTENSION "jnilib")
|
||||
-
|
||||
# install the libraries (Linux and Mac OS X command line)
|
||||
if(UNIX)
|
||||
- INSTALL(TARGETS portmidi-static pmjni
|
||||
- LIBRARY DESTINATION /usr/local/lib
|
||||
- ARCHIVE DESTINATION /usr/local/lib)
|
||||
+ INSTALL(TARGETS portmidi-static
|
||||
+ LIBRARY DESTINATION /app/lib
|
||||
+ ARCHIVE DESTINATION /app/lib)
|
||||
# .h files installed by pm_dylib/CMakeLists.txt, so don't need them here
|
||||
# INSTALL(FILES portmidi.h ../porttime/porttime.h
|
||||
# DESTINATION /usr/local/include)
|
||||
diff -rupN portmidi.orig/pm_dylib/CMakeLists.txt portmidi/pm_dylib/CMakeLists.txt
|
||||
--- portmidi.orig/pm_dylib/CMakeLists.txt 2009-11-20 00:41:10.000000000 +0000
|
||||
+++ portmidi/pm_dylib/CMakeLists.txt 2017-03-03 14:03:56.807104521 +0000
|
||||
@@ -63,7 +63,6 @@ if(UNIX)
|
||||
message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
|
||||
else(APPLE)
|
||||
# LINUX settings...
|
||||
- include(FindJNI)
|
||||
# message(STATUS "JAVA_JVM_LIB_PATH is " ${JAVA_JVM_LIB_PATH})
|
||||
# message(STATUS "JAVA_INCLUDE_PATH is " ${JAVA_INCLUDE_PATH})
|
||||
# note: should use JAVA_JVM_LIB_PATH, but it is not set properly
|
||||
@@ -75,12 +74,7 @@ if(UNIX)
|
||||
# JAVA_INCLUDE_PATH2; if no, then we need to make both JAVA_INCLUDE_PATH
|
||||
# and JAVA_INCLUDE_PATH2 set by user (will need clear documentation
|
||||
# because JAVA_INCLUDE_PATH2 is pretty obscure)
|
||||
- set(JAVA_INCLUDE_PATH ${JAVA_INCLUDE_PATH-UNKNOWN}
|
||||
- CACHE STRING "where to find Java SDK include directory")
|
||||
- set(JAVA_INCLUDE_PATHS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH}/linux)
|
||||
- # libjvm.so is found relative to JAVA_INCLUDE_PATH:
|
||||
- set(JAVAVM_LIB ${JAVA_INCLUDE_PATH}/../jre/lib/i386/client/libjvm.so)
|
||||
-
|
||||
+
|
||||
set(LINUXSRC pmlinuxalsa pmlinux finddefault)
|
||||
prepend_path(LIBSRC ../pm_linux/ ${LINUXSRC})
|
||||
list(APPEND LIBSRC ../porttime/ptlinux)
|
||||
@@ -106,7 +100,6 @@ else(UNIX)
|
||||
# message(STATUS "JAVAVM_LIB: " ${JAVAVM_LIB})
|
||||
endif(WIN32)
|
||||
endif(UNIX)
|
||||
-set(JNI_EXTRA_LIBS ${PM_NEEDED_LIBS} ${JAVAVM_LIB})
|
||||
|
||||
# this completes the list of library sources by adding shared code
|
||||
set(SHARED_FILES pmutil portmidi)
|
||||
@@ -120,8 +113,8 @@ target_link_libraries(portmidi-dynamic $
|
||||
# install the libraries (Linux and Mac OS X command line)
|
||||
if(UNIX)
|
||||
INSTALL(TARGETS portmidi-dynamic
|
||||
- LIBRARY DESTINATION /usr/local/lib
|
||||
- ARCHIVE DESTINATION /usr/local/lib)
|
||||
+ LIBRARY DESTINATION /app/lib
|
||||
+ ARCHIVE DESTINATION /app/lib)
|
||||
INSTALL(FILES ../pm_common/portmidi.h ../porttime/porttime.h
|
||||
- DESTINATION /usr/local/include)
|
||||
+ DESTINATION /app/include)
|
||||
endif(UNIX)
|
||||
158
shared-modules/pygame/pygame-1.9.6.json
Normal file
158
shared-modules/pygame/pygame-1.9.6.json
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
{
|
||||
"name": "pygame",
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz",
|
||||
"sha256": "301c6428c0880ecd4a9e3951b80e539c33863b6ff356a443db1758de4f297957"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "cython-fixes.patch"
|
||||
}
|
||||
],
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"python setup.py cython install --prefix=/app --root=/"
|
||||
],
|
||||
"cleanup": [
|
||||
"/include",
|
||||
"/lib/pkgconfig",
|
||||
"/share/man",
|
||||
"*.la",
|
||||
"*.a"
|
||||
],
|
||||
"build-options": {
|
||||
"env": {
|
||||
"PORTMIDI_INC_PORTTIME": "1",
|
||||
"PYGAME_EXTRA_BASE": "/app"
|
||||
},
|
||||
"arch": {
|
||||
"aarch64": {
|
||||
"env": {
|
||||
"ORIGLIBDIRS": "/lib:/lib64:/lib/aarch64-linux-gnu"
|
||||
}
|
||||
},
|
||||
"arm": {
|
||||
"env": {
|
||||
"ORIGLIBDIRS": "/lib:/lib/arm-linux-gnueabihf"
|
||||
}
|
||||
},
|
||||
"i386": {
|
||||
"env": {
|
||||
"ORIGLIBDIRS": "/lib:/lib/i386-linux-gnu"
|
||||
}
|
||||
},
|
||||
"x86_64": {
|
||||
"env": {
|
||||
"ORIGLIBDIRS": "/lib:/lib64:/lib/x86_64-linux-gnu"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"modules": [
|
||||
"../SDL/SDL-1.2.15.json",
|
||||
"../SDL/SDL_image-1.2.12.json",
|
||||
"../SDL/SDL_ttf-2.0.11.json",
|
||||
"../smpeg/smpeg-0.4.5.json",
|
||||
"../SDL/SDL_mixer-1.2.12.json",
|
||||
{
|
||||
"name": "audiofile",
|
||||
"cleanup": [
|
||||
"/include",
|
||||
"/lib/pkgconfig",
|
||||
"/share/man",
|
||||
"*.la",
|
||||
"*.a"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "http://audiofile.68k.org/audiofile-0.3.6.tar.gz",
|
||||
"sha256": "cdc60df19ab08bfe55344395739bb08f50fc15c92da3962fac334d3bff116965"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "audiofile-gcc6.patch"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "libmikmod",
|
||||
"cleanup": [
|
||||
"/include",
|
||||
"/lib/pkgconfig",
|
||||
"/share/aclocal",
|
||||
"/share/info",
|
||||
"/share/man",
|
||||
"*.la",
|
||||
"*.a"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://sourceforge.net/projects/mikmod/files/libmikmod/3.3.11.1/libmikmod-3.3.11.1.tar.gz",
|
||||
"sha256": "ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "fluidsynth",
|
||||
"buildsystem": "cmake-ninja",
|
||||
"config-opts": [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
],
|
||||
"cleanup": [
|
||||
"/include",
|
||||
"/lib/pkgconfig",
|
||||
"/lib64/pkgconfig",
|
||||
"/share/man",
|
||||
"*.la",
|
||||
"*.a"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v1.1.11.tar.gz",
|
||||
"sha256": "da8878ff374d12392eecf87e96bad8711b8e76a154c25a571dd8614d1af80de8"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "fluidsynth-no-rawmidi.patch"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "glib.patch"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "portmidi",
|
||||
"buildsystem": "cmake-ninja",
|
||||
"config-opts": [
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY:STRING=/app/lib",
|
||||
"-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:STRING=/app/lib",
|
||||
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:STRING=/app/bin"
|
||||
],
|
||||
"cleanup": [
|
||||
"/include",
|
||||
"/lib/pkgconfig",
|
||||
"/share/man",
|
||||
"*.la",
|
||||
"*.a"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "http://downloads.sourceforge.net/project/portmedia/portmidi/217/portmidi-src-217.zip",
|
||||
"sha256": "08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "portmidi-no-java.patch"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue