Annotation of /branches/R11-unstable/extras/openal/openal-1.16.0-r1.smage2
Parent Directory | Revision Log
Revision 22062 -
(hide annotations)
(download)
Fri Aug 22 09:00:36 2014 UTC (9 years, 9 months ago) by niro
Original Path: trunk/extras/openal/openal-1.16.0-r1.smage2
File size: 1280 byte(s)
Fri Aug 22 09:00:36 2014 UTC (9 years, 9 months ago) by niro
Original Path: trunk/extras/openal/openal-1.16.0-r1.smage2
File size: 1280 byte(s)
-fixed rm
1 | niro | 22059 | # $Id$ |
2 | |||
3 | PNAME="openal" | ||
4 | PVER="1.16.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="media-libs" | ||
8 | |||
9 | DESCRIPTION="openal is a cross-platform 3D audio API appropriate for use with many types of audio applications." | ||
10 | HOMEPAGE="http://kcat.strangesoft.net/openal.html" | ||
11 | |||
12 | niro | 22060 | DEPEND=">= media-libs/alsa-lib-1.0.28 |
13 | niro | 22059 | >= media-sound/libpulse-2.1" |
14 | # todo: portaudio! | ||
15 | |||
16 | niro | 22060 | SDEPEND=">= x11-libs/qt4-core-4.8 |
17 | >= x11-libs/qt4-gui-4.8" | ||
18 | |||
19 | niro | 22059 | SRCFILE="${PNAME}-soft-${PVER}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-soft-${PVER}" | ||
21 | |||
22 | sminclude cmake multilib | ||
23 | msetfeature "!check" | ||
24 | |||
25 | SRC_URI=( | ||
26 | http://kcat.strangesoft.net/openal-releases/${SRCFILE} | ||
27 | mirror://${PNAME}/${SRCFILE} | ||
28 | ) | ||
29 | |||
30 | UP2DATE="updatecmd http://kcat.strangesoft.net/openal-releases/ | lasttarball" | ||
31 | |||
32 | niro | 22061 | src_prepare() |
33 | { | ||
34 | munpack ${SRCFILE} || die | ||
35 | |||
36 | if [[ $(mlibdir) != lib ]] | ||
37 | then | ||
38 | # only build 64bit alsoft-config, we have no qt4 multilib | ||
39 | niro | 22062 | only-m32 "rm -r utils/alsoft-config || die" |
40 | niro | 22061 | fi |
41 | } | ||
42 | |||
43 | niro | 22059 | src_compile() |
44 | { | ||
45 | cmake_configure \ | ||
46 | $(cmake_opt ALSA on) \ | ||
47 | $(cmake_opt OSS on) \ | ||
48 | $(cmake_opt PULSEAUDIO on) \ | ||
49 | $(cmake_opt PORTAUDIO off) \ | ||
50 | $(cmake_opt EXAMPLES off) \ | ||
51 | || die | ||
52 | |||
53 | mmake || die | ||
54 | } | ||
55 | |||
56 | postinstall() | ||
57 | { | ||
58 | echo | ||
59 | echo "If you have performance problems using this library, then" | ||
60 | echo "try add these lines to your ~/.alsoftrc config file:" | ||
61 | echo " [alsa]" | ||
62 | echo " mmap = off" | ||
63 | echo | ||
64 | } |