Magellan Linux

Annotation of /trunk/extras/openal/openal-1.18.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30086 - (hide annotations) (download)
Thu Oct 26 07:29:19 2017 UTC (6 years, 7 months ago) by niro
File size: 1389 byte(s)
auto added: ver bump to 1.18.2-r1
1 niro 30086 # $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_configure \
48     $(cmake_opt ALSA on) \
49     $(cmake_opt OSS on) \
50     $(cmake_opt PULSEAUDIO on) \
51     $(cmake_opt PORTAUDIO off) \
52     $(cmake_opt EXAMPLES off) \
53     || die
54    
55     mmake || die
56     }
57    
58     postinstall()
59     {
60     echo
61     echo "If you have performance problems using this library, then"
62     echo "try add these lines to your ~/.alsoftrc config file:"
63     echo " [alsa]"
64     echo " mmap = off"
65     echo
66     }