Adding arts support to openal
Doug Rabson
dfr at nlsystems.com
Thu Apr 8 13:31:27 PDT 2004
I just spent a little time getting openal to work with arts and I ended
up fixing a bug in openal and wiring up the OPTIONS stuff in the ports
makefile. Here is a patch:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/openal/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile 15 Feb 2004 14:34:29 -0000 1.22
+++ Makefile 5 Apr 2004 13:55:07 -0000
@@ -16,9 +16,17 @@
INFO= openal
+OPTIONS= ARTS "Build with support for aRTs" off
+
+.include <bsd.port.pre.mk>
+
WRKSRC= ${WRKDIR}/${DISTNAME}/linux
GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+.if defined(WITH_ARTS)
+LIB_DEPENDS= artsc:${PORTSDIR}/audio/arts
+CONFIGURE_ARGS= --enable-arts
+.endif
USE_GMAKE= yes
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
@@ -30,4 +38,4 @@
@${INSTALL_DATA} ${WRKSRC}/doc/openal.info ${PREFIX}/info
@install-info ${PREFIX}/info/openal.info ${PREFIX}/info/dir
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: files/patch-src_arch_arts_arts.c
===================================================================
RCS file: files/patch-src_arch_arts_arts.c
diff -N files/patch-src_arch_arts_arts.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-src_arch_arts_arts.c 5 Apr 2004 13:54:59 -0000
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- src/arch/arts/arts.c.orig Fri Jun 20 19:18:33 2003
++++ src/arch/arts/arts.c Mon Apr 5 14:39:09 2004
+@@ -107,8 +107,8 @@
+
+ /* FIXME: how do we know if this failed? */
+ arts_info.stream = arts_play_stream(*speed,
+- chans,
+ _al_formatbits(*fmt),
++ chans,
+ genartskey());
+
+ *bufsiz = arts_stream_get(arts_info.stream, ARTS_P_BUFFER_SIZE);
More information about the freebsd-ports
mailing list