This is a development version of the mp3splt package. Aside from bug
authorbjs <bjs>
Wed, 6 Feb 2008 09:31:06 +0000 (09:31 +0000)
committerbjs <bjs>
Wed, 6 Feb 2008 09:31:06 +0000 (09:31 +0000)
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.

audio/mp3splt-devel/DESCR [new file with mode: 0644]
audio/mp3splt-devel/Makefile [new file with mode: 0644]
audio/mp3splt-devel/PLIST [new file with mode: 0644]
audio/mp3splt-devel/distinfo [new file with mode: 0644]
audio/mp3splt-devel/patches/patch-aa [new file with mode: 0644]
audio/mp3splt-devel/patches/patch-ab [new file with mode: 0644]

diff --git a/audio/mp3splt-devel/DESCR b/audio/mp3splt-devel/DESCR
new file mode 100644 (file)
index 0000000..801be06
--- /dev/null
@@ -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 (file)
index 0000000..b904ef4
--- /dev/null
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.11 2006/08/10 16:16:13 wiz 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 (file)
index 0000000..f96891d
--- /dev/null
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/18 14:05:07 wiz 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 (file)
index 0000000..bf951ba
--- /dev/null
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.7 2006/03/06 14:26:17 joerg 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 (file)
index 0000000..c56df30
--- /dev/null
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.3 2005/10/31 15:59:14 tv 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 (file)
index 0000000..2c12c25
--- /dev/null
@@ -0,0 +1,35 @@
+$NetBSD$
+
+--- 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