Magellan Linux

Contents of /branches/R11-unstable/extras/openal/openal-1.18.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30088 - (show annotations) (download)
Thu Oct 26 08:04:13 2017 UTC (6 years, 6 months ago) by niro
Original Path: trunk/extras/openal/openal-1.18.2-r1.smage2
File size: 1425 byte(s)
auto added: ver bump to 1.18.2-r1
1 # $Id$
2
3 PNAME="openal"
4 PVER="1.18.2"
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.1
13 >= media-sound/libpulse-10
14 >= sys-libs/libstdc++-6.3"
15 # todo: portaudio!
16
17 SDEPEND=">= x11-libs/qt4-core-4.8
18 >= x11-libs/qt4-gui-4.8"
19
20 SRCFILE="${PNAME}-soft-${PVER}.tar.bz2"
21 SRCDIR="${BUILDDIR}/${PNAME}-soft-${PVER}"
22
23 sminclude multilib cmake
24 msetfeature "!check"
25
26 SRC_URI=(
27 http://kcat.strangesoft.net/openal-releases/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd http://kcat.strangesoft.net/openal-releases/ | lasttarball"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36
37 if [[ $(mlibdir) != lib ]]
38 then
39 # only build 64bit alsoft-config, we have no qt4 multilib
40 only-m32 "rm -r utils/alsoft-config || die"
41 only-m32 "sed -i '/add_subdirectory(utils\/alsoft-config)/d' CMakeLists.txt || die"
42 fi
43 }
44
45 src_compile()
46 {
47 cmake_setup_builddir || die
48
49 cmake_configure \
50 $(cmake_opt ALSA on) \
51 $(cmake_opt OSS on) \
52 $(cmake_opt PULSEAUDIO on) \
53 $(cmake_opt PORTAUDIO off) \
54 $(cmake_opt EXAMPLES off) \
55 || die
56
57 cmake_mmake || die
58 }
59
60 postinstall()
61 {
62 echo
63 echo "If you have performance problems using this library, then"
64 echo "try add these lines to your ~/.alsoftrc config file:"
65 echo " [alsa]"
66 echo " mmap = off"
67 echo
68 }