thfr a7d6165783 update to FAudio 20.04
- bump minor as an exported symbol has been added
- now supports XACT content version 45
- tested with game Unexplored without issues

changelog: https://github.com/FNA-XNA/FAudio/releases
2020-04-12 13:54:25 +00:00

40 lines
812 B
Makefile

# $OpenBSD: Makefile,v 1.6 2020/04/12 13:54:25 thfr Exp $
# versions are in sync with FNA versions
V = 20.04
COMMENT = XAudio reimplementation for open platforms
DISTNAME = fna-${V:S/.//g}
PKGNAME = faudio-${V}
SHARED_LIBS = FAudio 2.1 # 20.04
CATEGORIES = audio
HOMEPAGE = https://github.com/FNA-XNA/FAudio
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# zlib
PERMIT_PACKAGE = Yes
WANTLIB += SDL2
MASTER_SITES = https://github.com/FNA-XNA/FNA/releases/download/${V}/
EXTRACT_SUFX = .zip
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
LIB_DEPENDS = devel/sdl2
USE_GMAKE = Yes
# FFMPEG (for WMA support) requires a more recent ffmpeg version than 2.8
CONFIGURE_ARGS += -DBUILD_TESTS=ON
WRKDIST = ${WRKDIR}/FNA/lib/FAudio
do-test:
cd ${WRKBUILD} && ./faudio_tests
.include <bsd.port.mk>