# New ports collection makefile for:	libcddb
# Date created:		Mon Mar  1 00:48:58 EST 2004
# Whom:			Michael Johnson <ahze@ahze.net>
#
# $FreeBSD: ports/audio/libcddb/Makefile,v 1.12 2005/07/24 03:34:47 ahze Exp $

PORTNAME=	libcddb
PORTVERSION=	1.2.0
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	ahze@FreeBSD.org
COMMENT=	A library to access data on a CDDB server

USE_BZIP2=	yes
USE_LIBTOOL_VER=	15
USE_GNOME=	gnometarget gnomehack pkgconfig
INSTALLS_SHLIB=	yes
CONFIGURE_ARGS=	--without-cdio
CONFIGURE_ENV=	CPPFLAGS="-DICONV_CONST=\"const\""

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
EXTRA_PATCHES+=	${PATCHDIR}/cddb.h-systypes-patch \
		${PATCHDIR}/cddb_ni.h-systypes-patch
.endif

.include <bsd.port.post.mk>
