dcoppa 8260411546 Avoid an underflow in the SSE mixers if BufferSize is less than 4
(upstream git commit 564a1822595e287cf808ea63a03d96719e3cc7b4)

Fix a crash with games/ioquake3.
Reported and fix tested by Ryan Freeman.
2016-05-24 08:07:58 +00:00

57 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.37 2016/05/24 08:07:58 dcoppa Exp $
BROKEN-arm = undefined reference to __sync atomic ops
BROKEN-hppa = undefined reference to __sync atomic ops
BROKEN-sparc = undefined reference to __sync atomic ops
COMMENT = cross-platform 3D audio API
V = 1.15.1
EPOCH = 0
REVISION = 4
DISTNAME = openal-soft-$V
PKGNAME = openal-$V
CATEGORIES = audio
SHARED_LIBS = openal 2.2
HOMEPAGE = http://kcat.strangesoft.net/openal.html
MAINTAINER = David Carlier <devnexen@gmail.com>
# LGPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c m pthread sndio
MASTER_SITES = ${HOMEPAGE:S,.html,-releases/,}
EXTRACT_SUFX = .tar.bz2
CONFIGURE_ARGS =-DCMAKE_C_FLAGS="${CFLAGS} -DNDEBUG" \
-DCMAKE_BUILD_TYPE=OpenBSD \
-DDLOPEN=Off \
-DREQUIRE_SNDIO=On \
-DPULSEAUDIO=Off \
-DPORTAUDIO=Off \
-DSOLARIS=Off \
-DALSA=Off \
-DOSS=Off \
-DCOREAUDIO=Off \
-DDSOUND=Off \
-DOPENSL=Off \
-DEXAMPLES=Off
MODULES = devel/cmake
SEPARATE_BUILD =Yes
NO_TEST = Yes
pre-build:
@${SUBST_CMD} ${WRKSRC}/Alc/alcConfig.c
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/openal
${INSTALL_DATA} ${WRKSRC}/alsoftrc.sample \
${PREFIX}/share/examples/openal
.include <bsd.port.mk>