ports/52005: new port: VideoLAN server
Gleb Smirnoff
glebius at cell.sick.ru
Fri May 9 21:50:09 UTC 2003
>Number: 52005
>Category: ports
>Synopsis: new port: VideoLAN server
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri May 09 14:50:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Gleb Smirnoff
>Release: FreeBSD 4.8-PRERELEASE i386
>Organization:
Moscow State University
>Environment:
System: FreeBSD cell.sick.ru 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #10: Fri Feb 21 22:03:32 MSK 2003 root at cell.sick.ru:/usr/obj/usr/src/sys/NUCLEUS i386
>Description:
This is port for VideoLAN server for streaming video via IP unicast or multicast
from different sources such as DVD, DVB or local file.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# vls
# vls/files
# vls/files/patch-configure
# vls/Makefile
# vls/distinfo
# vls/pkg-descr
# vls/pkg-plist
#
echo c - vls
mkdir -p vls > /dev/null 2>&1
echo c - vls/files
mkdir -p vls/files > /dev/null 2>&1
echo x - vls/files/patch-configure
sed 's/^X//' >vls/files/patch-configure << 'END-of-vls/files/patch-configure'
X--- configure.in Tue Mar 11 23:24:08 2003
X+++ /tmp/vls/configure.in Thu May 8 20:24:08 2003
X@@ -309,8 +309,17 @@
X dnl
X AC_ARG_ENABLE(dvd,
X AC_HELP_STRING(--disable-dvd, DVD support (default enabled)))
X+AC_ARG_WITH(dvdread,
X+AC_HELP_STRING(--with-dvdread=[PATH], path to libdvdread))
X if test x$enable_dvd != xno
X then
X+ if test "x$with_dvdread" != x
X+ then
X+ test_CFLAGS="-I${with_dvdread}/include"
X+ fi
X+ save_CPPFLAGS=$CPPFLAGS
X+ save_CFLAGS=$CFLAGS
X+ CPPFLAGS="$save_CPPFLAGS $test_CFLAGS $DVBINPUT_CCFLAGS"
X AC_CHECK_HEADER(dvdread/dvd_reader.h,
X HAVE_LIBDVDREAD=1, HAVE_LIBDVDREAD=0)
X if test ${HAVE_LIBDVDREAD} = 1
X@@ -318,16 +327,17 @@
X if test ${SYS} != mingw32
X then
X PLUGINS="${PLUGINS} dvdreader"
X- DVDREADER_LIB="${DVDREADER_LIB} -ldvdread"
X+ DVDREADER_LIB="${DVDREADER_LIB} -ldvdread -L${with_dvdread}/lib"
X else
X BUILTINS="${BUILTINS} dvdreader"
X- DVDREADER_LIB="${DVDREADER_LIB} -ldvdread -ldvdcss"
X+ DVDREADER_LIB="${DVDREADER_LIB} -ldvdread -ldvdcss -L${with_dvdread}/lib"
X fi
X else
X AC_MSG_ERROR([The development package for libdvdread is not installed.
X Please install it and try again. Alternatively you can also configure with
X --disable-dvd.])
X fi
X+ CPPFLAGS="$save_CPPFLAGS"
X fi
X
X dnl
X@@ -343,7 +353,7 @@
X AC_MSG_CHECKING(for libdvb headers in ${with_libdvb})
X if test "x$with_libdvb" != x
X then
X- test_CFLAGS="-I${with_libdvb}"
X+ test_CFLAGS="-I${with_libdvb}/include"
X fi
X save_CPPFLAGS=$CPPFLAGS
X CPPFLAGS="$save_CPPFLAGS $test_CFLAGS $DVBINPUT_CCFLAGS"
X@@ -355,11 +365,11 @@
X CPPFLAGS="$save_CPPFLAGS"
X
X dnl Test for the lib existence
X- if test -f "${with_libdvb}/libdvb.a"
X+ if test -f "${with_libdvb}/lib/libdvb.a"
X then
X DVBINPUT_LIB="${DVBINPUT_LIB} -ldvb"
X- DVBINPUT_DCFLAGS="${DVBINPUT_DCFLAGS} -I${with_libdvb}"
X- DVBINPUT_LCFLAGS="${DVBINPUT_LCFLAGS} -L${with_libdvb}"
X+ DVBINPUT_DCFLAGS="${DVBINPUT_DCFLAGS} -I${with_libdvb}/include"
X+ DVBINPUT_LCFLAGS="${DVBINPUT_LCFLAGS} -L${with_libdvb}/lib"
X PLUGINS="${PLUGINS} dvbinput dvbreader"
X else
X AC_MSG_ERROR([cannot find ${with_libdvb}/libdvb.a, make sure you compiled libdvb in ${with_libdvb}])
X@@ -422,7 +432,7 @@
X save_CPPFLAGS=$CPPFLAGS
X CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
X AC_CHECK_HEADERS([dvbpsi/dvbpsi.h],[
X- VLS_LIB="${VLS_LIB} -ldvbpsi"
X+ VLS_LIB="${VLS_LIB} -ldvbpsi -L${with_dvbpsi}/lib"
X CCFLAGS="${CCFLAGS} ${test_CFLAGS}"
X DCFLAGS="${DCFLAGS} ${test_CFLAGS}"
X ],[
X--- configure Tue Mar 11 23:24:08 2003
X+++ /tmp/vls/configure Thu May 8 20:24:12 2003
X@@ -862,6 +862,7 @@
X Optional Packages:
X --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
X --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
X+ --with-dvdread=PATH path to libdvdread
X --with-libdvb=PATH path to libdvb
X --with-dvbpsi=PATH libdvbpsi headers and libraries
X --with-dvbpsi-tree=PATH libdvbpsi tree for static linking
X@@ -7096,8 +7097,21 @@
X enableval="$enable_dvd"
X
X fi;
X+
X+# Check whether --with-dvdread or --without-dvdread was given.
X+if test "${with_dvdread+set}" = set; then
X+ withval="$with_dvdread"
X+
X+fi;
X if test x$enable_dvd != xno
X then
X+ if test "x$with_dvdread" != x
X+ then
X+ test_CFLAGS="-I${with_dvdread}/include"
X+ fi
X+ save_CPPFLAGS=$CPPFLAGS
X+ save_CFLAGS=$CFLAGS
X+ CPPFLAGS="$save_CPPFLAGS $test_CFLAGS $DVBINPUT_CCFLAGS"
X if test "${ac_cv_header_dvdread_dvd_reader_h+set}" = set; then
X echo "$as_me:$LINENO: checking for dvdread/dvd_reader.h" >&5
X echo $ECHO_N "checking for dvdread/dvd_reader.h... $ECHO_C" >&6
X@@ -7239,10 +7253,10 @@
X if test ${SYS} != mingw32
X then
X PLUGINS="${PLUGINS} dvdreader"
X- DVDREADER_LIB="${DVDREADER_LIB} -ldvdread"
X+ DVDREADER_LIB="${DVDREADER_LIB} -ldvdread -L${with_dvdread}/lib"
X else
X BUILTINS="${BUILTINS} dvdreader"
X- DVDREADER_LIB="${DVDREADER_LIB} -ldvdread -ldvdcss"
X+ DVDREADER_LIB="${DVDREADER_LIB} -ldvdread -ldvdcss -L${with_dvdread}/lib"
X fi
X else
X { { echo "$as_me:$LINENO: error: The development package for libdvdread is not installed.
X@@ -7253,6 +7267,7 @@
X --disable-dvd." >&2;}
X { (exit 1); exit 1; }; }
X fi
X+ CPPFLAGS="$save_CPPFLAGS"
X fi
X
X # Check whether --enable-dvb or --disable-dvb was given.
X@@ -7272,7 +7287,7 @@
X echo $ECHO_N "checking for libdvb headers in ${with_libdvb}... $ECHO_C" >&6
X if test "x$with_libdvb" != x
X then
X- test_CFLAGS="-I${with_libdvb}"
X+ test_CFLAGS="-I${with_libdvb}/include"
X fi
X save_CPPFLAGS=$CPPFLAGS
X CPPFLAGS="$save_CPPFLAGS $test_CFLAGS $DVBINPUT_CCFLAGS"
X@@ -7428,11 +7443,11 @@
X
X CPPFLAGS="$save_CPPFLAGS"
X
X- if test -f "${with_libdvb}/libdvb.a"
X+ if test -f "${with_libdvb}/lib/libdvb.a"
X then
X DVBINPUT_LIB="${DVBINPUT_LIB} -ldvb"
X- DVBINPUT_DCFLAGS="${DVBINPUT_DCFLAGS} -I${with_libdvb}"
X- DVBINPUT_LCFLAGS="${DVBINPUT_LCFLAGS} -L${with_libdvb}"
X+ DVBINPUT_DCFLAGS="${DVBINPUT_DCFLAGS} -I${with_libdvb}/include"
X+ DVBINPUT_LCFLAGS="${DVBINPUT_LCFLAGS} -L${with_libdvb}/lib"
X PLUGINS="${PLUGINS} dvbinput dvbreader"
X else
X { { echo "$as_me:$LINENO: error: cannot find ${with_libdvb}/libdvb.a, make sure you compiled libdvb in ${with_libdvb}" >&5
X@@ -7785,7 +7800,7 @@
X #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
X _ACEOF
X
X- VLS_LIB="${VLS_LIB} -ldvbpsi"
X+ VLS_LIB="${VLS_LIB} -ldvbpsi -L${with_dvbpsi}/lib"
X CCFLAGS="${CCFLAGS} ${test_CFLAGS}"
X DCFLAGS="${DCFLAGS} ${test_CFLAGS}"
X
END-of-vls/files/patch-configure
echo x - vls/Makefile
sed 's/^X//' >vls/Makefile << 'END-of-vls/Makefile'
X# New ports collection makefile for: vls
X# Date created: 3rd August 2001
X# Whom: Gleb Smirnoff <glebius at cell.sick.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME= vls
XPORTVERSION= 0.5.0
XCATEGORIES= net
XMASTER_SITES= http://www.videolan.org/pub/videolan/vls/${PORTVERSION}/
X
XMAINTAINER= glebius at cell.sick.ru
XCOMMENT= An X11 video streaming client/server solution
X
XLIB_DEPENDS= dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \
X dvbpsi.1:${PORTSDIR}/multimedia/libdvbpsi \
X dvdread.3:${PORTSDIR}/multimedia/libdvdread
X
XGNU_CONFIGURE= yes
XCONFIGURE_ARGS+=--with-dvdcss=${LOCALBASE} \
X --with-dvbpsi=${LOCALBASE} \
X --with-dvdread=${LOCALBASE}
X
XINSTALLS_SHLIB= yes
XUSE_GMAKE= yes
X
X.include <bsd.port.mk>
END-of-vls/Makefile
echo x - vls/distinfo
sed 's/^X//' >vls/distinfo << 'END-of-vls/distinfo'
XMD5 (vls-0.5.0.tar.gz) = e9f8fa8abff5b9b3a11af389bc5a5128
END-of-vls/distinfo
echo x - vls/pkg-descr
sed 's/^X//' >vls/pkg-descr << 'END-of-vls/pkg-descr'
Xvls -- the VideoLAN Server
X
XThe vls is distributed with a GPL license. See the file COPYING in the
Xbase directory.
X
XThe vls is part of the VideoLAN project, a full client/server
Xsolution for video streaming using multicast or unicast.
X
XThe VideoLAN web site at http://www.videolan.org/ is a good start for
Xinformation about MPEG and DVD playing. Have a look at the documentation
Xsection (http://www.videolan.org/doc/), as well as the bookmarks.
X
XWWW: http://www.videolan.org/
END-of-vls/pkg-descr
echo x - vls/pkg-plist
sed 's/^X//' >vls/pkg-plist << 'END-of-vls/pkg-plist'
Xbin/vls
Xbin/vlsd
Xetc/videolan/vls/vls.cfg
Xlib/videolan/vls/dvdreader.so
X at dirrm lib/videolan/vls
X at dirrm lib/videolan
X at dirrm etc/videolan/vls
X at dirrm etc/videolan
END-of-vls/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list