65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2016/07/25 15:28:27 jperkin 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_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 ${OSS_TYPE} == "none"
|
|
CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=OFF
|
|
.else
|
|
CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=ON
|
|
.endif
|
|
|
|
.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
|
|
CFLAGS.SunOS+= -D__EXTENSIONS__
|
|
|
|
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"
|