Skip to content

Commit 0e07bff

Browse files
implicitfieldspholz
authored andcommitted
Ports: Add fuse-exfat
1 parent 7da4f18 commit 0e07bff

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

Ports/AvailablePorts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
9191
| [`freetype`](freetype/) | FreeType | 2.13.2 | https://www.freetype.org/ |
9292
| [`fribidi`](fribidi/) | GNU FriBidi | 1.0.16 | https://github.com/fribidi/fribidi |
9393
| [`frotz`](frotz/) | Frotz | 2.54 | https://gitlab.com/DavidGriffith/frotz |
94+
| [`fuse-exfat`](fuse-exfat/) | fuse-exfat | 1.4.0 | https://gitlab.com/relan/exfat |
9495
| [`gawk`](gawk/) | GNU awk | 5.3.1 | https://www.gnu.org/software/gawk/ |
9596
| [`gcc`](gcc/) | GNU Compiler Collection | 14.2.0 | https://gcc.gnu.org/ |
9697
| [`gdb`](gdb/) | GNU Project Debugger | 11.2 | https://sourceware.org/gdb |

Ports/fuse-exfat/package.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env -S bash ../.port_include.sh
2+
port='fuse-exfat'
3+
version='1.4.0'
4+
files=(
5+
"https://github.com/relan/exfat/releases/download/v${version}/fuse-exfat-${version}.tar.gz#a1cfedc55e0e7a12c184605aa0f0bf44b24a3fb272449b20b2c8bbe6edb3001e"
6+
)
7+
depends=('libfuse')
8+
useconfigure='true'
9+
use_fresh_config_sub='true'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: implicitfield <[email protected]>
3+
Date: Mon, 2 Dec 2024 20:37:43 +0200
4+
Subject: [PATCH] Teach platform.h about serenity
5+
6+
---
7+
libexfat/platform.h | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/libexfat/platform.h b/libexfat/platform.h
11+
index 9bd125a..4a48323 100644
12+
--- a/libexfat/platform.h
13+
+++ b/libexfat/platform.h
14+
@@ -24,7 +24,7 @@
15+
#ifndef PLATFORM_H_INCLUDED
16+
#define PLATFORM_H_INCLUDED
17+
18+
-#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
19+
+#if defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) || defined(__serenity__)
20+
21+
#include <endian.h>
22+
#include <byteswap.h>

Ports/fuse-exfat/patches/ReadMe.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Patches for fuse-exfat on SerenityOS
2+
3+
## `0001-Teach-platform.h-about-serenity.patch`
4+
5+
Teach platform.h about serenity
6+

0 commit comments

Comments
 (0)