mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
423cebb5f4
New Features: * XACT: * Add support for WAVESTOP notifications * Add support for engines without settings files (or empty settings files) Fixes: * Add power-of-two quantum fallback paths for *BSD and Emscripten * Return a unique error code for audio engines with a bad platform ID * Fix a deadlock in Wolfenstein: The Old Blood related to callbacks * Fix a crash for streaming WaveBanks when calling Destroy * stb_vorbis: Handle malloc(0) calls
39 lines
858 B
Makefile
39 lines
858 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= FAudio
|
|
DISTVERSION= 20.10
|
|
CATEGORIES= audio
|
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
|
COMMENT= Accuracy-focused XAudio reimplementation
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cmake compiler:c11 sdl
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= FNA-XNA
|
|
USE_LDCONFIG= yes
|
|
USE_SDL= sdl2
|
|
|
|
PLIST_SUB= SOVERSION=${DISTVERSION:S,., ,g:[1..2]:ts.}
|
|
|
|
OPTIONS_DEFINE= GSTREAMER
|
|
OPTIONS_DEFAULT= GSTREAMER
|
|
|
|
GSTREAMER_DESC= WMA/XMA support via GStreamer
|
|
|
|
GSTREAMER_USES= gettext-runtime pkgconfig
|
|
GSTREAMER_USE= GNOME=glib20 \
|
|
GSTREAMER1=yes
|
|
GSTREAMER_CMAKE_BOOL= GSTREAMER
|
|
|
|
do-test:
|
|
@cd ${BUILD_WRKSRC} && \
|
|
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \
|
|
-DBUILD_TESTS=ON -DBUILD_UTILS=ON ${CMAKE_SOURCE_PATH} && \
|
|
${DO_MAKE_BUILD} ${ALL_TARGET}
|
|
@${SETENV} SDL_AUDIODRIVER=dummy ${BUILD_WRKSRC}/faudio_tests
|
|
|
|
.include <bsd.port.mk>
|