# $Id: Portfile,v 1.3 2005/07/26 07:21:35 blb Exp $

PortSystem			1.0
name				mp3splt
version				2.1
revision			1
categories			audio
maintainers			darwinports@opendarwin.org
description			Utility for mp3 and ogg splitting without decoding
long_description \
	mp3splt is a free command-line utility that allows you to split mp3 and \
	ogg files from a begin time to an end time, without need of decoding and \
	reencoding.  It's useful to split large mp3/ogg to make smaller files or \
	to split entire albums to obtain original tracks.

platforms			darwin

homepage			http://mp3splt.sourceforge.net/
master_sites		sourceforge
distname			${name}-${version}-src
worksrcdir			${name}-${version}

checksums			md5 3c703494ee75c670c87994faf33af7d8

depends_lib			lib:libogg:libogg lib:libvorbis:libvorbis \
					lib:libmad:libmad

patchfiles			patch-ogg.c patch-splt.h

configure.env		CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args		--mandir=${prefix}/share/man

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/doc man.html \
		${destroot}${prefix}/share/doc/${name}/${name}.html
}

