diff options
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/Manifest.gz | bin | 3721 -> 3726 bytes | |||
-rw-r--r-- | games-engines/exult/Manifest | 2 | ||||
-rw-r--r-- | games-engines/exult/exult-1.8.ebuild | 4 | ||||
-rw-r--r-- | games-engines/frotz/Manifest | 3 | ||||
-rw-r--r-- | games-engines/frotz/files/frotz-2.53-uint32.patch | 475 | ||||
-rw-r--r-- | games-engines/frotz/frotz-2.53-r1.ebuild | 6 |
6 files changed, 485 insertions, 5 deletions
diff --git a/games-engines/Manifest.gz b/games-engines/Manifest.gz Binary files differindex dd764bdeb58d..c28b8657a061 100644 --- a/games-engines/Manifest.gz +++ b/games-engines/Manifest.gz diff --git a/games-engines/exult/Manifest b/games-engines/exult/Manifest index 01b0b9e285e4..ee6eb140a039 100644 --- a/games-engines/exult/Manifest +++ b/games-engines/exult/Manifest @@ -1,3 +1,3 @@ DIST exult-1.8.tar.gz 19104130 BLAKE2B 56e127d95d3a948b7c52ca3439f8a84691728817c855b46580a8baf21ad0b8f663d5f9fb2fb855d73baa1d3cc29181d001adae1a978c75a7dfa598879b559ab4 SHA512 5422f70c00a1d5ff0606cb7613b891abda430872c50b1058999085c7df08360fd55d5bdf95cbff09616cf3b11e51dce4b11c7322c3db9a8756946e5854ef0fde -EBUILD exult-1.8.ebuild 1363 BLAKE2B a7537d172ae0c5391c58b497579ae83167942d255ffd30feaa733ca855d27eac62fd3391d354aa5b359f2836b5ddf23336d6ace77d1f2be03444cf61b1a62af9 SHA512 0674515b4c8e94a924414cab140d4919c0f0077eeea62884a0f9f0b251d2f32945dab3d837f949d0492a6a6342cb9a0cd627d8a9ddf9b95d26d27c4eb736740c +EBUILD exult-1.8.ebuild 1376 BLAKE2B e601a50fc5b291e9169eb147dcc8b4c72e3373fa943d02c8b9511b99801263d5099a9b3af84d31f5ea1e6b53509b5d226d660f07a6e1ca5231ee5b35a5b6ff3a SHA512 e5a8a98e3f602f3729d43da898df95850c3efdc83f7e1af94be17beb187156427f48db638c41f4061e9d0ede366f082582f5e67f7f15a4673125f8eabbba45a3 MISC metadata.xml 541 BLAKE2B d12f44010fa793410d795c015a49da754d679503df0b3a3093f0bf933330c8e90ab3c2c878a01c0bce289c14f4c6d12d2e47981c1bd80fb43dc3032bc948c4e8 SHA512 8bec763403b942e1e1cbad4051649a5dbb0b992ed5dbcdb07c3ee31120d877e7741c1882feb8cc1f9f1add4d83693781bd051874f9ebf66a7530be3d385c82d6 diff --git a/games-engines/exult/exult-1.8.ebuild b/games-engines/exult/exult-1.8.ebuild index a3ba1624857a..009f8a97d9b2 100644 --- a/games-engines/exult/exult-1.8.ebuild +++ b/games-engines/exult/exult-1.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,7 +7,7 @@ inherit autotools DESCRIPTION="Ultima 7 game engine that runs on modern operating systems" HOMEPAGE="https://exult.sourceforge.io" -SRC_URI="mirror://sourceforge/exult/exult-all-versions/${PV}/${P}.tar.gz" +SRC_URI="https://downloads.sourceforge.net/exult/exult-all-versions/${PV}/${P}.tar.gz" LICENSE="GPL-2+" SLOT="0" diff --git a/games-engines/frotz/Manifest b/games-engines/frotz/Manifest index 5b0b643fcc79..f3ef35752897 100644 --- a/games-engines/frotz/Manifest +++ b/games-engines/frotz/Manifest @@ -1,3 +1,4 @@ +AUX frotz-2.53-uint32.patch 11097 BLAKE2B f5690216f66c07864b0b21a8def45e202df12f7437dd29fa7576d6782cd2c08d6405130d6c48aa71865a156f7101c80a8b5abbb9dd398154811074834adf3a41 SHA512 89cbbcc7782367ecfad571652990738adda0030c2b332fb6f137c56c893f41380c97301f4a614f1aad2d7c01537a478332bfe0df5fe69019eabcc4f1260dc330 DIST frotz-2.53.tar.bz2 375800 BLAKE2B a3d14d11540cb12ed6e5326207946e26b0b3b85e13c50e7431f3901cfb19337661b233bf29077c1efe3a9663aef6d2886bba1717c8132d68e77580692fed30d1 SHA512 e920529920a0b831b859323046aeae032b4b84ac0296d4ef35026fe8a62798cf5f9f4e255af38421aa21ad5507cd87287924daafc759c9b9d7a089ba7d77d808 -EBUILD frotz-2.53-r1.ebuild 1697 BLAKE2B 42edccf57839f10d7647e2a7aeb3c88e59e4a73b32ff8f54d978ad039a5810d185f398be9d8b65a96cda1f5d1959c8f66b77cc1d6f262ec3ffbbc429bf05ff6b SHA512 a706486df1c48396deb406a566fe632ec8657330e6c57cea8de284f349f8ce4b265a914572b620dcbf59239cf1ab9e41e879f5099b81ac7ff5c8b113b3ac1597 +EBUILD frotz-2.53-r1.ebuild 1749 BLAKE2B 2ac8cdca73624b4895c097f7737b448056071ae503ac296c41fee4500bcfcefe29fbce37418ad4436bd91c9f200e49e7426742595fb8a8f512b11e2dd559b7ce SHA512 dd434ba333ca3c42ccfa845357f76988e3a010ae5303ecf1840186a4a579e1a95e1543f54146f5dc1a5a72697e0ba995b16ff0a812627070ec70250149fadfa6 MISC metadata.xml 338 BLAKE2B 811899ad96ae5e5b023d3cfdf11dc19de37b336dd7903bb63ec14c83ea0c96955ec1803a9954cff560c89bfb083a8f614e61bbe199e66d053125d4642c8be2aa SHA512 b72ccc452bb2d200f0c3b5cd3e361dadc4d80b248e0c8bef50fb264c85b0e0dd04639014c3b4d3f590ebcbcdd9bfe41c61c540514a272ee7ebb406bfbb337546 diff --git a/games-engines/frotz/files/frotz-2.53-uint32.patch b/games-engines/frotz/files/frotz-2.53-uint32.patch new file mode 100644 index 000000000000..18e7d244c272 --- /dev/null +++ b/games-engines/frotz/files/frotz-2.53-uint32.patch @@ -0,0 +1,475 @@ +Description: Use uint32_t instead of ulong +Author: Stephen Kitt <skitt@debian.org> + +When built with hardening enabled, there’s a ulong/uint32_t definition +conflict; since the type is supposed to be uint32_t, use that +directly. + +--- a/src/sdl/sf_frotz.h ++++ b/src/sdl/sf_frotz.h +@@ -12,13 +12,13 @@ + #include "../blorb/blorb.h" + + #include <stdint.h> ++#include <sys/types.h> + typedef uint8_t byte; + typedef uint16_t word; +-#define ulong uint32_t + + typedef struct { + bb_result_t bbres; +- ulong type; ++ uint32_t type; + FILE *file; + } myresource; + +@@ -54,7 +54,7 @@ + #endif + + /* this assumes RGBA with lsb = R */ +-static inline ulong RGB5ToTrue(word w) ++static inline uint32_t RGB5ToTrue(word w) + { + int _r = w & 0x001F; + int _g = (w & 0x03E0) >> 5; +@@ -62,10 +62,10 @@ + _r = (_r << 3) | (_r >> 2); + _g = (_g << 3) | (_g >> 2); + _b = (_b << 3) | (_b >> 2); +- return (ulong) (_r | (_g << 8) | (_b << 16)); ++ return (uint32_t) (_r | (_g << 8) | (_b << 16)); + } + +-static inline word TrueToRGB5(ulong u) ++static inline word TrueToRGB5(uint32_t u) + { + return (word) (((u >> 3) & 0x001f) | ((u >> 6) & 0x03e0) | + ((u >> 9) & 0x7c00)); +@@ -81,10 +81,10 @@ + extern int m_v6scale; + extern double m_gfxScale_w; + extern double m_gfxScale_h; +-extern ulong m_defaultFore; +-extern ulong m_defaultBack; +-extern ulong m_colours[11]; +-extern ulong m_nonStdColours[NON_STD_COLS]; ++extern uint32_t m_defaultFore; ++extern uint32_t m_defaultBack; ++extern uint32_t m_colours[11]; ++extern uint32_t m_nonStdColours[NON_STD_COLS]; + extern int m_nonStdIndex; + extern bool m_exitPause; + extern bool m_lineInput; +@@ -118,7 +118,7 @@ + int number; /* 0 means unallocated */ + int width, height; + byte *pixels; +- ulong palette[16]; ++ uint32_t palette[16]; + int palette_entries; + int transparentcolor; + bool adaptive; +@@ -190,9 +190,9 @@ + + void sf_readsettings(); + +-ulong sf_GetColour(int colour); +-ulong sf_GetDefaultColour(bool fore); +-int sf_GetColourIndex(ulong colour); ++uint32_t sf_GetColour(int colour); ++uint32_t sf_GetDefaultColour(bool fore); ++int sf_GetColourIndex(uint32_t colour); + + void sf_initvideo(int w, int h, int full); + +@@ -221,7 +221,7 @@ + + bool sf_IsInfocomV6(void); + +-ulong sf_blend(int a, ulong s, ulong d); ++uint32_t sf_blend(int a, uint32_t s, uint32_t d); + + void sf_sleep(int millisecs); + +@@ -234,8 +234,8 @@ + + int sf_pkread(FILE * f, int foffs, void **out, int *size); + +-ulong *sf_savearea(int x, int y, int w, int h); +-void sf_restoreareaandfree(ulong * s); ++uint32_t *sf_savearea(int x, int y, int w, int h); ++void sf_restoreareaandfree(uint32_t * s); + #define SF_NOTIMP (-9999) + + zword sf_read_key(int timeout, bool cursor, bool allowed, bool text); +@@ -243,7 +243,7 @@ + int sf_user_fdialog(bool exist, const char *def, const char *filt, + const char *title, char **res); + extern int (*sf_osdialog)(bool ex, const char *def, const char *filt, +- const char *tit, char **res, ulong * sbuf, int sbp, ++ const char *tit, char **res, uint32_t * sbuf, int sbp, + int ew, int eh, int isfull); + + void sf_checksound(void); +@@ -255,13 +255,13 @@ + + char *sf_searchfile(char *, int, char *, char *); + +-void sf_chline(int x, int y, ulong c, int n); +-void sf_cvline(int x, int y, ulong c, int n); ++void sf_chline(int x, int y, uint32_t c, int n); ++void sf_cvline(int x, int y, uint32_t c, int n); + bool sf_flushdisplay(void); + void sf_getclip(int *x, int *y, int *w, int *h); + void sf_rect(unsigned long color, int x, int y, int w, int h); + void sf_setclip(int x, int y, int w, int h); +-void sf_wpixel(int x, int y, ulong c); ++void sf_wpixel(int x, int y, uint32_t c); + + void sf_InitProfile(const char *fn); + void sf_FinishProfile(void); +--- a/src/sdl/sf_resource.c ++++ b/src/sdl/sf_resource.c +@@ -51,10 +51,10 @@ + int m_v6scale_y; + double m_gfxScale_w = 1.0; + double m_gfxScale_h = 1.0; +-ulong m_defaultFore; +-ulong m_defaultBack; +-ulong m_colours[11]; +-ulong m_nonStdColours[NON_STD_COLS]; ++uint32_t m_defaultFore; ++uint32_t m_defaultBack; ++uint32_t m_colours[11]; ++uint32_t m_nonStdColours[NON_STD_COLS]; + int m_nonStdIndex; + bool m_exitPause = 0; + bool m_lineInput = 0; +@@ -478,7 +478,7 @@ + + + /* Get a colour */ +-ulong sf_GetColour(int colour) ++uint32_t sf_GetColour(int colour) + { + /* Standard colours */ + if ((colour >= BLACK_COLOUR) && (colour <= DARKGREY_COLOUR)) +@@ -500,7 +500,7 @@ + + + /* Get a default colour */ +-ulong sf_GetDefaultColour(bool fore) ++uint32_t sf_GetDefaultColour(bool fore) + { + if (m_IsInfocomV6) + return sf_GetColour(fore ? WHITE_COLOUR : BLACK_COLOUR); +@@ -509,7 +509,7 @@ + + + /* Get an index for a non-standard colour */ +-int sf_GetColourIndex(ulong colour) ++int sf_GetColourIndex(uint32_t colour) + { + int i, index = -1; + /* Is this a standard colour? */ +@@ -950,7 +950,7 @@ + int sf_getresource(int num, int ispic, int method, myresource * res) + { + int st; +- ulong usage; ++ uint32_t usage; + + res->bbres.data.ptr = NULL; + res->file = NULL; +@@ -981,7 +981,7 @@ + typedef struct { + void *next; + int num, ispic; +- ulong type; ++ uint32_t type; + char *name; + } LLENTRY; + +@@ -989,7 +989,7 @@ + + static int numlocal = 0, numlocalpic = 0, numlocalsnd = 0; + static int p_ispic, p_num; +-static ulong p_type; ++static uint32_t p_type; + static char *p_name; + + +--- a/src/sdl/sf_video.c ++++ b/src/sdl/sf_video.c +@@ -31,7 +31,7 @@ + + static char banner[256]; + static int isfullscreen; +-static ulong *sbuffer = NULL; ++static uint32_t *sbuffer = NULL; + static int sbpitch; /* in longs */ + static int dirty = 0; + static int ewidth, eheight; +@@ -45,7 +45,7 @@ + static void sf_quitconf(); + + static bool ApplyPalette(sf_picture *); +-static ulong screen_palette[16]; ++static uint32_t screen_palette[16]; + + extern z_header_t z_header; + +@@ -99,7 +99,7 @@ + } + + +-void sf_wpixel(int x, int y, ulong c) ++void sf_wpixel(int x, int y, uint32_t c) + { + if (x < xmin || x >= xmax || y < ymin || y >= ymax) + return; +@@ -108,7 +108,7 @@ + } + + +-ulong sf_rpixel(int x, int y) ++uint32_t sf_rpixel(int x, int y) + { + if (x < 0 || x >= ewidth || y < 0 || y >= eheight) + return 0; +@@ -116,7 +116,7 @@ + } + + #define MAXCUR 64 +-static ulong savedcur[MAXCUR]; ++static uint32_t savedcur[MAXCUR]; + + static void drawthecursor(int x, int y, int onoff) + { +@@ -156,9 +156,9 @@ + } + + +-void sf_chline(int x, int y, ulong c, int n) ++void sf_chline(int x, int y, uint32_t c, int n) + { +- ulong *s; ++ uint32_t *s; + if (y < ymin || y >= ymax) + return; + if (x < xmin) { +@@ -176,9 +176,9 @@ + } + + +-void sf_cvline(int x, int y, ulong c, int n) ++void sf_cvline(int x, int y, uint32_t c, int n) + { +- ulong *s; ++ uint32_t *s; + if (x < xmin || x >= xmax) + return; + if (y < xmin) { +@@ -198,9 +198,9 @@ + } + + +-ulong sf_blendlinear(int a, ulong s, ulong d) ++uint32_t sf_blendlinear(int a, uint32_t s, uint32_t d) + { +- ulong r; ++ uint32_t r; + r = ((s & 0xff) * a + (d & 0xff) * (256 - a)) >> 8; + s >>= 8; + d >>= 8; +@@ -234,7 +234,7 @@ + int height = ts->font->height(ts->font); + int width; + +- ulong color, bc; ++ uint32_t color, bc; + + if ((ts->style & REVERSE_STYLE) != 0) { + bc = ts->fore; +@@ -262,7 +262,7 @@ + int t = *bmp++; + if (xx < byw) { + if (t) { +- ulong sval = color; ++ uint32_t sval = color; + if (t < 255) + sval = sf_blend((int) (t + (t >> 7)), sval, sf_rpixel(x + xx, y)); + sf_wpixel(x + xx, y, sval); +@@ -292,7 +292,7 @@ + + void sf_fillrect(unsigned long color, int x, int y, int w, int h) + { +- ulong *dst; ++ uint32_t *dst; + int i; + if (x < xmin) { + w += x - xmin; +@@ -380,7 +380,7 @@ + + static void scroll(int x, int y, int w, int h, int n) + { +- ulong *src, *dst; ++ uint32_t *src, *dst; + int nmove, step; + if (n > 0) { + dst = sbuffer + x + sbpitch * y; +@@ -397,7 +397,7 @@ + return; + if (nmove > 0) { + while (nmove--) { +- memmove(dst, src, w * sizeof(ulong)); ++ memmove(dst, src, w * sizeof(uint32_t)); + dst += step; + src += step; + } +@@ -414,7 +414,7 @@ + { + if (dirty) { + SDL_UpdateTexture(texture, NULL, sbuffer, +- sbpitch * sizeof(ulong)); ++ sbpitch * sizeof(uint32_t)); + myGrefresh(); + dirty = 0; + return true; +@@ -537,7 +537,7 @@ + SDL_TEXTUREACCESS_STREAMING, W, H))) + os_fatal("Failed to create texture: %s", SDL_GetError()); + +- sbuffer = calloc(W * H, sizeof(ulong)); ++ sbuffer = calloc(W * H, sizeof(uint32_t)); + if (!sbuffer) + os_fatal("Could not create gc"); + +@@ -564,7 +564,7 @@ + int ox, oy, ow, oh; + Zwindow *winpars; + sf_picture *pic = sf_getpic(picture); +- ulong *src, *dst, sval, dval, alpha; ++ uint32_t *src, *dst, sval, dval, alpha; + + sf_flushtext(); + +@@ -572,7 +572,7 @@ + return; + if (!pic->pixels) + return; +- src = (ulong *) pic->pixels; ++ src = (uint32_t *) pic->pixels; + + x--; + y--; +@@ -673,7 +673,7 @@ + } + + +-static ulong mytimeout; ++static uint32_t mytimeout; + int mouse_button; + static int numAltQ = 0; + +@@ -1238,9 +1238,9 @@ + } + + +-ulong *sf_savearea(int x, int y, int w, int h) ++uint32_t *sf_savearea(int x, int y, int w, int h) + { +- ulong *r, *p, *s; ++ uint32_t *r, *p, *s; + int i; + + if (x < 0) { +@@ -1261,7 +1261,7 @@ + if (h <= 0) + return NULL; + +- r = p = malloc((w * h + 4) * sizeof(ulong)); ++ r = p = malloc((w * h + 4) * sizeof(uint32_t)); + if (!r) + return NULL; + +@@ -1272,7 +1272,7 @@ + + s = sbuffer + x + y * sbpitch; + for (i = 0; i < h; i++) { +- memmove(p, s, w * sizeof(ulong)); ++ memmove(p, s, w * sizeof(uint32_t)); + p += w; + s += sbpitch; + } +@@ -1280,9 +1280,9 @@ + } + + +-void sf_restoreareaandfree(ulong * s) ++void sf_restoreareaandfree(uint32_t * s) + { +- ulong *p, *d; ++ uint32_t *p, *d; + int i, x, y, w, h; + if (!s) + return; +@@ -1295,7 +1295,7 @@ + + d = sbuffer + x + y * sbpitch; + for (i = 0; i < h; i++) { +- memmove(d, p, w * sizeof(ulong)); ++ memmove(d, p, w * sizeof(uint32_t)); + p += w; + d += sbpitch; + } +@@ -1307,7 +1307,7 @@ + + + int (*sf_osdialog)(bool ex, const char *def, const char *filt, const char *tit, +- char **res, ulong * sbuf, int sbp, int ew, int eh, ++ char **res, uint32_t * sbuf, int sbp, int ew, int eh, + int isfull) = NULL; + + +@@ -1322,7 +1322,7 @@ + } + + +-void sf_videodata(ulong ** sb, int *sp, int *ew, int *eh) ++void sf_videodata(uint32_t ** sb, int *sp, int *ew, int *eh) + { + *sb = sbuffer; + *sp = sbpitch; +@@ -1367,7 +1367,7 @@ + bool changed = FALSE; + int i, colors; + +- memset(&screen_palette, 0, sizeof(ulong)); ++ memset(&screen_palette, 0, sizeof(uint32_t)); + + if (graphic->usespalette) { + colors = graphic->palette_entries; +--- a/src/sdl/sf_images.c ++++ b/src/sdl/sf_images.c +@@ -38,9 +38,9 @@ + static byte fromLinear[256]; + extern bool m_adaptiveMode; + +-ulong sf_blend(int a, ulong s, ulong d) ++uint32_t sf_blend(int a, uint32_t s, uint32_t d) + { +- ulong r; ++ uint32_t r; + r = fromLinear[(toLinear[s & 0xff] * a + + toLinear[d & 0xff] * (256 - a)) >> 8]; + s >>= 8; +@@ -186,7 +186,7 @@ + if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) { + graphic->palette_entries = num_palette; + for (int i = 0; i < num_palette; i++) { +- ulong color = ++ uint32_t color = + palette[i].red | (palette[i]. + green << 8) | (palette[i]. + blue << diff --git a/games-engines/frotz/frotz-2.53-r1.ebuild b/games-engines/frotz/frotz-2.53-r1.ebuild index 1fdf97ae9e56..773b24490f66 100644 --- a/games-engines/frotz/frotz-2.53-r1.ebuild +++ b/games-engines/frotz/frotz-2.53-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -38,6 +38,10 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${PN}-2.53-uint32.patch +) + src_compile() { emake \ dumb \ |