# New ports collection makefile for:	libopendaap
# Date created:		2004-03-10
# Whom:			Michael Johnson <ahze@ahze.net>
#
# $FreeBSD: ports/devel/libopendaap/Makefile,v 1.15 2005/02/09 07:21:35 ahze Exp $
#

PORTNAME=	libopendaap
PORTVERSION=	0.3.0
PORTREVISION=	1
CATEGORIES=	devel net
MASTER_SITES=	http://craz.net/programs/itunes/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C lib used to connect to iTunes(R) music shares

USE_BZIP2=	yes
USE_REINPLACE=	yes
USE_GNOME=	gnomehack gnometarget pkgconfig
USE_INC_LIBTOOL_VER=15
USE_GCC=	3.4
MAN3=		libopendaap.3

CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS}"

INSTALLS_SHLIB=	yes

pre-configure:
# Broken libtool fix
	@cd ${WRKSRC} && \
		${LIBTOOLIZE} --force

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
		${WRKSRC}/Makefile.am \
		${WRKSRC}/Makefile.in \
		${WRKSRC}/opendaap.pc.in

.include <bsd.port.mk>
