Contents of /trunk/extras/openal/openal-20060211-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1676 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1676 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/openal/openal-20060211-r2.smage2,v 1.1 2008/02/13 22:03:58 niro Exp $ |
2 | |
3 | PNAME="openal" |
4 | PVER="20060211" |
5 | PBUILD="r2" |
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://www.openal.org/" |
12 | |
13 | DEPEND=">= media-libs/alsa-lib-1.0.5 |
14 | >= media-libs/libvorbis-1.0.1 |
15 | >= media-libs/libmad-0.15" |
16 | |
17 | SDEPEND=">= dev-lang/nasm-0.98.38 |
18 | >= media-sound/esound-0.2 |
19 | >= media-libs/libsdl-1.2.5" |
20 | |
21 | # 20060211 aka 0.0.8 :) |
22 | SRCFILE="${PNAME}-0.0.8.tar.gz" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-0.0.8" |
24 | |
25 | sminclude mbuild |
26 | |
27 | SRC_URI=( |
28 | http://www.openal.org/openal_webstf/downloads/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${PNAME}-${PVER}-alc-context.patch |
31 | mirror://${PNAME}/${PNAME}-${PVER}-alsa-default.patch |
32 | mirror://${PNAME}/${PNAME}-${PVER}-mmx.patch |
33 | mirror://${PNAME}/${PNAME}-${PVER}-gcc42.patch |
34 | ) |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # fixes some segfaults |
42 | mpatch ${PNAME}-${PVER}-alc-context.patch || die |
43 | # use alsa as default |
44 | mpatch ${PNAME}-${PVER}-alsa-default.patch || die |
45 | # fix mmx issues |
46 | mpatch ${PNAME}-${PVER}-mmx.patch || die |
47 | # fix gcc-4.2 compile issues |
48 | mpatch ${PNAME}-${PVER}-gcc42.patch || die |
49 | |
50 | sed -i "/^Requires:/d" admin/pkgconfig/openal.pc.in || die |
51 | |
52 | # rebuild makefiles |
53 | export WANT_AUTOCONF=2.5 |
54 | autoconf || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | # no arts support anymore -> using kde4-branch |
62 | local myconf="${myconf} --disable-arts" |
63 | |
64 | mconfigure \ |
65 | --enable-alsa \ |
66 | --enable-esd \ |
67 | --enable-sdl \ |
68 | --enable-vorbis \ |
69 | --enable-mp3 \ |
70 | ${myconf} \ |
71 | || die |
72 | |
73 | mmake all || die |
74 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |