mirror of
https://git.suyu.dev/suyu/flatpak.git
synced 2025-12-30 19:24:36 +01:00
Init
This commit is contained in:
commit
e571c4fbe8
139 changed files with 8839 additions and 0 deletions
50
shared-modules/smpeg/smpeg-0.4.5.json
Normal file
50
shared-modules/smpeg/smpeg-0.4.5.json
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
"name": "smpeg",
|
||||
"config-opts": ["--disable-static"],
|
||||
"cleanup": [
|
||||
"/bin",
|
||||
"/man",
|
||||
"/include",
|
||||
"/share/aclocal",
|
||||
"/share/man",
|
||||
"*.la",
|
||||
"*.a"
|
||||
],
|
||||
"rm-configure": true,
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "http://http.debian.net/debian/pool/main/s/smpeg/smpeg_0.4.5+cvs20030824.orig.tar.gz",
|
||||
"sha256": "1276ea797dd9fde8a12dd3f33f180153922544c28ca9fc7b477c018876be1916"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"commands": [
|
||||
"sed -i '/^## libtool.m4/,/^#####/d' acinclude.m4"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "script",
|
||||
"dest-filename": "autogen.sh",
|
||||
"commands": [
|
||||
"AUTOMAKE=\"automake --foreign --add-missing --force-missing\" autoreconf -vfi"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "smpeg-am-prog-as.patch"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "smpeg-export-mpegaudio-class.patch"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "smpeg-no-gtk.patch"
|
||||
},
|
||||
{
|
||||
"type": "patch",
|
||||
"path": "smpeg-gcc6.patch"
|
||||
}
|
||||
]
|
||||
}
|
||||
12
shared-modules/smpeg/smpeg-am-prog-as.patch
Normal file
12
shared-modules/smpeg/smpeg-am-prog-as.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Index: smpeg-0.4.5+cvs20030824/configure.in
|
||||
===================================================================
|
||||
--- smpeg-0.4.5+cvs20030824.orig/configure.in
|
||||
+++ smpeg-0.4.5+cvs20030824/configure.in
|
||||
@@ -57,6 +57,7 @@
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
AM_PROG_LIBTOOL
|
||||
AC_PROG_INSTALL
|
||||
+AM_PROG_AS
|
||||
|
||||
dnl Ugh.
|
||||
AS="$CC"
|
||||
17
shared-modules/smpeg/smpeg-export-mpegaudio-class.patch
Normal file
17
shared-modules/smpeg/smpeg-export-mpegaudio-class.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--- smpeg-0.4.5+cvs20030824.orig/MPEGaudio.h
|
||||
+++ smpeg-0.4.5+cvs20030824/MPEGaudio.h
|
||||
@@ -149,6 +149,14 @@
|
||||
};
|
||||
|
||||
/* The actual MPEG audio class */
|
||||
+
|
||||
+class MPEGaudio;
|
||||
+void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
|
||||
+int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len);
|
||||
+#ifdef THREADED_AUDIO
|
||||
+int Decode_MPEGaudio(void *udata);
|
||||
+#endif
|
||||
+
|
||||
class MPEGaudio : public MPEGerror, public MPEGaudioaction {
|
||||
|
||||
friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
|
||||
40
shared-modules/smpeg/smpeg-gcc6.patch
Normal file
40
shared-modules/smpeg/smpeg-gcc6.patch
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
Description: Fix compiling with GCC 6.
|
||||
Author: Johannes Brandstätter <jbrandst@2ds.eu>
|
||||
Bug-Debian: https://bugs.debian.org/811742
|
||||
Last-Update: <2016-09-24>
|
||||
|
||||
Index: smpeg-0.4.5+cvs20030824/audio/huffmantable.cpp
|
||||
===================================================================
|
||||
--- smpeg-0.4.5+cvs20030824.orig/audio/huffmantable.cpp
|
||||
+++ smpeg-0.4.5+cvs20030824/audio/huffmantable.cpp
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
+#include <climits>
|
||||
#include "MPEGaudio.h"
|
||||
|
||||
static const unsigned int
|
||||
@@ -550,11 +551,11 @@ htd33[ 31][2]={{ 16, 1},{ 8, 1},{ 4,
|
||||
|
||||
const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
|
||||
{
|
||||
- { 0, 0-1, 0-1, 0, 0, htd33},
|
||||
+ { 0, UINT_MAX, UINT_MAX, 0, 0, htd33},
|
||||
{ 1, 2-1, 2-1, 0, 7,htd01},
|
||||
{ 2, 3-1, 3-1, 0, 17,htd02},
|
||||
{ 3, 3-1, 3-1, 0, 17,htd03},
|
||||
- { 4, 0-1, 0-1, 0, 0, htd33},
|
||||
+ { 4, UINT_MAX, UINT_MAX, 0, 0, htd33},
|
||||
{ 5, 4-1, 4-1, 0, 31,htd05},
|
||||
{ 6, 4-1, 4-1, 0, 31,htd06},
|
||||
{ 7, 6-1, 6-1, 0, 71,htd07},
|
||||
@@ -564,7 +565,7 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN
|
||||
{11, 8-1, 8-1, 0,127,htd11},
|
||||
{12, 8-1, 8-1, 0,127,htd12},
|
||||
{13,16-1,16-1, 0,511,htd13},
|
||||
- {14, 0-1, 0-1, 0, 0, htd33},
|
||||
+ {14, UINT_MAX, UINT_MAX, 0, 0, htd33},
|
||||
{15,16-1,16-1, 0,511,htd15},
|
||||
{16,16-1,16-1, 1,511,htd16},
|
||||
{17,16-1,16-1, 2,511,htd16},
|
||||
37
shared-modules/smpeg/smpeg-no-gtk.patch
Normal file
37
shared-modules/smpeg/smpeg-no-gtk.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
From 62cda978596a323cd7042722f906df906007e5b5 Mon Sep 17 00:00:00 2001
|
||||
From: Cosimo Cecchi <cosimoc@gnome.org>
|
||||
Date: Sat, 15 Apr 2017 13:24:39 -0700
|
||||
Subject: [PATCH] Comment out GTK detection
|
||||
|
||||
---
|
||||
configure.in | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 20b1355..2cb4753 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -208,13 +208,13 @@ AC_ARG_ENABLE(gtk_player,
|
||||
[ --enable-gtk-player build a GTk sample SMPEG player [default=yes]],
|
||||
, enable_gtk_player=yes)
|
||||
have_gtk=no
|
||||
-if test x$enable_gtk_player = xyes; then
|
||||
- AM_PATH_GTK(1.2.1, have_gtk=yes)
|
||||
- if test x$have_gtk = xyes; then
|
||||
- CFLAGS="$CFLAGS $GTK_CFLAGS"
|
||||
- fi
|
||||
- AC_SUBST(GTK_LIBS)
|
||||
-fi
|
||||
+dnl if test x$enable_gtk_player = xyes; then
|
||||
+dnl AM_PATH_GTK(1.2.1, have_gtk=yes)
|
||||
+dnl if test x$have_gtk = xyes; then
|
||||
+dnl CFLAGS="$CFLAGS $GTK_CFLAGS"
|
||||
+dnl fi
|
||||
+dnl AC_SUBST(GTK_LIBS)
|
||||
+dnl fi
|
||||
AM_CONDITIONAL(HAVE_GTK, test x$have_gtk = xyes)
|
||||
|
||||
dnl See if we can build the Mesa player
|
||||
--
|
||||
2.12.2
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue