added vorbis flavor

Prior to this patch, mplayer is incompatible of recognizing an AVI/MPEG4
(DivX) encoded with oggvorbis audio codec.  It will refuse to play the
movie, as it is unrecognized.  This patch allows these types of AVIs to
play.

ok maintainer, pvalchev@
This commit is contained in:
mark 2002-08-15 19:00:40 +00:00
parent 2b679f151e
commit 5cf1ea4c42
2 changed files with 19 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2002/06/29 11:51:22 espie Exp $
# $OpenBSD: Makefile,v 1.26 2002/08/15 19:00:40 mark Exp $
# May not be hard to add more.
ONLY_FOR_ARCHS= i386 macppc sparc64
@ -45,7 +45,6 @@ USE_GMAKE= Yes
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+=--as=${LOCALBASE}/${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}/bin/as \
--disable-alsa \
--disable-vorbis \
--disable-aa \
--disable-ossaudio \
--disable-arts \
@ -58,7 +57,7 @@ CONFIGURE_ARGS+=--as=${LOCALBASE}/${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}/bi
CONFIGURE_ARGS+=--target=ppc-openbsd
.endif
FLAVORS= sdl ggi debug mad win32 iconv no_x11
FLAVORS= sdl ggi debug mad vorbis win32 iconv no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
@ -103,6 +102,13 @@ LIB_DEPENDS+= mad::audio/mad
CONFIGURE_ARGS+=--disable-mad
.endif
.if ${FLAVOR:L:Mvorbis}
CONFIGURE_ARGS+=--enable-vorbis
LIB_DEPENDS+= vorbis.0,vorbisfile.1::audio/libvorbis
.else
CONFIGURE_ARGS+=--disable-vorbis
.endif
.if ${FLAVOR:L:Miconv}
CONFIGURE_ARGS+=--enable-iconv
LIB_DEPENDS+= iconv::converters/libiconv

View File

@ -18,6 +18,11 @@ antialiased shaded subtitles (9 supported types!!!) with european/ISO
8859-1,2 (hungarian, english, czech, etc), cyrillic, korean fonts, and
OSD?
MPlayer might fail due to lack of shared memory, eg when using gui mode under
KDE. You can use config to change the shared memory limits without needing to
recompile the kernel, e.g., "config -e -o bsd2 bsd". On i386 it should be
sufficient to add 8 to shmseg and 2048 to shmmaxpgs.
Flavors:
sdl: enables sdl, requires devel/sdl
@ -33,4 +38,9 @@ Flavors:
win32: enables win32 codecs (i386-only) To use this flavor, your
kernel must be rebuilt with option USER_LDT
vorbis: enables vorbis, requires audio/libvorbis. There is a hack
that allows AVI files to contain an Ogg Vorbis audio stream,
but makes them incompatible with standard AVI. You need this
to play those AVIs
WWW: ${HOMEPAGE}