openbsd-ports/audio/faudio/Makefile
2022-10-26 15:29:04 +00:00

37 lines
682 B
Makefile

# versions are in sync with FNA versions
V = 22.09.01
COMMENT = XAudio reimplementation for open platforms
DISTNAME = fna-${V:S/.//g}
PKGNAME = faudio-${V}
SHARED_LIBS = FAudio 4.0 # 22.08
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
CONFIGURE_ARGS += -DBUILD_TESTS=ON
WRKDIST = ${WRKDIR}/FNA/lib/FAudio
do-test:
cd ${WRKBUILD} && ./faudio_tests
.include <bsd.port.mk>