ef9662b2e0
ALURE is a utility library to help manage common tasks with OpenAL applications. This includes device enumeration and initialization, file loading, and streaming. The purpose of this library is to provide pre-made functionality that would otherwise be repetitive or difficult to (re)code for various projects and platforms, such as loading a sound file into an OpenAL buffer and streaming an audio file through a buffer queue. Support for different formats is consistant across platforms, so no special checks are needed when loading files, and all formats are handled through the same API. Packaged by Bastian Germann in PR pkg/53613.
48 lines
1 KiB
Makefile
48 lines
1 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2018/09/21 13:24:34 maya Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.alure
|
|
PKG_SUPPORTED_OPTIONS= flac fluidsynth modplug mpg123 sndfile vorbis
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mflac)
|
|
CMAKE_ARGS+= -DFLAC=ON
|
|
.include "../../audio/flac/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DFLAC=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mfluidsynth)
|
|
CMAKE_ARGS+= -DFLUIDSYNTH=ON
|
|
.include "../../audio/fluidsynth/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DFLUIDSYNTH=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmodplug)
|
|
CMAKE_ARGS+= -DMODPLUG=ON
|
|
.include "../../audio/libmodplug/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DMODPLUG=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msndfile)
|
|
CMAKE_ARGS+= -DSNDFILE=ON
|
|
.include "../../audio/libsndfile/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DSNDFILE=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mvorbis)
|
|
CMAKE_ARGS+= -DVORBIS=ON
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DVORBIS=OFF
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmpg123)
|
|
CMAKE_ARGS+= -DMPG123=ON
|
|
.include "../../audio/mpg123/buildlink3.mk"
|
|
.else
|
|
CMAKE_ARGS+= -DMPG123=OFF
|
|
.endif
|