summaryrefslogtreecommitdiff
path: root/dev-perl/SDL
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-18 00:29:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-18 00:29:05 +0000
commit467e2131896a3030032cd5b0fab2094a045bf9d0 (patch)
tree534578ca7ef61b3eb30fee861db78c0ae58e2fa6 /dev-perl/SDL
parent1f254b1ee917690b4f8f7738fdcfc295ee304ff7 (diff)
gentoo auto-resync : 18:03:2023 - 00:29:05
Diffstat (limited to 'dev-perl/SDL')
-rw-r--r--dev-perl/SDL/Manifest2
-rw-r--r--dev-perl/SDL/SDL-2.548.0-r2.ebuild50
-rw-r--r--dev-perl/SDL/files/SDL-2.546-implicit-func-decl.patch40
3 files changed, 92 insertions, 0 deletions
diff --git a/dev-perl/SDL/Manifest b/dev-perl/SDL/Manifest
index 649c729f193b..ac3d71e12692 100644
--- a/dev-perl/SDL/Manifest
+++ b/dev-perl/SDL/Manifest
@@ -1,4 +1,6 @@
+AUX SDL-2.546-implicit-func-decl.patch 1046 BLAKE2B 98e0d34de6e65c668341f0835239472378c9032317d87d551099ebf43128647942f33578734f799ffc532c8cee3a311f2fb53a9e803e5123bcd28ed7289df5c5 SHA512 f8475d56cf4c3fd48d0fa5528a7cfc0eb170f89f04c42c60c6f1af2af92d7722f0031c9732d818bbb129dfd21079b516f3ca738a693320aa7c2cb8f7716ff0ea
AUX SDL-2.546-pointer.patch 671 BLAKE2B 188280d823e6cffea2e7d33ede63ecb172a8a272aea98272df75a75ee2cb848ca11426912bcdf90cc5cbe61ef21bb86f37803b50f7907ee9903f6173b3253094 SHA512 25a03721a4ffe64b85512fd896cef2a08faf3284ffd2f9a93fe578f7df0e96bc40952a85e39f4023f38fbb664cd7435e5d5587a7d861e884a616835e7eaecec0
DIST SDL-2.548.tar.gz 2487708 BLAKE2B 1d17c5ffc8d966fd06b282632de1f504548df9c67754788e5dcbe2144057aa9d463a88e01b33b0f265a821cfb24847bafc1cb1215cdd6282cc29ff3aacea6c3c SHA512 bafc49dddb7e592861f822920915c73bf0c5eea3a6c567623b48a2332c7644caf1451e457545e6666adea5e314b23bcd85a3f3a52c770abfd498c0e4c0feae85
EBUILD SDL-2.548.0-r1.ebuild 1039 BLAKE2B 3d4aa73edfa27ed339b67030e3fdfe636cd7ed8512a7201623d1520d5973d29ae0f80d7ebd0654b4f2b2c3fe90561aa2598e01f1976f912f6f64081c921e2a5a SHA512 6e9bc680e2974893db281c643958a8fd08abdcb8c79dedb0e7e4f4a4227ea90d1767858d2634bd810a06777222ab8208aa4f58d72c8949d76987e7384396fc94
+EBUILD SDL-2.548.0-r2.ebuild 1094 BLAKE2B 9b2741c2b18c0f85ffc7d2cade10240fd12f6174d7654329b81a045d3c663dcca29979ad6a1ee32c41ffaebca2279a97c076b2331f5b851782ed8f2528ca6f4c SHA512 1e34faea50dd3199c0b1900da85b39d038c7fd842de2106cb3e6e42af394a91ec0fb1dff0405ef4b9402fc6d354920de98fe7894e752924d5d1b77ac3aff4acd
MISC metadata.xml 5480 BLAKE2B 85c0374b2a8164223dad73037282a6bbd885f1fd841b0099aa37e12db5c5dadf5126d53352483fa112936e5057ffccd927422aca617f24cd0840e98806c0b82d SHA512 6940b411e173bb673ebdadefd7ddb0b7b6edfb950022400fc2f483027749180ef6026867acfd9906a5d48ec44702e540b43c23f87c11824215fbd1046d6a92ee
diff --git a/dev-perl/SDL/SDL-2.548.0-r2.ebuild b/dev-perl/SDL/SDL-2.548.0-r2.ebuild
new file mode 100644
index 000000000000..59caa0f55c01
--- /dev/null
+++ b/dev-perl/SDL/SDL-2.548.0-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=FROGGS
+DIST_VERSION=2.548
+inherit perl-module
+
+DESCRIPTION="Simple DirectMedia Layer (SDL) bindings for perl"
+HOMEPAGE="http://sdl.perl.org/ https://search.cpan.org/dist/SDL/ https://github.com/PerlGameDev/SDL"
+
+LICENSE="GPL-2 OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+
+RDEPEND="
+ >=dev-perl/Alien-SDL-1.446
+ dev-perl/Capture-Tiny
+ >=virtual/perl-CPAN-1.920.0
+ >=virtual/perl-ExtUtils-CBuilder-0.260.301
+ >=dev-perl/File-ShareDir-1.0.0
+ >=dev-perl/Module-Build-0.400.0
+ media-libs/libjpeg-turbo
+ virtual/perl-Scalar-List-Utils
+ dev-perl/Tie-Simple
+ media-libs/libpng:0
+ media-libs/libsdl
+ media-libs/sdl-gfx
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-pango
+ media-libs/sdl-ttf
+ media-libs/smpeg
+ media-libs/tiff:0
+ virtual/glu
+ virtual/opengl
+"
+BDEPEND="${RDEPEND}
+ test? (
+ >=dev-perl/Test-Most-0.210.0
+ )
+"
+
+mydoc='CHANGELOG README TODO'
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.546-pointer.patch
+ "${FILESDIR}"/${PN}-2.546-implicit-func-decl.patch
+)
diff --git a/dev-perl/SDL/files/SDL-2.546-implicit-func-decl.patch b/dev-perl/SDL/files/SDL-2.546-implicit-func-decl.patch
new file mode 100644
index 000000000000..9bbee3356486
--- /dev/null
+++ b/dev-perl/SDL/files/SDL-2.546-implicit-func-decl.patch
@@ -0,0 +1,40 @@
+https://github.com/PerlGameDev/SDL/pull/299
+
+From 90d7056288282df9febf04acce6712f4071e4103 Mon Sep 17 00:00:00 2001
+From: Ryan Schmidt <git@ryandesign.com>
+Date: Wed, 26 Jan 2022 02:55:04 -0600
+Subject: [PATCH] Fix implicit declaration of _calc_offset
+
+--- a/src/SDLx/Surface.xs
++++ b/src/SDLx/Surface.xs
+@@ -16,6 +16,14 @@
+ #include <SDL_gfxPrimitives.h>
+ #endif
+
++int _calc_offset ( SDL_Surface* surface, int x, int y )
++{
++ int offset;
++ offset = (surface->pitch * y) / surface->format->BytesPerPixel;
++ offset += x;
++ return offset;
++}
++
+ SV * get_pixel32 (SDL_Surface *surface, int x, int y)
+ {
+ /* Convert the pixels to 32 bit */
+@@ -52,14 +60,6 @@ SV * construct_p_matrix ( SDL_Surface *surface )
+ return newRV_noinc((SV *)matrix);
+ }
+
+-int _calc_offset ( SDL_Surface* surface, int x, int y )
+-{
+- int offset;
+- offset = (surface->pitch * y) / surface->format->BytesPerPixel;
+- offset += x;
+- return offset;
+-}
+-
+ unsigned int _get_pixel(SDL_Surface * surface, int offset)
+ {
+ unsigned int value;
+