openbsd-ports/audio/openal/Makefile
sthen b6137e081e openal tweaks from Brad, ok David Carlier (maintainer)
- Enable the SSE support on X86; there is run-time detection
- Disable NEON on arm
- The ALSOFT_CONFIG option has been deprecated
- The QSA backend was removed with the 1.21.0 release
- Sort the list of options
2022-11-15 17:41:37 +00:00

57 lines
1.3 KiB
Makefile

COMMENT = cross-platform 3D audio API
V = 1.22.2
DISTNAME = openal-soft-$V
PKGNAME = openal-$V
REVISION = 1
EPOCH = 0
CATEGORIES = audio
SHARED_LIBS = openal 4.2
HOMEPAGE = https://openal-soft.org/
MAINTAINER = David Carlier <devnexen@gmail.com>
# LGPLv2+
PERMIT_PACKAGE =Yes
WANTLIB += c m mysofa pthread sndio z ${COMPILER_LIBCXX}
MASTER_SITES = ${HOMEPAGE}openal-releases/
EXTRACT_SUFX = .tar.bz2
LIB_DEPENDS += audio/libmysofa
CONFIGURE_ARGS =-DALSOFT_BACKEND_PIPEWIRE=Off \
-DALSOFT_BACKEND_WAVE=Off \
-DALSOFT_DLOPEN=Off \
-DALSOFT_EXAMPLES=Off \
-DALSOFT_NO_CONFIG_UTIL=On \
-DALSOFT_RTKIT=Off \
-DCMAKE_BUILD_TYPE=OpenBSD \
-DCMAKE_DISABLE_FIND_PACKAGE_ALSA:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_AudioIO:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_JACK:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_OpenSL:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_OSS:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_PortAudio:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_PulseAudio:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_SDL2:Bool=Yes \
-DCMAKE_DISABLE_FIND_PACKAGE_SndFile:Bool=Yes
.if ${MACHINE_ARCH} == "arm"
CONFIGURE_ARGS +=-DALSOFT_CPUEXT_NEON=Off
.endif
MODULES = devel/cmake
COMPILER = base-clang ports-clang ports-gcc
NO_TEST = Yes
pre-build:
@${SUBST_CMD} ${WRKSRC}/alc/alconfig.cpp ${WRKSRC}/alsoftrc.sample
.include <bsd.port.mk>