b. f. bf1783 at
Wed Feb 10 23:33:07 UTC 2010

>I did as  UPDATING says and everything were look okay but when I update (big
>update) the system "mplayer" complain that cannot install openALL because
>openal-soft is installed. I went bacjk to the openALL and it is okay but my
>question is it is possible to build mplayer with openal support and openal-
>soft installed, please?

This is not quite specific enough.  Do you mean, can I use
audio/openal with multimedia/mplayer, and audio/openal-soft with all
of my other openal software?  Or do you mean, can I use
audio/openal-soft with all of my software, including

The answer to the first question is "yes", but I don't think you will
want to do this.  Because audio/openal conflicts with
audio/openal-soft, you would  have to install audio/openal in a
different PREFIX, and then patch the mplayer port to find and link
with the audio/openal libraries, by changing the openal-related
LIB_DEPENDS in mplayer, and either adding a hard-coded rpath directive
to the mplayer binaries, or using libmap.conf(5) with mplayer
constraints, or building statically-linked mplayer binaries, or always
calling mplayer with directives like LD_LIBRARY_PATH or LD_PRELOAD, or
using custom linker scripts in the place of the[.?].

It would be easier to just use audio/openal-soft with all of your
software.  This ought to work, because the openal-soft developer
claims that openal-soft is compatible with the older openal:

"This library is meant as a compatible update/replacement to the
deprecated OpenAL Sample Implementation (the SI)."

and some other packaging systems have switched  to using it with
mplayer (Debian, for example).  However, I haven't tested this, so you
will have to try it and see if it works.  To do this, remove
audio/openal, install audio/openal-soft, change any WANT_OPENAL
settings to "soft", patch mplayer's Makefile.options:

--- Makefile.options.orig       2010-02-10 17:43:54.000000000 -0500
+++ Makefile.options    2010-02-10 17:50:27.000000000 -0500
@@ -189,7 +189,7 @@

 .if defined(WITH_OPENAL)
-LIB_DEPENDS+=  openal.0:${PORTSDIR}/audio/openal
+USE_OPENAL=    soft
 CONFIGURE_ARGS+=       --disable-openal

(the whitespace in that patch will probably need to be fixed) and then
rebuild mplayer.  If this works, you should contact the mplayer
maintainer, and ask him to switch the port over to the new USE_OPENAL
framework, and to prefer the newer openal-soft, which is now the


More information about the freebsd-questions mailing list