Hello,

the attached patch adds a theora FLAVOR to net/icecast, which allows Icecast to relay Ogg Theora video streams. I decided to make a FLAVOR at this point, because video streaming is hard to test - at least right now on OpenBSD. I tried to make ezstream and ffmpeg2theora ports as well(*), but the latter coredumps on me and I have yet to investigate it further. This FLAVOR should allow more people to test this and use OpenBSD as a video-stream-relay only (not as a video stream source client).

The theora FLAVOR does not break regular streaming, tested over several days on i386. Please test and comment... also about whether this {c,sh}ould go in non-FLAVOR'ed or not.


Thanks,

Moritz

*: In order to stream video, I wanted to do it the http://www.oddsock.org/guides/video.php way - maybe someone with a Linux box can check this out or someone wants to look at ffmpeg2theora as well. ;P I'd send my ezstream and ffmpeg2theora ports to anyone who's interested.
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/icecast/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile    16 Apr 2005 21:24:15 -0000      1.29
+++ Makefile    9 Jul 2005 13:00:14 -0000
@@ -3,7 +3,7 @@
 COMMENT=       "server for streaming Ogg Vorbis and MP3"
 
 DISTNAME=      icecast-2.2.0
-PKGNAME=       ${DISTNAME}p1
+PKGNAME=       ${DISTNAME}p2
 CATEGORIES=    net audio
 
 HOMEPAGE=      http://www.icecast.org/
@@ -20,7 +20,7 @@
 MASTER_SITES=  http://downloads.us.xiph.org/releases/icecast/
 
 CONFIGURE_STYLE= gnu
-CONFIGURE_ARGS+= --localstatedir=/var --without-theora
+CONFIGURE_ARGS+= --localstatedir=/var
 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
                LDFLAGS="-L${LOCALBASE}/lib"
 
@@ -29,6 +29,16 @@
                vorbis.3::audio/libvorbis
 
 SEPARATE_BUILD=        simple
+
+FLAVORS=       theora
+FLAVOR?=
+
+.if ${FLAVOR:L:Mtheora}
+LIB_DEPENDS+=  theora.1::multimedia/libtheora
+CONFIGURE_ARGS+= --with-theora=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --without-theora
+.endif
 
 post-build:
        @sed -e 's,##PREFIX##,${TRUEPREFIX},g' < ${FILESDIR}/README.OpenBSD > \
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/net/icecast/pkg/DESCR,v
retrieving revision 1.5
diff -u -r1.5 DESCR
--- pkg/DESCR   31 Dec 2004 13:09:10 -0000      1.5
+++ pkg/DESCR   9 Jul 2005 13:00:14 -0000
@@ -24,3 +24,6 @@
 
 Security features include chroot()ing and dropping privileges, if
 configured to do so.
+
+Flavors:
+       theora - support experimental Ogg Theora (video) streaming

Reply via email to