Disalble the internal mp3lib (mpg123) on arm, because it relies on the FPU.

Instead of using that let's enable the mad flavor by default on this arch.
This way you can watch movies on the Zaurus. A little description is added
to the DESCR file for people who want to use mplayer on the Zaurus.
This commit is contained in:
robert 2005-08-04 22:43:18 +00:00
parent 614342d9d2
commit dd77ea6520
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.85 2005/07/27 11:56:01 biorn Exp $
# $OpenBSD: Makefile,v 1.86 2005/08/04 22:43:18 robert Exp $
# May not be hard to add more.
ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64 arm
@ -7,7 +7,7 @@ COMMENT= "Movie player supporting MPEG, DivX, AVI, ASF, MOV & more"
DISTNAME= MPlayer-1.0pre7
DIST_SUBDIR= mplayer
PKGNAME= ${DISTNAME:L}p1
PKGNAME= ${DISTNAME:L}p2
CATEGORIES= x11
EXTRACT_SUFX= .tar.bz2
@ -80,6 +80,11 @@ CONFIGURE_ARGS+=--disable-altivec
FLAVORS= arts esd sdl ggi debug mad no_x11 aa
FLAVOR?=
.if ${MACHINE_ARCH:Marm}
CONFIGURE_ARGS+=--disable-mp3lib
FLAVOR+= mad
.endif
.if ${FLAVOR:L:Marts}
CONFIGURE_ARGS+=--enable-arts
LIB_DEPENDS+= artsc::x11/kde/arts3

View File

@ -32,6 +32,16 @@ sysctl machdep.userldt=1
Both sysctl settings can also be achieved via /etc/sysctl.conf.
On arm (e.g. Zaurus) you may encounter slow video output.
In this case you can disable the X.Org screen rotation in
/etc/X11/xorg.conf. Depending on the video you are playing
you may want to pass the -framedrop or the -hardframedrop
option to mplayer.
By default we disable the internal mp3lib (mpg123), because
it relies on the FPU. Instead of using mp3lib the mad flavor
is enabled by default. If you want to use libmad as an audio
decoder please pass the -ac mad option to mplayer.
Flavors:
arts: enables arts, requires x11/kde/arts3