From 773d2fc5f62dcefd927d30e50965e2fb9905ddad Mon Sep 17 00:00:00 2001 From: Diskmaster Date: Mon, 18 Aug 2008 05:11:01 -0500 Subject: [PATCH] Initial commit for 1.0.18-rc1 alsa (alsa-lib 1.0.17 -> 1.0.17a, REQUIRED if you are going to use .27-rc3!) --- media-libs/alsa-lib/Manifest | 5 +- media-libs/alsa-lib/alsa-lib-1.0.17-r4.ebuild | 102 ------------ ...-1.0.17-r3.ebuild => alsa-lib-1.0.17-r5.ebuild} | 7 +- media-plugins/alsa-plugins/Manifest | 1 + .../alsa-plugins/alsa-plugins-1.0.18_rc1.broken | 73 +++++++++ media-sound/alsa-driver/Manifest | 2 + media-sound/alsa-driver/NOTE | 1 + .../alsa-driver/alsa-driver-1.0.18_rc1.ebuild | 181 +++++++++++++++++++++ media-sound/alsa-utils/Manifest | 1 + .../alsa-utils/alsa-utils-1.0.18_rc1.broken | 99 +++++++++++ 10 files changed, 364 insertions(+), 108 deletions(-) delete mode 100644 media-libs/alsa-lib/alsa-lib-1.0.17-r4.ebuild rename media-libs/alsa-lib/{alsa-lib-1.0.17-r3.ebuild => alsa-lib-1.0.17-r5.ebuild} (94%) create mode 100644 media-plugins/alsa-plugins/alsa-plugins-1.0.18_rc1.broken create mode 100644 media-sound/alsa-driver/NOTE create mode 100644 media-sound/alsa-driver/alsa-driver-1.0.18_rc1.ebuild create mode 100644 media-sound/alsa-utils/alsa-utils-1.0.18_rc1.broken diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest index bab3f92..b05bc30 100644 --- a/media-libs/alsa-lib/Manifest +++ b/media-libs/alsa-lib/Manifest @@ -1,6 +1,5 @@ AUX git-update-1.patch 7968 RMD160 2d6fc76377cea74bce32e83d327e5518db314ec2 SHA1 158d10fca607e7bd674f20b7ba6903bcbe3018d6 SHA256 c9e7fca40c5ac3f3b77f99344c0f86fb38cd1d9ced009f0a4e0f0972e32ac635 AUX git-update-2.patch 9449 RMD160 9f541891a897d62c407359fd59a48bbd45940ed2 SHA1 35711e40b467785d8e3ec41d14cb0d747ee4c1f3 SHA256 623ba68114eebbafa4202ada283207933c74a1550dbc51dfa3a1da5b905ac5fc -DIST alsa-lib-1.0.17.tar.bz2 788551 RMD160 112f530c2010c5c89963c85136ff9a93b0f40230 SHA1 8f778814db57e87e5363352af673ca38c882bab8 SHA256 bc691463af8506c1c84db0edab727ee8f8ee4ecd1777b0e264db2525d4500833 -EBUILD alsa-lib-1.0.17-r3.ebuild 2951 RMD160 1c39d8da0da827df99de01e71dff69280708bb81 SHA1 1b80c84a6d81a41248e1ff0588d5e62acd150447 SHA256 b2abe2252f6c7dd1531789b617b4e0f8eaa56fa991be0b29622c7628834a2556 -EBUILD alsa-lib-1.0.17-r4.ebuild 2992 RMD160 480b75ce3cae9983421861f06c9b4704ff8cb017 SHA1 baf8496bcecc6b5994e682edb926095d1afec42a SHA256 1ccfbb2086e802d25cb89817d3de10aca521383ba89a855f025e70a0425346e9 +DIST alsa-lib-1.0.17a.tar.bz2 789428 RMD160 ff4c8478bbc421225628419e4ffcb10be47c7826 SHA1 b79a6ee7040a59df5b5c066aced517881495fa87 SHA256 ace3d9c57eae65c7f292704b49c3806a1f90ce2cdeb4aca1e5abf021127ad3ed +EBUILD alsa-lib-1.0.17-r5.ebuild 2996 RMD160 4fe63c1154882f56924493d4c22692228354b0f7 SHA1 6c5b983e5a7d887f772b2de9fee70da860e61cbc SHA256 f35e39ec82d8971e889c254f65edcbd38087d2d8a7d363e3da8da5dee119bcd1 MISC metadata.xml 220 RMD160 e49f8bb330d1798cd2c8ee5335cef1784f0d7ccb SHA1 1b895fe6cae4b8eab08ba1a6a1212baf4b4b4105 SHA256 8570ef11cd59b0d8edb71e78eecaec423616836b10eacb86bee0de941f0ae054 diff --git a/media-libs/alsa-lib/alsa-lib-1.0.17-r4.ebuild b/media-libs/alsa-lib/alsa-lib-1.0.17-r4.ebuild deleted file mode 100644 index 233adb2..0000000 --- a/media-libs/alsa-lib/alsa-lib-1.0.17-r4.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/media-libs/alsa-lib/alsa-lib-1.0.17.ebuild,v 1.1 2008/08/02 21:02:23 betelgeuse Exp $ - -inherit eutils libtool - -MY_P="${P/_rc/rc}" -S="${WORKDIR}/${MY_P}" - -DESCRIPTION="Advanced Linux Sound Architecture Library" -HOMEPAGE="http://www.alsa-project.org/" -SRC_URI="mirror://alsaproject/lib/${MY_P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" -IUSE="doc debug alisp midi python" - -RDEPEND="python? ( dev-lang/python )" -DEPEND="${RDEPEND} - >=media-sound/alsa-headers-${PV} - doc? ( >=app-doc/doxygen-1.2.6 )" - -IUSE_PCM_PLUGIN="copy linear route mulaw alaw adpcm rate plug multi shm file -null empty share meter mmap_emul hooks lfloat ladspa dmix dshare dsnoop asym iec958 -softvol extplug ioplug" - -for plugin in ${IUSE_PCM_PLUGIN}; do - IUSE="${IUSE} alsa_pcm_plugins_${plugin}" -done - -pkg_setup() { - if [ -z "${ALSA_PCM_PLUGINS}" ] ; then - ewarn "You haven't selected _any_ PCM plugins. Either you set it to something like the default" - ewarn "(which is being set in the profile UNLESS you unset them) or alsa based applications" - ewarn "are going to *misbehave* !" - epause 5 - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - # git updates - epatch "${FILESDIR}"/git-update-1.patch - epatch "${FILESDIR}"/git-update-2.patch - - elibtoolize - epunt_cxx -} - -src_compile() { - local myconf - use elibc_uclibc && myconf="--without-versioned" - - # needed to avoid gcc looping internaly - use hppa && export CFLAGS="-O1 -pipe" - - econf \ - --enable-static \ - --enable-shared \ - --disable-resmgr \ - $(use_with debug) \ - $(use_enable alisp) \ - $(use_enable python) \ - $(use_enable midi rawmidi) \ - $(use_enable midi seq) \ - $(use_enable midi aload) \ - --with-pcm-plugins="${ALSA_PCM_PLUGINS}" \ - --disable-dependency-tracking \ - ${myconf} \ - || die "configure failed" - - emake || die "make failed" - - if use doc; then - emake doc || die "failed to generate docs" - fgrep -Zrl "${S}" "${S}/doc/doxygen/html" | \ - xargs -0 sed -i -e "s:${S}::" - fi -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - - dodoc ChangeLog TODO || die - use doc && dohtml -r doc/doxygen/html/* -} - -pkg_postinst() { - ewarn "Starting from alsa 1.0.11_rc3 the configuration for dmix is changed." - ewarn "Leaving around old asound.conf or ~/.asoundrc might make all apps" - ewarn "using ALSA output crash." - ewarn "Note that dmix output is enabled by default on the 'default' device" - ewarn "since ALSA 1.0.9." - elog "" - elog "Please try in-kernel ALSA drivers instead of the alsa-drivers ebuild." - elog "If alsa-drivers works for you where a recent kernel does not, we want " - elog "to know about this. Our e-mail address is alsa-bugs@gentoo.org" - elog "However, if you notice no sound output or instability, please try to " - elog "upgrade your kernel to a newer version first." -} diff --git a/media-libs/alsa-lib/alsa-lib-1.0.17-r3.ebuild b/media-libs/alsa-lib/alsa-lib-1.0.17-r5.ebuild similarity index 94% rename from media-libs/alsa-lib/alsa-lib-1.0.17-r3.ebuild rename to media-libs/alsa-lib/alsa-lib-1.0.17-r5.ebuild index 36a0054..d73f05d 100644 --- a/media-libs/alsa-lib/alsa-lib-1.0.17-r3.ebuild +++ b/media-libs/alsa-lib/alsa-lib-1.0.17-r5.ebuild @@ -5,11 +5,11 @@ inherit eutils libtool MY_P="${P/_rc/rc}" -S="${WORKDIR}/${MY_P}" +S="${WORKDIR}/${MY_P}a" DESCRIPTION="Advanced Linux Sound Architecture Library" HOMEPAGE="http://www.alsa-project.org/" -SRC_URI="mirror://alsaproject/lib/${MY_P}.tar.bz2" +SRC_URI="mirror://alsaproject/lib/${MY_P}a.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" @@ -42,7 +42,8 @@ src_unpack() { unpack ${A} cd "${S}" # git updates - epatch "${FILESDIR}"/git-update-1.patch + #epatch "${FILESDIR}"/git-update-1.patch + #epatch "${FILESDIR}"/git-update-2.patch elibtoolize epunt_cxx diff --git a/media-plugins/alsa-plugins/Manifest b/media-plugins/alsa-plugins/Manifest index 1102e62..4c21715 100644 --- a/media-plugins/alsa-plugins/Manifest +++ b/media-plugins/alsa-plugins/Manifest @@ -9,4 +9,5 @@ AUX ffmpeg-headers.patch 2016 RMD160 2a0e21f32de08172912d14ab007db1af46bf4e96 SH AUX git-update.patch 19085 RMD160 d1afe02def97b53f39343ba77f50d19eb859c807 SHA1 4690501d4af42753c5c38d2d8b7c73dee50cac2c SHA256 6bc7aba5526b53f819f45e4c41ae5ffac54cb3238a5ea5a0b04a9a76b20d3bb5 DIST alsa-plugins-1.0.17.tar.bz2 308119 RMD160 488661a743460d0f09d6679252798f65e4817cb3 SHA1 aac646dd368b8c42e12548356a5b66dcedd4d754 SHA256 35a7e1411ab7b34353136ecfbd2267201d37b671f48b946bf238a6d1f7fdf560 EBUILD alsa-plugins-1.0.17-r2.ebuild 2060 RMD160 72131ada50b6d7b3654ea614e2a0bc1794d5d653 SHA1 13efebd5f735e2296ab90010d0d9a0a34bdfea50 SHA256 c9f79861ed5333bc92fa5e4c94393ca646e77252bc2b485a0f6bf7e50664a47a +MISC alsa-plugins-1.0.18_rc1.broken 2114 RMD160 a61d51ff7b75927d20c099e370bf6da0ee38b429 SHA1 338bf34ec4ebf0d9c867e274af4110ac8129fda6 SHA256 e5c3632079a0c01a46f87d09bbb86546b85c5e45b6a052fcca991920678339e7 MISC metadata.xml 220 RMD160 e49f8bb330d1798cd2c8ee5335cef1784f0d7ccb SHA1 1b895fe6cae4b8eab08ba1a6a1212baf4b4b4105 SHA256 8570ef11cd59b0d8edb71e78eecaec423616836b10eacb86bee0de941f0ae054 diff --git a/media-plugins/alsa-plugins/alsa-plugins-1.0.18_rc1.broken b/media-plugins/alsa-plugins/alsa-plugins-1.0.18_rc1.broken new file mode 100644 index 0000000..45069bc --- /dev/null +++ b/media-plugins/alsa-plugins/alsa-plugins-1.0.18_rc1.broken @@ -0,0 +1,73 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.17-r1.ebuild,v 1.1 2008/08/06 22:37:28 yngwin Exp $ + +inherit libtool autotools eutils flag-o-matic + +MY_P="${P/_/}" + +DESCRIPTION="ALSA extra plugins" +HOMEPAGE="http://www.alsa-project.org/" +SRC_URI="mirror://alsaproject/plugins/${MY_P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="debug ffmpeg jack libsamplerate pulseaudio speex" +# 1.0.18_rc1 alsa-lib is nonexistant. lol 1.0.17a +RDEPEND=">=media-libs/alsa-lib-1.0.17-r4 + ffmpeg? ( media-video/ffmpeg ) + jack? ( >=media-sound/jack-audio-connection-kit-0.98 ) + libsamplerate? ( media-libs/libsamplerate ) + pulseaudio? ( media-sound/pulseaudio ) + speex? ( media-libs/speex ) + !media-plugins/alsa-jack" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-1.0.17-automagic.patch" + epatch "${FILESDIR}/${PN}-1.0.14_rc1-init-ffmpeg.patch" + epatch "${FILESDIR}"/ffmpeg-headers.patch + #epatch "${FILESDIR}"/git-update.patch + + # For some reasons the polyp/pulse plugin does fail with alsaplayer with a + # failed assert. As the code works just fine with asserts disabled, for now + # disable them waiting for a better solution. + sed -i -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \ + "${S}/pulse/Makefile.am" + + eautoreconf + elibtoolize +} + +src_compile() { + use debug || append-flags -DNDEBUG + + econf \ + $(use_enable ffmpeg avcodec) \ + $(use_enable jack) \ + $(use_enable libsamplerate samplerate) \ + $(use_enable pulseaudio) \ + $(use_with speex speex lib) \ + --disable-dependency-tracking \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install + + cd "${S}/doc" + dodoc upmix.txt vdownmix.txt README-pcm-oss + use jack && dodoc README-jack + use libsamplerate && dodoc samplerate.txt + use pulseaudio && dodoc README-pulse + use ffmpeg && dodoc lavcrate.txt a52.txt +} diff --git a/media-sound/alsa-driver/Manifest b/media-sound/alsa-driver/Manifest index 7a149f9..507dc9c 100644 --- a/media-sound/alsa-driver/Manifest +++ b/media-sound/alsa-driver/Manifest @@ -1,6 +1,8 @@ AUX git-update-r2.patch 79169 RMD160 fe663c20769c1cf6ef1a88418b6d79d3ad21b6b8 SHA1 ba50c61f3095e05eaef937e6cd33297f365e74bb SHA256 8ffbda22ba2f533d7a4a0bb879af000d72ffee8f6affefeb1c80cb842ad67b15 AUX git-update-r3.patch 80135 RMD160 cf26fbf4545367537ba6546d1c1f5329a2adcdab SHA1 80973ab075bdbfa5195af5f4be921ed2ef34bacb SHA256 c2842e77d49cb917d7e09c9d8566dbeab062029f91ec3a0da36a2a61017d183a DIST alsa-driver-1.0.17.tar.bz2 2725803 RMD160 e9e33ef8be8d808c66cc93e6bf124d16636c805c SHA1 82fc35333a43f834e5e4b16c425e3ee49d137ae8 SHA256 7695cc9c8c42b3d4fe4f918d24a751deb36b2fbb0ff2aaa2b1605c8ce11d4c9f +DIST alsa-driver-1.0.18rc1.tar.bz2 2733351 RMD160 0d016b73874c6350ac14065b3fd17ac2aed8499e SHA1 a8882668b6f56796db7904555c7dac0481e18775 SHA256 ede76093ce0ad736e0ff78667eca9ced38d2da37654b74317b79219a3be071c5 EBUILD alsa-driver-1.0.17-r2.ebuild 7402 RMD160 a2cbba624c3bcb402214e2465a3ab99a101dbd36 SHA1 1ff8cc271d0dca61400e62446f2af5abae59d27f SHA256 c1ca6ae00b9c455b20f9e1917958a1616b88fff79f9f6e3be7ce67b866d2bd19 EBUILD alsa-driver-1.0.17-r3.ebuild 7402 RMD160 a2cbba624c3bcb402214e2465a3ab99a101dbd36 SHA1 1ff8cc271d0dca61400e62446f2af5abae59d27f SHA256 c1ca6ae00b9c455b20f9e1917958a1616b88fff79f9f6e3be7ce67b866d2bd19 +EBUILD alsa-driver-1.0.18_rc1.ebuild 7007 RMD160 0cb78234edbc5087897a8e82b3e60e1cfe14f7fb SHA1 bd65041a069efe82321648c430cac8b4fc76cc64 SHA256 c0525e75e80b92340336f2301e3a5fdf350c87f0bce791661e469e6defac4b29 MISC metadata.xml 221 RMD160 848fcfc4919cdb7c9e9a86ca0a08b6a5249f7eaa SHA1 016299ad61b87d43b563a8c190e12a960b08bd48 SHA256 847e71bb827dbbdd370b3cf3c2820860013420127f454ba822d24a70c0b61cf3 diff --git a/media-sound/alsa-driver/NOTE b/media-sound/alsa-driver/NOTE new file mode 100644 index 0000000..1c13f90 --- /dev/null +++ b/media-sound/alsa-driver/NOTE @@ -0,0 +1 @@ +alsa-driver is untested, since most sane people run in-kernel alsa. diff --git a/media-sound/alsa-driver/alsa-driver-1.0.18_rc1.ebuild b/media-sound/alsa-driver/alsa-driver-1.0.18_rc1.ebuild new file mode 100644 index 0000000..ab54d34 --- /dev/null +++ b/media-sound/alsa-driver/alsa-driver-1.0.18_rc1.ebuild @@ -0,0 +1,181 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.16.ebuild,v 1.1 2008/04/14 02:47:04 beandog Exp $ + +inherit autotools linux-mod flag-o-matic eutils multilib linux-info + +MY_P="${P/_rc/rc}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Advanced Linux Sound Architecture kernel modules" +HOMEPAGE="http://www.alsa-project.org/" +RESTRICT="nomirror" + +if [[ ${MY_P} == ${MY_P/_p*/} ]]; then + SRC_URI="mirror://alsaproject/driver/${MY_P}.tar.bz2" +else # Gentoo snapshots + SRC_URI="mirror://gentoo/${MY_P}.tar.bz2" +fi + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" + +KEYWORDS="-amd64 -x86" +IUSE="oss debug midi" + +IUSE_CARDS="seq-dummy dummy virmidi mtpav mts64 serial-u16550 mpu401 +loopback portman2x4 pcsp ad1848-lib adlib ad1816a ad1848 +als100 azt2320 cmi8330 cs4231 cs4232 cs4236 dt019x es968 es1688 es18xx +gusclassic gusextreme gusmax interwave interwave-stb opl3sa2 +opti92x-ad1848 opti92x-cs4231 opti93x miro sb8 sb16 sbawe sgalaxy +sscape wavefront pc98-cs4232 msnd-pinnacle ad1889 als300 als4000 +ali5451 atiixp atiixp-modem au8810 au8820 au8830 azt3328 bt87x ca0106 +cmipci cs4281 cs46xx cs5535audio darla20 gina20 layla20 darla24 gina24 +layla24 mona mia echo3g indigo indigoio indigodj emu10k1 emu10k1x +ens1370 ens1371 es1938 es1968 fm801 fm801-tea575x hda-intel hdsp hdspm +ice1712 ice1724 intel8x0 intel8x0m korg1212 maestro3 mixart nm256 +pcxhr riptide rme32 rme96 rme9652 sonicvibes trident via82xx +via82xx-modem vx222 ymfpci pdplus asihpi powermac aoa +aoa-fabric-layout aoa-onyx aoa-tas aoa-toonie aoa-soundbus +aoa-soundbus-i2s sa11xx-uda1341 armaaci s3c2410 pxa2xx-i2sound au1x00 +usb-audio usb-usx2y vxpocket pdaudiocf sun-amd7930 sun-cs4231 sun-dbri +harmony soc at91-soc at91-soc-eti-b1-wm8731 pxa2xx-soc +pxa2xx-soc-corgi pxa2xx-soc-spitz pxa2xx-soc-poodle pxa2xx-soc-tosa hifier +ml403-ac97cr oxygen pxa2xx-soc-e800 sis7019 virtuoso" + +for iuse_card in ${IUSE_CARDS}; do + IUSE="${IUSE} alsa_cards_${iuse_card}" +done + +RDEPEND="virtual/modutils + !media-sound/snd-aoa" +DEPEND="${RDEPEND} + >=media-sound/alsa-headers-${PV} + virtual/linux-sources + sys-apps/debianutils" + +PROVIDE="virtual/alsa" + +pkg_setup() { + # By default, drivers for all supported cards will be compiled. + # If you want to only compile for specific card(s), set ALSA_CARDS + # environment to a space-separated list of drivers that you want to build. + # For example: + # + # env ALSA_CARDS='emu10k1 intel8x0 ens1370' emerge alsa-driver + # + ALSA_CARDS=${ALSA_CARDS:-${IUSE_ALSA_CARDS}} + + local PNP_DRIVERS="interwave interwave-stb" + local PNP_ERROR="Some of the drivers you selected require PnP support in your kernel (${PNP_DRIVERS}). Either enable PnP in your kernel or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf." + + local ISA_DRIVERS="cs4232 msnd-pinnacle adlib ad1816a ad1848 als100 azt2320 + cmi8330 cs4231 cs4236 dt019x es968 es1688 es18xx gusclassic gusextreme gusmax + interwave interwave-stb opl3sa2 opti92x-ad1848 opti92x-cs4231 opti93x miro sb8 + sb16 sbawe sb16_csp sgalaxy sscape wavefront" + local ISA_ERROR="Some of the drivers you selected require ISA support in your kernel ($(echo $ISA_DRIVERS)). Either enable ISA in your kernel or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf." + + local FW_DRIVERS="darla20 gina20 layla20 darla24 gina24 layla24 mona mia echo3g indigo + indigoio indigodj emu10k1 korg1212 maestro3 riptide ymfpci asihpi" + local FW_LOADER_ERROR="Some of the drivers you selected require 'Userspace firmware loading support' in your kernel (${FW_DRIVERS}). Either enable that feature or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf." + + local PARPORT_DRIVERS="portman2x4" + local PARPORT_ERROR="Some if the drivers you selected require Parallel Port support (${PARPORT_DRIVERS}). Either enable that feature or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf." + + local TMP_ALSA_CARDS + local CHECK_PNP + local CHECK_ISA + local CHECK_FW + local CHECK_PARPORT + for card in ${ALSA_CARDS}; do + if has alsa_cards_${card} ${IUSE} && use alsa_cards_${card}; then + TMP_ALSA_CARDS="${TMP_ALSA_CARDS} ${card}" + has ${card} ${PNP_DRIVERS} && CHECK_PNP="PNP" + has ${card} ${ISA_DRIVERS} && CHECK_ISA="ISA" + has ${card} ${FW_DRIVERS} && CHECK_FW="FW_LOADER" + has ${card} ${PARPORT_DRIVERS} && CHECK_PARPORT="PARPORT" + fi + done + ALSA_CARDS="${TMP_ALSA_CARDS}" + + local CONFIG_CHECK="!SND SOUND ${CHECK_PNP} ${CHECK_ISA} ${CHECK_FW} ${CHECK_PARPORT}" + local SND_ERROR="ALSA is already compiled into the kernel. This is the recommended configuration, don't emerge alsa-driver." + local SOUND_ERROR="Your kernel doesn't have sound support enabled." + local SOUND_PRIME_ERROR="Your kernel is configured to use the deprecated OSS drivers. Please disable them and re-emerge alsa-driver." + + linux-mod_pkg_setup + + if [[ ${PROFILE_ARCH} == "sparc64" ]] ; then + export CBUILD=${CBUILD-${CHOST}} + export CHOST="sparc64-unknown-linux-gnu" + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + #epatch "${FILESDIR}"/git-update-r${PR}.patch + convert_to_m "${S}/Makefile" + sed -i -e 's:\(.*depmod\):#\1:' "${S}/Makefile" + eautoconf +} + +src_compile() { + local myABI=${ABI:-${DEFAULT_ABI}} + + # Should fix bug #46901 + is-flag "-malign-double" && filter-flags "-fomit-frame-pointer" + append-flags "-I${KV_DIR}/arch/$(tc-arch-kernel)/include" + + econf $(use_with oss) \ + $(use_with debug debug full) \ + --with-kernel="${KV_DIR}" \ + --with-build="${KV_OUT_DIR}" \ + --with-isapnp=yes \ + $(use_with midi sequencer) \ + --with-cards="${ALSA_CARDS}" || die "econf failed" + + # linux-mod_src_compile doesn't work well with alsa + + ARCH=$(tc-arch-kernel) + ABI=${KERNEL_ABI} + emake LDFLAGS="$(raw-ldflags)" HOSTCC="$(tc-getBUILD_CC)" CC="$(tc-getCC)" || die "Make Failed" + ARCH=$(tc-arch) + ABI=${myABI} +} + +src_install() { + emake DESTDIR="${D}" install-modules || die "make install failed" + + dodoc CARDS-STATUS FAQ README WARNING TODO SUPPORTED_KERNELS + + if kernel_is 2 6; then + # mv the drivers somewhere they won't be killed by the kernel's make modules_install + mv "${D}/lib/modules/${KV_FULL}/kernel/sound" "${D}/lib/modules/${KV_FULL}/${PN}" + rmdir "${D}/lib/modules/${KV_FULL}/kernel" &> /dev/null + fi +} + +pkg_postinst() { + elog + elog "Remember that all mixer channels will be MUTED by default." + elog "Use the 'alsamixer' program to unmute them, then save your" + elog "mixer settings with /etc/init.d/alsasound save" + elog + elog "If you experience problems, please try building the in-kernel" + elog "ALSA drivers instead. This ebuild is unsupported." + elog + + linux-mod_pkg_postinst + + if kernel_is 2 6 && [ -e "${ROOT}/lib/modules/${KV_FULL}/kernel/sound" ]; then + # Cleanup if they had older alsa installed + for file in $(find "${ROOT}/lib/modules/${KV_FULL}/${PN}" -type f); do + rm -f ${file//${KV_FULL}\/${PN}/${KV_FULL}\/kernel\/sound} + done + + find "${ROOT}/lib/modules/${KV_FULL}/kernel/sound" -type d -print0 | xargs --null rmdir + fi +} diff --git a/media-sound/alsa-utils/Manifest b/media-sound/alsa-utils/Manifest index a684f36..f456b88 100644 --- a/media-sound/alsa-utils/Manifest +++ b/media-sound/alsa-utils/Manifest @@ -11,4 +11,5 @@ AUX git-update.patch 149549 RMD160 69f2b6b10148a88e9bc2eb27d8058b58861a26db SHA1 AUX makefile-fix.patch 285 RMD160 9f54824d420899f46fceb3102c2fbd20e464307f SHA1 2d0f26fc70ab4cb0b842b8beffc8bbad9a07f979 SHA256 7d7413eab6b5fc14a3db3148041f90afc9c5ec4094e37b475fdb25cc8e6a63bb DIST alsa-utils-1.0.17.tar.bz2 1016532 RMD160 6dbc55ffab43a6552bc5032099a071101be467ab SHA1 e71f752b79357fd8ad1c86e4e926cbce19de19d3 SHA256 6a06f457d66eca75ac1ab065e64539e4ccf22ed4e53703a70194cb85203b3125 EBUILD alsa-utils-1.0.17-r5.ebuild 2834 RMD160 279303867975d6152e4a1ac7024e409bf6f051f7 SHA1 4ddbee2d425d7a162f698bfcc67b22a5f6d2a143 SHA256 a5b6f47dbcdd3294c89b98409c575add9dccf168c4951c82a3cdbdc01578346d +MISC alsa-utils-1.0.18_rc1.broken 2931 RMD160 1b352107609b126ee655a3cfd0e37fa7beaebc1a SHA1 d4ff0b6a45af5f4de4e33b0744413f9f3f5f8819 SHA256 8c2f20845d6588d84e62f61c8a6393fb97f21358b502409765d755bdce268786 MISC metadata.xml 220 RMD160 e49f8bb330d1798cd2c8ee5335cef1784f0d7ccb SHA1 1b895fe6cae4b8eab08ba1a6a1212baf4b4b4105 SHA256 8570ef11cd59b0d8edb71e78eecaec423616836b10eacb86bee0de941f0ae054 diff --git a/media-sound/alsa-utils/alsa-utils-1.0.18_rc1.broken b/media-sound/alsa-utils/alsa-utils-1.0.18_rc1.broken new file mode 100644 index 0000000..3b2c559 --- /dev/null +++ b/media-sound/alsa-utils/alsa-utils-1.0.18_rc1.broken @@ -0,0 +1,99 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.17.ebuild,v 1.1 2008/08/02 21:00:32 betelgeuse Exp $ + +inherit eutils autotools + +MY_P="${P/_rc/rc}" + +DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)" +HOMEPAGE="http://www.alsa-project.org/" +SRC_URI="mirror://alsaproject/utils/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0.9" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="nls midi minimal" +# alsa-lib dep specifically altered to 1.0.17-r4 as it's equivalent to 1.0.17a +DEPEND=">=sys-libs/ncurses-5.1 + dev-util/dialog + app-text/xmlto + >=media-libs/alsa-lib-1.0.17-r4" +RDEPEND="${DEPEND} + virtual/modutils + !minimal? ( sys-apps/pciutils )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if use midi && ! built_with_use --missing true media-libs/alsa-lib midi; then + eerror "" + eerror "To be able to build alsa-utils with midi support you need" + eerror "to have built media-libs/alsa-lib with midi USE flag." + die "Missing midi USE flag on media-libs/alsa-lib" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-1.0.11_rc2-nls.patch" + epatch "${FILESDIR}/${PN}-1.0.11_rc5-alsaconf-redirect.patch" + epatch "${FILESDIR}/${PN}-1.0.14-alsaconf-modules-update.patch" + epatch "${FILESDIR}/${PN}-1.0.17-seq.patch" +# epatch "${FILESDIR}/git-update.patch" +# epatch "${FILESDIR}/makefile-fix.patch" + +# AT_M4DIR="m4" eautoreconf + eautoreconf +} + +src_compile() { + econf $(use_enable nls) \ + $(use_enable midi sequencer) \ + || die "configure failed" + + emake || die "make failed" +} + +pkg_preinst() { + if [[ -a /etc/modules.d/alsa ]] && [[ ! -a /etc/modprobe.d/alsa ]]; then + elog "Moving old alsa configuration in modules.d to new" + elog "location in modprobe.d in /etc/" + mv "${ROOT}/etc/modules.d/alsa" "${ROOT}/etc/modprobe.d/alsa" + fi +} + +src_install() { + local ALSA_UTILS_DOCS="ChangeLog README TODO + seq/aconnect/README.aconnect + seq/aseqnet/README.aseqnet" + + emake DESTDIR="${D}" install || die "Installation Failed" + + dodoc ${ALSA_UTILS_DOCS} || die + newdoc alsamixer/README README.alsamixer || die + + newinitd "${FILESDIR}/alsasound.initd" alsasound + newconfd "${FILESDIR}/alsasound.confd" alsasound + insinto /etc/modprobe.d + newins "${FILESDIR}/alsa-modules.conf-rc" alsa + + keepdir /var/lib/alsa +} + +pkg_postinst() { + echo + elog "To take advantage of the init script, and automate the process of" + elog "loading and unloading the ALSA sound drivers as well as" + elog "storing and restoring sound-card mixer levels you should" + elog "add alsasound to the boot runlevel. You can do this as" + elog "root like so:" + elog " # rc-update add alsasound boot" + echo + if use minimal; then + ewarn "The minimal use flag disables the dependency on pciutils that" + ewarn "is needed by alsaconf at runtime." + fi +} -- 2.11.4.GIT