diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2003-03-31 16:38:42 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2003-03-31 16:38:42 +0000 |
commit | 217bc49e169ed200b5c0435e1744178c6fff86f3 (patch) | |
tree | 7304b5ea74479d2bb6bb71746180843492b1cd07 /audio | |
parent | a15c08968a1a2e3b4386edf107cc129eef06f78c (diff) | |
download | ports-217bc49e169ed200b5c0435e1744178c6fff86f3.tar.gz ports-217bc49e169ed200b5c0435e1744178c6fff86f3.zip |
Notes
Diffstat (limited to 'audio')
-rw-r--r-- | audio/abcde/Makefile | 14 | ||||
-rw-r--r-- | audio/abcde/files/patch-aa | 29 |
2 files changed, 30 insertions, 13 deletions
diff --git a/audio/abcde/Makefile b/audio/abcde/Makefile index 0e8e5b70751e..f2d595a0101c 100644 --- a/audio/abcde/Makefile +++ b/audio/abcde/Makefile @@ -7,7 +7,7 @@ PORTNAME= abcde PORTVERSION= 2.0.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= audio MASTER_SITES= http://frantica.lly.org/~rcw/abcde/ DISTNAME= abcde_2.0.3.orig @@ -36,6 +36,13 @@ RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab DAGRAB_MSG= "Define WITH_DAGRAB to enable support for dagrab." .endif +.if defined(WITH_EJECT) +RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject +.else +EJECT_MSG= "Define WITH_EJECT to enable auto-eject support." +.endif + + pre-fetch: .if defined(DAGRAB_MSG) @${ECHO_MSG} ${DAGRAB_MSG} @@ -45,6 +52,11 @@ pre-fetch: @${ECHO_MSG} ${CDDA2WAV_MSG} @${ECHO_MSG} "" .endif +.if defined(EJECT_MSG) + @${ECHO_MSG} ${EJECT_MSG} + @${ECHO_MSG} "" +.endif + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/abcde ${PREFIX}/bin diff --git a/audio/abcde/files/patch-aa b/audio/abcde/files/patch-aa index bdd259054a69..d0190b08d2ea 100644 --- a/audio/abcde/files/patch-aa +++ b/audio/abcde/files/patch-aa @@ -1,5 +1,5 @@ ---- abcde.orig Mon Aug 5 16:56:33 2002 -+++ abcde Mon Aug 5 16:53:52 2002 +--- abcde.orig Mon Jan 28 00:44:02 2002 ++++ abcde Tue Feb 11 23:08:44 2003 @@ -534,7 +534,7 @@ ;; 12|13|14) @@ -46,15 +46,6 @@ 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 @@ -105,7 +96,21 @@ do # Cut off the command-line options we just added in X=$(echo $X | cut -d' ' -f2) -@@ -1191,7 +1197,7 @@ +@@ -1184,14 +1190,20 @@ + # We are now finished with the cdrom - it can be safely ejected. Note that + # abcde will not have completed yet. + if [ "$EJECTCD" = "y" ]; then +- $EJECT $EJECTOPTS $CDROM ++ # FreeBSD eject uses the EJECT environment variable to name the CDROM ++ # but in this script EJECT is in the envionment and names the program ++ eject=$EJECT ++ unset EJECT ++ # The FreeBSD eject needs "adc0" not "/dev/adc0c" ++ cd="$(echo $CDROM | sed -e 's=.*/==;s=[a-h]$==;')" ++ $eject $EJECTOPTS $cd + fi + ) | ( + # Do the encoding, including parallelization of remote encoding # Figure out where each track is going to be encoded ENCODELOCATIONS="$(echo $REMOTEHOSTS | tr , ' ')" if [ "$MAXPROCS" != "0" ]; then |