initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / soundtools / alsa / alsa
1 # hdw - linux alsa package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 1.0.5
6 # [S] 3-10
7 # [D] alsa-driver-1.0.5.tar.bz2 ftp://ftp.alsa-project.org/pub/driver/
8 # [D] alsa-lib-1.0.5.tar.bz2 ftp://ftp.alsa-project.org/pub/lib/
9 # [D] alsa-oss-1.0.5.tar.bz2 ftp://ftp.alsa-project.org/pub/oss-lib/
10 # [D] alsa-utils-1.0.5.tar.bz2 ftp://ftp.alsa-project.org/pub/utils/
11 # [D] alsa-tools-1.0.5.tar.bz2 ftp://ftp.alsa-project.org/pub/tools/
12
13 # only build the drivers?
14 onlydriver=0
15
16 # popular drivers (i have those ;)
17 card="emu10k1,intel8x0"
18
19 oss_ver="0.9.8"
20
21 confopt_x="$confopt"
22 confopt="$confopt --with-sequencer=yes --with-oss=yes --with-cards=$card"
23
24 if [ "$onlydriver" = "0" ] ; then
25
26 post_install()  {
27         echo "extracting lib, utils and tools source ..."
28         for i in alsa-lib alsa-utils alsa-tools; do
29                 tar --use-compress-program=bzip2 -xf \
30                         $archdir/$i-${ver}.tar.bz2 -C ../
31         done
32         tar --use-compress-program=bzip2 -xf \
33                 $archdir/alsa-oss-${oss_ver}.tar.bz2 -C ../
34         # building stuff
35         for i in alsa-lib- alsa-oss- alsa-utils-; do 
36                 echo "building ${i}..."
37                 cd ../${i}* && ./configure $confopt_x &&
38                 make $make_conf && make $install_conf install
39         done
40         cd ../alsa-tools-* &&
41         for i in ac3dec as10k1 seq/sbiload; do
42                 echo "building ${i}..."
43                 cd ./${i}* && ./configure $confopt_x &&
44                 make $make_conf && make $install_conf install && cd ../
45         done
46         cd ../
47                 }
48
49 fi