pkgsrc/audio/openal-soft/Makefile
markd 608cd750fb Import openal-soft 1.17.2 from wip
Alternative OpenAL audio library.
2016-02-08 01:53:48 +00:00

59 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2016/02/08 01:53:48 markd Exp $
#
DISTNAME= openal-soft-1.17.2
CATEGORIES= audio
MASTER_SITES= http://kcat.strangesoft.net/openal-releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://kcat.strangesoft.net/
COMMENT= Alternative OpenAL implementation
LICENSE= gnu-lgpl-v2
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
PKG_SYSCONFSUBDIR=openal
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Linux"
CMAKE_ARGS+= -DALSOFT_BACKEND_ALSA:BOOL=OFF
.else
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=ON
CMAKE_ARGS+= -DALSOFT_REQUIRE_SOLARIS:BOOL=OFF
CMAKE_ARGS+= -DALSOFT_REQUIRE_SNDIO:BOOL=OFF
CMAKE_ARGS+= -DALSOFT_REQUIRE_QSA:BOOL=OFF
CMAKE_ARGS+= -DALSOFT_BACKEND_WAVE:BOOL=ON
CMAKE_ARGS+= -DALSOFT_UTILS:BOOL=ON
CMAKE_ARGS+= -DALSOFT_EXAMPLES:BOOL=OFF
CMAKE_ARGS+= -DALSOFT_BACKEND_JACK:BOOL=OFF
CMAKE_ARGS+= -DALSOFT_BACKEND_PORTAUDIO:BOOL=OFF
CMAKE_ARGS+= -DALSOFT_BACKEND_PULSEAUDIO:BOOL=OFF
.include "../../mk/oss.buildlink3.mk"
.if !empty(BUILTIN_LIB_FOUND.ossaudio:M[Yy][Ee][Ss])
CMAKE_ARGS+= -DEXTRA_LIBS=${LIBOSSAUDIO:Q}
.endif
CFLAGS+= -DSYS_CONF_DIR="\"${PKG_SYSCONFDIR}\""
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
CONF_FILES+= ${PREFIX}/share/openal/alsoftrc.sample ${PKG_SYSCONFDIR}/alsoft.conf
SUBST_CLASSES+= fix-oss
SUBST_STAGE.fix-oss= pre-configure
SUBST_MESSAGE.fix-oss= Fixing default OSS device references.
SUBST_FILES.fix-oss= Alc/backends/oss.c
SUBST_SED.fix-oss= -e 's,/dev/dsp,${DEVOSSSOUND},'
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"