diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /games/renpy/files/patch-system-fribidi | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'games/renpy/files/patch-system-fribidi')
| -rw-r--r-- | games/renpy/files/patch-system-fribidi | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/games/renpy/files/patch-system-fribidi b/games/renpy/files/patch-system-fribidi deleted file mode 100644 index 56ed9a9b93ac..000000000000 --- a/games/renpy/files/patch-system-fribidi +++ /dev/null @@ -1,61 +0,0 @@ -Partially revert 4a9efc0cab7d as module/fribidi-src/ is missing from source archive. - -gen/_renpybidi.c:564:10: fatal error: 'fribidi.h' file not found -#include "fribidi.h" - ^ - ---- module/renpybidicore.c.orig 2019-12-14 15:31:48.000000000 +0000 -+++ module/renpybidicore.c 2021-01-01 15:45:23.115935083 +0000 -@@ -1,10 +1,6 @@ - #include <Python.h> - --#ifdef RENPY_BUILD - #include <fribidi.h> --#else --#include <fribidi-src/lib/fribidi.h> --#endif - - #include <stdlib.h> - ---- module/setup.py.orig 2018-07-11 04:29:32 UTC -+++ module/setup.py -@@ -92,6 +92,7 @@ has_avresample = library("avresample", optional=True) - has_swresample = library("swresample", optional=True) - has_swscale = library("swscale", optional=True) - library("freetype") -+has_fribidi = include("fribidi.h", directory="fribidi", optional=True) and library("fribidi", optional=True) - library("z") - has_libglew = library("GLEW", optional=True) - has_libglew32 = library("glew32", optional=True) -@@ -105,6 +106,16 @@ else: - sdl = [ 'SDL2' ] - png = 'png' - -+ -+if has_fribidi and (not android) and (not ios): -+ try: -+ # Some versions of fribidi require glib, and it doesn't hurt to include it in -+ # our path. -+ glib_flags = subprocess.check_output(["pkg-config", "--cflags", "glib-2.0"]) -+ setuplib.extra_compile_args.extend(glib_flags.split()) -+ except: -+ pass -+ - steam_sdk = os.environ.get("RENPY_STEAM_SDK", None) - steam_platform = os.environ.get("RENPY_STEAM_PLATFORM", "") - -@@ -134,11 +145,12 @@ renpybidicore.c - """.split() - cython( - "_renpybidi", -- FRIBIDI_SOURCES, -- includes=[ -+ has_fribidi and [ i for i in FRIBIDI_SOURCES if 'fribidi-src' not in i ] or FRIBIDI_SOURCES, -+ includes=has_fribidi and [] or [ - BASE + "/fribidi-src/", - BASE + "/fribidi-src/lib/", - ], -+ libs=has_fribidi and ['fribidi'] or [], - define_macros=[ - ("FRIBIDI_ENTRY", ""), - ("HAVE_CONFIG_H", "1"), |
