Contents of /trunk/extras/libsdl/libsdl-1.2.15-r3.smage2
Parent Directory | Revision Log
Revision 20723 -
(show annotations)
(download)
Tue Feb 4 10:05:46 2014 UTC (10 years, 4 months ago) by niro
File size: 1808 byte(s)
Tue Feb 4 10:05:46 2014 UTC (10 years, 4 months ago) by niro
File size: 1808 byte(s)
-fixed a ftbfs with newer x11
1 | # $Id$ |
2 | |
3 | PNAME="libsdl" |
4 | PVER="1.2.15" |
5 | PBUILD="r3" |
6 | |
7 | PCAT="media-libs" |
8 | |
9 | DESCRIPTION="Simple DirectMedia Layer is a cross-platform multimedia library." |
10 | HOMEPAGE="http://www.libsdl.org/" |
11 | |
12 | DEPEND=">= virtual/opengl |
13 | >= x11-libs/libXt-1 |
14 | >= x11-libs/libXext-1 |
15 | >= x11-libs/libX11-1 |
16 | >= x11-libs/libXv-1 |
17 | >= x11-libs/libXvMC-1 |
18 | >= media-libs/audiofile-0.2.7 |
19 | >= media-libs/alsa-lib-1.0.24" |
20 | |
21 | SDEPEND=">= virtual/sed |
22 | >= x11-proto/xextproto-1 |
23 | >= x11-proto/xproto-1 |
24 | >= x11-proto/videoproto-2" |
25 | |
26 | SRCFILE="SDL-${PVER}.tar.gz" |
27 | SRCDIR="${BUILDDIR}/SDL-${PVER}" |
28 | |
29 | sminclude multilib |
30 | msetfeature "!check" |
31 | |
32 | SRC_URI=( |
33 | http://www.libsdl.org/release/${SRCFILE} |
34 | mirror://${PNAME}/${SRCFILE} |
35 | mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch |
36 | mirror://${PNAME}/${PNAME}-${PVER}-x11-symbols.patch |
37 | ) |
38 | |
39 | UP2DATE="updatecmd 'http://www.libsdl.org/release/?C=M;O=A' | grep SDL-[0-9] | lasttarball gz" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | |
45 | mpatch ${PNAME}-1.2.11-sdl-config.patch || die |
46 | # fixes a ftbfs with newer x11 |
47 | mpatch ${PNAME}-${PVER}-x11-symbols.patch || die |
48 | all-abis ./autogen.sh || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | local myconf |
54 | [[ ${ARCH} = i*86 ]] && myconf+=" --enable-nasm" |
55 | |
56 | # no arts support anymore -> using kde4-branch |
57 | myconf+=" --disable-arts" |
58 | |
59 | # use esd for pulseaudio |
60 | myconf+=" --enable-esd" |
61 | |
62 | # disable rpath |
63 | myconf+=" --disable-rpath" |
64 | |
65 | mconfigure \ |
66 | --enable-events \ |
67 | --enable-cdrom \ |
68 | --enable-threads \ |
69 | --enable-timers \ |
70 | --enable-endian \ |
71 | --enable-file \ |
72 | --enable-video-dummy \ |
73 | --enable-oss \ |
74 | --enable-alsa \ |
75 | --enable-video-x11 \ |
76 | --enable-dga \ |
77 | --enable-video-x11-xv \ |
78 | --enable-video-dga \ |
79 | --enable-video-opengl \ |
80 | ${myconf} \ |
81 | || die |
82 | |
83 | mmake || die |
84 | } |
85 | |
86 | src_install() |
87 | { |
88 | mmake DESTDIR=${BINDIR} install || die |
89 | minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die |
90 | } |