blob: ed8cc049e41c20ec16ca7e9a2739ee0bfbe718a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/openal-20051024.ebuild,v 1.7 2006/02/14 15:50:01 agriffis Exp $
inherit eutils gnuconfig
IUSE="alsa arts esd sdl debug vorbis mpeg"
DESCRIPTION="OpenAL, the Open Audio Library, is an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio"
SRC_URI="http://dev.gentoo.org/~wolf31o2/sources/openal/${P}.tar.bz2"
HOMEPAGE="http://www.openal.org"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.2 )
arts? ( kde-base/arts )
esd? ( media-sound/esound )
sdl? ( media-libs/libsdl )
vorbis? ( media-libs/libvorbis )
mpeg? ( media-libs/smpeg )"
DEPEND="${RDEPEND}
x86? ( dev-lang/nasm )
sys-devel/autoconf
sys-devel/automake
sys-devel/libtool"
S="${S}/linux"
src_unpack() {
unpack "${A}"
cd "${S}"
use alsa && epatch ${FILESDIR}/${P}-alsa_dmix.patch
epatch ${FILESDIR}/${P}-amd64-configure.patch
gnuconfig_update
export WANT_AUTOCONF=2.5
autoheader || die
autoconf || die
}
src_compile() {
econf \
--enable-paranoid-locks \
--libdir=/usr/$(get_libdir) \
--enable-capture \
--enable-optimization \
$(use_enable esd) \
$(use_enable sdl) \
$(use_enable alsa) \
$(use_enable arts) \
$(use_enable mpeg smpeg) \
$(use_enable vorbis) \
$(use_enable debug debug-maximus) || die
emake all || die
}
src_test() {
einfo "Testing is broken, so we're going to skip it."
}
src_install() {
cd ${S}/linux
make install DESTDIR="${D}" || die
dodoc ChangeLog INSTALL NOTES PLATFORM TODO
dodoc ${FILESDIR}/openalrc
makeinfo doc/openal.texi
doinfo doc/openal.info
cd ${S}
dohtml docs/*.html
}
pkg_postinst() {
einfo "There is a sample openalrc file in /usr/share/doc/${P} which"
einfo "sets up 4 speaker surround sound with ALSA. Simply copy it to your:"
einfo " ~/.openalrc"
einfo "to use it."
}
|