Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4159 - (hide annotations) (download)
Thu Nov 26 12:56:25 2009 UTC (14 years, 5 months ago) by niro
File size: 1093 byte(s)
-fixed SRCFILE/SRCDIR
1 niro 4158 # $Id$
2    
3     PNAME="openal"
4     PVER="1.9.563"
5     PBUILD="r1"
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 niro 4159 SRCFILE="${PNAME}-soft-${PVER}.tar.bz2"
17     SRCDIR="${BUILDDIR}/${PNAME}-soft-${PVER}"
18 niro 4158
19     sminclude cmake
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     src_prepare()
28     {
29     munpack ${SRCFILE} || die
30     cd ${SRCDIR}
31    
32     # fixes issues with the oss backend
33     mpatch ${PNAME}-${PVER}-oss.patch || die
34     }
35    
36     src_compile()
37     {
38     cd ${SRCDIR}
39    
40     cmake_configure \
41     $(cmake_with ALSA) \
42     $(cmake_with OSS) \
43     $(cmake_without PORTAUDIO) \
44     $(cmake_without PULSEAUDIO) \
45     || die
46    
47     mmake || die
48     }
49    
50     postinstall()
51     {
52     echo
53     echo "If you have performance problems using this library, then"
54     echo "try add these lines to your ~/.alsoftrc config file:"
55     echo " [alsa]"
56     echo " mmap = off"
57     echo
58     }

Properties

Name Value
svn:keywords Id