mac: removed port
This commit is contained in:
parent
0e7cd8fde1
commit
62a8a30520
@ -1,35 +0,0 @@
|
|||||||
drwxr-xr-x root/root usr/
|
|
||||||
drwxr-xr-x root/root usr/bin/
|
|
||||||
-rwxr-xr-x root/root usr/bin/ape123
|
|
||||||
-rwxr-xr-x root/root usr/bin/ape2flac
|
|
||||||
-rwxr-xr-x root/root usr/bin/ape2mp3
|
|
||||||
-rwxr-xr-x root/root usr/bin/mac
|
|
||||||
drwxr-xr-x root/root usr/include/
|
|
||||||
drwxr-xr-x root/root usr/include/mac/
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APECompress.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APECompressCore.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APECompressCreate.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APEDecompress.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APEHeader.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APEInfo.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APELink.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/APETag.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/All.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/CharacterHelper.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/CircleBuffer.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/GlobalFunctions.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/ID3Genres.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/IO.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/MACLib.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/MACProgressHelper.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/MACUtils.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/NoWindows.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/SmartPtr.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/StdLibFileIO.h
|
|
||||||
-rw-r--r-- root/root usr/include/mac/config.h
|
|
||||||
drwxr-xr-x root/root usr/lib/
|
|
||||||
-rw-r--r-- root/root usr/lib/libmac.a
|
|
||||||
-rwxr-xr-x root/root usr/lib/libmac.la
|
|
||||||
lrwxrwxrwx root/root usr/lib/libmac.so -> libmac.so.2.0.0
|
|
||||||
lrwxrwxrwx root/root usr/lib/libmac.so.2 -> libmac.so.2.0.0
|
|
||||||
-rwxr-xr-x root/root usr/lib/libmac.so.2.0.0
|
|
@ -1,4 +0,0 @@
|
|||||||
e219bacd889b4f39b6528928c3456481 ape123
|
|
||||||
3ef206ffac462d89a91e726af16587a9 ape2flac
|
|
||||||
f4734d0e751f544730cf0947616c47f3 ape2mp3
|
|
||||||
74df3c96476636387ddd12255b03bebe mac-3.99-u4-b5-s7.tar.gz
|
|
22
mac/Pkgfile
22
mac/Pkgfile
@ -1,22 +0,0 @@
|
|||||||
# Description: Monkeys Audio Lossless compressor for CD audio
|
|
||||||
# URL: http://supermmx.org/linux/mac
|
|
||||||
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
||||||
# Packager: Han Boetes, han at mijncomputer dot nl
|
|
||||||
# Depends on: lame shorten shntool cuetools
|
|
||||||
|
|
||||||
name=mac
|
|
||||||
version=3.99-u4-b5-s7
|
|
||||||
release=1
|
|
||||||
source=(http://etree.org/shnutils/shntool/support/formats/ape/unix/$version/$name-$version.tar.gz \
|
|
||||||
ape2flac ape2mp3 ape123)
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd $name-$version
|
|
||||||
sed -i 's|-O3||' configure
|
|
||||||
CXXFLAGS+=" -DSHNTOOL" ./configure
|
|
||||||
make
|
|
||||||
make DESTDIR=$PKG install
|
|
||||||
install -D -m 0755 $SRC/ape2flac $PKG/usr/bin/ape2flac
|
|
||||||
install -D -m 0755 $SRC/ape2mp3 $PKG/usr/bin/ape2mp3
|
|
||||||
install -D -m 0755 $SRC/ape123 $PKG/usr/bin/ape123
|
|
||||||
}
|
|
34
mac/ape123
34
mac/ape123
@ -1,34 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# $Id$
|
|
||||||
# Copyright 2005 by Han Boetes <han@mijncomputer.nl>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person
|
|
||||||
# obtaining a copy of this software and associated documentation
|
|
||||||
# files (the "Software"), to deal in the Software without
|
|
||||||
# restriction, including without limitation the rights to use,
|
|
||||||
# copy, modify, merge, publish, distribute, sublicense, and/or
|
|
||||||
# sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following
|
|
||||||
# conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be
|
|
||||||
# included in all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
||||||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
||||||
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
if ! type -p /usr/bin/play > /dev/null 2>&1; then
|
|
||||||
echo "Install the sox port/package."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
for file in "$@"; do
|
|
||||||
mac "$file" /dev/stdout -d | play --file /dev/stdin -t wav
|
|
||||||
done
|
|
97
mac/ape2flac
97
mac/ape2flac
@ -1,97 +0,0 @@
|
|||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# $Id$
|
|
||||||
# Copyright 2005 by Han Boetes <han@mijncomputer.nl>
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person
|
|
||||||
# obtaining a copy of this software and associated documentation
|
|
||||||
# files (the "Software"), to deal in the Software without
|
|
||||||
# restriction, including without limitation the rights to use,
|
|
||||||
# copy, modify, merge, publish, distribute, sublicense, and/or
|
|
||||||
# sell copies of the Software, and to permit persons to whom the
|
|
||||||
# Software is furnished to do so, subject to the following
|
|
||||||
# conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be
|
|
||||||
# included in all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
||||||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
||||||
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
n=${0##*/}
|
|
||||||
|
|
||||||
usage()
|
|
||||||
{
|
|
||||||
cat << EOF
|
|
||||||
Usage: ${0##*/} [-wkm] <files>
|
|
||||||
-w only convert to wav files.
|
|
||||||
-k keep temporary wav files.
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
while [ $# -ne 0 ]; do
|
|
||||||
case "$1" in
|
|
||||||
-k)
|
|
||||||
keep=true
|
|
||||||
;;
|
|
||||||
-w)
|
|
||||||
wav=true
|
|
||||||
;;
|
|
||||||
-h)
|
|
||||||
usage
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
-[a-z][a-z]*)
|
|
||||||
# split concatenated single-letter options apart
|
|
||||||
FIRST="$1"
|
|
||||||
shift
|
|
||||||
set -- $(echo $FIRST | sed 's/-\(.\)\(.*\)/-\1 -\2/') "$@"
|
|
||||||
continue
|
|
||||||
;;
|
|
||||||
-*)
|
|
||||||
echo "$n: unrecognized option "\`"$1'" >&2
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Drop nice level
|
|
||||||
renice 19 $$
|
|
||||||
|
|
||||||
for i in "$@"; do
|
|
||||||
file="${i%.ape}"
|
|
||||||
herefile="$PWD/${file##*/}"
|
|
||||||
|
|
||||||
if [ "$file" = "$i" ]; then
|
|
||||||
echo "$n: Unknown filetype for $i" >&2
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
mac "$file.ape" "$herefile.wav" -d
|
|
||||||
|
|
||||||
if [ "$wav" = true ]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
flac -f "$herefile.wav"
|
|
||||||
|
|
||||||
if [ "$keep" != true ]; then
|
|
||||||
rm "$herefile.wav"
|
|
||||||
fi
|
|
||||||
done
|
|
61
mac/ape2mp3
61
mac/ape2mp3
@ -1,61 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
echo "Brian's Archive CUE/FLAC Splitter v0.1"
|
|
||||||
echo "No sanity checking in place. Be careful."
|
|
||||||
|
|
||||||
if [ $# != 2 ]
|
|
||||||
then
|
|
||||||
echo ""
|
|
||||||
echo "Usage:"
|
|
||||||
echo " $0 cue_file ape_flac_file"
|
|
||||||
echo ""
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Get the filenames
|
|
||||||
cuefile=$1
|
|
||||||
flacfile=$2
|
|
||||||
|
|
||||||
#Other variables
|
|
||||||
tracks=$(cueprint -d '%N' "$cuefile")
|
|
||||||
|
|
||||||
#Get the filenames into an array
|
|
||||||
count=1
|
|
||||||
while [ $count -le $tracks ]
|
|
||||||
do
|
|
||||||
tracknames[$count]=$(cueprint -n$count -t '%p-%T-%02n-%t' "$cuefile"|sed -e s@/@,@g)
|
|
||||||
count=`expr $count + 1`
|
|
||||||
done
|
|
||||||
|
|
||||||
#Load up the ID3 tag info into variables for later use
|
|
||||||
id3count=1
|
|
||||||
while [ $id3count -le $tracks ]
|
|
||||||
do
|
|
||||||
artist[$id3count]=$(cueprint -n$id3count -t '%p' "$cuefile")
|
|
||||||
album[$id3count]=$(cueprint -n$id3count -t '%T' "$cuefile")
|
|
||||||
tracknum[$id3count]=$(cueprint -n$id3count -t '%02n' "$cuefile")
|
|
||||||
title[$id3count]=$(cueprint -n$id3count -t '%t' "$cuefile")
|
|
||||||
echo "Artist: ${artist[$id3count]}"
|
|
||||||
echo "Album: ${album[$id3count]}"
|
|
||||||
echo "Track No: ${tracknum[$id3count]}"
|
|
||||||
echo "Song Title: ${title[$id3count]}"
|
|
||||||
id3count=$[$id3count + 1]
|
|
||||||
done
|
|
||||||
|
|
||||||
#Output general file information
|
|
||||||
cueprint -d '%P - %T\n' "$cuefile"
|
|
||||||
echo "Total number of tracks: " $tracks
|
|
||||||
|
|
||||||
#Split this bitch
|
|
||||||
cuebreakpoints "$cuefile" | shntool split -a '' -n '%02d' -o wav "$flacfile"
|
|
||||||
|
|
||||||
#Convert those waves into mp3s
|
|
||||||
convertcount=1
|
|
||||||
while [ $convertcount -le $tracks ]
|
|
||||||
do
|
|
||||||
wavenum=`printf "%02d" $convertcount`
|
|
||||||
|
|
||||||
lame --add-id3v2 --noreplaygain -b 320 --ta "${artist[$convertcount]}" --tl "${album[$convertcount]}" --tn "${tracknum[$convertcount]}" --tt "${title[$convertcount]}" "$wavenum.wav" "${tracknames[$convertcount]}.mp3"
|
|
||||||
rm "$wavenum.wav"
|
|
||||||
convertcount=$[$convertcount + 1]
|
|
||||||
|
|
||||||
done
|
|
Loading…
Reference in New Issue
Block a user