Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name mp3cue
version 0.4.1
categories audio
platforms darwin
maintainers nomaintainer@macports.org pmq@macports.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 https://www.bl0rg.net/software/poc http://opendarwin.org/~pmq/ports
master_sites ${homepage}
checksums sha1 b2d210886b04544a33ed863927b8eadcf706e186 \
rmd160 f7981920993742aeed20aa6000dfd53c4b9f8ffc
worksrcdir poc-${version}

depends_build port:bison port:libid3tag

patchfiles patch-fec-pkt.c
post-patch {
reinplace "s|YACC=bison|YACC=${prefix}/bin/bison|" ${worksrcpath}/Makefile

reinplace "s|#CFLAGS += -DWITH_ID3TAG|CFLAGS += -DWITH_ID3TAG|" \
${worksrcpath}/Makefile
reinplace "s|#LDFLAGS += -lid3tag|LDFLAGS += -lid3tag|" \
${worksrcpath}/Makefile

reinplace "s|#CFLAGS += -I/sw/include|CFLAGS += -I${prefix}/include|" \
${worksrcpath}/Makefile
reinplace "s|#LDFLAGS += -L/sw/lib|LDFLAGS += -L${prefix}/lib|" \
${worksrcpath}/Makefile

reinplace "s|#CFLAGS+=-DWITH_IPV6|CFLAGS+=-DWITH_IPV6|" \
${worksrcpath}/Makefile

reinplace "s|PREFIX:= /usr/local|PREFIX:= ${prefix}|" \
${worksrcpath}/Makefile
reinplace "s| -g root -o root||" \
${worksrcpath}/Makefile
}

use_configure no

files