# $Id: Portfile,v 1.7 2006/03/10 14:55:11 takanori Exp $

PortSystem 1.0
name		xmms
version		1.2.10
revision	2
categories	audio
maintainers	darwinports@opendarwin.org
description	X11 MultiMedia System
homepage	http://www.xmms.org/
platforms	darwin
master_sites    ftp://ftp.xmms.org/xmms/1.2.x/ \
                http://www.xmms.org/files/1.2.x/ \
                ftp://ftp.sunet.se/pub/multimedia/xmms/1.2.x/
use_bzip2	yes
depends_lib	lib:libglib.1:glib1 lib:libgtk.1:gtk1 lib:libesd.0:esound \
			lib:libintl:gettext bin:bison:bison lib:libiconv:libiconv \
			lib:libvorbis:libvorbis lib:libmikmod:libmikmod \
			lib:libogg:libogg

checksums	md5 03a85cfc5e1877a2e1f7be4fa1d3f63c 
patchfiles	patch-xmms \
		patch-General-ir-ir.c \
		patch-Intel-noasm.diff
long_description XMMS is a multimedia audio and video player for X11.
configure.env \
			CFLAGS=-I${prefix}/include
configure.args	--disable-alsatest --with-gtk=${prefix}

# There is no oss interface on darwin/osx
platform darwin {
	configure.args-append --disable-oss
}

# Linux users might want alsa
platform linux {
	configure.args-remove --disable-alsatest
	configure.args-append --enable-alsatest
}
