From fb8c9277baebec23bf45c45f99f9f1d5b08f7234 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 16 Jul 2009 14:54:02 +0000 Subject: Initial import of fuse-mp3fs-0.13: MP3FS is a read-only FUSE filesystem which transcodes audio formats (currently FLAC) to MP3 on the fly when opened and read. This was written to enable using a FLAC collection with software and/or hardware which only understands MP3. It is also a novel alternative to traditional MP3 encoder applications. Just use your favorite file browser to select the files you want encoded and copy them somewhere! --- filesystems/fuse-mp3fs/DESCR | 8 +++++++ filesystems/fuse-mp3fs/Makefile | 27 +++++++++++++++++++++ filesystems/fuse-mp3fs/PLIST | 3 +++ filesystems/fuse-mp3fs/distinfo | 7 ++++++ filesystems/fuse-mp3fs/patches/patch-aa | 42 +++++++++++++++++++++++++++++++++ filesystems/fuse-mp3fs/patches/patch-ab | 12 ++++++++++ 6 files changed, 99 insertions(+) create mode 100644 filesystems/fuse-mp3fs/DESCR create mode 100644 filesystems/fuse-mp3fs/Makefile create mode 100644 filesystems/fuse-mp3fs/PLIST create mode 100644 filesystems/fuse-mp3fs/distinfo create mode 100644 filesystems/fuse-mp3fs/patches/patch-aa create mode 100644 filesystems/fuse-mp3fs/patches/patch-ab (limited to 'filesystems/fuse-mp3fs') diff --git a/filesystems/fuse-mp3fs/DESCR b/filesystems/fuse-mp3fs/DESCR new file mode 100644 index 00000000000..b86215dd2ff --- /dev/null +++ b/filesystems/fuse-mp3fs/DESCR @@ -0,0 +1,8 @@ +MP3FS is a read-only FUSE filesystem which transcodes audio formats +(currently FLAC) to MP3 on the fly when opened and read. This was +written to enable using a FLAC collection with software and/or +hardware which only understands MP3. + +It is also a novel alternative to traditional MP3 encoder applications. +Just use your favorite file browser to select the files you want +encoded and copy them somewhere! diff --git a/filesystems/fuse-mp3fs/Makefile b/filesystems/fuse-mp3fs/Makefile new file mode 100644 index 00000000000..6106cf3204e --- /dev/null +++ b/filesystems/fuse-mp3fs/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ +# + +DISTNAME= mp3fs-0.13 +PKGNAME= fuse-${DISTNAME} +CATEGORIES= filesystems +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mp3fs/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://mp3fs.sourceforge.net/ +COMMENT= MP3 transcoding FUSE file system +LICENSE= gnu-gpl-v3 + +GNU_CONFIGURE= yes +PKG_DESTDIR_SUPPORT= user-destdir +USE_TOOLS= pkg-config + +INSTALLATION_DIRS= share/doc/fuse-mp3fs + +post-install: + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/fuse-mp3fs + +.include "../../audio/flac/buildlink3.mk" +.include "../../audio/lame/buildlink3.mk" +.include "../../audio/libid3tag/buildlink3.mk" +.include "../../mk/fuse.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/filesystems/fuse-mp3fs/PLIST b/filesystems/fuse-mp3fs/PLIST new file mode 100644 index 00000000000..c667752d67a --- /dev/null +++ b/filesystems/fuse-mp3fs/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ +bin/mp3fs +share/doc/fuse-mp3fs/README diff --git a/filesystems/fuse-mp3fs/distinfo b/filesystems/fuse-mp3fs/distinfo new file mode 100644 index 00000000000..669af2be997 --- /dev/null +++ b/filesystems/fuse-mp3fs/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ + +SHA1 (mp3fs-0.13.tar.gz) = b246bd747a32256cb8364b7ac0cc8b7a4e1d3f74 +RMD160 (mp3fs-0.13.tar.gz) = 6ad1126ee22b35fe4987dd6addbc41a25c74a508 +Size (mp3fs-0.13.tar.gz) = 301642 bytes +SHA1 (patch-aa) = 7fb2cfc0fa9d3afcd42a98cd73f5834f94245141 +SHA1 (patch-ab) = 9b259b045decb4556dd72eeb65e0275554a93b6f diff --git a/filesystems/fuse-mp3fs/patches/patch-aa b/filesystems/fuse-mp3fs/patches/patch-aa new file mode 100644 index 00000000000..3877d098a1f --- /dev/null +++ b/filesystems/fuse-mp3fs/patches/patch-aa @@ -0,0 +1,42 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ + +--- src/mp3fs.c.orig 2008-12-14 05:17:35.000000000 +0000 ++++ src/mp3fs.c +@@ -30,7 +30,11 @@ + #include + #include + #include ++#ifdef __NetBSD__ ++#include ++#else + #include ++#endif + + #include "transcode.h" + #include "talloc.h" +@@ -195,7 +199,12 @@ static int mp3fs_read(const char *path, + return f->Read(f, buf, offset, size); + } + +-static int mp3fs_statfs(const char *path, struct statfs *stbuf) { ++#ifdef __NetBSD__ ++static int mp3fs_statfs(const char *path, struct statvfs *stbuf) ++#else ++static int mp3fs_statfs(const char *path, struct statfs *stbuf) ++#endif ++{ + int res; + char name[256]; + +@@ -204,7 +213,11 @@ static int mp3fs_statfs(const char *path + strncpy(name, basepath, sizeof(name)); + strncat(name, path, sizeof(name) - strlen(name)); + ++#ifdef __NetBSD__ ++ res = statvfs(name, stbuf); ++#else + res = statfs(name, stbuf); ++#endif + if(res == -1) + return -errno; + diff --git a/filesystems/fuse-mp3fs/patches/patch-ab b/filesystems/fuse-mp3fs/patches/patch-ab new file mode 100644 index 00000000000..cdc2f2b62e6 --- /dev/null +++ b/filesystems/fuse-mp3fs/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/07/16 14:54:02 wiz Exp $ + +--- src/transcode.c.orig 2008-12-14 05:24:21.000000000 +0000 ++++ src/transcode.c +@@ -24,7 +24,6 @@ + #include + #include + #include +-#include + + #include + #ifdef LEGACY_FLAC -- cgit v1.2.3