1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/Mk/Uses/openal.mk
Tobias Kortkamp ece971a5cd Mk/Uses/openal.mk: Drop support for the OpenAL Sample Implementation
Prepare for audio/openal removal.

PR:		236971
Approved by:	portmgr (mat)
Differential Revision:	https://reviews.freebsd.org/D19766
2019-04-30 16:24:55 +00:00

31 lines
664 B
Makefile

# $FreeBSD$
#
# Handle dependency on OpenAL
#
# Feature: openal
# Usage: USES=openal or USES=openal:ARGS
# Valid ARGS: al, soft (default), alut
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_OPENAL_MK)
_INCLUDE_USES_OPENAL_MK= yes
.if empty(openal_ARGS)
openal_ARGS= soft
.endif
.if !empty(openal_ARGS:Nal:Nsoft:Nalut)
IGNORE= has unknown USES=openal arguments: ${openal_ARGS:Nal:Nsoft:Nalut}
.endif
_OPENAL_al_DEPENDS= libopenal.so.1:audio/openal-soft
_OPENAL_soft_DEPENDS= libopenal.so.1:audio/openal-soft
_OPENAL_alut_DEPENDS= libalut.so.0:audio/freealut
.for _arg in ${openal_ARGS}
LIB_DEPENDS+= ${_OPENAL_${_arg}_DEPENDS}
.endfor
.endif