|
Lines 1-6
Link Here
|
| 1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-tools/alsa-tools-1.0.9-r1.ebuild,v 1.1 2005/10/30 22:52:09 flameeyes Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
inherit gnuconfig eutils |
5 |
inherit gnuconfig eutils |
| 6 |
|
6 |
|
|
Lines 11-50
Link Here
|
| 11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
| 12 |
SLOT="0.9" |
12 |
SLOT="0.9" |
| 13 |
KEYWORDS="~amd64 ~mips ~ppc ppc64 ~sparc ~x86" |
13 |
KEYWORDS="~amd64 ~mips ~ppc ppc64 ~sparc ~x86" |
| 14 |
IUSE="X" |
14 |
IUSE="fltk gtk" |
| 15 |
|
15 |
|
| 16 |
DEPEND=">=media-libs/alsa-lib-1.0.0 |
16 |
DEPEND=">=media-libs/alsa-lib-1.0.0 |
| 17 |
virtual/alsa |
17 |
virtual/alsa |
| 18 |
X? ( =x11-libs/fltk-1.1* |
18 |
fltk? ( =x11-libs/fltk-1.1* ) |
| 19 |
=x11-libs/gtk+-1.2* )" |
19 |
gtk? ( =x11-libs/gtk+-1.2* )" |
| 20 |
|
20 |
|
| 21 |
# This is a list of the tools in the package. |
21 |
pkg_setup() { |
| 22 |
# Some of the tools don't make proper use of CFLAGS, even though |
22 |
# This is a list of the tools in the package. |
| 23 |
# all of them seem to use autoconf. This needs to be fixed. |
23 |
# Some of the tools don't make proper use of CFLAGS, even though |
| 24 |
# |
24 |
# all of them seem to use autoconf. This needs to be fixed. |
| 25 |
# By default, all the supported tools will be compiled. |
25 |
# |
| 26 |
# If you want to only compile for specific tool(s), set ALSA_TOOLS |
26 |
# By default, all the supported tools will be compiled. |
| 27 |
# environment to a space-separated list of tools that you want to build. |
27 |
# If you want to only compile for specific tool(s), set ALSA_TOOLS |
| 28 |
# For example: |
28 |
# environment to a space-separated list of tools that you want to build. |
| 29 |
# |
29 |
# For example: |
| 30 |
# env ALSA_TOOLS='as10k1 ac3dec' emerge alsa-tools |
30 |
# |
| 31 |
# |
31 |
# env ALSA_TOOLS='as10k1 ac3dec' emerge alsa-tools |
| 32 |
if [ -z "${ALSA_TOOLS}" ]; then |
32 |
# |
| 33 |
if use X; then |
33 |
if [ -z "${ALSA_TOOLS}" ]; then |
| 34 |
ALSA_TOOLS="ac3dec as10k1 envy24control hdspconf hdsploader hdspmixer \ |
|
|
| 35 |
mixartloader rmedigicontrol seq/sbiload sscape_ctl \ |
| 36 |
us428control usx2yloader vxloader echomixer" |
| 37 |
else |
| 38 |
ALSA_TOOLS="ac3dec as10k1 hdsploader mixartloader seq/sbiload \ |
34 |
ALSA_TOOLS="ac3dec as10k1 hdsploader mixartloader seq/sbiload \ |
| 39 |
sscape_ctl us428control usx2yloader vxloader" |
35 |
sscape_ctl us428control usx2yloader vxloader" |
| 40 |
fi |
|
|
| 41 |
|
36 |
|
| 42 |
# sb16_csp won't build on ppc64 _AND_ ppc (and is not needed) |
37 |
if use fltk; then |
| 43 |
if use !ppc64 && use !ppc; then |
38 |
ALSA_TOOLS="${ALSA_TOOLS} hdspconf hdspmixer" |
| 44 |
ALSA_TOOLS="${ALSA_TOOLS} sb16_csp" |
39 |
fi |
| 45 |
fi |
40 |
|
|
|
41 |
if use gtk; then |
| 42 |
ALSA_TOOLS="${ALSA_TOOLS} echomixer envy24control rmedigicontrol" |
| 43 |
fi |
| 44 |
|
| 45 |
# sb16_csp won't build on ppc64 _AND_ ppc (and is not needed) |
| 46 |
if use !ppc64 && use !ppc; then |
| 47 |
ALSA_TOOLS="${ALSA_TOOLS} sb16_csp" |
| 48 |
fi |
| 46 |
|
49 |
|
| 47 |
fi |
50 |
fi |
|
|
51 |
} |
| 48 |
|
52 |
|
| 49 |
src_unpack() { |
53 |
src_unpack() { |
| 50 |
unpack ${A} |
54 |
unpack ${A} |
|
Lines 53-61
Link Here
|
| 53 |
} |
57 |
} |
| 54 |
|
58 |
|
| 55 |
src_compile() { |
59 |
src_compile() { |
| 56 |
# hdspmixer requires fltk |
60 |
if use fltk; then |
| 57 |
export LDFLAGS="-L/usr/$(get_libdir)/fltk-1.1" |
61 |
# hdspmixer requires fltk |
| 58 |
export CPPFLAGS="-I/usr/include/fltk-1.1" |
62 |
export LDFLAGS="-L/usr/$(get_libdir)/fltk-1.1" |
|
|
63 |
export CPPFLAGS="-I/usr/include/fltk-1.1" |
| 64 |
fi |
| 59 |
|
65 |
|
| 60 |
# hdspmixer is missing depconf - copy from the hdsploader directory |
66 |
# hdspmixer is missing depconf - copy from the hdsploader directory |
| 61 |
cp ${S}/hdsploader/depcomp ${S}/hdspmixer/ |
67 |
cp ${S}/hdsploader/depcomp ${S}/hdspmixer/ |
|
Lines 64-70
Link Here
|
| 64 |
for f in ${ALSA_TOOLS} |
70 |
for f in ${ALSA_TOOLS} |
| 65 |
do |
71 |
do |
| 66 |
cd "${S}/${f}" |
72 |
cd "${S}/${f}" |
| 67 |
econf --with-kernel="${KV}" || die "configure failed" |
73 |
econf || die "econf failed" |
| 68 |
make || die "make failed" |
74 |
make || die "make failed" |
| 69 |
done |
75 |
done |
| 70 |
} |
76 |
} |