# $Id: Portfile,v 1.2 2004/10/28 18:44:06 toby Exp $

PortSystem 1.0
name             mp3cue
version          0.3.7.1
revision         1
categories       audio
maintainers      toby@opendarwin.org
description      MP3 cue file parser
long_description \
	mp3cue is a program that parses an input CUE \
	file describing a multitrack MP3 and cuts the \
	input MP3 into multiple MP3 tracks according \
	to the description in the CUE file.
homepage         http://www.bl0rg.net/software/poc/
platforms        darwin

dist_subdir      poc
master_sites     ${homepage}
distname         poc-${version}
checksums        md5 d96ed857d3a9e075210653c434d655d1

# Need a newish version of bison.
depends_build    bin:XXX:bison

patch {
	reinplace "s|YACC=bison|YACC=${prefix}/bin/bison|" \
		${worksrcpath}/Makefile
}

configure        {}

build.target     mp3cue

destroot {
	file mkdir ${destroot}${prefix}/share/doc/mp3cue
	xinstall -m 444 ${worksrcpath}/README.mp3cue \
		${destroot}${prefix}/share/doc/mp3cue

	xinstall -m 555 ${worksrcpath}/mp3cue ${destroot}${prefix}/bin
}
