summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-02-06 09:31:06 +0000
committerbjs <bjs@pkgsrc.org>2008-02-06 09:31:06 +0000
commitba0bb9013b0af1b65f14cbe62f675b60bb9d521b (patch)
tree0024088c324840f940c3869bda8b1f3911ba5648 /audio
parente8c651f5e0ff28c576d552ebd27a2bc6b4f65966 (diff)
downloadpkgsrc-ba0bb9013b0af1b65f14cbe62f675b60bb9d521b.tar.gz
This is a development version of the mp3splt package. Aside from bug
fixes, the main feature enhancement is support of freedb2.org searches. There may be regressions from the stable version, and so this was imported as a -devel package instead of an upgrade to devel/mp3splt. If it is confirmed that this does not exhibit any regressions, we should consider replacing that package with this one. Additionally, use of the libmp3splt library allows for abstracting the dependencies of libmp3splt (ogg/vorbis, mad) from the program itself.
Diffstat (limited to 'audio')
-rw-r--r--audio/mp3splt-devel/DESCR10
-rw-r--r--audio/mp3splt-devel/Makefile36
-rw-r--r--audio/mp3splt-devel/PLIST4
-rw-r--r--audio/mp3splt-devel/distinfo7
-rw-r--r--audio/mp3splt-devel/patches/patch-aa20
-rw-r--r--audio/mp3splt-devel/patches/patch-ab35
6 files changed, 112 insertions, 0 deletions
diff --git a/audio/mp3splt-devel/DESCR b/audio/mp3splt-devel/DESCR
new file mode 100644
index 00000000000..801be060300
--- /dev/null
+++ b/audio/mp3splt-devel/DESCR
@@ -0,0 +1,10 @@
+Mp3Splt is a command line utility to split mp3 (VBR supported) and
+ogg files selecting a begin and an end time position, without
+decoding. It's very useful to split large mp3/ogg to make smaller
+files or to split entire albums to obtain original tracks. If you
+want to split an album, you can select split points and filenames
+manually or you can get them automatically from CDDB (internet or
+a local file) or from .cue files. Supports also automatic silence
+split, that can be used also to adjust cddb/cue splitpoints.
+Otherwise if you have a file created either with Mp3Wrap or AlbumWrap
+you can extract tracks just in few seconds.
diff --git a/audio/mp3splt-devel/Makefile b/audio/mp3splt-devel/Makefile
new file mode 100644
index 00000000000..a9164a4dbae
--- /dev/null
+++ b/audio/mp3splt-devel/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/02/06 09:31:06 bjs Exp $
+#
+
+DISTNAME= mp3splt-2.2_rc1
+PKGNAME= ${DISTNAME:S/_//}
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mp3splt/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mp3splt.sourceforge.net/
+COMMENT= Command line utility to split MP3 (VBR supported) and OGG files
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+CONFLICTS+= mp3splt-[0-9]*
+
+GNU_CONFIGURE= yes
+USE_PKGLOCALEDIR= yes
+USE_FEATURES= getopt_long
+
+.include "../../mk/bsd.prefs.mk"
+###
+### This was done in configure, but best to do it here--the tests are
+### not robust.
+###
+.if ${OPSYS} == "Solaris"
+LIBS+= -lsocket
+.endif
+
+post-install:
+ ${LN} -s ${DESTDIR}${PREFIX}/bin/mp3splt \
+ ${DESTDIR}${PREFIX}/bin/oggsplt
+
+.include "../../audio/libmp3splt/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/mp3splt-devel/PLIST b/audio/mp3splt-devel/PLIST
new file mode 100644
index 00000000000..ae6ef428ee2
--- /dev/null
+++ b/audio/mp3splt-devel/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/06 09:31:06 bjs Exp $
+bin/mp3splt
+bin/oggsplt
+man/man1/mp3splt.1
diff --git a/audio/mp3splt-devel/distinfo b/audio/mp3splt-devel/distinfo
new file mode 100644
index 00000000000..3a9fef6d8c8
--- /dev/null
+++ b/audio/mp3splt-devel/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/02/06 09:31:06 bjs Exp $
+
+SHA1 (mp3splt-2.2_rc1.tar.gz) = a9a3a88209a0bb5eb2c454567b63da5256e5b828
+RMD160 (mp3splt-2.2_rc1.tar.gz) = acb2e222d214f43f7e64bc378247eff0af69da6a
+Size (mp3splt-2.2_rc1.tar.gz) = 125632 bytes
+SHA1 (patch-aa) = 936252eebac04437f52c74796297cb6c3f61a24b
+SHA1 (patch-ab) = e43a6a98887ded24c27857f8389d0a015e4805e9
diff --git a/audio/mp3splt-devel/patches/patch-aa b/audio/mp3splt-devel/patches/patch-aa
new file mode 100644
index 00000000000..d250e7cd9d2
--- /dev/null
+++ b/audio/mp3splt-devel/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/02/06 09:31:06 bjs Exp $
+
+--- src/mp3splt.c.orig 2006-12-21 16:35:40.000000000 -0500
++++ src/mp3splt.c
+@@ -31,7 +31,14 @@
+
+ #include <libmp3splt/mp3splt.h>
+
+-#include "getopt.h"
++#if defined(HAVE_NBCOMPAT_H)
++#include <nbcompat/config.h>
++#include <nbcomat/cdefs.h>
++#include <nbcompat/getopt.h>
++#else
++#include <getopt.h>
++#endif
++
+
+ //constants
+ //we include the "config.h" file from the config options
diff --git a/audio/mp3splt-devel/patches/patch-ab b/audio/mp3splt-devel/patches/patch-ab
new file mode 100644
index 00000000000..47ebd82ff0a
--- /dev/null
+++ b/audio/mp3splt-devel/patches/patch-ab
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/02/06 09:31:06 bjs Exp $
+
+--- configure.orig 2006-12-21 16:36:28.000000000 -0500
++++ configure
+@@ -3260,30 +3260,9 @@ fi
+ { echo "$as_me:$LINENO: checking the host" >&5
+ echo $ECHO_N "checking the host... $ECHO_C" >&6; }
+ case $host in
+- *linux*)
+- HOST="Linux-based system"
+- ;;
+- *openbsd*)
+- HOST="OpenBSD"
+- ;;
+- *netbsd*)
+- HOST="NetBSD"
+- ;;
+- *freebsd*)
+- HOST="FreeBSD"
+- ;;
+- *mingw*)
+- HOST="Mingw"
+- LIBS="libvorbisfile.a libmad.a libvorbis.a libogg.a libid3tag.a libz.a libmp3splt.a -lwsock32"
+- ;;
+- *solaris*)
+- HOST="Solaris"
+- LIBS="$LIBS -lsocket"
+- ;;
+ *)
+ HOST="Other"
+ LIBS="$LIBS"
+-# LIBS="-lmad -logg -lvorbis -lvorbisfile -lm"
+ ;;
+ esac
+ { echo "$as_me:$LINENO: result: $HOST" >&5