diff options
Diffstat (limited to 'filesystems/mtpfs')
-rw-r--r-- | filesystems/mtpfs/Makefile | 34 | ||||
-rw-r--r-- | filesystems/mtpfs/distinfo | 3 | ||||
-rw-r--r-- | filesystems/mtpfs/files/patch-Makefile.am | 10 | ||||
-rw-r--r-- | filesystems/mtpfs/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | filesystems/mtpfs/files/patch-mtpfs.c | 11 | ||||
-rw-r--r-- | filesystems/mtpfs/files/patch-mtpfs.h | 11 | ||||
-rw-r--r-- | filesystems/mtpfs/pkg-descr | 2 |
7 files changed, 82 insertions, 0 deletions
diff --git a/filesystems/mtpfs/Makefile b/filesystems/mtpfs/Makefile new file mode 100644 index 000000000000..45280de5a66a --- /dev/null +++ b/filesystems/mtpfs/Makefile @@ -0,0 +1,34 @@ +PORTNAME= mtpfs +PORTVERSION= 1.1 +PORTREVISION= 5 +CATEGORIES= filesystems sysutils + +MAINTAINER= jhixson@FreeBSD.org +COMMENT= MTP device filesystem +WWW= https://www.adebenham.com/mtpfs/ + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libmtp.so:multimedia/libmtp \ + libid3.so:audio/id3lib \ + libid3tag.so:audio/libid3tag \ + libmad.so:audio/libmad + +USES= autoreconf fuse gnome pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= cjd +GH_TAGNAME= fd3864dd6f0e8183fa2598d4cf890401d3a1e09a +USE_GNOME= glib20 + +GNU_CONFIGURE= yes + +PLIST_FILES= bin/mtpfs + +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + +.include <bsd.port.mk> diff --git a/filesystems/mtpfs/distinfo b/filesystems/mtpfs/distinfo new file mode 100644 index 000000000000..f5a1fe2cc047 --- /dev/null +++ b/filesystems/mtpfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1593705811 +SHA256 (cjd-mtpfs-1.1-fd3864dd6f0e8183fa2598d4cf890401d3a1e09a_GH0.tar.gz) = f004136a82452d13362581277eb2496033aa13a6c3f35d0501327248f3120456 +SIZE (cjd-mtpfs-1.1-fd3864dd6f0e8183fa2598d4cf890401d3a1e09a_GH0.tar.gz) = 82022 diff --git a/filesystems/mtpfs/files/patch-Makefile.am b/filesystems/mtpfs/files/patch-Makefile.am new file mode 100644 index 000000000000..88b3b171b057 --- /dev/null +++ b/filesystems/mtpfs/files/patch-Makefile.am @@ -0,0 +1,10 @@ +--- Makefile.am.orig 2020-07-02 17:25:56 UTC ++++ Makefile.am +@@ -1,6 +1,6 @@ + bin_PROGRAMS = mtpfs + mtpfs_SOURCES = mtpfs.c mtpfs.h +-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS) $(GLIB_CFLAGS) $(MTP_CFLAGS) ++mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=26 $(FUSE_CFLAGS) $(GLIB_CFLAGS) $(MTP_CFLAGS) + mtpfs_LDADD = $(FUSE_LIBS) $(GLIB_LIBS) $(MTP_LIBS) + + if USEMAD diff --git a/filesystems/mtpfs/files/patch-Makefile.in b/filesystems/mtpfs/files/patch-Makefile.in new file mode 100644 index 000000000000..81605bc20d6b --- /dev/null +++ b/filesystems/mtpfs/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2016-12-15 23:55:52 UTC ++++ Makefile.in +@@ -287,7 +287,7 @@ top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + mtpfs_SOURCES = mtpfs.c mtpfs.h $(am__append_1) +-mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=22 $(FUSE_CFLAGS) $(GLIB_CFLAGS) \ ++mtpfs_CPPFLAGS = -DFUSE_USE_VERSION=26 $(FUSE_CFLAGS) $(GLIB_CFLAGS) \ + $(MTP_CFLAGS) $(am__append_2) + mtpfs_LDADD = $(FUSE_LIBS) $(GLIB_LIBS) $(MTP_LIBS) $(am__append_3) + all: all-am diff --git a/filesystems/mtpfs/files/patch-mtpfs.c b/filesystems/mtpfs/files/patch-mtpfs.c new file mode 100644 index 000000000000..2c9be7d4cdb1 --- /dev/null +++ b/filesystems/mtpfs/files/patch-mtpfs.c @@ -0,0 +1,11 @@ +--- mtpfs.c.orig 2016-12-15 23:55:52 UTC ++++ mtpfs.c +@@ -1774,7 +1774,7 @@ main (int argc, char *argv[]) + + DBG ("Start fuse"); + +- fuse_stat = fuse_main (argc, argv, &mtpfs_oper); ++ fuse_stat = fuse_main (argc, argv, &mtpfs_oper, NULL); + DBG ("fuse_main returned %d\n", fuse_stat); + return fuse_stat; + } diff --git a/filesystems/mtpfs/files/patch-mtpfs.h b/filesystems/mtpfs/files/patch-mtpfs.h new file mode 100644 index 000000000000..92ca2ae91cda --- /dev/null +++ b/filesystems/mtpfs/files/patch-mtpfs.h @@ -0,0 +1,11 @@ +--- mtpfs.h.orig 2016-12-15 23:55:52 UTC ++++ mtpfs.h +@@ -17,7 +17,7 @@ + #include <fcntl.h> + #include <dirent.h> + #include <errno.h> +-#include <sys/statfs.h> ++#include <sys/mount.h> + + #include <libmtp.h> + #include <glib.h> diff --git a/filesystems/mtpfs/pkg-descr b/filesystems/mtpfs/pkg-descr new file mode 100644 index 000000000000..95934af17d80 --- /dev/null +++ b/filesystems/mtpfs/pkg-descr @@ -0,0 +1,2 @@ +MTPFS is a FUSE filesystem that supports reading and writing from any +MTP device (as supported by libmtp) |