# $Id: Portfile,v 1.7 2006/03/31 18:48:38 matt Exp $

PortSystem 1.0
name			easytag-devel
version			1.99.11
categories		audio
platforms		darwin
maintainers		darwinports@opendarwin.org
homepage		http://easytag.sf.net/
description		Tool for editing tags of audio files

long_description	EasyTAG is an utility for viewing and editing tags \
			for MP3, MP2, FLAC, Ogg Vorbis, MusePack and Monkey's \
			audio files and MP4/AAC. \
			It's simple and nice GTK+2 interface makes tagging easier \
			under UNIX systems.

master_sites		sourceforge:easytag
			
checksums		md5 0f05f08fde3b33c8aabfb3b18ec334fa \
			sha1 7c9a57577a1b80f10dd290198c48440fbbedcb46 \
			rmd160 c8c5ae653b209056dc437d583a18f8b8c43b8b44

use_bzip2		yes

distname		easytag-${version}

depends_lib		lib:libgtk.2:gtk2 \
			lib:libintl.3:gettext

depends_build		port:hicolor-icon-theme

configure.env		LDFLAGS="-L${prefix}/lib -L${x11prefix}/lib" \
                	CFLAGS="-I${prefix}/include" \
			CPPFLAGS="-I${prefix}/include \
		        -I${x11prefix}/include \
			-no-cpp-precomp" \

configure.args		--mandir=${prefix}/share/man \
			--infodir=${prefix}/share/info \
			--disable-flac \
			--disable-ogg \
			--disable-mp4 \
			--disable-mp3

post-destroot {		xinstall -d ${destroot}${prefix}/share/doc/${name}
			xinstall -m 644 -v -W ${worksrcpath} \
				COPYING README THANKS TODO USERS-GUIDE \
				${destroot}${prefix}/share/doc/${name}
			}

variant ogg {		configure.args-delete	--disable-ogg
			depends_lib-append	lib:libvorbis:libvorbis
			}

variant flac {		configure.args-delete	--disable-flac
			depends_lib-append	lib:libFLAC:flac
			}

variant mp4 {		configure.args-delete	--disable-mp4
			depends_lib-append	lib:libmp4v2:mpeg4ip
			depends_build-append	bin:faad:faad2
			}
			
variant mp3 {		configure.args-delete	--disable-mp3
			depends_lib-append	lib:libid3:id3lib
			}
