# New ports collection makefile for:	rioutil
# Date Created:				9 Jul 2001
# Whom:					Christophe Boyanique <tof@raceme.org>
#

PORTNAME=	rioutil
PORTVERSION=	0.4.1
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
EXTRACT_SUFX=	.tgz
WRKSRC=		work/rio-stable

MAINTAINER=	tof@raceme.org

#LIB_DEPENDS=	usb:${PORTSDIR}/devel/libusb:install \
#		id3:${PORTSDIR}/audio/id3lib:install

LIB_DEPENDS=	id3:${PORTSDIR}/audio/id3lib:install


USE_GMAKE=	yes
HAS_CONFIGURE=	yes
GNU_CONFIGURE=	yes

# This is to find id3lib from ports:
#
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	--without-libusb

# This ports installs shared libraries:
#
INSTALLS_SHLIB=	yes

.include <bsd.port.pre.mk>

pre-fetch:
	@${ECHO_MSG} "This is beta software that will only compile if you have"
	@${ECHO_MSG} "patched your system for the Rio 600/800 USB driver."
	@${ECHO_MSG} "Please see http://rioutil.sourceforge.net for more"
	@${ECHO_MSG} "informations."

.include <bsd.port.post.mk>
