Date: Wed, 10 Feb 2010 18:33:05 -0500 From: "b. f." <bf1783@googlemail.com> To: freebsd-questions@FreeBSD.org Cc: riggs@rrr.de, ajtiM <lumiwa@gmail.com> Subject: Re: openal-soft Message-ID: <d873d5be1002101533h5ec783b5if64c72c755e3f86d@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
>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 multimedia/mplayer? 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 openal.so[.?]. 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)." http://kcat.strangesoft.net/openal.html 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 @@ .endif .if defined(WITH_OPENAL) -LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal +USE_OPENAL= soft .else CONFIGURE_ARGS+= --disable-openal .endif (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 default. b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be1002101533h5ec783b5if64c72c755e3f86d>