|
1 | 1 | class Povray < Formula
|
2 | 2 | desc "Persistence Of Vision RAYtracer (POVRAY)"
|
3 | 3 | homepage "https://www.povray.org/"
|
4 |
| - url "https://github.com/POV-Ray/povray/archive/refs/tags/v3.7.0.10.tar.gz" |
5 |
| - sha256 "7bee83d9296b98b7956eb94210cf30aa5c1bbeada8ef6b93bb52228bbc83abff" |
6 | 4 | license "AGPL-3.0-or-later"
|
7 | 5 | revision 13
|
8 | 6 | head "https://github.com/POV-Ray/povray.git", branch: "master"
|
9 | 7 |
|
| 8 | + stable do |
| 9 | + url "https://github.com/POV-Ray/povray/archive/refs/tags/v3.7.0.10.tar.gz" |
| 10 | + sha256 "7bee83d9296b98b7956eb94210cf30aa5c1bbeada8ef6b93bb52228bbc83abff" |
| 11 | + |
| 12 | + on_sequoia :or_newer do |
| 13 | + # Apply FreeBSD patches for libc++ >= 19 needed in Xcode 16.3 |
| 14 | + patch :p0 do |
| 15 | + url "https://raw.githubusercontent.com/freebsd/freebsd-ports/6133473e4227abbfcf023bea6ab5eeed9c17e55b/graphics/povray37/files/patch-vfe_vfe.cpp" |
| 16 | + sha256 "81e6ad64dadce1581cbab3be9774d5a5c22307e8738ee1452eb7e4d3e5a7e234" |
| 17 | + end |
| 18 | + patch :p0 do |
| 19 | + url "https://raw.githubusercontent.com/freebsd/freebsd-ports/6133473e4227abbfcf023bea6ab5eeed9c17e55b/graphics/povray37/files/patch-vfe_vfeconf.h" |
| 20 | + sha256 "8e2246c5ded770b0fe835ae062aca44e98fc220314e39ba6c068ed7f270b71b2" |
| 21 | + end |
| 22 | + |
| 23 | + # Workaround for Xcode 16.3+, issue ref: https://github.com/POV-Ray/povray/issues/479 |
| 24 | + patch :DATA |
| 25 | + end |
| 26 | + end |
| 27 | + |
10 | 28 | livecheck do
|
11 | 29 | url :stable
|
12 | 30 | regex(/^v?(\d+(?:\.\d+)+\.\d{1,4})$/i)
|
@@ -37,6 +55,10 @@ class Povray < Formula
|
37 | 55 |
|
38 | 56 | def install
|
39 | 57 | ENV.cxx11
|
| 58 | + # See https://github.com/freebsd/freebsd-ports/commit/6133473e4227abbfcf023bea6ab5eeed9c17e55b |
| 59 | + if OS.mac? && MacOS.version >= :sequoia |
| 60 | + ENV.append "CPPFLAGS", "-DPOVMSUCS2=char16_t -DUCS2=char16_t -DUCS4=char32_t" |
| 61 | + end |
40 | 62 |
|
41 | 63 | args = %W[
|
42 | 64 | COMPILED_BY=homebrew
|
@@ -74,3 +96,17 @@ def install
|
74 | 96 | end
|
75 | 97 | end
|
76 | 98 | end
|
| 99 | + |
| 100 | +__END__ |
| 101 | +diff --git a/source/backend/shape/truetype.cpp b/source/backend/shape/truetype.cpp |
| 102 | +index 7e27ccc3..80ab047c 100644 |
| 103 | +--- a/source/backend/shape/truetype.cpp |
| 104 | ++++ b/source/backend/shape/truetype.cpp |
| 105 | +@@ -117,7 +117,7 @@ typedef unsigned int ULONG; |
| 106 | + typedef short FWord; |
| 107 | + typedef unsigned short uFWord; |
| 108 | + |
| 109 | +-#if !defined(TARGET_OS_MAC) |
| 110 | ++#if !defined(__MACTYPES__) |
| 111 | + typedef int Fixed; |
| 112 | + #endif |
0 commit comments