From owner-freebsd-ports@FreeBSD.ORG Thu Apr 8 13:31:27 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BE3216A4CE for ; Thu, 8 Apr 2004 13:31:27 -0700 (PDT) Received: from herring.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC6D143D1D for ; Thu, 8 Apr 2004 13:31:26 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.rabson.org (herring.rabson.org [10.0.0.2]) by herring.rabson.org (8.12.11/8.12.11) with ESMTP id i38KVFju028027 for ; Thu, 8 Apr 2004 21:31:15 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: ports@freebsd.org Date: Thu, 8 Apr 2004 21:31:15 +0100 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404082131.15028.dfr@nlsystems.com> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on herring.rabson.org X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' Subject: Adding arts support to openal X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 20:31:27 -0000 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 + 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 +.include 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);