From: Marcus von Appen on
Hi,

the reference implementation of OpenAL, audio/openal, will be replaced
with audio/openal-soft as default dependency for ports.
While audio/openal is widely used, several sounds cards can only produce
crackling sound effects and have limited support for the feature range
of OpenAL. Furthermore, its development is stalled, leaving minor bugs
within the implementation around, without the hope of fixes.
audio/openal-soft is an actively developed, stable and fully
software-driven OpenAL implementation, circumventing most, if not all,
limitations of audio/openal.

Attached you will find a patch set, which adds and changes the
following within the current ports infrastructure.

New port knobs are:

WANT_OPENAL= si|soft
User switch for using either audio/openal (si) or audio/openal-soft
(soft) as default OpenAL library.

USE_OPENAL= al|si|soft|alut
This replaces the previous LIB_DEPENDS+= openal.0|openal.1|alut.1 lines
for audio/openal, audio/openal-soft and audio/freealut.
The 'al' setting is used for the user switch setting - or - if
WANT_OPENAL is not set by the user - the default OpenAL library
specified in bsd.port.mk, which will be audio/openal-soft.
The 'si' and 'soft' settings are used for ports, which explicitly
require the one or other OpenAL library. They should be avoided,
whenever possible, though.
'alut' will include audio/freealut in the LIB_DEPENDS.

Technical differences for maintainers:
Do not rely on the openal-config script anymore. It is only provided by
audio/openal and thus only valid in conjunction with
USE_OPENAL=si. Whenever possible, refer to pkg-config instead (and patch
accordingly).

To apply the patch and test the changes, do the following:

# cd /usr/ports
# patch -p2 < /your/patch/location/openal_2009-12-26.diff
# pkg_delete -f openal\*
# pkg_delete -f freealut\*
# portmaster -a <or> portupgrade -a

If there are no votes against this switch, I'll go ahead and schedule an
-exp run for the changes later on.

Regards
Marcus