# $OpenBSD: Makefile,v 1.3 2004/11/24 00:11:04 espie Exp $

COMMENT=	"library that handles the decoding of sound file formats"
DISTNAME=	SDL_sound-1.0.1
PKGNAME=	${DISTNAME:L:S/_/-/}p0
CATEGORIES=	devel audio
MASTER_SITES=	${HOMEPAGE}downloads/

HOMEPAGE=	http://icculus.org/SDL_sound/

MAINTAINER=	Jolan Luff <jolan@openbsd.org>

# LGPL
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
WANTLIB=		X11 Xext c m ogg pthread usbhid z

LIB_DEPENDS+=	physfs.0.0::devel/physfs \
		SDL.2.0::devel/sdl \
		smpeg.1.3::devel/smpeg \
		mikmod.2.4::audio/libmikmod \
		vorbis.2.0,vorbisenc.2.0,vorbisfile.3.0::audio/libvorbis \
		FLAC.5.2::audio/flac \
		speex.2.2::audio/speex

CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--disable-modplug
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.mk>
