# $Id: Portfile 30238 2007-10-23 01:51:50Z jmpp@macports.org $

PortSystem 1.0
name			mpgtx
version			1.3.1
categories		multimedia
platforms		darwin
maintainers		nomaintainer
homepage		http://mpgtx.sourceforge.net/
description		MPEG audio/video/system file toolbox

long_description	The MPEG ToolboX can currently split and join MPEG-1 \
			video files and most MPEG audio files, fetch detailed \
			informations from MPEG-1 and MPEG-2 streams, demultiplex \
			MPEG-1 and MPEG-2 files (System layer, program layer and \
			Transport layer), add, remove and edit ID3 tags from MP3 \
			files and rename MP3 files according to their ID3 tags. \
			DivX is not yet supported, neither MPEG-4 and splitting \
			and joining MPEG-2 video files is experimental (read 'will \
			work only in your wildest dreams').

master_sites		sourceforge

checksums		md5 d628060aa04ad3b40a175bf35f5167cf

configure.args		--parachute \
			--manprefix=${prefix}/share

post-configure {	reinplace "s|${prefix}|${destroot}${prefix}|g" \
			${worksrcpath}/Makefile
			reinplace "s|/usr/local|${destroot}${prefix}/share|g" \
			${worksrcpath}/Makefile
			reinplace "s|cpflags=d|cpflags=R|" \
			${worksrcpath}/Makefile
			}

build.target		{}

post-destroot {		file mkdir ${destroot}${prefix}/share/doc/${name}
			file copy ${worksrcpath}/AUTHORS ${worksrcpath}/README \
				${destroot}${prefix}/share/doc/${name}
			}

