Contents of /branches/R11-unstable/extras/openal/openal-1.16.0-r1.smage2
Parent Directory | Revision Log
Revision 25686 -
(show annotations)
(download)
Tue Nov 25 04:10:06 2014 UTC (9 years, 10 months ago) by niro
File size: 1366 byte(s)
Tue Nov 25 04:10:06 2014 UTC (9 years, 10 months ago) by niro
File size: 1366 byte(s)
-release branches/R11-unstable
1 | # $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 | DEPEND=">= media-libs/alsa-lib-1.0.28 |
13 | >= media-sound/libpulse-2.1" |
14 | # todo: portaudio! |
15 | |
16 | SDEPEND=">= x11-libs/qt4-core-4.8 |
17 | >= x11-libs/qt4-gui-4.8" |
18 | |
19 | 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 | 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 | only-m32 "rm -r utils/alsoft-config || die" |
40 | only-m32 "sed -i '/add_subdirectory(utils\/alsoft-config)/d' CMakeLists.txt || die" |
41 | fi |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | cmake_configure \ |
47 | $(cmake_opt ALSA on) \ |
48 | $(cmake_opt OSS on) \ |
49 | $(cmake_opt PULSEAUDIO on) \ |
50 | $(cmake_opt PORTAUDIO off) \ |
51 | $(cmake_opt EXAMPLES off) \ |
52 | || die |
53 | |
54 | mmake || die |
55 | } |
56 | |
57 | postinstall() |
58 | { |
59 | echo |
60 | echo "If you have performance problems using this library, then" |
61 | echo "try add these lines to your ~/.alsoftrc config file:" |
62 | echo " [alsa]" |
63 | echo " mmap = off" |
64 | echo |
65 | } |