Skip to content

Commit ca3daad

Browse files
authored
Revert "fix libheif"
1 parent eb97711 commit ca3daad

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

src/SPC/builder/unix/library/libheif.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,15 @@ trait libheif
1111
{
1212
public function patchBeforeBuild(): bool
1313
{
14-
$patched = false;
1514
if (!str_contains(file_get_contents($this->source_dir . '/CMakeLists.txt'), 'libbrotlienc')) {
1615
FileSystem::replaceFileStr(
1716
$this->source_dir . '/CMakeLists.txt',
1817
'list(APPEND REQUIRES_PRIVATE "libbrotlidec")',
1918
'list(APPEND REQUIRES_PRIVATE "libbrotlidec")' . "\n" . ' list(APPEND REQUIRES_PRIVATE "libbrotlienc")'
2019
);
21-
$patched = true;
20+
return true;
2221
}
23-
// libheif 1.22+ ships a C-incompatible header: `struct heif_bad_pixel`
24-
$heif_properties = $this->source_dir . '/libheif/api/libheif/heif_properties.h';
25-
if (file_exists($heif_properties)
26-
&& str_contains(file_get_contents($heif_properties), 'struct heif_bad_pixel { uint32_t row; uint32_t column; };')
27-
) {
28-
FileSystem::replaceFileStr(
29-
$heif_properties,
30-
'struct heif_bad_pixel { uint32_t row; uint32_t column; };',
31-
'typedef struct heif_bad_pixel { uint32_t row; uint32_t column; } heif_bad_pixel;'
32-
);
33-
$patched = true;
34-
}
35-
return $patched;
22+
return false;
3623
}
3724

3825
protected function build(): void

0 commit comments

Comments
 (0)