aa25396790
Run Tools/scripts/indent_make_if.pl on all of Mk. These white space changes contribute greatly to the readability of those files. As we have a version control system, finding out the reasons for the changes prior to these white space changes is still easily possible Differential Revision: https://reviews.freebsd.org/D35024 Reviewed by: portmgr (rene, bapt)
28 lines
660 B
Makefile
28 lines
660 B
Makefile
# Handle dependency on OpenAL
|
|
#
|
|
# Feature: openal
|
|
# Usage: USES=openal or USES=openal:ARGS
|
|
# Valid ARGS: al, soft (default), alut
|
|
#
|
|
# MAINTAINER: ports@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
|