# New ports collection makefile for:    xine_d5d_plugin
# Date created:         24 Jan 2002
# Whom:                 MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD: ports/graphics/xine_d5d_plugin/Makefile,v 1.12 2003/03/06 04:45:49 lioux Exp $
#

PORTNAME=	xine_d5d_plugin
PORTVERSION=	0.2.7
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://debianlinux.net/ \
		http://hermes.homelinux.net/xine/
DISTNAME=	xine-d5d-${PORTVERSION}
EXTRACT_SUFX=	.tgz

FORBIDDEN=	Incompatible with the current version of xine

MAINTAINER=	nobutaka@FreeBSD.org
COMMENT=	A dvd input plugin for xine with menu support

LIB_DEPENDS=	xine.4:${PORTSDIR}/multimedia/libxine \
		dvdread.3:${PORTSDIR}/multimedia/libdvdread

USE_AUTOMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
		THREAD_LIBS="${PTHREAD_LIBS}"
USE_X_PREFIX=	yes
INSTALLS_SHLIB=	yes

post-patch:
	@${PERL} -pi -e \
		's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \
		 s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g ; \
		 s|-L/usr/local/lib||g ; \
		 s|-I/usr/local/include||g' ${WRKSRC}/configure

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
