Skip to content

Commit 8dd3038

Browse files
authored
Merge pull request #249930 from Homebrew/irrlicht-update-patches
irrlicht: update patch URLs
2 parents 17f8843 + 6886141 commit 8dd3038

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

Formula/i/irrlicht.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ class Irrlicht < Formula
4848

4949
# Use libraries from Homebrew or macOS
5050
patch do
51-
url "https://github.com/Homebrew/formula-patches/raw/69ad57d16cdd4ecdf2dfa50e9ce751b082d78cf9/irrlicht/use-system-libs.patch"
51+
url "https://raw.githubusercontent.com/Homebrew/homebrew-core/d16313ce/Patches/irrlicht/use-system-libs.patch"
5252
sha256 "70d2534506e0e34279c3e9d8eff4b72052cb2e78a63d13ce0bc60999cbdb411b"
5353
end
5454

5555
# Update Xcode project to use libraries from Homebrew and macOS
5656
patch do
57-
url "https://github.com/Homebrew/formula-patches/raw/69ad57d16cdd4ecdf2dfa50e9ce751b082d78cf9/irrlicht/xcode.patch"
57+
url "https://raw.githubusercontent.com/Homebrew/homebrew-core/1cf441a0/Patches/irrlicht/xcode.patch"
5858
sha256 "2cfcc34236469fcdb24b6a77489272dfa0a159c98f63513781245f3ef5c941c0"
5959
end
6060

Patches/irrlicht/use-system-libs.patch

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,45 @@ WARNING: This patch contains a mix of CRLF and LF line endings.
33
--- a/include/IrrCompileConfig.h
44
+++ b/include/IrrCompileConfig.h
55
@@ -250,6 +250,7 @@ the engine will no longer read .jpeg images. */
6-
/** If this is commented out, Irrlicht will try to compile using the jpeg lib installed in the system.
7-
This is only used when _IRR_COMPILE_WITH_LIBJPEG_ is defined. */
8-
#define _IRR_USE_NON_SYSTEM_JPEG_LIB_
9-
+#define NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
10-
#ifdef NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
11-
#undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
12-
#endif
6+
/** If this is commented out, Irrlicht will try to compile using the jpeg lib installed in the system.
7+
This is only used when _IRR_COMPILE_WITH_LIBJPEG_ is defined. */
8+
#define _IRR_USE_NON_SYSTEM_JPEG_LIB_
9+
+#define NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
10+
#ifdef NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
11+
#undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
12+
#endif
1313
@@ -266,6 +267,7 @@ the engine will no longer read .png images. */
14-
/** If this is commented out, Irrlicht will try to compile using the libpng installed in the system.
15-
This is only used when _IRR_COMPILE_WITH_LIBPNG_ is defined. */
16-
#define _IRR_USE_NON_SYSTEM_LIB_PNG_
17-
+#define NO_IRR_USE_NON_SYSTEM_LIB_PNG_
18-
#ifdef NO_IRR_USE_NON_SYSTEM_LIB_PNG_
19-
#undef _IRR_USE_NON_SYSTEM_LIB_PNG_
20-
#endif
14+
/** If this is commented out, Irrlicht will try to compile using the libpng installed in the system.
15+
This is only used when _IRR_COMPILE_WITH_LIBPNG_ is defined. */
16+
#define _IRR_USE_NON_SYSTEM_LIB_PNG_
17+
+#define NO_IRR_USE_NON_SYSTEM_LIB_PNG_
18+
#ifdef NO_IRR_USE_NON_SYSTEM_LIB_PNG_
19+
#undef _IRR_USE_NON_SYSTEM_LIB_PNG_
20+
#endif
2121
@@ -603,6 +605,7 @@ ones. */
22-
installed on the system. This is only used when _IRR_COMPILE_WITH_ZLIB_ is
23-
defined. */
24-
#define _IRR_USE_NON_SYSTEM_ZLIB_
25-
+#define NO_IRR_USE_NON_SYSTEM_ZLIB_
26-
#ifdef NO_IRR_USE_NON_SYSTEM_ZLIB_
27-
#undef _IRR_USE_NON_SYSTEM_ZLIB_
28-
#endif
22+
installed on the system. This is only used when _IRR_COMPILE_WITH_ZLIB_ is
23+
defined. */
24+
#define _IRR_USE_NON_SYSTEM_ZLIB_
25+
+#define NO_IRR_USE_NON_SYSTEM_ZLIB_
26+
#ifdef NO_IRR_USE_NON_SYSTEM_ZLIB_
27+
#undef _IRR_USE_NON_SYSTEM_ZLIB_
28+
#endif
2929
@@ -624,6 +627,7 @@ library. */
30-
installed on the system. This is only used when _IRR_COMPILE_WITH_BZLIB_ is
31-
defined. */
32-
#define _IRR_USE_NON_SYSTEM_BZLIB_
33-
+#define NO_IRR_USE_NON_SYSTEM_BZLIB_
34-
#ifdef NO_IRR_USE_NON_SYSTEM_BZLIB_
35-
#undef _IRR_USE_NON_SYSTEM_BZLIB_
36-
#endif
30+
installed on the system. This is only used when _IRR_COMPILE_WITH_BZLIB_ is
31+
defined. */
32+
#define _IRR_USE_NON_SYSTEM_BZLIB_
33+
+#define NO_IRR_USE_NON_SYSTEM_BZLIB_
34+
#ifdef NO_IRR_USE_NON_SYSTEM_BZLIB_
35+
#undef _IRR_USE_NON_SYSTEM_BZLIB_
36+
#endif
3737
--- a/source/Irrlicht/CImageLoaderJPG.cpp
3838
+++ b/source/Irrlicht/CImageLoaderJPG.cpp
3939
@@ -68,7 +68,7 @@ void CImageLoaderJPG::init_source (j_decompress_ptr cinfo)
40-
boolean CImageLoaderJPG::fill_input_buffer (j_decompress_ptr cinfo)
41-
{
42-
// DO NOTHING
43-
- return 1;
44-
+ return TRUE;
45-
}
46-
47-
40+
boolean CImageLoaderJPG::fill_input_buffer (j_decompress_ptr cinfo)
41+
{
42+
// DO NOTHING
43+
- return 1;
44+
+ return TRUE;
45+
}
46+
47+

0 commit comments

Comments
 (0)