diff options
author | Yth - Arnaud <yth@ythogtha.org> | 2018-10-05 16:04:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-06 07:25:21 +0700 |
commit | fab667c719561ec141f2ad24b2964003065cf895 (patch) | |
tree | 1931a980af5efb871e3987c7a68342e969e7cffb | |
parent | cb7c4b4e0a2d2273dc4284d9a5ca8addf2e7a6cf (diff) | |
download | slackbuilds-fab667c719561ec141f2ad24b2964003065cf895.tar.gz |
libraries/SDL_kitchensink: Updated for version 1.0.6.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | libraries/SDL_kitchensink/SDL_kitchensink.SlackBuild | 4 | ||||
-rw-r--r-- | libraries/SDL_kitchensink/SDL_kitchensink.info | 6 | ||||
-rw-r--r-- | libraries/SDL_kitchensink/slackware-14.2.patch | 280 |
3 files changed, 6 insertions, 284 deletions
diff --git a/libraries/SDL_kitchensink/SDL_kitchensink.SlackBuild b/libraries/SDL_kitchensink/SDL_kitchensink.SlackBuild index d8e05dc3f7..43194ee8bc 100644 --- a/libraries/SDL_kitchensink/SDL_kitchensink.SlackBuild +++ b/libraries/SDL_kitchensink/SDL_kitchensink.SlackBuild @@ -21,7 +21,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=SDL_kitchensink -VERSION=${VERSION:-1.0.5} +VERSION=${VERSION:-1.0.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -77,6 +77,8 @@ do echo "Applying patch $i ..." cat $i | patch -p1 || exit 1 done +# Adding SDL2/ before all #include <SDL*.h> +grep -r "#include <SDL[^2]" | cut -d: -f1 | sort -u | xargs sed -i 's@#include <SDL@#include <SDL2/SDL@g' echo mkdir -p build diff --git a/libraries/SDL_kitchensink/SDL_kitchensink.info b/libraries/SDL_kitchensink/SDL_kitchensink.info index b442e15dcf..f3325f0942 100644 --- a/libraries/SDL_kitchensink/SDL_kitchensink.info +++ b/libraries/SDL_kitchensink/SDL_kitchensink.info @@ -1,8 +1,8 @@ PRGNAM="SDL_kitchensink" -VERSION="1.0.5" +VERSION="1.0.6" HOMEPAGE="https://github.com/katajakasa/SDL_kitchensink" -DOWNLOAD="https://github.com/katajakasa/SDL_kitchensink/archive/1.0.5/SDL_kitchensink-1.0.5.tar.gz" -MD5SUM="6b8ee0207cb6b64e7369535e5046dd20" +DOWNLOAD="https://github.com/katajakasa/SDL_kitchensink/archive/1.0.6/SDL_kitchensink-1.0.6.tar.gz" +MD5SUM="4c3e2104305059ad9ce21b484ec28606" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="SDL2 libass cunit ffmpeg" diff --git a/libraries/SDL_kitchensink/slackware-14.2.patch b/libraries/SDL_kitchensink/slackware-14.2.patch index 1468d8741d..01c26e2743 100644 --- a/libraries/SDL_kitchensink/slackware-14.2.patch +++ b/libraries/SDL_kitchensink/slackware-14.2.patch @@ -7,283 +7,3 @@ diff -Naur SDL_kitchensink-1.0.4-o/CMakeLists.txt SDL_kitchensink-1.0.4/CMakeLis project(SDL_kitchensink C) include(GNUInstallDirs) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) -diff -Naur SDL_kitchensink-1.0.4-o/examples/example_audio.c SDL_kitchensink-1.0.4/examples/example_audio.c ---- SDL_kitchensink-1.0.4-o/examples/example_audio.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/examples/example_audio.c 2018-07-23 10:05:19.626764361 +0200 -@@ -1,5 +1,5 @@ - #include <kitchensink/kitchensink.h> --#include <SDL.h> -+#include <SDL2/SDL.h> - #include <stdio.h> - #include <stdbool.h> - -diff -Naur SDL_kitchensink-1.0.4-o/examples/example_complex.c SDL_kitchensink-1.0.4/examples/example_complex.c ---- SDL_kitchensink-1.0.4-o/examples/example_complex.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/examples/example_complex.c 2018-07-23 10:05:19.626764361 +0200 -@@ -1,5 +1,5 @@ - #include <kitchensink/kitchensink.h> --#include <SDL.h> -+#include <SDL2/SDL.h> - #include <stdio.h> - #include <stdbool.h> - -diff -Naur SDL_kitchensink-1.0.4-o/examples/example_custom.c SDL_kitchensink-1.0.4/examples/example_custom.c ---- SDL_kitchensink-1.0.4-o/examples/example_custom.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/examples/example_custom.c 2018-07-23 10:05:19.626764361 +0200 -@@ -1,5 +1,5 @@ - #include <kitchensink/kitchensink.h> --#include <SDL.h> -+#include <SDL2/SDL.h> - #include <stdio.h> - #include <stdbool.h> - -diff -Naur SDL_kitchensink-1.0.4-o/examples/example_rwops.c SDL_kitchensink-1.0.4/examples/example_rwops.c ---- SDL_kitchensink-1.0.4-o/examples/example_rwops.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/examples/example_rwops.c 2018-07-23 10:07:54.411755394 +0200 -@@ -1,5 +1,5 @@ - #include <kitchensink/kitchensink.h> --#include <SDL.h> -+#include <SDL2/SDL.h> - #include <stdio.h> - #include <stdbool.h> - -diff -Naur SDL_kitchensink-1.0.4-o/examples/example_simple.c SDL_kitchensink-1.0.4/examples/example_simple.c ---- SDL_kitchensink-1.0.4-o/examples/example_simple.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/examples/example_simple.c 2018-07-23 10:05:19.627764361 +0200 -@@ -1,5 +1,5 @@ - #include <kitchensink/kitchensink.h> --#include <SDL.h> -+#include <SDL2/SDL.h> - #include <stdio.h> - #include <stdbool.h> - -diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/kitdecoder.h SDL_kitchensink-1.0.4/include/kitchensink/internal/kitdecoder.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/kitdecoder.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/kitdecoder.h 2018-07-23 10:05:19.627764361 +0200 -@@ -3,7 +3,7 @@ -
- #include <stdbool.h>
-
--#include <SDL_mutex.h>
-+#include <SDL2/SDL_mutex.h>
- #include <libavcodec/avcodec.h>
- #include <libavformat/avformat.h>
-
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitatlas.h SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitatlas.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitatlas.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitatlas.h 2018-07-23 10:05:19.627764361 +0200 -@@ -2,8 +2,8 @@ - #define KITATLAS_H
-
- #include <stdbool.h>
--#include <SDL_rect.h>
--#include <SDL_render.h>
-+#include <SDL2/SDL_rect.h>
-+#include <SDL2/SDL_render.h>
-
- #include "kitchensink/kitconfig.h"
-
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitatlas.h~ SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitatlas.h~ ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitatlas.h~ 1970-01-01 01:00:00.000000000 +0100 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitatlas.h~ 2018-07-23 10:05:19.627764361 +0200 -@@ -0,0 +1,40 @@ -+#ifndef KITATLAS_H
-+#define KITATLAS_H
-+
-+#include <stdbool.h>
-+#include <SDL2/SDL2/SDL_rect.h>
-+#include <SDL2/SDL2/SDL_render.h>
-+
-+#include "kitchensink/kitconfig.h"
-+
-+typedef struct Kit_TextureAtlasItem {
-+ int cur_shelf; //< Current shelf number in cache
-+ int cur_slot; //< Current slot on shelf in cache
-+ SDL_Rect source; //< Source coordinates on cache surface
-+ SDL_Rect target; //< Target coordinates on output surface
-+} Kit_TextureAtlasItem;
-+
-+typedef struct Kit_Shelf {
-+ uint16_t width;
-+ uint16_t height;
-+ uint16_t count;
-+} Kit_Shelf;
-+
-+typedef struct Kit_TextureAtlas {
-+ int cur_items; //< Current items count
-+ int max_items; //< Maximum items count
-+ int max_shelves; //< Maximum shelf count
-+ int w; //< Current atlas width
-+ int h; //< Current atlas height
-+ Kit_TextureAtlasItem *items; //< Cached items
-+ Kit_Shelf *shelves; //< Atlas shelves
-+} Kit_TextureAtlas;
-+
-+KIT_LOCAL Kit_TextureAtlas* Kit_CreateAtlas();
-+KIT_LOCAL void Kit_FreeAtlas(Kit_TextureAtlas *atlas);
-+KIT_LOCAL void Kit_ClearAtlasContent(Kit_TextureAtlas *atlas);
-+KIT_LOCAL void Kit_CheckAtlasTextureSize(Kit_TextureAtlas *atlas, SDL_Texture *texture);
-+KIT_LOCAL int Kit_GetAtlasItems(const Kit_TextureAtlas *atlas, SDL_Rect *sources, SDL_Rect *targets, int limit);
-+KIT_LOCAL int Kit_AddAtlasItem(Kit_TextureAtlas *atlas, SDL_Texture *texture, SDL_Surface *surface, const SDL_Rect *target);
-+
-+#endif // KITATLAS_H
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitsubtitle.h SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitsubtitle.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitsubtitle.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitsubtitle.h 2018-07-23 10:05:19.627764361 +0200 -@@ -1,7 +1,7 @@ - #ifndef KITSUBTITLE_H
- #define KITSUBTITLE_H
-
--#include <SDL_render.h>
-+#include <SDL2/SDL_render.h>
-
- #include "kitchensink/kitconfig.h"
- #include "kitchensink/kitsource.h"
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitsubtitlepacket.h SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitsubtitlepacket.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/kitsubtitlepacket.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/kitsubtitlepacket.h 2018-07-23 10:05:19.628764361 +0200 -@@ -2,7 +2,7 @@ - #define KITSUBTITLEPACKET_H
-
- #include <stdbool.h>
--#include <SDL_surface.h>
-+#include <SDL2/SDL_surface.h>
-
- #include "kitchensink/kitconfig.h"
-
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/renderers/kitsubrenderer.h SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/renderers/kitsubrenderer.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/subtitle/renderers/kitsubrenderer.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/subtitle/renderers/kitsubrenderer.h 2018-07-23 10:05:19.628764361 +0200 -@@ -1,7 +1,7 @@ - #ifndef KITSUBRENDERER_H
- #define KITSUBRENDERER_H
-
--#include <SDL_render.h>
-+#include <SDL2/SDL_render.h>
-
- #include "kitchensink/kitsource.h"
-
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/internal/video/kitvideo.h SDL_kitchensink-1.0.4/include/kitchensink/internal/video/kitvideo.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/internal/video/kitvideo.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/internal/video/kitvideo.h 2018-07-23 10:05:19.628764361 +0200 -@@ -1,7 +1,7 @@ - #ifndef KITVIDEO_H
- #define KITVIDEO_H
-
--#include <SDL_render.h>
-+#include <SDL2/SDL_render.h>
-
- #include "kitchensink/kitconfig.h"
- #include "kitchensink/kitsource.h"
-diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/kitplayer.h SDL_kitchensink-1.0.4/include/kitchensink/kitplayer.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/kitplayer.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/kitplayer.h 2018-07-23 10:05:19.628764361 +0200 -@@ -14,7 +14,7 @@ - #include "kitchensink/kitformat.h" - #include "kitchensink/kitcodec.h" - --#include <SDL_render.h> -+#include <SDL2/SDL_render.h> - - #ifdef __cplusplus - extern "C" { -diff -Naur SDL_kitchensink-1.0.4-o/include/kitchensink/kitsource.h SDL_kitchensink-1.0.4/include/kitchensink/kitsource.h ---- SDL_kitchensink-1.0.4-o/include/kitchensink/kitsource.h 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/include/kitchensink/kitsource.h 2018-07-23 10:07:42.507756084 +0200 -@@ -10,7 +10,7 @@ - */ - - #include <inttypes.h> --#include <SDL_rwops.h> -+#include <SDL2/SDL_rwops.h> - #include "kitchensink/kitconfig.h" - - #ifdef __cplusplus -diff -Naur SDL_kitchensink-1.0.4-o/src/internal/audio/kitaudio.c SDL_kitchensink-1.0.4/src/internal/audio/kitaudio.c ---- SDL_kitchensink-1.0.4-o/src/internal/audio/kitaudio.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/internal/audio/kitaudio.c 2018-07-23 10:05:19.628764361 +0200 -@@ -5,7 +5,7 @@ - #include <libavformat/avformat.h>
- #include <libavutil/samplefmt.h>
- #include <libswresample/swresample.h>
--#include <SDL.h>
-+#include <SDL2/SDL.h>
-
- #include "kitchensink/kiterror.h"
- #include "kitchensink/internal/kitlibstate.h"
-diff -Naur SDL_kitchensink-1.0.4-o/src/internal/libass.c SDL_kitchensink-1.0.4/src/internal/libass.c ---- SDL_kitchensink-1.0.4-o/src/internal/libass.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/internal/libass.c 2018-07-23 10:05:19.629764361 +0200 -@@ -1,6 +1,6 @@ - #ifdef USE_DYNAMIC_LIBASS
-
--#include <SDL_loadso.h>
-+#include <SDL2/SDL_loadso.h>
- #include "kitchensink/internal/libass.h"
-
- int load_libass(void *handle) {
-diff -Naur SDL_kitchensink-1.0.4-o/src/internal/subtitle/kitsubtitle.c SDL_kitchensink-1.0.4/src/internal/subtitle/kitsubtitle.c ---- SDL_kitchensink-1.0.4-o/src/internal/subtitle/kitsubtitle.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/internal/subtitle/kitsubtitle.c 2018-07-23 10:05:19.629764361 +0200 -@@ -1,6 +1,6 @@ - #include <assert.h>
-
--#include <SDL.h>
-+#include <SDL2/SDL.h>
- #include <libavformat/avformat.h>
-
- #include "kitchensink/internal/utils/kitlog.h"
-diff -Naur SDL_kitchensink-1.0.4-o/src/internal/subtitle/renderers/kitsubass.c SDL_kitchensink-1.0.4/src/internal/subtitle/renderers/kitsubass.c ---- SDL_kitchensink-1.0.4-o/src/internal/subtitle/renderers/kitsubass.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/internal/subtitle/renderers/kitsubass.c 2018-07-23 10:05:19.629764361 +0200 -@@ -1,7 +1,7 @@ - #include <assert.h>
- #include <stdlib.h>
-
--#include <SDL_surface.h>
-+#include <SDL2/SDL_surface.h>
-
- #include "kitchensink/kiterror.h"
- #include "kitchensink/internal/utils/kitlog.h"
-diff -Naur SDL_kitchensink-1.0.4-o/src/internal/subtitle/renderers/kitsubimage.c SDL_kitchensink-1.0.4/src/internal/subtitle/renderers/kitsubimage.c ---- SDL_kitchensink-1.0.4-o/src/internal/subtitle/renderers/kitsubimage.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/internal/subtitle/renderers/kitsubimage.c 2018-07-23 10:05:19.629764361 +0200 -@@ -1,7 +1,7 @@ - #include <assert.h>
- #include <stdlib.h>
-
--#include <SDL_surface.h>
-+#include <SDL2/SDL_surface.h>
-
- #include "kitchensink/kiterror.h"
- #include "kitchensink/internal/utils/kitlog.h"
-diff -Naur SDL_kitchensink-1.0.4-o/src/kitlib.c SDL_kitchensink-1.0.4/src/kitlib.c ---- SDL_kitchensink-1.0.4-o/src/kitlib.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/kitlib.c 2018-07-23 10:05:19.629764361 +0200 -@@ -1,5 +1,5 @@ - #include <assert.h> --#include <SDL_loadso.h> -+#include <SDL2/SDL_loadso.h> - - #include <libavformat/avformat.h> - -diff -Naur SDL_kitchensink-1.0.4-o/src/kitplayer.c SDL_kitchensink-1.0.4/src/kitplayer.c ---- SDL_kitchensink-1.0.4-o/src/kitplayer.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/kitplayer.c 2018-07-23 10:05:19.630764361 +0200 -@@ -1,6 +1,6 @@ - #include <assert.h> - --#include <SDL.h> -+#include <SDL2/SDL.h> - - #include "kitchensink/kitplayer.h" - #include "kitchensink/kiterror.h" -diff -Naur SDL_kitchensink-1.0.4-o/src/kitutils.c SDL_kitchensink-1.0.4/src/kitutils.c ---- SDL_kitchensink-1.0.4-o/src/kitutils.c 2018-07-13 17:18:32.000000000 +0200 -+++ SDL_kitchensink-1.0.4/src/kitutils.c 2018-07-23 10:05:19.630764361 +0200 -@@ -1,4 +1,4 @@ --#include <SDL.h> -+#include <SDL2/SDL.h> - - #include "kitchensink/kitutils.h" - #include "kitchensink/kitsource.h" |