aboutsummaryrefslogtreecommitdiffstats
path: root/audio/abcde
diff options
context:
space:
mode:
authorjim <jim@FreeBSD.org>2002-08-07 04:58:38 +0800
committerjim <jim@FreeBSD.org>2002-08-07 04:58:38 +0800
commit7045d5c749284591754a9e01f635d265662ab6cb (patch)
tree9d8c0e3c7f332466c37a3892c06d9fed9b49908d /audio/abcde
parent0a7aacda0e1b42ab3ac79e33014edad133667922 (diff)
downloadfreebsd-ports-gnome-7045d5c749284591754a9e01f635d265662ab6cb.tar.gz
freebsd-ports-gnome-7045d5c749284591754a9e01f635d265662ab6cb.tar.zst
freebsd-ports-gnome-7045d5c749284591754a9e01f635d265662ab6cb.zip
abcde is "A Better CD Encoder". It rips tracks from a CD, encodes them
in ogg vorbis or mp3 format, and tags them. PR: 41140 Submitted by: Munish Chopra <mchopra@engmail.uwaterloo.ca>
Diffstat (limited to 'audio/abcde')
-rw-r--r--audio/abcde/Makefile47
-rw-r--r--audio/abcde/distinfo1
-rw-r--r--audio/abcde/files/patch-aa116
-rw-r--r--audio/abcde/files/patch-ab51
-rw-r--r--audio/abcde/pkg-comment1
-rw-r--r--audio/abcde/pkg-descr15
-rw-r--r--audio/abcde/pkg-plist5
7 files changed, 236 insertions, 0 deletions
diff --git a/audio/abcde/Makefile b/audio/abcde/Makefile
new file mode 100644
index 000000000000..5457bb35d79c
--- /dev/null
+++ b/audio/abcde/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: abcde
+# Date created: July 29, 2002
+# Whom: Munish Chopra <mchopra@engmail.uwaterloo.ca>
+#
+# $FreeBSD$
+#
+
+PORTNAME= abcde
+PORTVERSION= 2.0.3
+CATEGORIES= audio
+MASTER_SITES= http://frantica.lly.org/~rcw/abcde/
+DISTNAME= abcde_2.0.3.orig
+
+MAINTAINER= mchopra@engmail.uwaterloo.ca
+
+RUN_DEPENDS= cd-discid:${PORTSDIR}/audio/cd-discid \
+ dagrab:${PORTSDIR}/audio/dagrab \
+ id3v2:${PORTSDIR}/audio/id3v2 \
+ oggenc:${PORTSDIR}/audio/vorbis-tools \
+
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+.if defined(WITH_CDDA2WAV)
+RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools
+.endif
+
+pre-fetch:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "You may use the following build option:"
+ @${ECHO_MSG} "WITH_CDDA2WAV=yes enable support for cdda2wav"
+ @${ECHO_MSG} ""
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/cddb-tool ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/abcde.conf ${PREFIX}/etc
+ ${INSTALL_MAN} ${WRKSRC}/abcde.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/cddb-tool.1 ${PREFIX}/man/man1
+
+post-install:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Please copy ${PREFIX}/etc/abcde.conf to ~/.abcde.conf"
+ @${ECHO_MSG} "and edit as necessary. Sane defaults have been set."
+ @${ECHO_MSG} ""
+
+.include <bsd.port.mk>
diff --git a/audio/abcde/distinfo b/audio/abcde/distinfo
new file mode 100644
index 000000000000..e6694f3d3e1c
--- /dev/null
+++ b/audio/abcde/distinfo
@@ -0,0 +1 @@
+MD5 (abcde_2.0.3.orig.tar.gz) = e430e3d2fb87729d6452d495eabd7a7a
diff --git a/audio/abcde/files/patch-aa b/audio/abcde/files/patch-aa
new file mode 100644
index 000000000000..bdd259054a69
--- /dev/null
+++ b/audio/abcde/files/patch-aa
@@ -0,0 +1,116 @@
+--- abcde.orig Mon Aug 5 16:56:33 2002
++++ abcde Mon Aug 5 16:53:52 2002
+@@ -534,7 +534,7 @@
+ ;;
+ 12|13|14)
+ # no match found in database,
+- # wget error, or user requested not to use CDDB
++ # fetch error, or user requested not to use CDDB
+ # Make up an error code (503) that abcde
+ # will recognize in do_cddbread
+ # and compensate by making a template
+@@ -574,7 +574,7 @@
+ 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 $(jot $TRACKS)
+ do
+ echo $TRACK: "$(grep ^TTITLE$(expr $TRACK - 1)= "$ABCDETEMPDIR/cddbread.1" | cut -f2- -d= | tr -d \\r\\n)" >> "$ABCDETEMPDIR/cddbchoices"
+ done
+@@ -590,7 +590,7 @@
+ $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 $(jot $TRACKS)
+ do
+ echo $TRACK: "$(grep ^TTITLE$(expr $TRACK - 1)= "$ABCDETEMPDIR/cddbread.1" | cut -f2- -d= | tr -d \\r\\n)" >> "$ABCDETEMPDIR/cddbchoices"
+ done
+@@ -620,7 +620,7 @@
+ fi
+ # List out disc title/author and contents
+ echo \#$X: ---- "$DISCINFO" ---- >> "$ABCDETEMPDIR/cddbchoices"
+- for TRACK in $(seq 1 $TRACKS)
++ for TRACK in $(jot $TRACKS)
+ do
+ echo $TRACK: "$(grep ^TTITLE$(expr $TRACK - 1)= "$ABCDETEMPDIR/cddbread.$X" | cut -f2- -d= | tr -d \\r\\n)" >> "$ABCDETEMPDIR/cddbchoices"
+ done
+@@ -866,7 +866,8 @@
+ case "$CDROMREADERSYNTAX" in
+ cdparanoia) nice $READNICE $CDROMREADER -d $CDROM $UTRACKNUM "$WAVDATA" >&2 ;;
+ cdda2wav) nice $READNICE $CDROMREADER -H -D $CDROM -t $UTRACKNUM "$WAVDATA" >&2 ;;
+- debug) nice $READNICE $CDROMREADER -d $CDROM -w $UTRACKNUM-[:1] "$WAVDATA" >&2 ;;
++ dagrab) nice $READNICE $CDROMREADER -d $CDROM -f $WAVDATA -v $UTRACKNUM >&2 ;;
++ debug) nice $READNICE $CDROMREADER -d $CDROM -w $UTRACKNUM-[:1] "$WAVDATA" >&2 ;;
+ esac
+ RETURN=$?
+ if [ "$RETURN" != "0" ]; then
+@@ -886,7 +887,7 @@
+ CDDBSUBMIT=freedb-submit@freedb.org
+ HELLOINFO="$(whoami)@$(hostname)"
+ INTERACTIVE=y
+-CDROMREADERSYNTAX=cdparanoia
++CDROMREADERSYNTAX=dagrab
+ OUTPUTTYPE=ogg
+ ENCODERSYNTAX=default
+ OUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.$OUTPUTTYPE'
+@@ -913,7 +914,8 @@
+ ID3V2=id3v2
+ CDPARANOIA=cdparanoia
+ CDDA2WAV=cdda2wav
+-WGET=wget
++DAGRAB=dagrab
++FETCH=fetch
+ CDDISCID=cd-discid
+ CDDBTOOL=cddb-tool
+ EJECT=eject
+@@ -933,7 +935,8 @@
+ ID3V2OPTS=
+ CDPARANOIAOPTS=
+ CDDA2WAVOPTS=
+-WGETOPTS=
++DAGRABOPTS=
++FETCHOPTS=
+ CDDBTOOLOPTS=
+ EJECTOPTS=
+ DISTMP3OPTS=
+@@ -1010,7 +1013,7 @@
+ if [ "$RSTART" = "$REND" ]; then
+ NEWTRACKS="$RSTART"
+ else
+- NEWTRACKS=$(seq -s ' ' $RSTART $REND)
++ NEWTRACKS=$(jot -s ' ' $(($REND - $RSTART + 1)) $RSTART $REND``)
+ fi
+ TRACKQUEUE=$(echo "$TRACKQUEUE" "$NEWTRACKS")
+
+@@ -1027,6 +1030,9 @@
+ CDROMREADER="$CDDA2WAV"
+ CDROMREADEROPTS="$CDDA2WAVOPTS"
+ ;;
++ dagrab)
++ CDROMREADER="$DAGRAB"
++ CDROMREADEROPTS="$DAGRABOPTS"
+ esac
+
+ # If nothing has been specified, use oggenc for oggs and lame for mp3s
+@@ -1100,8 +1106,8 @@
+ if [ "$OUTPUTTYPE" = "ogg" ]; then NEEDCOMMENTER=y; fi
+
+ # Make sure a buncha things exist
+-for X in $CDROMREADER $CDDISCID ${NEEDTAGGER+$TAGGER} $ENCODER $WGET \
+- ${NEEDDISTMP3+$DISTMP3} ${NEEDCOMMENTER+$VORBISCOMMENT} seq
++for X in $CDROMREADER $CDDISCID ${NEEDTAGGER+$TAGGER} $ENCODER $FETCH \
++ ${NEEDDISTMP3+$DISTMP3} ${NEEDCOMMENTER+$VORBISCOMMENT} jot
+ do
+ # Cut off the command-line options we just added in
+ X=$(echo $X | cut -d' ' -f2)
+@@ -1191,7 +1197,7 @@
+ # 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 $(jot "$MAXPROCS")
+ do
+ ENCODELOCATIONS="$ENCODELOCATIONS %local$NUM%"
+ done
diff --git a/audio/abcde/files/patch-ab b/audio/abcde/files/patch-ab
new file mode 100644
index 000000000000..043c3cd29d6d
--- /dev/null
+++ b/audio/abcde/files/patch-ab
@@ -0,0 +1,51 @@
+--- abcde.conf.orig Mon Aug 5 16:38:21 2002
++++ abcde.conf Mon Aug 5 16:44:55 2002
+@@ -27,7 +27,7 @@
+
+ # CD reader program to use - currently recognized options are 'cdparanoia'
+ # and 'cdda2wav'.
+-#CDROMREADERSYNTAX=cdparanoia
++CDROMREADERSYNTAX=dagrab
+
+ # Specify 'nice'ness of the encoder and of the CD reader.
+ # This is a relative 'nice'ness (that is, if the parent process is at a
+@@ -51,7 +51,7 @@
+ #ID3V2=id3v2
+ #CDPARANOIA=cdparanoia
+ #CDDA2WAV=cdda2wav
+-#WGET=wget
++#FETCH=fetch
+ #CDDISCID=cd-discid
+ #CDDBTOOL=cddb-tool
+ #EJECT=eject
+@@ -71,7 +71,7 @@
+ #ID3V2OPTS=
+ #CDPARANOIAOPTS=
+ #CDDA2WAVOPTS=
+-#WGETOPTS=
++#FETCHOPTS=
+ #CDDBTOOLOPTS=
+ #EJECTOPTS=
+ #DISTMP3OPTS=
+@@ -96,7 +96,7 @@
+ #NOCDDBQUERY=n
+
+ # CD device you want to read from
+-#CDROM=/dev/cdrom
++#CDROM=/dev/acd0c
+
+ # If you'd like to make a default location that overrides the current
+ # directory for putting mp3's, uncomment this.
+@@ -115,10 +115,10 @@
+ # 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}-${ALBUMFILE}/${ARTISTFILE}-${TRACKNUM}-${TRACKFILE}.${OUTPUTTYPE}'
+
+ # Like OUTPUTFORMAT but for Various Artists discs.
+-#VAOUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.${OUTPUTTYPE}'
++#VAOUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}/${ARTISTFILE}-${TRACKNUM}-${TRACKFILE}.${OUTPUTTYPE}'
+
+ # Define how many encoders to run at once. This makes for huge speedups
+ # on SMP systems. Defaults to 1. Equivalent to -j.
diff --git a/audio/abcde/pkg-comment b/audio/abcde/pkg-comment
new file mode 100644
index 000000000000..dc3c07e827c0
--- /dev/null
+++ b/audio/abcde/pkg-comment
@@ -0,0 +1 @@
+Front-end sh script to encode CDs in ogg or mp3 format
diff --git a/audio/abcde/pkg-descr b/audio/abcde/pkg-descr
new file mode 100644
index 000000000000..2407bd9a559c
--- /dev/null
+++ b/audio/abcde/pkg-descr
@@ -0,0 +1,15 @@
+abcde (A Better CD Encoder) is a frontend sh script to rip tracks from
+a CD, encode them in ogg vorbis or mp3 format, and tag them.
+
+Rippers supported: cdparanoia (not on FreeBSD), cdda2wav
+Encoders supported: oggenc, vorbize, lame, gogo, bladeenc,
+ mp3enc, xingmp3enc, l3enc
+ID3 taggers supported: id3, id3v2
+Other: vorbiscomment, distmp3
+
+Many other useful features are supported.
+
+WWW: http://lly.org/~rcw/abcde/page
+
+- Munish Chopra
+<mchopra@engmail.uwaterloo.ca>
diff --git a/audio/abcde/pkg-plist b/audio/abcde/pkg-plist
new file mode 100644
index 000000000000..de48ca1d5fd1
--- /dev/null
+++ b/audio/abcde/pkg-plist
@@ -0,0 +1,5 @@
+bin/abcde
+bin/cddb-tool
+etc/abcde.conf
+man/man1/abcde.1
+man/man1/cddb-tool.1