# $Id: Portfile 30219 2007-10-22 22:40:35Z jmpp@macports.org $

PortSystem 1.0
name             alac_decoder
version          0.1.0
categories       audio
maintainers      nomaintainer
description      basic decoder for Apple Lossless Audio Codec files
long_description \
	This is a basic decoder for Apple Lossless Audio Codec files \
	(ALAC). ALAC is a proprietary lossless audio compression scheme. \
	Apple never released any documents on the format. What I provide \
	here is a C implementation of a decoder, written from reverse \
	engineering the file format. It turns out that most of the \
	algorithms in the codec are fairly well known. ALAC uses an \
	adaptive FIR prediction algorithm and stores the error values \
	using a modified rice or golumb algorithm.
homepage         http://craz.net/programs/itunes/alac.html
platforms        darwin
master_sites     http://craz.net/programs/itunes/files/
checksums        md5 f554fc11ee41a30bc5baf15a0fd07256

worksrcdir       ${name}

use_configure    no

build.target

destroot {
	xinstall -m 555 ${worksrcpath}/alac ${destroot}${prefix}/bin
	xinstall -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 444 ${worksrcpath}/README \
		${destroot}${prefix}/share/doc/${name}
}

livecheck.check regex
livecheck.regex "<li><b>(.+)</b>"
