diff options
author | bjs <bjs@pkgsrc.org> | 2008-12-14 06:37:49 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-12-14 06:37:49 +0000 |
commit | 7e5da2d0f0d7c67f787b781b25bd7ab8dafb66cf (patch) | |
tree | 85f7db65b86f3fca1f0a62070ff69b80849e6f7e | |
parent | 80878d6318eeda276c1562c1361cb667e6f68d2f (diff) | |
download | pkgsrc-7e5da2d0f0d7c67f787b781b25bd7ab8dafb66cf.tar.gz |
Import fuse-gstfs-0.1.
GSTFS is a filesystem for on-demand transcoding of music files between
different formats. It utilizes the gstreamer library for conversion so any
formats supported by gstreamer should also be supported by gstfs. The
filesystem's only requirement is that the gstreamer pipeline begin with a
filesrc with the name "_source" and end with an fdsink with the name "_dest".
The filesystem will automatically substitute the filename and fd number in
these pipelines.
-rw-r--r-- | filesystems/fuse-gstfs/DESCR | 7 | ||||
-rw-r--r-- | filesystems/fuse-gstfs/Makefile | 39 | ||||
-rw-r--r-- | filesystems/fuse-gstfs/PLIST | 7 | ||||
-rw-r--r-- | filesystems/fuse-gstfs/distinfo | 8 | ||||
-rw-r--r-- | filesystems/fuse-gstfs/patches/patch-aa | 21 | ||||
-rw-r--r-- | filesystems/fuse-gstfs/patches/patch-ab | 8 | ||||
-rw-r--r-- | filesystems/fuse-gstfs/patches/patch-ac | 8 |
7 files changed, 98 insertions, 0 deletions
diff --git a/filesystems/fuse-gstfs/DESCR b/filesystems/fuse-gstfs/DESCR new file mode 100644 index 00000000000..4cbc13da3c8 --- /dev/null +++ b/filesystems/fuse-gstfs/DESCR @@ -0,0 +1,7 @@ +GSTFS is a filesystem for on-demand transcoding of music files between +different formats. It utilizes the gstreamer library for conversion so any +formats supported by gstreamer should also be supported by gstfs. The +filesystem's only requirement is that the gstreamer pipeline begin with a +filesrc with the name "_source" and end with an fdsink with the name "_dest". +The filesystem will automatically substitute the filename and fd number in +these pipelines. diff --git a/filesystems/fuse-gstfs/Makefile b/filesystems/fuse-gstfs/Makefile new file mode 100644 index 00000000000..91efd366db4 --- /dev/null +++ b/filesystems/fuse-gstfs/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/14 06:37:49 bjs Exp $ +# + +DISTNAME= gstfs-0.1 +PKGNAME= fuse-${DISTNAME} +CATEGORIES= filesystems +MASTER_SITES= http://bobcopeland.com/gstfs/releases/ + +MAINTAINER= bjs@NetBSD.org +HOMEPAGE= http://bobcopeland.com/gstfs/ +COMMENT= On-demand, transcoding filesystem (using GStreamer pipeline) + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= pkg-config gmake + +DOCDIR= ${PREFIX}/share/doc/${PKGBASE} +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +PTHREAD_AUTO_VARS= yes +REPLACE_SH= *.sh +### +### XXX pick up the FUSE pkg-config override hook +### +do-configure: + @${DO_NADA} + +do-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT_DIR} ${DESTDIR}${EGDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/gstfs ${DESTDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/ogg2mp3.sh ${DESTDIR}${EGDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/mp32wav.sh ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR} + +.include "../../multimedia/gstreamer0.10/buildlink3.mk" +.include "../../mk/fuse.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/filesystems/fuse-gstfs/PLIST b/filesystems/fuse-gstfs/PLIST new file mode 100644 index 00000000000..7bcb544dbc6 --- /dev/null +++ b/filesystems/fuse-gstfs/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/14 06:37:49 bjs Exp $ +bin/gstfs +share/doc/fuse-gstfs/README +share/examples/fuse-gstfs/mp32wav.sh +share/examples/fuse-gstfs/ogg2mp3.sh +@dirrm share/doc/fuse-gstfs +@dirrm share/examples/fuse-gstfs diff --git a/filesystems/fuse-gstfs/distinfo b/filesystems/fuse-gstfs/distinfo new file mode 100644 index 00000000000..189fb1d83a4 --- /dev/null +++ b/filesystems/fuse-gstfs/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/14 06:37:49 bjs Exp $ + +SHA1 (gstfs-0.1.tar.gz) = f3184e178f2345077bd5dfcaee774f6bef81bcf2 +RMD160 (gstfs-0.1.tar.gz) = 1c41e7ed8b4b47da880999c75c1448aed389287b +Size (gstfs-0.1.tar.gz) = 7689 bytes +SHA1 (patch-aa) = 4c6fac24a962b6d303ceafcc45d2ac48c81f9197 +SHA1 (patch-ab) = 2571dc1d44ef5b89f31ae1258c5631fdf60c1d0e +SHA1 (patch-ac) = dac5ca16b460c1fe347b44de77c6796e0c14e65b diff --git a/filesystems/fuse-gstfs/patches/patch-aa b/filesystems/fuse-gstfs/patches/patch-aa new file mode 100644 index 00000000000..01091b2688e --- /dev/null +++ b/filesystems/fuse-gstfs/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/12/14 06:37:49 bjs Exp $ + +--- Makefile.orig 2008-08-31 12:13:53.000000000 -0400 ++++ Makefile +@@ -5,14 +5,14 @@ DISTFILES=*.[ch] *.sh Makefile README CO + SRCS=gstfs.c xcode.c + OBJS=$(SRCS:.c=.o) + +-LIBS=-lpthread `pkg-config --libs fuse glib-2.0 gstreamer-0.10` ++LIBS+=`pkg-config --libs fuse glib-2.0 gstreamer-0.10` + + CFLAGS+=-g -Wall -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 `pkg-config --cflags fuse glib-2.0 gstreamer-0.10` + + all: gstfs + + gstfs: $(OBJS) +- gcc -o gstfs $(OBJS) $(LIBS) ++ ${CC} -o gstfs $(OBJS) $(LIBS) + + clean: + $(RM) gstfs *.o diff --git a/filesystems/fuse-gstfs/patches/patch-ab b/filesystems/fuse-gstfs/patches/patch-ab new file mode 100644 index 00000000000..ec9412fe1a6 --- /dev/null +++ b/filesystems/fuse-gstfs/patches/patch-ab @@ -0,0 +1,8 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/12/14 06:37:49 bjs Exp $ + +--- mp32wav.sh.orig 2008-08-31 12:13:53.000000000 -0400 ++++ mp32wav.sh +@@ -1,2 +1,2 @@ + #! /bin/sh +-./gstfs -d -osrc=$1,src_ext=mp3,dst_ext=wav,pipeline="filesrc name=\"_source\" ! decodebin ! audioconvert ! wavenc ! fdsink name=\"_dest\" sync=false" $2 ++gstfs -d -osrc=$1,src_ext=mp3,dst_ext=wav,pipeline="filesrc name=\"_source\" ! decodebin ! audioconvert ! wavenc ! fdsink name=\"_dest\" sync=false" $2 diff --git a/filesystems/fuse-gstfs/patches/patch-ac b/filesystems/fuse-gstfs/patches/patch-ac new file mode 100644 index 00000000000..981c662f18a --- /dev/null +++ b/filesystems/fuse-gstfs/patches/patch-ac @@ -0,0 +1,8 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/12/14 06:37:49 bjs Exp $ + +--- ogg2mp3.sh.orig 2008-08-31 12:13:53.000000000 -0400 ++++ ogg2mp3.sh +@@ -1,2 +1,2 @@ + #! /bin/sh +-./gstfs -f -osrc=$1,src_ext=ogg,dst_ext=mp3,pipeline="filesrc name=\"_source\" ! oggdemux ! vorbisdec ! audioconvert ! lame bitrate=160 ! fdsink name=\"_dest\" sync=false" $2 ++gstfs -f -osrc=$1,src_ext=ogg,dst_ext=mp3,pipeline="filesrc name=\"_source\" ! oggdemux ! vorbisdec ! audioconvert ! lame bitrate=160 ! fdsink name=\"_dest\" sync=false" $2 |