File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Maintainer: Rhys Koedijk <rhys@koedijk.co.nz>
2+ # Maintainer: DarkMatterCore <pabloacurielz@gmail.com>
3+
4+ pkgname=switch-ntfs-3g
5+ pkgver=2022.10.3
6+ pkgrel=1
7+ pkgdesc=' An open source, freely available read/write NTFS driver'
8+ arch=(' any' )
9+ url=' https://www.tuxera.com/community/open-source-ntfs-3g/'
10+ license=(' GPL' )
11+ options=(! strip libtool staticlibs)
12+ groups=(' switch-portlibs' )
13+ makedepends=(' devkitA64' ' dkp-toolchain-vars' )
14+
15+ source=(
16+ " ntfs-3g-${pkgver} .tar.gz::https://github.com/tuxera/ntfs-3g/archive/refs/tags/${pkgver} .tar.gz"
17+ " ntfs-3g-${pkgver} .patch"
18+ )
19+
20+ sha256sums=(
21+ ' 8bd7749ea9d8534c9f0664d48b576e90b96d45ec8803c9427f6ffaa2f0dde299'
22+ ' 66962f5632b3d24dacf178cc136e302038f2ed3ae8306ba9407695a77f369ebd'
23+ )
24+
25+ prepare () {
26+ cd " ntfs-3g-${pkgver} "
27+ patch -Np1 -i " ${srcdir} /ntfs-3g-${pkgver} .patch"
28+ ./autogen.sh
29+ }
30+
31+ build () {
32+ cd " ntfs-3g-${pkgver} "
33+
34+ source /opt/devkitpro/switchvars.sh
35+
36+ CPPFLAGS=-I/opt/devkitpro/libnx/include ./configure --prefix=" ${PORTLIBS_PREFIX} " \
37+ --host=aarch64-none-elf \
38+ --disable-shared \
39+ --enable-static \
40+ --disable-ntfsprogs \
41+ --disable-ntfs-3g \
42+ --disable-device-default-io-ops \
43+ --disable-plugins \
44+ --without-uuid \
45+ --without-hd
46+
47+ make
48+ }
49+
50+ package () {
51+ cd " ntfs-3g-${pkgver} "
52+
53+ source /opt/devkitpro/switchvars.sh
54+
55+ install -Dm644 COPYING " ${pkgdir}${PORTLIBS_PREFIX} /licenses/${pkgname} /COPYING"
56+
57+ rm -fr " ${pkgdir}${PORTLIBS_PREFIX} /share"
58+ }
Original file line number Diff line number Diff line change 1+ diff --git a/include/ntfs-3g/ntfstime.h b/include/ntfs-3g/ntfstime.h
2+ index f3a89dd8..ce0d4586 100644
3+ --- a/include/ntfs-3g/ntfstime.h
4+ +++ b/include/ntfs-3g/ntfstime.h
5+ @@ -36,6 +36,10 @@
6+
7+ #include "types.h"
8+
9+ + #ifdef _SYS__TIMESPEC_H_
10+ + #define __timespec_defined
11+ + #endif
12+ +
13+ /*
14+ * assume "struct timespec" is not defined if st_mtime is not defined
15+ */
16+ diff --git a/libntfs-3g/ioctl.c b/libntfs-3g/ioctl.c
17+ index b059a53f..a3a56722 100644
18+ --- a/libntfs-3g/ioctl.c
19+ +++ b/libntfs-3g/ioctl.c
20+ @@ -48,7 +48,9 @@
21+ #ifdef HAVE_LIMITS_H
22+ #include <limits.h>
23+ #endif
24+ + #ifdef HAVE_SYSLOG_H
25+ #include <syslog.h>
26+ + #endif
27+ #ifdef HAVE_SYS_TYPES_H
28+ #include <sys/types.h>
29+ #endif
You can’t perform that action at this time.
0 commit comments