Magellan Linux

Contents of /smage/trunk/extras/alsa-tools/alsa-tools-1.0.28-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5824 - (show annotations) (download)
Fri Jul 18 10:55:39 2014 UTC (9 years, 10 months ago) by niro
File size: 1993 byte(s)
auto added: ver bump to 1.0.28-r1
1 # $Id$
2
3 PNAME="alsa-tools"
4 PVER="1.0.28"
5 PBUILD="r1"
6
7 PCAT="media-sound"
8 LICENSE="gpl-2"
9
10 DESCRIPTION="Advanced Linux Sound Architecture OSS Layer Tools."
11 HOMEPAGE="http://www.alsa-project.org/"
12
13 DEPEND=">= media-libs/alsa-lib-${PVER}
14 >= x11-libs/gtk2+-2.24
15 >= sys-libs/libstdc++-4.6"
16
17 SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
19
20 # checks not working
21 msetfeature "!check"
22 sminclude mbuild
23
24 SRC_URI=(
25 http://dl.ambiweb.de/mirrors/ftp.alsa-project.org/tools/${SRCFILE}
26 ftp://ftp.alsa-project.org/pub/tools/${SRCFILE}
27 http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd 'http://alsa.cybermirror.org/${PNAME/alsa-/}/?C=M;O=A' | lasttarball"
32
33 src_compile()
34 {
35 cd ${SRCDIR}
36
37 local i
38 for i in $(find ${SRCDIR} -type f -name configure)
39 do
40 # exclude qlo10k1; needs qt and qt-checks are broken
41 [[ $(basename $(dirname ${i})) = qlo10k1 ]] && continue
42 # exclude hdspmixer; needs fltk
43 [[ $(basename $(dirname ${i})) = hdspmixer ]] && continue
44 # exclude hdspconf; needs fltk too
45 [[ $(basename $(dirname ${i})) = hdspconf ]] && continue
46
47 # no gtk3 in alx tree
48 [[ $(basename $(dirname ${i})) = hdajackretask ]] && continue
49
50 echo
51 echo "Compiling $(dirname ${i}) ..."
52 echo
53
54 cd $(dirname ${i})
55 mconfigure --with-gtk2 || die
56 mmake || die
57 done
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}
63
64 local i
65 for i in $(find ${SRCDIR} -type f -name configure)
66 do
67 # exclude qlo10k1; needs qt and qt-checks are broken
68 [[ $(basename $(dirname ${i})) = qlo10k1 ]] && continue
69 # exclude hdspmixer; needs fltk
70 [[ $(basename $(dirname ${i})) = hdspmixer ]] && continue
71 # exclude hdspconf; needs fltk too
72 [[ $(basename $(dirname ${i})) = hdspconf ]] && continue
73
74 # no gtk3 in alx tree
75 [[ $(basename $(dirname ${i})) = hdajackretask ]] && continue
76
77 echo
78 echo "Installing $(dirname ${i}) ..."
79 echo
80
81 cd $(dirname ${i})
82 mmake DESTDIR=${BINDIR} install || die
83 done
84 }
85