Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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