# New ports collection makefile for:	vlc
# Date created:		3rd August 2001
# Whom:			Brian Somers <brian@Awfulhak.org>
#
# $FreeBSD: ports/graphics/vlc/Makefile,v 1.7 2001/08/23 17:14:59 brian Exp $
#

PORTNAME=	vlc
PORTVERSION=	0.2.83
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://www.videolan.org/pub/videolan/vlc/${PORTVERSION}/ \
		ftp://ftp.Awfulhak.org/pub/vlc/ \
		http://people.FreeBSD.org/~brian/vlc/

MAINTAINER=	brian@Awfulhak.org

LIB_DEPENDS=	SDL-1.1:${PORTSDIR}/devel/sdl12

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	PATH_GTKCONFIG="${GTK_CONFIG}" \
		CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		LDFLAGS="-L${LOCALBASE}/lib"
USE_GTK=	yes
USE_GMAKE=	yes
USE_BZIP2=	yes

post-patch:
	${PERL} -pi.orig -e 's,-lpthread,${PTHREAD_LIBS},g' ${WRKSRC}/configure

.include <bsd.port.pre.mk>

.if ${XFREE86_VERSION} == 4
PLIST_SUB=	XF4=""
.else
PLIST_SUB=	XF4="@comment "
.endif

.include <bsd.port.post.mk>
