From: Petteri Räty Date: Sat, 17 Mar 2007 20:37:23 +0000 (+0000) Subject: Version bump. Thanks to Diego Pettenò . X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17ddec4a19a6cda16257c073b62417e7fe7f10bc;p=gentoo.git Version bump. Thanks to Diego Pettenò . Package-Manager: portage-2.1.2.2 --- diff --git a/media-sound/alsa-driver/ChangeLog b/media-sound/alsa-driver/ChangeLog index 539eca8d40df..bcdb17b23220 100644 --- a/media-sound/alsa-driver/ChangeLog +++ b/media-sound/alsa-driver/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/alsa-driver # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.263 2007/02/11 23:33:57 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.264 2007/03/17 20:37:22 betelgeuse Exp $ + +*alsa-driver-1.0.14_rc3 (17 Mar 2007) + + 17 Mar 2007; Petteri Räty + +files/1.0.14_rc3-configure.in-core2.patch, + +alsa-driver-1.0.14_rc3.ebuild: + Version bump. Thanks to Diego Pettenò . 11 Feb 2007; Simon Stelling alsa-driver-1.0.14_rc1.ebuild: diff --git a/media-sound/alsa-driver/alsa-driver-1.0.14_rc3.ebuild b/media-sound/alsa-driver/alsa-driver-1.0.14_rc3.ebuild new file mode 100644 index 000000000000..893c890c2b6e --- /dev/null +++ b/media-sound/alsa-driver/alsa-driver-1.0.14_rc3.ebuild @@ -0,0 +1,183 @@ +# Copyright 1999-2007 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.14_rc3.ebuild,v 1.1 2007/03/17 20:37:22 betelgeuse Exp $ + +inherit autotools linux-mod flag-o-matic eutils multilib + +MY_P="${P/_rc/rc}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Advanced Linux Sound Architecture kernel modules" +HOMEPAGE="http://www.alsa-project.org/" + +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="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~x86" +IUSE="oss debug midi" + +IUSE_CARDS="seq-dummy dummy virmidi mtpav mts64 serial-u16550 mpu401 +loopback portman2x4 pcsp ad1848-lib cs4231-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" + +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 cs4231-lib 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." + 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}" + + convert_to_m "${S}/Makefile" + sed -i -e 's:\(.*depmod\):#\1:' "${S}/Makefile" + epatch "${FILESDIR}/1.0.14_rc3-configure.in-core2.patch" + 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 + + 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 "The alsasound initscript and modules.d/alsa have now moved to alsa-utils" + elog + elog "Also, remember that all mixer channels will be MUTED by default." + elog "Use the 'alsamixer' program to unmute them." + elog + elog "If you experience problems, please report bugs to http://bugs.gentoo.org." + elog + + linux-mod_pkg_postinst + + elog "Check out the ALSA installation guide availible at the following URL:" + elog "http://www.gentoo.org/doc/en/alsa-guide.xml" + + 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 rmdir + fi +} diff --git a/media-sound/alsa-driver/files/1.0.14_rc3-configure.in-core2.patch b/media-sound/alsa-driver/files/1.0.14_rc3-configure.in-core2.patch new file mode 100644 index 000000000000..f4818361e5ee --- /dev/null +++ b/media-sound/alsa-driver/files/1.0.14_rc3-configure.in-core2.patch @@ -0,0 +1,20 @@ +diff -r 4a485db25506 configure.in +--- a/configure.in Tue Mar 06 13:18:02 2007 +0100 ++++ b/configure.in Sat Mar 17 19:25:53 2007 +0200 +@@ -844,6 +844,7 @@ fi + fi + AC_TRY_RUN([ + #include ++#include + #include "$KERNDIR/include/linux/autoconf.h" + int main(void) { + FILE *file = fopen("processor.id", "w+"); +@@ -861,7 +862,7 @@ int main(void) { + fprintf(file, "i586tsc"); + #elif defined(CONFIG_M586MMX) + fprintf(file, "i586mmx"); +-#elif defined(CONFIG_M686) || defined(CONFIG_MPENTIUMII) || defined(CONFIG_MPENTIUMIII) || defined(CONFIG_MPENTIUM4) || defined(CONFIG_MPENTIUMM) ++#elif defined(CONFIG_M686) || defined(CONFIG_MPENTIUMII) || defined(CONFIG_MPENTIUMIII) || defined(CONFIG_MPENTIUM4) || defined(CONFIG_MPENTIUMM) || defined(CONFIG_MCORE2) + fprintf(file, "i686"); + #elif defined(CONFIG_MK6) + fprintf(file, "k6"); diff --git a/media-sound/alsa-driver/files/digest-alsa-driver-1.0.14_rc3 b/media-sound/alsa-driver/files/digest-alsa-driver-1.0.14_rc3 new file mode 100644 index 000000000000..b88500dd9552 --- /dev/null +++ b/media-sound/alsa-driver/files/digest-alsa-driver-1.0.14_rc3 @@ -0,0 +1,3 @@ +MD5 1f036274fd6cfc71202331460384f4ad alsa-driver-1.0.14rc3.tar.bz2 2528674 +RMD160 10c8d191079e9d7bfb37c71cbc8a2c509fd6423b alsa-driver-1.0.14rc3.tar.bz2 2528674 +SHA256 b7b99936bb118c0b808a386795625946e04841d24758e4c61370165e50999fc1 alsa-driver-1.0.14rc3.tar.bz2 2528674 diff --git a/media-sound/alsa-firmware/ChangeLog b/media-sound/alsa-firmware/ChangeLog index 6e32d044ab57..74490e0b275f 100644 --- a/media-sound/alsa-firmware/ChangeLog +++ b/media-sound/alsa-firmware/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/alsa-firmware # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/ChangeLog,v 1.59 2007/03/12 16:57:34 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/ChangeLog,v 1.60 2007/03/17 20:37:23 betelgeuse Exp $ + +*alsa-firmware-1.0.14_rc3 (17 Mar 2007) + + 17 Mar 2007; Petteri Räty + +alsa-firmware-1.0.14_rc3.ebuild: + Version bump. Thanks to Diego Pettenò . 12 Mar 2007; Gustavo Zacarias alsa-firmware-1.0.14_rc2-r1.ebuild: diff --git a/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc3.ebuild b/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc3.ebuild new file mode 100644 index 000000000000..12ebb485318e --- /dev/null +++ b/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc3.ebuild,v 1.1 2007/03/17 20:37:23 betelgeuse Exp $ + +MY_P="${P/_rc/rc}" + +DESCRIPTION="Advanced Linux Sound Architecture firmware" +HOMEPAGE="http://www.alsa-project.org/" +SRC_URI="mirror://alsaproject/firmware/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +ECHOAUDIO_CARDS="alsa_cards_darla20 alsa_cards_gina20 +alsa_cards_layla20 alsa_cards_darla24 alsa_cards_gina24 +alsa_cards_layla24 alsa_cards_mona alsa_cards_mia alsa_cards_indigo +alsa_cards_indigoio" + +IUSE="alsa_cards_pcxhr alsa_cards_vx222 alsa_cards_usb-usx2y +alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart alsa_cards_asihpi +alsa_cards_sb16 alsa_cards_korg1212 alsa_cards_maestro3 +${ECHOAUDIO_CARDS}" + +S="${WORKDIR}/${MY_P}" + +DEPEND="" +RDEPEND="alsa_cards_usb-usx2y? ( sys-apps/fxload ) + alsa_cards_hdsp? ( media-sound/alsa-tools ) + alsa_cards_hdspm? ( media-sound/alsa-tools ) + alsa_cards_mixart? ( || ( >=sys-fs/udev-096 media-sound/alsa-tools ) ) + alsa_cards_vx222? ( || ( >=sys-fs/udev-096 media-sound/alsa-tools ) ) + alsa_cards_pcxhr? ( || ( >=sys-fs/udev-096 >=media-sound/alsa-tools-1.0.14_rc1-r1 ) )" + +src_compile() { + econf \ + --with-hotplug-dir=/lib/firmware \ + || die "configure failed" + + emake || die "make failed" +} + +src_install () { + emake DESTDIR="${D}" install || die "make install failed" + + use alsa_cards_pcxhr || rm -rf "${D}/usr/share/alsa/firmware/pcxhrloader" "${D}/lib/firmware/pcxhr" + use alsa_cards_vx222 || rm -rf "${D}/usr/share/alsa/firmware/vxloader" "${D}/lib/firmware/vx" + use alsa_cards_usb-usx2y || rm -rf "${D}/usr/share/alsa/firmware/usx2yloader" "${D}/lib/firmware/vx" + use alsa_cards_mixart || rm -rf "${D}/usr/share/alsa/firmware/mixartloader" "${D}/lib/firmware/mixart" + use alsa_cards_hdsp || use alsa_cards_hdspm || rm -rf "${D}/usr/share/alsa/firmware/hdsploader" + use alsa_cards_asihpi || rm -rf "${D}/lib/firmware/asihpi" + use alsa_cards_sb16 || rm -rf "${D}/lib/firmware/sb16" + use alsa_cards_korg1212 || rm -rf "${D}/lib/firmware/korg" + use alsa_cards_maestro3 || rm -rf "${D}/lib/firmware/ess" + + local ea="no" + for card in ${ECHOAUDIO_CARDS}; do + use ${card} && ea="yes" && break + done + + [[ ${ea} == "no" ]] && rm -rf "${D}/lib/firmware/ea" + + insinto /etc/udev/rules.d + use alsa_cards_usb-usx2y && doins "${FILESDIR}/52-usx2yaudio.rules" + + dodoc README +} diff --git a/media-sound/alsa-firmware/files/digest-alsa-firmware-1.0.14_rc3 b/media-sound/alsa-firmware/files/digest-alsa-firmware-1.0.14_rc3 new file mode 100644 index 000000000000..e3b536e08fef --- /dev/null +++ b/media-sound/alsa-firmware/files/digest-alsa-firmware-1.0.14_rc3 @@ -0,0 +1,3 @@ +MD5 3afce47b4277e64c224411fa29ea150c alsa-firmware-1.0.14rc3.tar.bz2 3084751 +RMD160 95215d31513b32e3827f7a31e7d9b299198892c8 alsa-firmware-1.0.14rc3.tar.bz2 3084751 +SHA256 fb06386f2af507511f0ae20a2cc37b726d53c61c423de2ec3714386699cff7aa alsa-firmware-1.0.14rc3.tar.bz2 3084751 diff --git a/media-sound/alsa-headers/ChangeLog b/media-sound/alsa-headers/ChangeLog index d80d92b6eb7e..467f0b949a14 100644 --- a/media-sound/alsa-headers/ChangeLog +++ b/media-sound/alsa-headers/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/alsa-headers # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-headers/ChangeLog,v 1.124 2007/02/11 23:33:26 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-headers/ChangeLog,v 1.125 2007/03/17 20:37:23 betelgeuse Exp $ + +*alsa-headers-1.0.14_rc3 (17 Mar 2007) + + 17 Mar 2007; Petteri Räty + +alsa-headers-1.0.14_rc3.ebuild: + Version bump. Thanks to Diego Pettenò . 11 Feb 2007; Simon Stelling alsa-headers-1.0.14_rc1.ebuild: diff --git a/media-sound/alsa-headers/alsa-headers-1.0.14_rc3.ebuild b/media-sound/alsa-headers/alsa-headers-1.0.14_rc3.ebuild new file mode 100644 index 000000000000..9ba1f3bda3da --- /dev/null +++ b/media-sound/alsa-headers/alsa-headers-1.0.14_rc3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-headers/alsa-headers-1.0.14_rc3.ebuild,v 1.1 2007/03/17 20:37:23 betelgeuse Exp $ + +inherit eutils + +MY_PN=${PN/headers/driver} +MY_P="${MY_PN}-${PV/_rc/rc}" +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Header files for Advanced Linux Sound Architecture kernel modules" +HOMEPAGE="http://www.alsa-project.org/" +SRC_URI="mirror://alsaproject/driver/${MY_P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="" + +RESTRICT="binchecks strip" + +# Remove the sound symlink workaround... +pkg_setup() { + if [[ -L "${ROOT}/usr/include/sound" ]]; then + rm "${ROOT}/usr/include/sound" + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}/${PN}-1.0.6a-user.patch" +} + +src_compile() { :; } + +src_install() { + cd "${S}/alsa-kernel/include" + insinto /usr/include/sound + doins *.h || die "include failed" +} diff --git a/media-sound/alsa-headers/files/digest-alsa-headers-1.0.14_rc3 b/media-sound/alsa-headers/files/digest-alsa-headers-1.0.14_rc3 new file mode 100644 index 000000000000..b88500dd9552 --- /dev/null +++ b/media-sound/alsa-headers/files/digest-alsa-headers-1.0.14_rc3 @@ -0,0 +1,3 @@ +MD5 1f036274fd6cfc71202331460384f4ad alsa-driver-1.0.14rc3.tar.bz2 2528674 +RMD160 10c8d191079e9d7bfb37c71cbc8a2c509fd6423b alsa-driver-1.0.14rc3.tar.bz2 2528674 +SHA256 b7b99936bb118c0b808a386795625946e04841d24758e4c61370165e50999fc1 alsa-driver-1.0.14rc3.tar.bz2 2528674 diff --git a/media-sound/alsa-tools/ChangeLog b/media-sound/alsa-tools/ChangeLog index e634490e0651..b93cf5d4a12e 100644 --- a/media-sound/alsa-tools/ChangeLog +++ b/media-sound/alsa-tools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/alsa-tools # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-tools/ChangeLog,v 1.138 2007/02/17 16:50:42 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-tools/ChangeLog,v 1.139 2007/03/17 20:37:20 betelgeuse Exp $ + +*alsa-tools-1.0.14_rc3 (17 Mar 2007) + + 17 Mar 2007; Petteri Räty + +alsa-tools-1.0.14_rc3.ebuild: + Version bump. Thanks to Diego Pettenò . *alsa-tools-1.0.14_rc1-r1 (17 Feb 2007) diff --git a/media-sound/alsa-tools/alsa-tools-1.0.14_rc3.ebuild b/media-sound/alsa-tools/alsa-tools-1.0.14_rc3.ebuild new file mode 100644 index 000000000000..d4f700340003 --- /dev/null +++ b/media-sound/alsa-tools/alsa-tools-1.0.14_rc3.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-tools/alsa-tools-1.0.14_rc3.ebuild,v 1.1 2007/03/17 20:37:20 betelgeuse Exp $ + +WANT_AUTOMAKE="1.9" +WANT_AUTOCONF="2.5" + +inherit eutils flag-o-matic autotools + +MY_P="${P/_rc/rc}" + +DESCRIPTION="Advanced Linux Sound Architecture tools" +HOMEPAGE="http://www.alsa-project.org" +SRC_URI="mirror://alsaproject/tools/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0.9" +KEYWORDS="~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +ECHOAUDIO_CARDS="alsa_cards_darla20 alsa_cards_gina20 +alsa_cards_layla20 alsa_cards_darla24 alsa_cards_gina24 +alsa_cards_layla24 alsa_cards_mona alsa_cards_mia alsa_cards_indigo +alsa_cards_indigoio" + +IUSE="fltk gtk midi alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart +alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_sb16 alsa_cards_sbawe +alsa_cards_emu10k1 alsa_cards_emu10k1x alsa_cards_ice1712 +alsa_cards_rme32 alsa_cards_rme96 alsa_cards_sscape alsa_cards_pcxhr +${ECHOAUDIO_CARDS}" + +RDEPEND=">=media-libs/alsa-lib-1.0.0 + fltk? ( =x11-libs/fltk-1.1* ) + gtk? ( =x11-libs/gtk+-2* )" +DEPEND="${RDEPEND}" + +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 ${CATEGORY}/${PN} with midi support you" + eerror "need to have built media-libs/alsa-lib with midi USE flag." + die "Missing midi USE flag on media-libs/alsa-lib" + fi + + ALSA_TOOLS="ac3dec" + + use midi && ALSA_TOOLS="${ALSA_TOOLS} seq/sbiload us428control" + + if use gtk; then + use midi && use alsa_cards_ice1712 && \ + ALSA_TOOLS="${ALSA_TOOLS} envy24control" + use alsa_cards_rme32 && use alsa_cards_rme96 && \ + ALSA_TOOLS="${ALSA_TOOLS} rmedigicontrol" + fi + + if use alsa_cards_hdsp || use alsa_cards_hdspm; then + ALSA_TOOLS="${ALSA_TOOLS} hdsploader" + use fltk && ALSA_TOOLS="${ALSA_TOOLS} hdspconf hdspmixer" + fi + + use alsa_cards_mixart && ALSA_TOOLS="${ALSA_TOOLS} mixartloader" + use alsa_cards_vx222 && ALSA_TOOLS="${ALSA_TOOLS} vxloader" + use alsa_cards_usb-usx2y && ALSA_TOOLS="${ALSA_TOOLS} usx2yloader" + use alsa_cards_pcxhr && ALSA_TOOLS="${ALSA_TOOLS} pcxhr" + use alsa_cards_sscape && ALSA_TOOLS="${ALSA_TOOLS} sscape_ctl" + + { use alsa_cards_sb16 || use alsa_cards_sbawe; } && \ + ALSA_TOOLS="${ALSA_TOOLS} sb16_csp" + + if use alsa_cards_emu10k1 || use alsa_cards_emu10k1x; then + ALSA_TOOLS="${ALSA_TOOLS} as10k1 ld10k1" + fi + + if use gtk; then + for card in ${ECHOAUDIO_CARDS}; do + if use ${card}; then + ALSA_TOOLS="${ALSA_TOOLS} echomixer" + fi + done + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-1.0.11-asneeded.patch" + + for dir in echomixer envy24control rmedigicontrol; do + pushd ${dir} &> /dev/null + sed -i -e '/AM_PATH_GTK/d' configure.in + eautomake + popd &> /dev/null + done + + elibtoolize +} + +src_compile() { + if use fltk; then + # hdspmixer requires fltk + append-ldflags "-L/usr/$(get_libdir)/fltk-1.1" + append-flags "-I/usr/include/fltk-1.1" + fi + + # hdspmixer is missing depconf - copy from the hdsploader directory + cp ${S}/hdsploader/depcomp ${S}/hdspmixer/ + + local f + for f in ${ALSA_TOOLS} + do + cd "${S}/${f}" + econf --with-gtk2 || die "econf ${f} failed" + emake || die "emake ${f} failed" + done +} + +src_install() { + local f + for f in ${ALSA_TOOLS} + do + # Install the main stuff + cd "${S}/${f}" + emake DESTDIR="${D}" install || die + + # Install the text documentation + local doc + for doc in README TODO ChangeLog AUTHORS + do + if [ -f "${doc}" ] + then + mv "${doc}" "${doc}.`basename ${f}`" + dodoc "${doc}.`basename ${f}`" + fi + done + done +} diff --git a/media-sound/alsa-tools/files/digest-alsa-tools-1.0.14_rc3 b/media-sound/alsa-tools/files/digest-alsa-tools-1.0.14_rc3 new file mode 100644 index 000000000000..64c0b7336f61 --- /dev/null +++ b/media-sound/alsa-tools/files/digest-alsa-tools-1.0.14_rc3 @@ -0,0 +1,3 @@ +MD5 298e242a5f62cde05a4dc043af2035d4 alsa-tools-1.0.14rc3.tar.bz2 1468172 +RMD160 f347d9caef402de79851129b8246b0dfe26e36b3 alsa-tools-1.0.14rc3.tar.bz2 1468172 +SHA256 b3bca8c0053c1b4225ea62e0ef88f2e93fe05914a4dcbed7578260f9edbb231f alsa-tools-1.0.14rc3.tar.bz2 1468172