Magellan Linux

Contents of /branches/magellan-next/core/alsa-tools/alsa-tools-1.0.24.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9860 - (show annotations) (download)
Fri Jan 13 19:04:46 2012 UTC (12 years, 3 months ago) by niro
File size: 1674 byte(s)
-added missing libstdc++ and use new PCAT
1 # $Id$
2
3 PNAME="alsa-tools"
4 PVER="1.0.24.1"
5 PBUILD="r2"
6
7 PCATEGORIE="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
16 SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
18
19 sminclude mbuild
20
21 SRC_URI=(
22 http://dl.ambiweb.de/mirrors/ftp.alsa-project.org/tools/${SRCFILE}
23 ftp://ftp.alsa-project.org/pub/tools/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd 'http://alsa.cybermirror.org/${PNAME/alsa-/}/?C=M;O=A' | lasttarball"
28
29 src_compile()
30 {
31 cd ${SRCDIR}
32
33 local i
34 for i in $(find ${SRCDIR} -type f -name configure)
35 do
36 # exclude qlo10k1; needs qt and qt-checks are broken
37 [[ $(basename $(dirname ${i})) = qlo10k1 ]] && continue
38 # exclude hdspmixer; needs fltk
39 [[ $(basename $(dirname ${i})) = hdspmixer ]] && continue
40 # exclude hdspconf; needs fltk too
41 [[ $(basename $(dirname ${i})) = hdspconf ]] && continue
42
43 echo
44 echo "Compiling $(dirname ${i}) ..."
45 echo
46
47 cd $(dirname ${i})
48 mconfigure --with-gtk2 || die
49 mmake || die
50 done
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56
57 local i
58 for i in $(find ${SRCDIR} -type f -name configure)
59 do
60 # exclude qlo10k1; needs qt and qt-checks are broken
61 [[ $(basename $(dirname ${i})) = qlo10k1 ]] && continue
62 # exclude hdspmixer; needs fltk
63 [[ $(basename $(dirname ${i})) = hdspmixer ]] && continue
64 # exclude hdspconf; needs fltk too
65 [[ $(basename $(dirname ${i})) = hdspconf ]] && continue
66
67 echo
68 echo "Installing $(dirname ${i}) ..."
69 echo
70
71 cd $(dirname ${i})
72 mmake DESTDIR=${BINDIR} install || die
73 done
74 }
75