Annotation of /trunk/extras/openal/openal-1.9.563-r3.smage2
Parent Directory | Revision Log
Revision 4781 -
(hide annotations)
(download)
Sun Dec 27 23:17:47 2009 UTC (14 years, 6 months ago) by niro
File size: 1153 byte(s)
Sun Dec 27 23:17:47 2009 UTC (14 years, 6 months ago) by niro
File size: 1153 byte(s)
-rebuild multilib.sminc now supports cmake_configure
1 | niro | 4781 | # $Id$ |
2 | |||
3 | PNAME="openal" | ||
4 | PVER="1.9.563" | ||
5 | PBUILD="r3" | ||
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 | cmake_configure \ | ||
40 | $(cmake_with ALSA) \ | ||
41 | $(cmake_with OSS) \ | ||
42 | $(cmake_without PORTAUDIO) \ | ||
43 | $(cmake_without PULSEAUDIO) \ | ||
44 | || die | ||
45 | |||
46 | mmake || die | ||
47 | } | ||
48 | |||
49 | postinstall() | ||
50 | { | ||
51 | echo | ||
52 | echo "If you have performance problems using this library, then" | ||
53 | echo "try add these lines to your ~/.alsoftrc config file:" | ||
54 | echo " [alsa]" | ||
55 | echo " mmap = off" | ||
56 | echo | ||
57 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |