summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-03-29 16:58:10 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-03-29 16:58:10 +0000
commit85d964d631b4241788b555f4b28f0a17cf087483 (patch)
treecbf2941e244da6596e3a6a064f37bb61069622fc /media-libs
parentAdded alsa USE flag to defaults on x86. (diff)
downloadhistorical-85d964d631b4241788b555f4b28f0a17cf087483.tar.gz
historical-85d964d631b4241788b555f4b28f0a17cf087483.tar.bz2
historical-85d964d631b4241788b555f4b28f0a17cf087483.zip
Pruning old ebuilds.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/openal/ChangeLog7
-rw-r--r--media-libs/openal/Manifest13
-rw-r--r--media-libs/openal/files/digest-openal-200201271
-rw-r--r--media-libs/openal/files/digest-openal-200403031
-rw-r--r--media-libs/openal/files/openal-20040303-alsa_capture.diff414
-rw-r--r--media-libs/openal/openal-20020127.ebuild78
-rw-r--r--media-libs/openal/openal-20040303.ebuild62
7 files changed, 10 insertions, 566 deletions
diff --git a/media-libs/openal/ChangeLog b/media-libs/openal/ChangeLog
index bdf0495ed5e0..df2652fc293c 100644
--- a/media-libs/openal/ChangeLog
+++ b/media-libs/openal/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-libs/openal
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/ChangeLog,v 1.36 2005/01/11 13:39:03 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/ChangeLog,v 1.37 2005/03/29 16:58:09 wolf31o2 Exp $
+
+ 29 Mar 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ -files/openal-20040303-alsa_capture.diff, -openal-20020127.ebuild,
+ -openal-20040303.ebuild:
+ Pruning old ebuilds.
11 Jan 2005; Jeremy Huddleston <eradicator@gentoo.org>
openal-20040817.ebuild:
diff --git a/media-libs/openal/Manifest b/media-libs/openal/Manifest
index 9865fb2838cb..0251e7cdb67a 100644
--- a/media-libs/openal/Manifest
+++ b/media-libs/openal/Manifest
@@ -1,12 +1,7 @@
-MD5 a1a2eb305846d967a15de5ba2e06ce09 ChangeLog 4651
-MD5 ec6dcddda50a0138e1f50eb0d1299798 metadata.xml 254
-MD5 cf487172566ddfbca971117246588ed5 openal-20020127.ebuild 2075
-MD5 f3113f663dab848d00a11a26c7e4ba29 openal-20040303.ebuild 1871
MD5 3bf1037b4a549bb486b65602e073e0db openal-20040817.ebuild 1942
-MD5 35b8b81a8d71be18d124e5bca01622fb files/digest-openal-20020127 68
-MD5 4751d1095a6b93726e35d53ad66d9839 files/digest-openal-20040303 69
-MD5 3ffc8792ba0039005def0a8fd9b572b1 files/openal-20040303-alsa_capture.diff 12171
-MD5 8072d11c3e5e44c43407bed8c67b4031 files/openalrc 221
-MD5 7a79e920a2131ac669da96c4cf5e66e9 files/digest-openal-20040817 69
+MD5 a6f15648973f25a51d1f93b2a0028a99 ChangeLog 4823
+MD5 ec6dcddda50a0138e1f50eb0d1299798 metadata.xml 254
MD5 526498c24d3601f624e025aaa7c46de2 files/openal-20040817-alsa_capture.diff 12172
MD5 7d1289ab83aa79eaa7e09d5e4ccacc45 files/openal-20040817-destdir.patch 498
+MD5 8072d11c3e5e44c43407bed8c67b4031 files/openalrc 221
+MD5 7a79e920a2131ac669da96c4cf5e66e9 files/digest-openal-20040817 69
diff --git a/media-libs/openal/files/digest-openal-20020127 b/media-libs/openal/files/digest-openal-20020127
deleted file mode 100644
index e0d54f02e366..000000000000
--- a/media-libs/openal/files/digest-openal-20020127
+++ /dev/null
@@ -1 +0,0 @@
-MD5 a511a52c00873e4e76a2f9a6bad0727d openal-20020127.tar.gz 7572616
diff --git a/media-libs/openal/files/digest-openal-20040303 b/media-libs/openal/files/digest-openal-20040303
deleted file mode 100644
index d6ed327472c8..000000000000
--- a/media-libs/openal/files/digest-openal-20040303
+++ /dev/null
@@ -1 +0,0 @@
-MD5 e15d365d54e2ce55e939b7b06d98c3f4 openal-20040303.tar.bz2 8082799
diff --git a/media-libs/openal/files/openal-20040303-alsa_capture.diff b/media-libs/openal/files/openal-20040303-alsa_capture.diff
deleted file mode 100644
index e9d98046a7fa..000000000000
--- a/media-libs/openal/files/openal-20040303-alsa_capture.diff
+++ /dev/null
@@ -1,414 +0,0 @@
-Index: linux/src/al_ext.c
-===================================================================
-RCS file: /usr/local/cvs-repository/openal/linux/src/al_ext.c,v
-retrieving revision 1.6
-diff -u -r1.6 al_ext.c
---- linux/src/al_ext.c 20 Jun 2003 19:23:05 -0000 1.6
-+++ linux/src/al_ext.c 2 Mar 2004 10:30:49 -0000
-@@ -993,5 +993,9 @@
- return ALC_TRUE;
- }
-
-+ if(ustrcmp("ALC_CAPTURE_SAMPLES", ename) == 0) {
-+ return 0x312;
-+ }
-+
- return 0;
- }
-Index: linux/src/al_main.c
-===================================================================
-RCS file: /usr/local/cvs-repository/openal/linux/src/al_main.c,v
-retrieving revision 1.9
-diff -u -r1.9 al_main.c
---- linux/src/al_main.c 10 Aug 2003 07:58:31 -0000 1.9
-+++ linux/src/al_main.c 2 Mar 2004 10:30:49 -0000
-@@ -133,6 +133,7 @@
-
- #ifdef CAPTURE_SUPPORT
- _alRegisterExtensionGroup( (const ALubyte*) "AL_EXT_capture" );
-+ _alRegisterExtensionGroup( (const ALubyte*) "ALC_EXT_capture" );
- #endif /* CAPTURE_SUPPORT */
-
- #endif /* BUILTIN_EXT_LOKI */
-Index: linux/src/alc/alc_context.c
-===================================================================
-RCS file: /usr/local/cvs-repository/openal/linux/src/alc/alc_context.c,v
-retrieving revision 1.10
-diff -u -r1.10 alc_context.c
---- linux/src/alc/alc_context.c 20 Jun 2003 19:23:06 -0000 1.10
-+++ linux/src/alc/alc_context.c 2 Mar 2004 10:30:49 -0000
-@@ -1525,6 +1525,9 @@
- return deviceHandle->cc;
- }
-
-+
-+ALint __alcGetAvailableSamples(ALvoid);
-+
- void alcGetIntegerv( ALCdevice *deviceHandle, ALenum token,
- ALsizei size , ALint *dest )
- {
-@@ -1546,6 +1549,9 @@
- time.
- Check size
- */
-+ case 0x312: /*ALC_CAPTURE_SAMPLES:*/
-+ *dest = __alcGetAvailableSamples();
-+ break;
- case ALC_MAJOR_VERSION:
- *dest = 1;
- break;
-Index: linux/src/extensions/al_ext_capture.c
-===================================================================
-RCS file: /usr/local/cvs-repository/openal/linux/src/extensions/al_ext_capture.c,v
-retrieving revision 1.1.1.1
-diff -u -r1.1.1.1 al_ext_capture.c
---- linux/src/extensions/al_ext_capture.c 18 Mar 2002 14:41:44 -0000 1.1.1.1
-+++ linux/src/extensions/al_ext_capture.c 2 Mar 2004 10:30:50 -0000
-@@ -45,6 +45,11 @@
- AL_EXT_PAIR(alCaptureStop_EXT),
- AL_EXT_PAIR(alCaptureGetData_EXT),
- AL_EXT_PAIR(alCaptureDestroy_EXT),
-+ AL_EXT_PAIR(alcCaptureOpenDevice),
-+ AL_EXT_PAIR(alcCaptureCloseDevice),
-+ AL_EXT_PAIR(alcCaptureStart),
-+ AL_EXT_PAIR(alcCaptureStop),
-+ AL_EXT_PAIR(alcCaptureSamples),
- { NULL, NULL }
- };
-
-@@ -72,8 +77,8 @@
- return;
- }
-
--ALboolean alCaptureInit_EXT( UNUSED(ALenum format),
-- UNUSED(ALuint rate),
-+ALboolean alCaptureInit_EXT( ALenum format,
-+ ALuint rate,
- UNUSED(ALsizei bufferSize) )
- {
- ALuint cid;
-@@ -89,9 +94,26 @@
- capture_device = cc->read_device;
- if ( capture_device == NULL ) {
- char spec[1024];
-- char *fmt="'( (direction \"read\") (sampling-rate %d))";
-+ int speakers;
-+ char *fmt="'( (direction \"read\") (sampling-rate %d) (speaker-num %d) )";
-
-- sprintf(spec, fmt, rate);
-+ switch (format) {
-+ case AL_FORMAT_MONO8:
-+ case AL_FORMAT_MONO16:
-+ default:
-+ speakers = 1;
-+ break;
-+ case AL_FORMAT_STEREO8:
-+ case AL_FORMAT_STEREO16:
-+ speakers = 2;
-+ break;
-+ case AL_FORMAT_QUAD8_LOKI:
-+ case AL_FORMAT_QUAD16_LOKI:
-+ speakers = 4;
-+ break;
-+ }
-+
-+ sprintf(spec, fmt, rate, speakers);
- capture_device = alcOpenDevice((ALubyte *)spec);
- if ( capture_device ) {
- _alcSetContext(NULL, cid, capture_device);
-@@ -171,14 +193,16 @@
- format, dev->format, samples);
- size *= (_al_formatbits(dev->format) / 8);
-
-- if ( n > (ALsizei)size )
-+ if ( n > (ALsizei)size )
- temp = malloc( n );
- else
- temp = malloc( size );
-
- if ( size > 0 ) {
- size = _alcDeviceRead(cid, temp, size);
-+ }
-
-+ if ( size > 0 ) {
- temp = _alBufferCanonizeData(dev->format,
- temp,
- size,
-@@ -189,8 +213,8 @@
- AL_TRUE);
- } else {
- /* Hmm, zero size in record.. */
-- memset(temp, 0, n);
-- size = n;
-+ /*memset(temp, 0, n);*/
-+ size = 0;
- }
- if(temp == NULL) {
- fprintf(stderr, "could not canonize data\n");
-@@ -203,3 +227,228 @@
- }
- return size;
- }
-+
-+
-+/* Hacked in ALC_EXT_capture support. --ryan. */
-+/* This doesn't support multiple devices, device enumeration, or capture */
-+/* devices seperate from an existing context. How painful. */
-+
-+/* ring buffer functionality... */
-+
-+typedef struct
-+{
-+ ALubyte *buffer;
-+ ALsizei size;
-+ ALsizei write;
-+ ALsizei read;
-+ ALsizei used;
-+} __ALRingBuffer;
-+
-+static ALboolean __alRingBufferInit(__ALRingBuffer *ring, ALsizei size);
-+static ALvoid __alRingBufferShutdown(__ALRingBuffer *ring);
-+static ALsizei __alRingBufferSize(__ALRingBuffer *ring);
-+static ALvoid __alRingBufferPut(__ALRingBuffer *ring, ALubyte *data, ALsizei size);
-+static ALsizei __alRingBufferGet(__ALRingBuffer *ring, ALubyte *data, ALsizei size);
-+
-+static __ALRingBuffer captureRing;
-+
-+static ALboolean __alRingBufferInit(__ALRingBuffer *ring, ALsizei size)
-+{
-+ ALubyte *ptr = (ALubyte *) realloc(ring->buffer, size);
-+ if (ptr == NULL)
-+ return(AL_FALSE);
-+
-+ ring->buffer = ptr;
-+ ring->size = size;
-+ ring->write = 0;
-+ ring->read = 0;
-+ ring->used = 0;
-+ return(AL_TRUE);
-+} /* __alRingBufferInit */
-+
-+static ALvoid __alRingBufferShutdown(__ALRingBuffer *ring)
-+{
-+ free(ring->buffer);
-+ ring->buffer = NULL;
-+} /* __alRingBufferShutdown */
-+
-+static ALsizei __alRingBufferSize(__ALRingBuffer *ring)
-+{
-+ return(ring->used);
-+} /* __alRingBufferSize */
-+
-+static ALvoid __alRingBufferPut(__ALRingBuffer *ring, ALubyte *data, ALsizei _size)
-+{
-+ register ALsizei size = _size;
-+ register ALsizei cpy;
-+ register ALsizei avail;
-+
-+ if (!size) /* just in case... */
-+ return;
-+
-+ /* Putting more data than ring buffer holds in total? Replace it all. */
-+ if (size > ring->size)
-+ {
-+ ring->write = 0;
-+ ring->read = 0;
-+ ring->used = ring->size;
-+ memcpy(ring->buffer, data + (size - ring->size), ring->size);
-+ return;
-+ } /* if */
-+
-+ /* Buffer overflow? Push read pointer to oldest sample not overwritten. */
-+ avail = ring->size - ring->used;
-+ if (size > avail)
-+ {
-+ ring->read += size - avail;
-+ if (ring->read > ring->size)
-+ ring->read -= ring->size;
-+ } /* if */
-+
-+ /* Clip to end of buffer and copy first block... */
-+ cpy = ring->size - ring->write;
-+ if (size < cpy)
-+ cpy = size;
-+ if (cpy) memcpy(ring->buffer + ring->write, data, cpy);
-+
-+ /* Wrap around to front of ring buffer and copy remaining data... */
-+ avail = size - cpy;
-+ if (avail) memcpy(ring->buffer, data + cpy, avail);
-+
-+ /* Update write pointer... */
-+ ring->write += size;
-+ if (ring->write > ring->size)
-+ ring->write -= ring->size;
-+
-+ ring->used += size;
-+ if (ring->used > ring->size)
-+ ring->used = ring->size;
-+} /* __alRingBufferPut */
-+
-+static ALsizei __alRingBufferGet(__ALRingBuffer *ring, ALubyte *data, ALsizei _size)
-+{
-+ register ALsizei cpy;
-+ register ALsizei size = _size;
-+ register ALsizei avail = ring->used;
-+
-+ /* Clamp amount to read to available data... */
-+ if (size > avail)
-+ size = avail;
-+
-+ /* Clip to end of buffer and copy first block... */
-+ cpy = ring->size - ring->read;
-+ if (cpy > size) cpy = size;
-+ if (cpy) memcpy(data, ring->buffer + ring->read, cpy);
-+
-+ /* Wrap around to front of ring buffer and copy remaining data... */
-+ avail = size - cpy;
-+ if (avail) memcpy(data + cpy, ring->buffer, avail);
-+
-+ /* Update read pointer... */
-+ ring->read += size;
-+ if (ring->read > ring->size)
-+ ring->read -= ring->size;
-+
-+ ring->used -= size;
-+
-+ return(size); /* may have been clamped if there wasn't enough data... */
-+} /* __alRingBufferGet */
-+
-+
-+static ALenum captureFmt = AL_NONE;
-+static ALuint captureFreq = 0;
-+static ALint captureFmtSize = 0;
-+
-+ALCdevice *alcCaptureOpenDevice(const ALubyte *deviceName,
-+ ALuint freq, ALenum fmt,
-+ ALsizei bufsize)
-+{
-+ ALCdevice *retval;
-+ AL_context *cc;
-+ ALuint cid;
-+
-+ if (deviceName != NULL) /* !!! FIXME */
-+ return NULL;
-+
-+ switch (fmt) /* try to keep this sane for now... */
-+ {
-+ case AL_FORMAT_MONO8:
-+ case AL_FORMAT_MONO16:
-+ case AL_FORMAT_STEREO8:
-+ case AL_FORMAT_STEREO16:
-+ break; /* okay format. */
-+
-+ default:
-+ return(NULL);
-+ }
-+
-+ captureFmt = fmt;
-+ captureFreq = freq;
-+ captureFmtSize = (_al_formatbits(fmt) / 8);
-+ if ((fmt == AL_FORMAT_STEREO8) || (fmt == AL_FORMAT_STEREO16))
-+ captureFmtSize *= 2;
-+
-+ bufsize *= captureFmtSize;
-+
-+ if (!__alRingBufferInit(&captureRing, bufsize))
-+ return NULL;
-+
-+ if (!alCaptureInit_EXT(fmt, freq, bufsize))
-+ return NULL;
-+
-+ cid = _alcCCId;
-+ _alcLockContext( cid );
-+ cc = _alcGetContext(cid);
-+ retval = cc->read_device;
-+ retval->cc = cc;
-+ _alcUnlockContext( cid );
-+
-+ fprintf(stderr, "WARNING: ALC_EXT_capture is subject to change!\n");
-+
-+ return(retval);
-+}
-+
-+ALvoid alcCaptureCloseDevice(ALCdevice *dev)
-+{
-+ if (dev == NULL)
-+ return;
-+
-+ alCaptureDestroy_EXT();
-+ __alRingBufferShutdown(&captureRing);
-+}
-+
-+ALvoid alcCaptureStart(void)
-+{
-+ alCaptureStart_EXT();
-+}
-+
-+ALvoid alcCaptureStop(void)
-+{
-+ alCaptureStop_EXT();
-+}
-+
-+/* !!! FIXME: Not ideal; reads samples in ALC_CAPTURE_SAMPLES query */
-+/* !!! FIXME: should query hardware here and do read in alcCaptureSamples() */
-+ALint __alcGetAvailableSamples(ALvoid)
-+{
-+ static ALubyte buf[2048];
-+ ALsizei got;
-+
-+ while ((got = alCaptureGetData_EXT(buf, sizeof (buf),
-+ captureFmt, captureFreq)) > 0)
-+ __alRingBufferPut(&captureRing, buf, got);
-+
-+ /*printf("got %d have %d\n", (int) got, (int) (__alRingBufferSize(&captureRing) / captureFmtSize));*/
-+
-+ return(__alRingBufferSize(&captureRing) / captureFmtSize);
-+}
-+
-+
-+ALvoid alcCaptureSamples(UNUSED(ALCdevice *device), ALvoid *buf, ALsizei samps)
-+{
-+ if ((__alRingBufferSize(&captureRing) / captureFmtSize) < samps)
-+ return; /* !!! FIXME: This is an error condition! */
-+
-+ __alRingBufferGet(&captureRing, buf, samps * captureFmtSize);
-+}
-+
-Index: linux/src/extensions/al_ext_capture.h
-===================================================================
-RCS file: /usr/local/cvs-repository/openal/linux/src/extensions/al_ext_capture.h,v
-retrieving revision 1.1.1.1
-diff -u -r1.1.1.1 al_ext_capture.h
---- linux/src/extensions/al_ext_capture.h 18 Mar 2002 14:41:44 -0000 1.1.1.1
-+++ linux/src/extensions/al_ext_capture.h 2 Mar 2004 10:30:50 -0000
-@@ -13,6 +13,16 @@
-
- #include <AL/alext.h>
-
-+ALCdevice *alcCaptureOpenDevice(const ALubyte *deviceName,
-+ ALuint freq, ALenum fmt,
-+ ALsizei bufsize);
-+ALvoid alcCaptureCloseDevice(ALCdevice *dev);
-+ALvoid alcCaptureStart(void);
-+ALvoid alcCaptureStop(void);
-+ALint __alcGetAvailableSamples(ALvoid);
-+ALvoid alcCaptureSamples(ALCdevice *device, ALvoid *buf, ALsizei samps);
-+
-+
- /*
- * alInitCapture( void )
- *
-@@ -38,7 +48,12 @@
- AL_EXT_PAIR(alCaptureStart_EXT), \
- AL_EXT_PAIR(alCaptureStop_EXT), \
- AL_EXT_PAIR(alCaptureGetData_EXT), \
-- AL_EXT_PAIR(alCaptureDestroy_EXT) \
-+ AL_EXT_PAIR(alCaptureDestroy_EXT), \
-+ AL_EXT_PAIR(alcCaptureOpenDevice), \
-+ AL_EXT_PAIR(alcCaptureCloseDevice), \
-+ AL_EXT_PAIR(alcCaptureStart), \
-+ AL_EXT_PAIR(alcCaptureStop), \
-+ AL_EXT_PAIR(alcCaptureSamples) \
-
- /* initialization and destruction functions */
-
diff --git a/media-libs/openal/openal-20020127.ebuild b/media-libs/openal/openal-20020127.ebuild
deleted file mode 100644
index a6abc3072332..000000000000
--- a/media-libs/openal/openal-20020127.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-20020127.ebuild,v 1.21 2005/01/11 13:39:03 eradicator Exp $
-
-IUSE="mpeg arts esd sdl oggvorbis alsa"
-
-LIBVER="0.0.6"
-
-S=${WORKDIR}/tmp/openal
-DESCRIPTION="OpenAL, the Open Audio Library, is an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio"
-SRC_URI="http://ftp.au.freebsd.org/pub/lokigames/openal/${P}.tar.gz"
-HOMEPAGE="http://www.openal.org"
-
-SLOT="0"
-LICENSE="LGPL-2"
-KEYWORDS="x86 sparc ppc amd64"
-
-# documentation doesn't say which versions are required...
-
-RDEPEND="alsa? ( media-libs/alsa-lib )
- arts? ( kde-base/arts )
- esd? ( media-sound/esound )
- sdl? ( media-libs/libsdl )
- oggvorbis? ( media-libs/libvorbis )
- mpeg? ( media-libs/smpeg )"
-
-DEPEND="${RDEPEND}
- x86? ( dev-lang/nasm )
- >=sys-devel/autoconf-2.57-r1"
-
-src_compile() {
-
- export WANT_AUTOCONF=2.1
-
- local myconf
-
- use esd && myconf="${myconf} --enable-esd"
- use sdl && myconf="${myconf} --enable-sdl"
- use alsa && myconf="${myconf} --enable-alsa"
- use arts && myconf="${myconf} --enable-arts"
- use mpeg && myconf="${myconf} --enable-smpeg"
- use oggvorbis && myconf="${myconf} --enable-vorbis"
-
- cd ${S}/linux
-
- # disabling -Werror and -Wpedantic-error so it actually builds
- mv configure.in configure.in.orig
- sed "s|-Werror -pedantic-errors||" configure.in.orig > configure.in
-
- ./autogen.sh || die
-
- ./configure --enable-arch-asm --prefix=/usr ${myconf} || die
- emake all || die
-
-}
-
-src_install() {
-
- cd ${S}/linux
-
- # symlink creation disabled -- see below
- make install DESTDIR=${D}/usr/ LN_S="echo " || die
-
- dodoc CREDITS ChangeLog INSTALL NOTES PLATFORM TODO
- makeinfo doc/openal.texi
- doinfo doc/openal.info
-
- cd ${S}
- dodoc CHANGES COPYING CREDITS
- dohtml docs/*.html
-
- # something is screwy with the makefiles so we create the two library
- # symlinks manually
- cd ${D}/usr/lib
- ln -f -s libopenal.so.${LIBVER} libopenal.so.0 || die
- ln -f -s libopenal.so.${LIBVER} libopenal.so || die
-}
-
diff --git a/media-libs/openal/openal-20040303.ebuild b/media-libs/openal/openal-20040303.ebuild
deleted file mode 100644
index 96644c889c30..000000000000
--- a/media-libs/openal/openal-20040303.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-20040303.ebuild,v 1.12 2005/01/11 13:39:03 eradicator Exp $
-
-inherit eutils
-
-IUSE="alsa arts esd sdl debug oggvorbis mpeg"
-DESCRIPTION="OpenAL, the Open Audio Library, is an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio"
-SRC_URI="mirror://gentoo/${P}.tar.bz2"
-HOMEPAGE="http://opensource.creative.com/"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="x86 ~sparc ~ppc amd64"
-
-DEPEND="x86? ( dev-lang/nasm )
- alsa? ( >=media-libs/alsa-lib-1.0.2 )
- arts? ( kde-base/arts )
- esd? ( media-sound/esound )
- sdl? ( media-libs/libsdl )
- oggvorbis? ( media-libs/libvorbis )
- mpeg? ( media-libs/smpeg )"
-
-src_compile() {
- local myconf
-
- use esd && myconf="${myconf} --enable-esd"
- use sdl && myconf="${myconf} --enable-sdl"
- use alsa && myconf="${myconf} --enable-alsa"
- use arts && myconf="${myconf} --enable-arts"
- use mpeg && myconf="${myconf} --enable-smpeg"
- use oggvorbis && myconf="${myconf} --enable-vorbis"
- use debug && myconf="${myconf} --enable-debug-maximus"
-
- cd ${S}/linux
- use alsa && epatch ${FILESDIR}/openal-20040303-alsa_capture.diff
- WANT_AUTOCONF=2.5 ./autogen.sh || die
- ./configure --prefix=/usr ${myconf} --enable-paranoid-locks \
- --enable-capture --enable-optimize || die
- emake all || die
-}
-
-src_install() {
- cd ${S}/linux
-
- make install DESTDIR=${D}/usr/|| die
-
- dodoc CREDITS ChangeLog INSTALL NOTES PLATFORM TODO
- dodoc ${FILESDIR}/openalrc
- makeinfo doc/openal.texi
- doinfo doc/openal.info
-
- cd ${S}
- dodoc CHANGES COPYING CREDITS
- dohtml docs/*.html
-}
-
-pkg_postinst() {
- einfo "There is a sample openalrc file in /usr/share/doc/${P} which sets up"
- einfo "4 speaker surround sound with ALSA. Simply copy it to your ~/.openalrc"
- einfo "to use it."
-}