2003-06-03 05:02:19 +00:00
|
|
|
# New ports collection makefile for: vls
|
|
|
|
# Date created: 3rd August 2001
|
|
|
|
# Whom: Gleb Smirnoff <glebius@cell.sick.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vls
|
2004-03-31 16:44:45 +00:00
|
|
|
PORTVERSION= 0.5.6
|
2005-07-06 17:52:14 +00:00
|
|
|
PORTREVISION= 1
|
2004-10-26 18:34:40 +00:00
|
|
|
CATEGORIES= net ipv6 multimedia
|
2004-01-03 12:27:10 +00:00
|
|
|
MASTER_SITES= http://download.videolan.org/pub/videolan/vls/${PORTVERSION}/
|
2003-06-03 05:02:19 +00:00
|
|
|
|
2005-05-14 17:01:21 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-10-14 06:55:28 +00:00
|
|
|
COMMENT= Broadcasts MPEG(1/2/4, PS/TS) video streams
|
2003-06-03 05:02:19 +00:00
|
|
|
|
2006-07-14 04:54:46 +00:00
|
|
|
BROKEN= fails to install
|
|
|
|
|
2005-07-06 17:52:14 +00:00
|
|
|
LIB_DEPENDS= dvbpsi.4:${PORTSDIR}/multimedia/libdvbpsi
|
2003-12-28 05:30:05 +00:00
|
|
|
.if !defined(WITHOUT_DVD)
|
|
|
|
LIB_DEPENDS+= dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \
|
2003-06-03 05:02:19 +00:00
|
|
|
dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
2003-12-28 05:30:05 +00:00
|
|
|
.endif
|
2003-06-03 05:02:19 +00:00
|
|
|
|
2004-03-31 16:44:45 +00:00
|
|
|
USE_BZIP2= yes
|
2003-12-28 05:30:05 +00:00
|
|
|
USE_GMAKE= yes
|
2004-10-26 18:34:40 +00:00
|
|
|
USE_RC_SUBR= yes
|
2003-06-03 05:02:19 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
2003-12-28 05:30:05 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/inlcude
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-dvbpsi=${LOCALBASE}
|
|
|
|
.if !defined(WITHOUT_DVD)
|
|
|
|
CONFIGURE_ARGS+= --with-dvdcss=${LOCALBASE} \
|
|
|
|
--with-dvdread=${LOCALBASE}
|
2004-03-31 16:44:45 +00:00
|
|
|
PLIST_FILES+= lib/videolan/vls/dvdreader.so
|
2003-12-28 05:30:05 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-dvd
|
|
|
|
.endif
|
|
|
|
|
2004-10-26 18:34:40 +00:00
|
|
|
post-patch:
|
|
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g; \
|
|
|
|
s|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|
|
|
${FILESDIR}/vlsd.sh.in > ${WRKDIR}/vlsd.sh
|
|
|
|
|
2003-12-28 05:30:05 +00:00
|
|
|
pre-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2004-03-31 16:44:45 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/developer
|
2003-12-28 05:30:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
|
2004-03-31 16:44:45 +00:00
|
|
|
${CP} -pR ${WRKSRC}/doc/developer/*.* ${DOCSDIR}/developer/
|
2003-12-28 05:30:05 +00:00
|
|
|
.endif
|
|
|
|
|
2004-10-26 18:34:40 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/vlsd.sh ${PREFIX}/etc/rc.d
|
|
|
|
|
2003-12-28 05:30:05 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
CONFIGURE_ENV+= VLS_LIB="-L/usr/lib -lcipher"
|
|
|
|
.endif
|
2003-06-03 05:02:19 +00:00
|
|
|
|
2004-07-20 05:41:42 +00:00
|
|
|
.if ${OSVERSION} >= 502122
|
2004-10-08 18:41:38 +00:00
|
|
|
# allow nonconforming code to compile
|
|
|
|
CFLAGS+= -fpermissive
|
2004-07-20 05:41:42 +00:00
|
|
|
.endif
|
|
|
|
|
2003-12-28 05:30:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|