# $Id: Portfile 61105 2009-12-02 02:43:24Z ryandesign@macports.org $

PortSystem 1.0

name			id3v2
version			0.1.11
revision		1
categories		audio
maintainers		nordist.net:brent
description		ID3v2 editing tool
long_description A command line editor for ID3v2 tags, based on id3lib. \
				Written by Myers Carpenter.
homepage		http://id3v2.sourceforge.net/
platforms		darwin
master_sites	sourceforge
checksums		md5 68afc3827cf01501dfb22949f901f1d8
depends_lib		port:id3lib

universal_variant no

patchfiles		patch-Makefile.diff
post-patch {
	reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/Makefile"	
}

use_configure	no

build.env		CXX=${configure.cxx}

destroot {
	xinstall -m 755 ${worksrcpath}/id3v2 ${destroot}/${prefix}/bin/
	xinstall -m 644 ${worksrcpath}/id3v2.1 ${destroot}/${prefix}/share/man/man1/
}
