Lines 1-45
Link Here
|
1 |
# Copyright 1999-2007 Gentoo Foundation |
1 |
# Copyright 1999-2008 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$ |
3 |
# $Header$ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils |
6 |
|
6 |
|
|
|
7 |
MY_PN=openal-soft |
8 |
|
7 |
DESCRIPTION="OpenAL Soft is a cross-platform software implementation of the OpenAL 3D audio API. The Open Audio Library is an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio" |
9 |
DESCRIPTION="OpenAL Soft is a cross-platform software implementation of the OpenAL 3D audio API. The Open Audio Library is an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio" |
8 |
HOMEPAGE="http://kcat.strangesoft.net/openal.html" |
10 |
HOMEPAGE="http://kcat.strangesoft.net/openal.html" |
9 |
SRC_URI="http://kcat.strangesoft.net/openal-releases/${PN}-${PV}.tar.bz2" |
11 |
SRC_URI="http://kcat.strangesoft.net/openal-releases/${MY_PN}-${PV}.tar.bz2" |
10 |
|
12 |
|
11 |
LICENSE="LGPL-2" |
13 |
LICENSE="LGPL-2" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
15 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
14 |
IUSE="alsa oss debug" |
16 |
IUSE="alsa oss debug" |
15 |
|
17 |
|
16 |
RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.2 ) |
18 |
RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.2 )" |
17 |
!media-libs/openal" |
|
|
18 |
|
19 |
|
19 |
DEPEND="${RDEPEND} |
20 |
DEPEND="${RDEPEND} |
20 |
>=dev-util/cmake-2.4.0" |
21 |
>=dev-util/cmake-2.4.0" |
21 |
|
22 |
|
22 |
src_unpack() { |
23 |
S=${WORKDIR}/${MY_PN}-${PV} |
23 |
unpack ${A} |
|
|
24 |
cd "${S}" |
25 |
} |
26 |
|
24 |
|
27 |
src_compile() { |
25 |
src_compile() { |
28 |
local myconf="" |
26 |
local myconf="" |
29 |
|
27 |
|
30 |
cd "${S}/CMakeConf" |
|
|
31 |
use alsa || myconf="${myconf} -DALSA=OFF" |
28 |
use alsa || myconf="${myconf} -DALSA=OFF" |
32 |
use oss || myconf="${myconf} -DOSS=OFF" |
29 |
use oss || myconf="${myconf} -DOSS=OFF" |
33 |
use debug && myconf="${myconf} -DCMAKE_BUILD_TYPE=Debug" |
30 |
use debug && myconf="${myconf} -DCMAKE_BUILD_TYPE=Debug" |
34 |
cmake -DCMAKE_INSTALL_PREFIX=/usr ${myconf} .. \ |
31 |
|
35 |
|| die "cmake failed" |
32 |
cd "${S}/CMakeConf" |
|
|
33 |
|
34 |
cmake -DCMAKE_INSTALL_PREFIX=/usr ${myconf} .. || die "cmake failed" |
36 |
emake || die "emake failed" |
35 |
emake || die "emake failed" |
|
|
36 |
|
37 |
cd "${S}" |
37 |
cd "${S}" |
38 |
} |
38 |
} |
39 |
|
39 |
|
40 |
src_install() { |
40 |
src_install() { |
41 |
cd "${S}/CMakeConf" |
41 |
cd "${S}/CMakeConf" |
42 |
emake install DESTDIR="${D}" || die "emake install failed" |
42 |
emake install DESTDIR="${D}" || die "emake install failed" |
|
|
43 |
|
43 |
cd "${S}" |
44 |
cd "${S}" |
44 |
dodoc alsoftrc.sample |
45 |
dodoc alsoftrc.sample |
45 |
} |
46 |
} |