# HG changeset patch # User Binki # Date 2009-04-17 12:41:08 # Node ID 5e2834df504a01b52ae7c410ff4840228e02084c # Parent 3cfbc6c677fd0ed53860753a874d48c5a8d51136 media-libs/openal: Initial import from Gentoo's Portage diff --git a/media-libs/openal/ChangeLog b/media-libs/openal/ChangeLog new file mode 100644 --- /dev/null +++ b/media-libs/openal/ChangeLog @@ -0,0 +1,435 @@ +# ChangeLog for media-libs/openal +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/ChangeLog,v 1.108 2009/04/08 20:11:46 hanno Exp $ + +*openal-1.7.411 (08 Apr 2009) + + 08 Apr 2009; Hanno Boeck + +files/openal-soft-1.7.411-multilib.patch, +openal-1.7.411.ebuild: + Version bump and patch for correct multilib installation path. + + 15 Mar 2009; Brent Baude openal-1.6.372.ebuild: + stable ppc64, bug 254583 + + 04 Feb 2009; Raúl Porcel openal-1.6.372.ebuild: + arm/ia64/sparc stable wrt #254583 + + 26 Jan 2009; Jeroen Roovers openal-1.6.372.ebuild: + Stable for HPPA (bug #254583). + + 18 Jan 2009; Tobias Klausmann openal-1.6.372.ebuild: + Stable on alpha, bug #254583 + + 17 Jan 2009; nixnut openal-1.6.372.ebuild: + ppc stable #254583 + + 15 Jan 2009; Markus Meier openal-1.6.372.ebuild: + amd64/x86 stable, bug #254583 + + 15 Jan 2009; Raúl Porcel openal-1.6.372.ebuild: + Add ~arm/~ia64 wrt #254583 + + 25 Dec 2008; Tobias Klausmann openal-1.5.304.ebuild: + Stable on alpha, bug #251201 + + 20 Dec 2008; Markus Meier openal-1.5.304.ebuild: + amd64 stable, bug #251201 + + 19 Dec 2008; Joshua Kinard openal-1.6.372.ebuild: + Added ~mips to KEYWORDS, per #245771. + + 18 Dec 2008; Jeroen Roovers openal-1.5.304.ebuild: + Stable for HPPA (bug #251201). + +*openal-1.6.372 (17 Dec 2008) + + 17 Dec 2008; +openal-1.6.372.ebuild: + Version bump wrt #251023, thanks to Lars for reporting. + + 16 Dec 2008; Brent Baude openal-1.5.304.ebuild: + Marking openal-1.5.304 ~ppc for bug 245771 + + 15 Dec 2008; Ferris McCormick openal-1.5.304.ebuild: + Add back ~sparc keyword for testing, Bug #245771. + + 15 Dec 2008; Brent Baude openal-1.5.304.ebuild: + Marking openal-1.5.304 ~ppc64 for bug 245771 + + 15 Dec 2008; openal-1.5.304.ebuild: + x86 stable wrt #245515 + + 16 Nov 2008; Tobias Klausmann openal-1.5.304.ebuild: + Keyworded on alpha, bug #245771 + + 10 Nov 2008; Jeroen Roovers openal-0.0.8-r2.ebuild: + Stable for HPPA too. + + 10 Nov 2008; Jeroen Roovers openal-1.5.304.ebuild: + Marked ~hppa (bug #245771). + +*openal-1.5.304 (05 Nov 2008) + + 05 Nov 2008; Ben de Groot +openal-1.5.304.ebuild: + Adding new implementation of openal, see bug 208407 for discussion. + Dropping keywords, as this version is quite different. + + 15 Sep 2008; openal-0.0.8-r2.ebuild: + - keyword ~arm + + 28 Jul 2008; Chris Gianelloni metadata.xml: + Removing myself from metadata.xml since I am retiring from the project. + + 10 Apr 2008; Chris Gianelloni + openal-0.0.8-r2.ebuild: + QA cleanup: Fix quoting. + + 10 Apr 2008; Chris Gianelloni + openal-0.0.8-r2.ebuild: + Moved eautoconf to src_unpack and closing bug #207454. + + 20 Sep 2007; Chris Gianelloni + +files/0.0.8/004_all_gcc42.patch, -files/0.0.8/004_all_ggc42.patch, + +files/0.0.8/005_all_alsa_default_freq.patch: + Added a patch to switch to 48000 from 44100 sampling frequency and renaming + the GCC patch to actually be gcc instead of ggc. Closing bug #193147. + + 05 Sep 2007; Chris Gianelloni + openal-0.0.8-r2.ebuild: + Updated the ebuild with changes from Renato Caldas + . Closing bug #191048. + +*openal-0.0.8-r2 (29 Aug 2007) + + 29 Aug 2007; Chris Gianelloni -openal-0.0.8.ebuild, + -openal-0.0.8-r1.ebuild, +openal-0.0.8-r2.ebuild: + I am forcing a revision bump here so everybody rebuilds with the latest + patch. I had thought that it was only needed to build with gcc-4.2, but + apparently it is required that openal is built with the patch for anything + built with gcc-4.2 that links against it. Since there is no change in + content, I'm putting this straight to stable. + + 28 Mar 2007; Raúl Porcel openal-0.0.8-r1.ebuild: + ia64 stable wrt bug 154377 + + 13 Feb 2007; Chris Gianelloni + +files/0.0.8/004_all_ggc42.patch: + Added a patch for GCC 4.2 compilation provided by Ryan Hill + from upstream SVN. Closing bug #166723. + + 01 Dec 2006; Chris Gianelloni + openal-0.0.8-r1.ebuild: + Stable on alpha wrt bug #154377. + + 24 Nov 2006; Markus Rothe openal-0.0.8-r1.ebuild: + Stable on ppc64; bug #154377 + + 23 Nov 2006; openal-0.0.8-r1.ebuild: + stable on amd64 + + 20 Nov 2006; nixnut openal-0.0.8-r1.ebuild: + Stable on ppc wrt bug 154377 + + 17 Nov 2006; Gustavo Zacarias + openal-0.0.8-r1.ebuild: + Stable on sparc wrt #154377 + + 16 Nov 2006; Christian Faulhammer + openal-0.0.8-r1.ebuild: + stable x86, bug #154377 + + 17 Oct 2006; Timothy Redaelli openal-0.0.8-r1.ebuild: + Add ~x86-fbsd keyword + + 17 Oct 2006; Chris Gianelloni + +files/0.0.8/000_all_freebsd.patch: + Added patch from openal-devel list, submitted by Timothy Redaelli + . Closing bug #142509. + + 13 Oct 2006; Chris Gianelloni + openal-0.0.8-r1.ebuild: + Fix the broken openal.pc that is installed. Thanks to Paul Bredbury + for the patch. Closing bug #150872. + + 04 Oct 2006; Chris Gianelloni + -files/0.0.8/000_all_alsa_backend_fix.patch, + -files/0.0.8/001_all_rtprio.patch, openal-0.0.8-r1.ebuild: + Remove bad patches and add EPATCH_SUFFIX. + + 29 Sep 2006; Chris Gianelloni + +files/0.0.8/003_all_mmx.patch: + Added patch for MMX and closing bug #145245. + +*openal-0.0.8-r1 (29 Sep 2006) + + 29 Sep 2006; Chris Gianelloni + +files/0.0.8/000_all_alsa_backend_fix.patch, + +files/0.0.8/001_all_rtprio.patch, +files/0.0.8/002_all_alc_context.patch, + +files/0.0.8/002_all_alsa_default.patch, +openal-0.0.8-r1.ebuild: + Revision bump to add some patches from the openal-devel mailing list. + Hopefully, these will resolve the few openal segfault bugs that are open, as + well as improve the latency of openal on Gentoo. + + 04 Sep 2006; Joshua Kinard openal-0.0.8.ebuild: + Added ~mips to KEYWORDS. + + 09 Aug 2006; Chris Gianelloni + -files/openal-20040817-alsa_capture.diff, + -files/openal-20040817-destdir.patch, + -files/openal-20050504-alsa_capture.patch, + -files/openal-20050504-alsa_dmix.patch, + -files/openal-20050504-destdir.patch, + -files/openal-20051024-alsa_dmix.patch, + -files/openal-20051024-amd64-configure.patch, -openal-20050504-r1.ebuild, + -openal-20050504-r2.ebuild, -openal-20051024.ebuild: + Removing the older CVS snapshot ebuilds in favor of the released 0.0.8 version. + + 02 Aug 2006; Thomas Cort openal-0.0.8.ebuild: + Stable on alpha wrt Bug #133501. + + 21 Jul 2006; Aron Griffis openal-0.0.8.ebuild: + Mark 0.0.8 stable on ia64. #133501 + + 16 Jul 2006; Jason Wever openal-0.0.8.ebuild: + Stable on SPARC wrt bug #133501. + + 04 Jul 2006; Daniel Gryniewicz openal-0.0.8.ebuild: + Marked stable on amd64 per bug# 133501 + + 26 May 2006; Markus Rothe openal-0.0.8.ebuild: + Stable on ppc64; bug #133501 + + 26 May 2006; Joseph Jezak openal-0.0.8.ebuild: + Marked ppc stable for bug #133501. + + 24 May 2006; Mark Loeser openal-0.0.8.ebuild: + Stable on x86; bug #133501 + + 25 May 2006; Diego Pettenò + openal-20050504-r2.ebuild: + Add ~x86-fbsd keyword. + + 14 May 2006; Chris Gianelloni openal-0.0.8.ebuild: + Force -j1 for bug #133146. + + 11 May 2006; Chris Gianelloni + openal-20050504-r1.ebuild, openal-20050504-r2.ebuild: + Added blocker on freealut to 20050504 versions of openal since they include + an internal alut. + +*openal-0.0.8 (17 Apr 2006) + + 17 Apr 2006; Chris Gianelloni +openal-0.0.8.ebuild: + Added 0.0.8 version and closing bug #129745. + + 26 Feb 2006; Bryan Østergaard openal-20050504-r1.ebuild: + Mark 20050504-r1 stable on ia64 + + 14 Feb 2006; Aron Griffis openal-20050504-r2.ebuild, + openal-20051024.ebuild: + Mark 20051024 20050504-r2 ~alpha + + 29 Nov 2005; Chris Gianelloni + -openal-20040817.ebuild, openal-20050504-r1.ebuild, + openal-20050504-r2.ebuild, openal-20051024.ebuild: + Removed old version. Changed oggvorbis to vorbis for bug #94254. Changed to + using use_enable rather than manually adding to myconf. + + 27 Oct 2005; Chris Gianelloni + openal-20051024.ebuild: + Fixed up dodoc. Blame cardoe. :P + + 26 Oct 2005; Chris Gianelloni + +files/openal-20051024-amd64-configure.patch, openal-20051024.ebuild: + Fixing configure on amd64 and resolving bug #110270. + + 25 Oct 2005; Chris Gianelloni + openal-20051024.ebuild: + Added src_test to fix broken upstream behavior and cleaning up ebuild. + +*openal-20051024 (24 Oct 2005) + + 24 Oct 2005; Chris Gianelloni + +files/openal-20051024-alsa_dmix.patch, +openal-20051024.ebuild: + Updated to CVS HEAD and closing bug #110270. + + 11 Oct 2005; Chris Gianelloni + openal-20050504-r2.ebuild: + Fixing oggvorbis->vorbis in IUSE. + + 07 Oct 2005; Luca Barbato openal-20050504-r2.ebuild: + oggvorbis is a deprecated useflag + +*openal-20050504-r2 (02 Sep 2005) + + 02 Sep 2005; Chris Gianelloni + +files/openal-20050504-alsa_dmix.patch, +openal-20050504-r2.ebuild: + Added a new revision with dmix patch to resolve bug #104487. Changing + KEYWORDS from arch to ~arch on all stable architectures. + + 13 Aug 2005; Michael Hanselmann + openal-20050504-r1.ebuild: + Stable on ppc. + + 12 Aug 2005; Markus Rothe openal-20050504-r1.ebuild: + Stable on ppc64 + + 09 Aug 2005; Jeremy Huddleston + openal-20050504-r1.ebuild: + Stable amd64, sparc, x86. + +*openal-20050504-r1 (24 Jun 2005) + + 24 Jun 2005; Jeremy Huddleston + files/openal-20050504-destdir.patch, -openal-20050504.ebuild, + +openal-20050504-r1.ebuild: + include files now install to the proper location. + +*openal-20050504 (05 May 2005) + + 05 May 2005; Jeremy Huddleston + +files/openal-20050504-alsa_capture.patch, + +files/openal-20050504-destdir.patch, +openal-20050504.ebuild: + Version bump to correct bug #81658. + + 29 Mar 2005; Chris Gianelloni + -files/openal-20040303-alsa_capture.diff, -openal-20020127.ebuild, + -openal-20040303.ebuild: + Pruning old ebuilds. + + 11 Jan 2005; Jeremy Huddleston + openal-20040817.ebuild: + Install to the proper libdir. Fixes bug #77154. + + 16 Dec 2004; Markus Rothe openal-20040817.ebuild: + Stable on ppc64 + + 01 Nov 2004; Markus Rothe openal-20040817.ebuild: + Added gnuconfig_update to allow compilation on ppc64 and marked ~ppc64; bug + #67446 + + 06 Oct 2004; Jeremy Huddleston + +files/openal-20040817-destdir.patch: + Added correct multilib support. + + 15 Sep 2004; Jeremy Huddleston + openal-20040817.ebuild: + Stable amd64, sparc, x86. + +*openal-20040817 (17 Aug 2004) + + 17 Aug 2004; Chris Gianelloni + -files/openal-20040219-alsa_capture.diff, + +files/openal-20040817-alsa_capture.diff, -openal-20040218.ebuild, + +openal-20040817.ebuild: + Bumped to new snapshot and closing bug #58365. + + 17 Aug 2004; Chris Gianelloni openal-20040218.ebuild, + openal-20040303.ebuild: + Fixing license and closing bug #60628. + + 23 Jul 2004; Jeremy Huddleston + openal-20020127.ebuild: + Removed auto* from RDEPEND. + + 07 Jul 2004; Travis Tilley openal-20040303.ebuild: + stable on amd64 + + 18 Jun 2004; Jeremy Huddleston + openal-20040303.ebuild: + Added ~amd64. + + 07 Jun 2004; Michael Sterrett openal-20040218.ebuild, + openal-20040303.ebuild: + post_install() -> pkg_postinst() + + 08 May 2004; David Holm openal-20040303.ebuild: + Readded to ~ppc. Some wiseass dropped the keyword. + + 20 Apr 2004; Jeremy Huddleston + openal-20040218.ebuild: + QA fix. + + 18 Apr 2004; Chris Gianelloni openal-20040218.ebuild: + Marking 20040218 stable for amd64. + + 17 Apr 2004; Jeremy Huddleston + openal-20040303.ebuild: + eutils and WANT_AUTOCONF. + + 14 Apr 2004; Jason Wever openal-20040303.ebuild: + Added ~sparc keyword. + + 08 Apr 2004; Jeremy Huddleston + openal-20040303.ebuild: + Stable x86. + + 31 Mar 2004; Jeremy Huddleston + openal-20040218.ebuild: + inherit eutils. + + 26 Mar 2004; Jeremy Huddleston + openal-20040218.ebuild, openal-20040303.ebuild: + Removed explicit S=. + +*openal-20040303 (03 Mar 2004) + + 03 Mar 2004; Chris Gianelloni openal-20040303.ebuild, + files/openal-20040303-alsa_capture.diff: + Adding new version with updated patch to ~x86. + + 24 Feb 2004; Chris Gianelloni openal-20040218.ebuild: + Added ~AMD64. + + 24 Feb 2004; Chris Gianelloni openal-20040218.ebuild, + files/openal-20040218-alsa_capture.diff, + files/openal-20040219-alsa_capture.diff: + Updated with latest patch version. + + 20 Feb 2004; Chris Gianelloni openal-20040218.ebuild: + Fixed dependency for alsa >=alsa-libs-1.0.2. + + 19 Feb 2004; Chris Gianelloni openal-20040218.ebuild, + files/openalrc: + Adding sample openalrc. + +*openal-20040218 (18 Feb 2004) + + 18 Feb 2004; Chris Gianelloni metadata.xml, + openal-20040218.ebuild, files/openal-20040218-alsa_capture.diff: + Updating to new snapshot to fix VoIP problems with ut2004-demo. The new ebuild + is hard masked for now, but I will unmask it once I feel it has gotten + significant testing. Based on ebuild from floam and + modified by myself. Closing bug #41978. + + 18 Feb 2004; Martin Holzer openal-20020127.ebuild: + adding export WANT_AUTOCONF=2.1 closes 41948 + + 08 Nov 2003; Brad House openal-20020127.ebuild: + add amd64 flag + + 14 Jul 2003; Patrick Kursawe openal-20020127.ebuild: + Added depend on autoconf-2.57-r1 because of bug 19504 + + 14 Jan 2003; Mark Guertin : openal-20020127.ebuild : + set ~ppc in keywords + + 06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords + +*openal-20020127 (13 Apr 2002) + + 02 Oct 2002; Seemant Kulleen openal-20020127.ebuild : + + changed "smpeg" USE flag to "mpeg" USE flag, which exists. + + 11 Sep 2002; Mark Guertin : + set nasm as x86 only dependancy + + 13 Apr 2002; Bruce A. Locke openal-20020127.ebuild : + + OpenAL added to Gentoo + + diff --git a/media-libs/openal/Manifest b/media-libs/openal/Manifest new file mode 100644 --- /dev/null +++ b/media-libs/openal/Manifest @@ -0,0 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 0.0.8/000_all_freebsd.patch 1529 RMD160 83e606793f0f1026805788d5cefe25741b46f5b4 SHA1 183e95e2c904326b0168c0cab20ce32025ae444a SHA256 88786243c636461e33a6b23af59a626ca8697d7c070eaa0e299250319472f949 +AUX 0.0.8/002_all_alc_context.patch 513 RMD160 c6cc5325f2aa392bb3c132d551c8e682c4aed3b3 SHA1 7f11175192c994252712a80faf09d157d65534a2 SHA256 f2528c180dc98b445cf9de45f5f50f38bf66927baaf89e4e590332743b8e8faa +AUX 0.0.8/002_all_alsa_default.patch 371 RMD160 071742871b574bb022a47d0c6543bcc003823bdb SHA1 3d3535dc16b1cc3cc004e354b7a9e9683d5d70aa SHA256 1b39c959e9784dca1d0666a8896f5dd2f86cf00988e20ffc2361281bbc93f4c8 +AUX 0.0.8/003_all_mmx.patch 569 RMD160 fd95afd51f758ed0f6208489277bd9aced930893 SHA1 2f18b57f7ce1a30e822653a383ea7123e136e7f7 SHA256 e06894c8ac5ae9d034bad2f2d72a77510325d8318f6d13a14801252207d317d0 +AUX 0.0.8/004_all_gcc42.patch 1250 RMD160 e8e71352aa1819b11f4a615df7ad9ff2073b3f16 SHA1 c4add308ff0ef56a1fa506ab675ca4a644db1191 SHA256 2e09a8208815c00b1c1df6b7e711eb0589618ba1797be36c579f9938094155a8 +AUX 0.0.8/005_all_alsa_default_freq.patch 482 RMD160 2af1e5234a68ee3d7b783c138bf67dd5ce97a2b3 SHA1 e2cc4978a82d1b92df76ce8654ce7ecb02199abc SHA256 4bf4b77cf5b2b9655261e8669cd5c065fe378266c49dc78bd1eb4556d3fd5a39 +AUX openal-soft-1.7.411-multilib.patch 429 RMD160 67194aace37895c177cd366510de1400e6c2e952 SHA1 7db11463f81b8513af5b75ea23e7540f850df2cf SHA256 0c03b75b081bbc67819ba6089a82852efa3e70bd0df94da8f348d4f47b884f78 +AUX openalrc 221 RMD160 9afe92b1f944edba63bef98aff1a06174b7ddb5c SHA1 3a99c21694ff8de541217712f309bafda10ffc69 SHA256 64d99c4ac168e76d2af347230ec137baea7d72f1d73f5c34c06ef859cf74ecb6 +DIST openal-0.0.8.tar.gz 870671 RMD160 29368dbceea7cfd8b5c520b9e0f0cfdc7324e265 SHA1 31aaedc18bd26759bd51f4fa495bc4ccb08acb3e SHA256 723e2c57c3cdffa7ff11f9b6b5478d6cb4af017e5a1ee7a56032969c39c1c2fe +DIST openal-soft-1.5.304.tar.bz2 75067 RMD160 fa614b1aa39878e6d5e4ca71d67340e6a70acef2 SHA1 01d066a71f59faad8272f625637ea86edeced98f SHA256 7a82a2ab5ff8c21dc4d50330f1c700762b43a1524be389a7dbd6df9a2ff3464c +DIST openal-soft-1.6.372.tar.bz2 77568 RMD160 2da52d8d70cd962901987b1103d30f838c7c27a0 SHA1 4369709733481e9b7270265bab543c1c8373f44a SHA256 f69b2ee7768b8b7eff324d9bc6044c903ab40ddc294c4d37d4ccb092adc7c8b8 +DIST openal-soft-1.7.411.tar.bz2 82002 RMD160 14b9e87970fa0042d3bc46dfd8424043f52f017f SHA1 b43085f176a29746aba7cef54d362a023f4deed1 SHA256 11319e09e03a7a7a6330196ed6c4d377d5af05ac5544e13b13b77888c0db78d9 +EBUILD openal-0.0.8-r2.ebuild 1453 RMD160 1d9f894c90ab4f85febf9672d57f429514e9aa07 SHA1 ea8eb594fb7bc4808dd327ec0d8e201c3814afc9 SHA256 d9270b9f48095ff8484f5197d1fc27b74d0af2bbf07e3dc222e06a98f45977e2 +EBUILD openal-1.5.304.ebuild 1085 RMD160 eb94ac5aeb3443dbea03eec4f403359146e73ff3 SHA1 c916f8d791db7a1cdc118c0eb376bd69a74afa01 SHA256 3d9299634150b35fe843529d7fd2aed35c189a9a769d500eee58e5c1024aa68c +EBUILD openal-1.6.372.ebuild 1095 RMD160 5771512160f9c6f21f6532eae1ba109c26aeb888 SHA1 9c450bcb620d081da855ebfbcf92340d6fc36369 SHA256 272c81689bf7ecce8c1cd361ba9d4f816a058afbe34a4a403de215d88ab96aa1 +EBUILD openal-1.7.411.ebuild 1242 RMD160 101991dc285d86cfe71696d22d34f8816ffe42ee SHA1 e5f70a9431a1feb34fed406fbf12349a0adbf38d SHA256 b7e6838b7eff3fde583faa5ef8f41a51de4feb97907f0c2129714eb156c704b6 +MISC ChangeLog 15622 RMD160 8532c7573805976cd796721737b74628821c4171 SHA1 02e4f45b49bca3ab8db82829f271c8147c780edb SHA256 987bed1be3b055225ad3e94f58551fb3cb4a9ad881f8299362d6e0fcc1191ca0 +MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkndBQQACgkQr2QksT29OyCP4QCdGJ8m6lWdKl+yNygi5V3URSn/ +NxwAniwz/7vpD9zT1sUjNb1i+N6xaAqj +=6pmL +-----END PGP SIGNATURE----- diff --git a/media-libs/openal/files/0.0.8/000_all_freebsd.patch b/media-libs/openal/files/0.0.8/000_all_freebsd.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/0.0.8/000_all_freebsd.patch @@ -0,0 +1,69 @@ +--- src/backends/alc_backend_bsd.c.orig Sat Apr 22 12:25:15 2006 ++++ src/backends/alc_backend_bsd.c Sat Apr 22 12:26:15 2006 +@@ -9,7 +9,10 @@ + */ + #include "al_siteconfig.h" + ++#define __BSD_VISIBLE 1 ++ + #include ++#include + #include + #include + #include +@@ -113,7 +114,6 @@ + */ + static void *grab_write_native(void) { + const char *dsppath = "/dev/dsp"; +- int divisor = _alSpot(_AL_DEF_BUFSIZ) | (2<<16); + + dsp_fd = open(dsppath, O_WRONLY | O_NONBLOCK); + +@@ -126,10 +126,6 @@ + perror("fcntl"); + } + +- if(ioctl(dsp_fd, SNDCTL_DSP_SETFRAGMENT, &divisor) < 0) { +- perror("ioctl SETFRAGMENT"); +- } +- + FD_ZERO(&dsp_fd_set); + FD_SET(dsp_fd, &dsp_fd_set); + +@@ -318,10 +314,11 @@ + } + + static ALboolean set_write_native(UNUSED(void *handle), +- UNUSED(unsigned int *bufsiz), ++ unsigned int *bufsiz, + ALenum *fmt, + unsigned int *speed) { + ALuint channels = _alGetChannelsFromFormat(*fmt); ++ int divisor; + + if(dsp_fd < 0) { + return AL_FALSE; +@@ -363,6 +360,23 @@ + + + *fmt = BSD2ALFMT(*fmt, channels); ++ ++ if(ioctl(dsp_fd, SNDCTL_DSP_GETBLKSIZE, bufsiz) < 0) { ++#ifdef DEBUG_MAXIMUS ++ fprintf(stderr, "blksize %d\n", *bufsiz); ++ perror("get_devsp blksize ioctl"); ++#endif ++ return AL_FALSE; ++ } ++ ++ divisor = _alSpot(*bufsiz) | (2<<16); ++ if(ioctl(dsp_fd, SNDCTL_DSP_SETFRAGMENT, &divisor) < 0) { ++#ifdef DEBUG_MAXIMUS ++ fprintf(stderr, "divisor %d\n", divisor); ++ perror("set_devsp fragment ioctl"); ++#endif ++ return AL_FALSE; ++ } + + return AL_TRUE; + } diff --git a/media-libs/openal/files/0.0.8/002_all_alc_context.patch b/media-libs/openal/files/0.0.8/002_all_alc_context.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/0.0.8/002_all_alc_context.patch @@ -0,0 +1,17 @@ +--- openal-0.0.8/src/alc/alc_context.c.ori 2006-09-29 12:36:33.000000000 -0400 ++++ openal-0.0.8/src/alc/alc_context.c 2006-09-29 12:38:05.000000000 -0400 +@@ -236,8 +236,12 @@ + /* someone unpaused us */ + ispaused = AL_FALSE; + +- _alcDeviceResume( cc->write_device ); +- _alcDeviceResume( cc->read_device ); ++ if (cc->write_device) { ++ _alcDeviceResume( cc->write_device ); ++ } ++ if (cc->read_device) { ++ _alcDeviceResume( cc->read_device ); ++ } + + _alcUnlockAllContexts(); + _alUnlockMixerPause(); diff --git a/media-libs/openal/files/0.0.8/002_all_alsa_default.patch b/media-libs/openal/files/0.0.8/002_all_alsa_default.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/0.0.8/002_all_alsa_default.patch @@ -0,0 +1,11 @@ +--- openal-0.0.8/src/backends/alc_backend_alsa.c.ori 2006-09-29 12:48:06.000000000 -0400 ++++ openal-0.0.8/src/backends/alc_backend_alsa.c 2006-09-29 12:48:17.000000000 -0400 +@@ -153,7 +153,7 @@ + } + + /* alsa stuff */ +-#define DEFAULT_DEVICE "plughw:0,0" ++#define DEFAULT_DEVICE "default:0,0" + + /* convert from AL to ALSA format */ + static int AL2ALSAFMT(ALenum format); diff --git a/media-libs/openal/files/0.0.8/003_all_mmx.patch b/media-libs/openal/files/0.0.8/003_all_mmx.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/0.0.8/003_all_mmx.patch @@ -0,0 +1,27 @@ +--- src/arch/i386/x86_floatmul.c ++++ src/arch/i386/x86_floatmul.c +@@ -27,6 +27,7 @@ + /* MMX routine needs 16 */ + #define SCALING_POWER 16 + #define SCALING_FACTOR (1 << SCALING_POWER) ++#define MIN_ENTER_SIMD_LEN 48 + + void _alFloatMul(ALshort *bpt, ALfloat sa, ALuint len); + +@@ -34,6 +35,8 @@ + ALint scaled_sa = sa * SCALING_FACTOR; + ALint iter; + ++ if (len < MIN_ENTER_SIMD_LEN) ++ goto skip_simd; + #ifdef __MMX__ + if (_alHaveMMX()) { + union { +@@ -93,6 +96,7 @@ + __builtin_ia32_emms(); + } + #endif /* __MMX__ */ ++skip_simd: + + while(len--) { + iter = *bpt; diff --git a/media-libs/openal/files/0.0.8/004_all_gcc42.patch b/media-libs/openal/files/0.0.8/004_all_gcc42.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/0.0.8/004_all_gcc42.patch @@ -0,0 +1,21 @@ +diff -Naur openal-0.0.8-orig/common/include/AL/alc.h openal-0.0.8/common/include/AL/alc.h +--- openal-0.0.8-orig/common/include/AL/alc.h 2006-02-11 03:36:55.000000000 -0600 ++++ openal-0.0.8/common/include/AL/alc.h 2007-02-13 14:33:57.000000000 -0600 +@@ -187,7 +187,7 @@ + + ALC_API void ALC_APIENTRY alcDestroyContext( ALCcontext *context ); + +-ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid ); ++ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( void ); + + ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice( ALCcontext *context ); + +@@ -248,7 +248,7 @@ + typedef void (ALC_APIENTRY *LPALCPROCESSCONTEXT)( ALCcontext *context ); + typedef void (ALC_APIENTRY *LPALCSUSPENDCONTEXT)( ALCcontext *context ); + typedef void (ALC_APIENTRY *LPALCDESTROYCONTEXT)( ALCcontext *context ); +-typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( ALCvoid ); ++typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( void ); + typedef ALCdevice * (ALC_APIENTRY *LPALCGETCONTEXTSDEVICE)( ALCcontext *context ); + typedef ALCdevice * (ALC_APIENTRY *LPALCOPENDEVICE)( const ALCchar *devicename ); + typedef ALCboolean (ALC_APIENTRY *LPALCCLOSEDEVICE)( ALCdevice *device ); diff --git a/media-libs/openal/files/0.0.8/005_all_alsa_default_freq.patch b/media-libs/openal/files/0.0.8/005_all_alsa_default_freq.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/0.0.8/005_all_alsa_default_freq.patch @@ -0,0 +1,12 @@ +diff -urN openal-0.0.8.orig/src/alc/alc_context.h openal-0.0.8/src/alc/alc_context.h +--- openal-0.0.8.orig/src/alc/alc_context.h 2005-11-18 05:31:47.000000000 -0800 ++++ openal-0.0.8/src/alc/alc_context.h 2007-09-20 13:16:22.000000000 -0700 +@@ -18,7 +18,7 @@ + /* + * _ALC_DEF_FREQ is the default internal mixing frequency. + */ +-#define _ALC_DEF_FREQ 44100 ++#define _ALC_DEF_FREQ 48000 + + /* + * _ALC_DEF_BUFSIZ is the default length of chunks mixed and written to the diff --git a/media-libs/openal/files/openal-soft-1.7.411-multilib.patch b/media-libs/openal/files/openal-soft-1.7.411-multilib.patch new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/openal-soft-1.7.411-multilib.patch @@ -0,0 +1,11 @@ +--- openal-soft-1.7.411/CMakeLists.txt.1 2009-04-07 18:07:09.000000000 +0200 ++++ openal-soft-1.7.411/CMakeLists.txt 2009-04-07 18:07:41.000000000 +0200 +@@ -47,7 +47,7 @@ + SET(LIB_BUILD_VERSION "411") + SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_BUILD_VERSION}") + IF(NOT DEFINED LIB_INSTALL_DIR) +- SET(LIB_INSTALL_DIR "lib") ++ SET(LIB_INSTALL_DIR "lib${LIB_SUFFIX}") + ENDIF(NOT DEFINED LIB_INSTALL_DIR) + + diff --git a/media-libs/openal/files/openalrc b/media-libs/openal/files/openalrc new file mode 100644 --- /dev/null +++ b/media-libs/openal/files/openalrc @@ -0,0 +1,9 @@ +# Contains user settings for OpenAL +# Goes in ~/.openalrc + +# Use ALSA (also valid: sdl, native) +(define devices '(alsa)) + +# Four speaker surround with ALSA +(define speaker-num 4) +(define alsa-out-device "surround40:0,0") diff --git a/media-libs/openal/metadata.xml b/media-libs/openal/metadata.xml new file mode 100644 --- /dev/null +++ b/media-libs/openal/metadata.xml @@ -0,0 +1,5 @@ + + + +sound + diff --git a/media-libs/openal/openal-0.0.8-r2.ebuild b/media-libs/openal/openal-0.0.8-r2.ebuild new file mode 100644 --- /dev/null +++ b/media-libs/openal/openal-0.0.8-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-0.0.8-r2.ebuild,v 1.8 2008/12/17 05:09:40 ssuominen Exp $ + +inherit autotools eutils + +DESCRIPTION="an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio" +HOMEPAGE="http://www.openal.org" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="alsa arts debug esd mp3 sdl vorbis" + +RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.2 ) + arts? ( kde-base/arts ) + esd? ( media-sound/esound ) + sdl? ( media-libs/libsdl ) + vorbis? ( media-libs/libvorbis ) + mp3? ( media-libs/libmad )" + +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + EPATCH_SUFFIX="patch" + epatch "${FILESDIR}"/${PV} || die + + sed -i \ + -e "/^Requires:/d" \ + admin/pkgconfig/openal.pc.in || die "sed openal.pc.in failed" + eautoconf \ + || die "autoconf failed" + +} + +src_compile() { + econf \ + --libdir=/usr/$(get_libdir) \ + $(use_enable esd) \ + $(use_enable sdl) \ + $(use_enable alsa) \ + $(use_enable arts) \ + $(use_enable mp3) \ + $(use_enable vorbis) \ + $(use_enable debug debug-maximus) \ + || die "econf failed" + + emake -j1 all \ + || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install \ + || die "make install failed" + + dodoc AUTHORS ChangeLog NEWS NOTES README TODO +} diff --git a/media-libs/openal/openal-1.5.304.ebuild b/media-libs/openal/openal-1.5.304.ebuild new file mode 100644 --- /dev/null +++ b/media-libs/openal/openal-1.5.304.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-1.5.304.ebuild,v 1.11 2008/12/25 13:53:29 klausman Exp $ + +inherit eutils cmake-utils + +MY_P=${PN}-soft-${PV} + +DESCRIPTION="A software implementation of the OpenAL 3D audio API" +HOMEPAGE="http://kcat.strangesoft.net/openal.html" +SRC_URI="http://kcat.strangesoft.net/openal-releases/${MY_P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" +IUSE="alsa oss debug" + +DEPEND="alsa? ( media-libs/alsa-lib )" + +S=${WORKDIR}/${MY_P} + +DOCS="alsoftrc.sample" + +src_compile() { + local mycmakeargs="" + + use alsa || mycmakeargs="${mycmakeargs} -DALSA=OFF" + use oss || mycmakeargs="${mycmakeargs} -DOSS=OFF" + use debug && mycmakeargs="${mycmakeargs} -DCMAKE_BUILD_TYPE=Debug" + + cmake-utils_src_compile +} + +pkg_postinst() { + einfo "If you have performance problems using this library, then" + einfo "try add these lines to your ~/.alsoftrc config file:" + einfo "[alsa]" + einfo "mmap = off" +} diff --git a/media-libs/openal/openal-1.6.372.ebuild b/media-libs/openal/openal-1.6.372.ebuild new file mode 100644 --- /dev/null +++ b/media-libs/openal/openal-1.6.372.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-1.6.372.ebuild,v 1.10 2009/03/15 15:00:54 ranger Exp $ + +inherit eutils cmake-utils + +MY_P=${PN}-soft-${PV} + +DESCRIPTION="A software implementation of the OpenAL 3D audio API" +HOMEPAGE="http://kcat.strangesoft.net/openal.html" +SRC_URI="http://kcat.strangesoft.net/openal-releases/${MY_P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="alsa oss debug" + +DEPEND="alsa? ( media-libs/alsa-lib )" + +S=${WORKDIR}/${MY_P} + +DOCS="alsoftrc.sample" + +src_compile() { + local mycmakeargs="" + + use alsa || mycmakeargs="${mycmakeargs} -DALSA=OFF" + use oss || mycmakeargs="${mycmakeargs} -DOSS=OFF" + use debug && mycmakeargs="${mycmakeargs} -DCMAKE_BUILD_TYPE=Debug" + + cmake-utils_src_compile +} + +pkg_postinst() { + einfo "If you have performance problems using this library, then" + einfo "try add these lines to your ~/.alsoftrc config file:" + einfo "[alsa]" + einfo "mmap = off" +} diff --git a/media-libs/openal/openal-1.7.411.ebuild b/media-libs/openal/openal-1.7.411.ebuild new file mode 100644 --- /dev/null +++ b/media-libs/openal/openal-1.7.411.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-1.7.411.ebuild,v 1.1 2009/04/08 20:11:46 hanno Exp $ + +inherit eutils cmake-utils + +MY_P=${PN}-soft-${PV} + +DESCRIPTION="A software implementation of the OpenAL 3D audio API" +HOMEPAGE="http://kcat.strangesoft.net/openal.html" +SRC_URI="http://kcat.strangesoft.net/openal-releases/${MY_P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="alsa oss debug" +DEPEND="alsa? ( media-libs/alsa-lib )" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${MY_P} + +DOCS="alsoftrc.sample" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/openal-soft-1.7.411-multilib.patch" || die "epatch failed" +} + +src_compile() { + local mycmakeargs="" + + use alsa || mycmakeargs="${mycmakeargs} -DALSA=OFF" + use oss || mycmakeargs="${mycmakeargs} -DOSS=OFF" + use debug && mycmakeargs="${mycmakeargs} -DCMAKE_BUILD_TYPE=Debug" + + cmake-utils_src_compile +} + +pkg_postinst() { + einfo "If you have performance problems using this library, then" + einfo "try add these lines to your ~/.alsoftrc config file:" + einfo "[alsa]" + einfo "mmap = off" +}