Initial import of abcde, from Han Boetes <han@mijncomputer.nl>
A command-line utility to rip and encode audio cds
This commit is contained in:
parent
f8df742085
commit
756d294134
72
audio/abcde/Makefile
Normal file
72
audio/abcde/Makefile
Normal file
@ -0,0 +1,72 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2002/03/18 15:08:45 wilfried Exp $
|
||||
|
||||
COMMENT= "command-line utility to rip and encode audio cds"
|
||||
|
||||
V= 2.0.3
|
||||
DISTNAME= abcde_$V.orig
|
||||
PKGNAME= abcde-$V
|
||||
CATEGORIES= audio
|
||||
NEED_VERSION= 1.515
|
||||
|
||||
HOMEPAGE= http://frantica.lly.org/~rcw/abcde/page/
|
||||
|
||||
MAINTAINER= Han Boetes <han@mijncomputer.nl>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MS= http://frantica.lly.org/~rcw/
|
||||
MASTER_SITES= ${MS}abcde/
|
||||
MASTER_SITES0= ${MS}cd-discid/
|
||||
MASTER_SITES1= ${MS}id3/
|
||||
DISTFILES= ${DISTNAME}.tar.gz \
|
||||
cd-discid_0.7.orig.tar.gz:0
|
||||
|
||||
RUN_DEPENDS= :cdparanoia-*:audio/cdparanoia \
|
||||
:wget-*:net/wget
|
||||
|
||||
FLAVORS= lame
|
||||
FLAVOR?=
|
||||
|
||||
NO_REGRESS= Yes
|
||||
WRKDIST= ${WRKDIR}/${PKGNAME}
|
||||
|
||||
.if ${FLAVOR:L:Mlame}
|
||||
DISTFILES+= id3_0.12.orig.tar.gz:1
|
||||
RUN_DEPENDS+= :lame-*:audio/lame
|
||||
.else
|
||||
RUN_DEPENDS+= :vorbis-tools-*:audio/vorbis-tools
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if ${FLAVOR:L:Mlame}
|
||||
perl -pi -e 's,OUTPUTTYPE=ogg,OUTPUTTYPE=mp3,g' ${WRKSRC}/abcde
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
cd ${WRKDIR}/cd-discid-0.7 && \
|
||||
${CC} ${CFLAGS} -o cd-discid cd-discid.c
|
||||
.if ${FLAVOR:L:Mlame}
|
||||
cd ${WRKDIR}/id3-0.12 && \
|
||||
perl -pi -e 's,#include <getopt.h>,/*#include <getopt.h>*/,g' id3.c && \
|
||||
${CC} ${CFLAGS} -o id3 id3.c
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/cd-discid-0.7/cd-discid ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/abcde.1 ${PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKDIR}/cd-discid-0.7/cd-discid.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/abcde
|
||||
${INSTALL_DATA} ${WRKSRC}/abcde.conf ${PREFIX}/share/examples/abcde
|
||||
.if ${FLAVOR:L:Mlame}
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/id3-0.12/id3 ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKDIR}/id3-0.12/id3.1 ${PREFIX}/man/man1
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
9
audio/abcde/distinfo
Normal file
9
audio/abcde/distinfo
Normal file
@ -0,0 +1,9 @@
|
||||
MD5 (abcde_2.0.3.orig.tar.gz) = e430e3d2fb87729d6452d495eabd7a7a
|
||||
MD5 (cd-discid_0.7.orig.tar.gz) = 677bf237de663d71a78a7a0611fd4469
|
||||
MD5 (id3_0.12.orig.tar.gz) = 5791f634b928f39ec9eaa59efb3f9315
|
||||
RMD160 (abcde_2.0.3.orig.tar.gz) = 4425a9f660f992fae9d3241bce60180720c3084e
|
||||
RMD160 (cd-discid_0.7.orig.tar.gz) = dfbd4a9aae6cc281665745e221282e2ed2746e82
|
||||
RMD160 (id3_0.12.orig.tar.gz) = 04bbb9077e606d4768e93a13b8f92cb9202a8f5c
|
||||
SHA1 (abcde_2.0.3.orig.tar.gz) = 66a7620a835baee29296f4d5e9322bb1679baa49
|
||||
SHA1 (cd-discid_0.7.orig.tar.gz) = ec66595e301ecac747e759116a3ec7edc438cdec
|
||||
SHA1 (id3_0.12.orig.tar.gz) = 6e74313f56214a73ef8b54edabd698444e07080f
|
151
audio/abcde/patches/patch-abcde
Normal file
151
audio/abcde/patches/patch-abcde
Normal file
@ -0,0 +1,151 @@
|
||||
$OpenBSD: patch-abcde,v 1.1.1.1 2002/03/18 15:08:45 wilfried Exp $
|
||||
--- abcde.orig Mon Jan 28 06:44:02 2002
|
||||
+++ abcde Thu Mar 14 17:38:57 2002
|
||||
@@ -12,6 +12,25 @@
|
||||
|
||||
VERSION=2.0.3
|
||||
|
||||
+f_seq_row () {
|
||||
+ i=$1
|
||||
+ while [ $i -ne $2+1 ]
|
||||
+ do
|
||||
+ echo $i
|
||||
+ i=`expr $i + 1`
|
||||
+ done
|
||||
+ }
|
||||
+
|
||||
+f_seq_line () {
|
||||
+ i=$1
|
||||
+ while [ $i -ne $2+1 ]
|
||||
+ do
|
||||
+ printf $i" "
|
||||
+ i=`expr $i + 1`
|
||||
+ done
|
||||
+ echo
|
||||
+ }
|
||||
+
|
||||
usage ()
|
||||
{
|
||||
echo "This is abcde v$VERSION."
|
||||
@@ -574,7 +593,7 @@ do_cddbread ()
|
||||
fi
|
||||
# List out disc title/author and contents
|
||||
echo ---- "$(cut '-d ' -f4- "$ABCDETEMPDIR/cddbquery")" ---- >> "$ABCDETEMPDIR/cddbchoices"
|
||||
- for TRACK in $(seq 1 $TRACKS)
|
||||
+ for TRACK in $(f_seq_row 1 $TRACKS)
|
||||
do
|
||||
echo $TRACK: "$(grep ^TTITLE$(expr $TRACK - 1)= "$ABCDETEMPDIR/cddbread.1" | cut -f2- -d= | tr -d \\r\\n)" >> "$ABCDETEMPDIR/cddbchoices"
|
||||
done
|
||||
@@ -590,7 +609,7 @@ do_cddbread ()
|
||||
$CDDBTOOL template $(cat "$ABCDETEMPDIR/discid") > "$ABCDETEMPDIR/cddbread.1"
|
||||
# List out disc title/author and contents of template
|
||||
echo ---- Unknown Artist / Unknown Album ---- >> "$ABCDETEMPDIR/cddbchoices"
|
||||
- for TRACK in $(seq 1 $TRACKS)
|
||||
+ for TRACK in $(f_seq_row 1 $TRACKS)
|
||||
do
|
||||
echo $TRACK: "$(grep ^TTITLE$(expr $TRACK - 1)= "$ABCDETEMPDIR/cddbread.1" | cut -f2- -d= | tr -d \\r\\n)" >> "$ABCDETEMPDIR/cddbchoices"
|
||||
done
|
||||
@@ -620,7 +639,7 @@ do_cddbread ()
|
||||
fi
|
||||
# List out disc title/author and contents
|
||||
echo \#$X: ---- "$DISCINFO" ---- >> "$ABCDETEMPDIR/cddbchoices"
|
||||
- for TRACK in $(seq 1 $TRACKS)
|
||||
+ for TRACK in $(f_seq_row 1 $TRACKS)
|
||||
do
|
||||
echo $TRACK: "$(grep ^TTITLE$(expr $TRACK - 1)= "$ABCDETEMPDIR/cddbread.$X" | cut -f2- -d= | tr -d \\r\\n)" >> "$ABCDETEMPDIR/cddbchoices"
|
||||
done
|
||||
@@ -717,20 +736,18 @@ do_cddbedit ()
|
||||
EDITCDDB=n
|
||||
fi
|
||||
if [ "$EDITCDDB" = "y" ]; then
|
||||
- # Use the debian sensible-editor wrapper to pick the editor that the
|
||||
- # user has requested via their $EDITOR environment variable
|
||||
- if [ -x "/usr/bin/sensible-editor" ]; then
|
||||
- /usr/bin/sensible-editor "$CDDBDATA"
|
||||
- elif [ -x "$EDITOR" ]; then
|
||||
- # That failed, try to load the preferred editor, starting
|
||||
+ if [ -x "$EDITOR" ]; then
|
||||
+ # Try to load the preferred editor, starting
|
||||
# with their EDITOR variable
|
||||
$EDITOR "$CDDBDATA"
|
||||
+ elif [ -x "/usr/local/bin/$EDITOR" ]; then
|
||||
+ /usr/local/bin/$EDITOR "$CDDBDATA"
|
||||
# If that fails, check for a vi
|
||||
elif [ -x /usr/bin/vi ]; then
|
||||
/usr/bin/vi "$CDDBDATA"
|
||||
- # ae should be on all debian systems
|
||||
- elif [ -x /bin/ae ]; then
|
||||
- /bin/ae "$CDDBDATA"
|
||||
+ # mg should be on all OpenBSD systems
|
||||
+ elif [ -x /usr/bin/mg ]; then
|
||||
+ /usr/bin/mg "$CDDBDATA"
|
||||
# bomb out
|
||||
else
|
||||
echo "No editor available. Check your EDITOR environment variable." >&2
|
||||
@@ -889,12 +906,12 @@ INTERACTIVE=y
|
||||
CDROMREADERSYNTAX=cdparanoia
|
||||
OUTPUTTYPE=ogg
|
||||
ENCODERSYNTAX=default
|
||||
-OUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.$OUTPUTTYPE'
|
||||
+OUTPUTFORMAT='${ARTISTFILE}/${TRACKNUM}-${TRACKFILE}.${OUTPUTTYPE}'
|
||||
VAOUTPUTFORMAT=${OUTPUTFORMAT}
|
||||
PLAYLISTFORMAT='${ARTISTFILE}_-_${ALBUMFILE}.m3u'
|
||||
PLAYLISTDATAPREFIX=''
|
||||
COMMENT=''
|
||||
-ID3TAGV=2
|
||||
+ID3TAGV=1
|
||||
ENCNICE=10
|
||||
READNICE=10
|
||||
VARIOUSARTISTS=n
|
||||
@@ -964,13 +981,7 @@ if [ -z "$WAVOUTPUTDIR" ]; then
|
||||
WAVOUTPUTDIR="$OUTPUTDIR"
|
||||
fi
|
||||
|
||||
-# If this is a devfs system, default to /dev/cdroms/cdrom0
|
||||
-# instead of /dev/cdrom
|
||||
-if [ -e /dev/cdroms/cdrom0 ]; then
|
||||
- CDROM=/dev/cdroms/cdrom0
|
||||
-else
|
||||
- CDROM=/dev/cdrom
|
||||
-fi
|
||||
+CDROM=/dev/cd0c
|
||||
|
||||
# Load system defaults
|
||||
if [ -r /etc/abcde.conf ]; then
|
||||
@@ -1010,7 +1021,7 @@ while [ $# -gt 0 ]; do
|
||||
if [ "$RSTART" = "$REND" ]; then
|
||||
NEWTRACKS="$RSTART"
|
||||
else
|
||||
- NEWTRACKS=$(seq -s ' ' $RSTART $REND)
|
||||
+ NEWTRACKS=$(f_seq_line $RSTART $REND)
|
||||
fi
|
||||
TRACKQUEUE=$(echo "$TRACKQUEUE" "$NEWTRACKS")
|
||||
|
||||
@@ -1101,15 +1112,12 @@ if [ "$OUTPUTTYPE" = "ogg" ]; then NEEDC
|
||||
|
||||
# Make sure a buncha things exist
|
||||
for X in $CDROMREADER $CDDISCID ${NEEDTAGGER+$TAGGER} $ENCODER $WGET \
|
||||
- ${NEEDDISTMP3+$DISTMP3} ${NEEDCOMMENTER+$VORBISCOMMENT} seq
|
||||
+ ${NEEDDISTMP3+$DISTMP3} ${NEEDCOMMENTER+$VORBISCOMMENT}
|
||||
do
|
||||
# Cut off the command-line options we just added in
|
||||
X=$(echo $X | cut -d' ' -f2)
|
||||
- if [ "$(which $X)" = "" ]; then
|
||||
- echo "abcde error: $X is not in your path." >&2
|
||||
- exit 1
|
||||
- elif [ ! -x $(which $X) ]; then
|
||||
- echo "abcde error: $X is not executable." >&2
|
||||
+ if [ ! -x "$(which $X)" ]; then
|
||||
+ echo "abcde error: Can't find $X." >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
@@ -1191,7 +1199,7 @@ fi
|
||||
# Figure out where each track is going to be encoded
|
||||
ENCODELOCATIONS="$(echo $REMOTEHOSTS | tr , ' ')"
|
||||
if [ "$MAXPROCS" != "0" ]; then
|
||||
- for NUM in $(seq 1 "$MAXPROCS")
|
||||
+ for NUM in $(f_seq_row 1 "$MAXPROCS")
|
||||
do
|
||||
ENCODELOCATIONS="$ENCODELOCATIONS %local$NUM%"
|
||||
done
|
38
audio/abcde/patches/patch-abcde_conf
Normal file
38
audio/abcde/patches/patch-abcde_conf
Normal file
@ -0,0 +1,38 @@
|
||||
$OpenBSD: patch-abcde_conf,v 1.1.1.1 2002/03/18 15:08:45 wilfried Exp $
|
||||
--- abcde.conf.orig Mon Jan 21 03:35:31 2002
|
||||
+++ abcde.conf Thu Mar 14 17:38:02 2002
|
||||
@@ -59,14 +59,14 @@
|
||||
#VORBISCOMMENT=vorbiscomment
|
||||
|
||||
# Options to call programs with
|
||||
-#LAMEOPTS=
|
||||
+#LAMEOPTS='-b 192'
|
||||
#GOGOOPTS=
|
||||
#BLADEENCOPTS=
|
||||
#L3ENCOPTS=
|
||||
#XINGMP3ENCOPTS=
|
||||
#MP3ENCOPTS=
|
||||
#VORBIZEOPTS=
|
||||
-#OGGENCOPTS=
|
||||
+#OGGENCOPTS='-b 192'
|
||||
#ID3OPTS=
|
||||
#ID3V2OPTS=
|
||||
#CDPARANOIAOPTS=
|
||||
@@ -96,7 +96,7 @@
|
||||
#NOCDDBQUERY=n
|
||||
|
||||
# CD device you want to read from
|
||||
-#CDROM=/dev/cdrom
|
||||
+#CDROM=/dev/cd0c
|
||||
|
||||
# If you'd like to make a default location that overrides the current
|
||||
# directory for putting mp3's, uncomment this.
|
||||
@@ -115,7 +115,7 @@
|
||||
# OUTPUTTYPE, ALBUMFILE, ARTISTFILE, TRACKFILE, and TRACKNUM.
|
||||
# Make sure to single-quote this variable. abcde will automatically create
|
||||
# the directory portion of this filename.
|
||||
-#OUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.${OUTPUTTYPE}'
|
||||
+#OUTPUTFORMAT='${ARTISTFILE}/${TRACKNUM}-${TRACKFILE}.${OUTPUTTYPE}'
|
||||
|
||||
# Like OUTPUTFORMAT but for Various Artists discs.
|
||||
#VAOUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.${OUTPUTTYPE}'
|
8
audio/abcde/pkg/DESCR
Normal file
8
audio/abcde/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
abcde is a front end command-line utility (actually, a shell script)
|
||||
that grabs tracks off a CD, encodes them to ogg or mp3 format, and
|
||||
tags and names them with data from a CDDB server, all in one go.
|
||||
|
||||
You may want to copy ${PREFIX}/share/examples/abcde/abcde.conf
|
||||
to your homedir as .abcde.conf and adjust it to your needs.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
3
audio/abcde/pkg/PFRAG.lame
Normal file
3
audio/abcde/pkg/PFRAG.lame
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.lame,v 1.1.1.1 2002/03/18 15:08:45 wilfried Exp $
|
||||
bin/id3
|
||||
man/man1/id3.1
|
10
audio/abcde/pkg/PLIST
Normal file
10
audio/abcde/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/03/18 15:08:45 wilfried Exp $
|
||||
bin/abcde
|
||||
bin/cd-discid
|
||||
bin/cddb-tool
|
||||
man/man1/abcde.1
|
||||
man/man1/cd-discid.1
|
||||
man/man1/cddb-tool.1
|
||||
share/examples/abcde/abcde.conf
|
||||
%%lame%%
|
||||
@dirrm share/examples/abcde
|
Loading…
Reference in New Issue
Block a user