summaryrefslogtreecommitdiff
path: root/net/vls/Makefile
blob: 8a5745ba291a979a6f2c5103f9a1f4f1bad40a0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:	vls
# Date created:		3rd August 2001
# Whom:			Gleb Smirnoff <glebius@cell.sick.ru>
#
# $FreeBSD$
#

PORTNAME=	vls
PORTVERSION=	0.5.6
CATEGORIES=	net multimedia
MASTER_SITES=	http://download.videolan.org/pub/videolan/vls/${PORTVERSION}/

MAINTAINER=	dinoex@FreeBSD.org
COMMENT=	An X11 video streaming client/server solution

LIB_DEPENDS=	dvbpsi.3:${PORTSDIR}/multimedia/libdvbpsi
.if !defined(WITHOUT_DVD)
LIB_DEPENDS+=	dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \
		dvdread.3:${PORTSDIR}/multimedia/libdvdread
.endif

USE_BZIP2=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
INSTALLS_SHLIB=	yes
CFLAGS+=	-I${LOCALBASE}/inlcude

CONFIGURE_ARGS+=	--with-dvbpsi=${LOCALBASE}
.if !defined(WITHOUT_DVD)
CONFIGURE_ARGS+=	--with-dvdcss=${LOCALBASE} \
			--with-dvdread=${LOCALBASE}
PLIST_FILES+=	lib/videolan/vls/dvdreader.so
.else
CONFIGURE_ARGS+=	--disable-dvd
.endif

pre-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}/developer
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
	${CP} -pR ${WRKSRC}/doc/developer/*.* ${DOCSDIR}/developer/
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
CONFIGURE_ENV+=		VLS_LIB="-L/usr/lib -lcipher"
.endif

.if ${OSVERSION} >= 502122
BROKEN=		new gcc: an explicit specialization must be preceded by template
.endif

.include <bsd.port.post.mk>