Contents of /trunk/extras/openal/openal-1.9.563-r2.smage2
Parent Directory | Revision Log
Revision 4777 -
(show annotations)
(download)
Sun Dec 27 23:09:09 2009 UTC (14 years, 4 months ago) by niro
File size: 1280 byte(s)
Sun Dec 27 23:09:09 2009 UTC (14 years, 4 months ago) by niro
File size: 1280 byte(s)
-multilib support
1 | # $Id$ |
2 | |
3 | PNAME="openal" |
4 | PVER="1.9.563" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="openal is a cross-platform 3D audio API appropriate for use with many types of audio applications." |
11 | HOMEPAGE="http://kcat.strangesoft.net/openal.html" |
12 | |
13 | DEPEND=">= media-libs/alsa-lib-1.0.21" |
14 | # todo: pulseaudio, portaudio! |
15 | |
16 | SRCFILE="${PNAME}-soft-${PVER}.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-soft-${PVER}" |
18 | |
19 | sminclude cmake multilib |
20 | |
21 | SRC_URI=( |
22 | http://kcat.strangesoft.net/openal-releases/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-${PVER}-oss.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd http://kcat.strangesoft.net/openal-releases/ | lasttarball" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | |
33 | # fixes issues with the oss backend |
34 | mpatch ${PNAME}-${PVER}-oss.patch || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | local abi |
40 | local saved_SRCDIR="${SRCDIR}" |
41 | for abi in ${MULTILIB_ABIS} |
42 | do |
43 | SRCDIR="${SRCDIR}-${abi}" |
44 | abi-${abi} cmake_configure \ |
45 | $(cmake_with ALSA) \ |
46 | $(cmake_with OSS) \ |
47 | $(cmake_without PORTAUDIO) \ |
48 | $(cmake_without PULSEAUDIO) \ |
49 | || die |
50 | done |
51 | |
52 | mmake || die |
53 | } |
54 | |
55 | postinstall() |
56 | { |
57 | echo |
58 | echo "If you have performance problems using this library, then" |
59 | echo "try add these lines to your ~/.alsoftrc config file:" |
60 | echo " [alsa]" |
61 | echo " mmap = off" |
62 | echo |
63 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |