# $OpenBSD$

COMMENT=	advanced music player

DISTNAME=	aqualung-0.9beta9.1
CATEGORIES=	audio

HOMEPAGE=	http://aqualung.factorial.hu/

MAINTAINER=	Jeremy Evans <openbsd@jeremyevans.net>

# GPL
PERMIT_PACKAGE_CDROM=   Yes
PERMIT_PACKAGE_FTP=     Yes  
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=   Yes

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=aqualung/}

LIB_DEPENDS=	gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2 \
		xml2.>=6::textproc/libxml \
		samplerate.>=1::audio/libsamplerate \
		sndfile.>=1::audio/libsndfile \
		mac::audio/mac \
		mad.>=2::audio/libmad \
		mpcdec.>=2::audio/libmpcdec \
		FLAC.>=7::audio/flac \
		mp3lame.>=0::audio/lame \
		ogg.>=5::audio/libogg \
		avcodec.>=6,avformat.>=9,avutil.>=3::graphics/ffmpeg \
		vorbis.>=3,vorbisfile.>=4,vorbisenc.>=2::audio/libvorbis \
		bz2.>=10::archivers/bzip2
		
WANTLIB=	X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama Xrandr Xrender \
		c pthread z glib-2.0 gobject-2.0 gthread-2.0 iconv intl glitz \
		pango-1.0 atk-1.0 cairo expat fontconfig freetype gmodule-2.0 \
		m ossaudio pangocairo-1.0 pangoft2-1.0 png stdc++ Xcomposite \
		Xdamage

USE_X11=	Yes
CONFIGURE_STYLE=	gnu
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS} -pthread -L ${PREFIX}/lib -L /usr/X11R6/lib" \
		CFLAGS="${CFLAGS} -DOSS_DEVICE='\"/dev/audio\"'  \
		-DPTHREAD_MIN_PRIORITY=0 -DPTHREAD_MAX_PRIORITY=31  \
		-I ${PREFIX}/include"
MAKE_ENV=	${CONFIGURE_ENV}

# alsa - not needed here
# cddb, ifp, wavpack (requires lib*) - no package
# cdda (requires libcdio) - no package
# jack - package not yet in tree
# ladspa (requires liblrdf) - no package 
# mod (requires libmodplug) - no package
# speex (requires liboggz) - no package
CONFIGURE_ARGS=	--with-flac \
		--with-lame \
		--with-lavc \
		--with-loop \
		--with-mac \
		--with-mpc \
		--with-mpeg \
		--with-ogg \
		--with-oss \
		--with-podcast \
		--with-sndfile \
		--with-src \
		--with-systray \
		--with-vorbisenc \
		--without-alsa \
		--without-cdda \
		--without-cddb \
		--without-ifp \
		--without-jack \
		--without-ladspa \
		--without-mod \
		--without-speex \
		--without-wavpack

.include <bsd.port.mk>
