diff options
author | wiz <wiz> | 2009-07-16 14:54:02 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-07-16 14:54:02 +0000 |
commit | 1745d05d66751e19ce2e834b0a89c8a399d5d05c (patch) | |
tree | 3cec5eab58543c31cae35686a747ddcae56497b5 /filesystems | |
parent | 986968b14f2bdd99ec77170e34244b03f07bfeb2 (diff) | |
download | pkgsrc-1745d05d66751e19ce2e834b0a89c8a399d5d05c.tar.gz |
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!
Diffstat (limited to 'filesystems')
-rw-r--r-- | filesystems/fuse-mp3fs/DESCR | 8 | ||||
-rw-r--r-- | filesystems/fuse-mp3fs/Makefile | 27 | ||||
-rw-r--r-- | filesystems/fuse-mp3fs/PLIST | 3 | ||||
-rw-r--r-- | filesystems/fuse-mp3fs/distinfo | 7 | ||||
-rw-r--r-- | filesystems/fuse-mp3fs/patches/patch-aa | 42 | ||||
-rw-r--r-- | filesystems/fuse-mp3fs/patches/patch-ab | 12 |
6 files changed, 99 insertions, 0 deletions
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 <fcntl.h> + #include <dirent.h> + #include <errno.h> ++#ifdef __NetBSD__ ++#include <sys/statvfs.h> ++#else + #include <sys/statfs.h> ++#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 <fcntl.h> + #include <dirent.h> + #include <errno.h> +-#include <sys/statfs.h> + + #include <FLAC/metadata.h> + #ifdef LEGACY_FLAC |