# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/base/alsa/alsa.conf # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at https://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- pkg_alsa_main() { # extract the packages for x in alsa-lib-${alsa_lib_version:-$ver}.tar.bz2 \ alsa-oss-${alsa_oss_version:-$ver}.tar.bz2 \ alsa-utils-${alsa_utils_version:-$ver}.tar.bz2 \ alsa-tools-${alsa_tools_version:-$ver}.tar.bz2 do echo "Extracting $x ..." tar $taropt $archdir/$x # apply patches, if existent cd ${x%.tar.bz2} t=${x#alsa-*-}; t=${x%-$t} for y in $confdir/*.patch.$t; do if [ -f $y ]; then patch -p1 < $y fi done cd .. done # build the non-driver packages build_list="alsa-lib-${alsa_lib_version:-$ver} alsa-oss-${alsa_oss_version:-$ver} alsa-utils-${alsa_utils_version:-$ver}" # only build alsa-tools if gtk+ is found if [ -f $root/var/adm/flists/gtk+1 -o -f $root/var/adm/flists/gtk+2 ] ; then build_list="$build_list \ alsa-tools-${alsa_tools_version:-$ver}/ac3dec \ alsa-tools-${alsa_tools_version:-$ver}/as10k1 \ alsa-tools-${alsa_tools_version:-$ver}/envy24control \ alsa-tools-${alsa_tools_version:-$ver}/sb16_csp \ alsa-tools-${alsa_tools_version:-$ver}/seq/sbiload" fi for sub in $build_list do echo ; echo "Building in $sub ..." cd $builddir/$sub for x in /usr/share/automake*/{missing,install-sh,mkinstalldirs} ; do ln -sf $x . done eval "./configure $confopt" eval $MAKE ; eval $MAKE install done if [ -d $root/etc/devfsd.d ] ; then cat << EOT > $root/etc/devfsd.d/alsa LOOKUP snd/* MODLOAD LOOKUP sound/* MODLOAD REGISTER snd/.* PERMISSIONS root.sound 666 REGISTER sound/.* PERMISSIONS root.sound 666 REGISTER snd/.* MKOLDCOMPAT REGISTER sound/.* MKOLDCOMPAT UNREGISTER snd/.* RMOLDCOMPAT UNREGISTER sound/.* RMOLDCOMPAT EOT fi install_init alsa $confdir/alsa.init #cp $confdir/stone_mod_alsa.sh $root/etc/stone.d/mod_alsa.sh } autoextract=0 custmain="pkg_alsa_main" # auto-create missing *.a files autoso2a=1