Annotation of /branches/R11-stable/extras/libsdl/libsdl-1.2.15-r2.smage2
Parent Directory
|
Revision Log
Revision 11816 -
(hide annotations)
(download)
Wed Apr 18 17:07:47 2012 UTC (12 years, 2 months ago) by niro
Original Path: trunk/extras/libsdl/libsdl-1.2.15-r2.smage2
File size: 1728 byte(s)
Wed Apr 18 17:07:47 2012 UTC (12 years, 2 months ago) by niro
Original Path: trunk/extras/libsdl/libsdl-1.2.15-r2.smage2
File size: 1728 byte(s)
-use autogen.sh
1 | niro | 11815 | # $Id$ |
2 | |||
3 | PNAME="libsdl" | ||
4 | PVER="1.2.15" | ||
5 | PBUILD="r2" | ||
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=">= sys-apps/sed-4 | ||
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 | |||
31 | SRC_URI=( | ||
32 | http://www.libsdl.org/release/${SRCFILE} | ||
33 | mirror://${PNAME}/${SRCFILE} | ||
34 | mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch | ||
35 | ) | ||
36 | |||
37 | UP2DATE="updatecmd 'http://www.libsdl.org/release/?C=M;O=A' | grep SDL-[0-9] | lasttarball gz" | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | |||
43 | mpatch ${PNAME}-1.2.11-sdl-config.patch || die | ||
44 | niro | 11816 | all-abis ./autogen.sh || die |
45 | niro | 11815 | } |
46 | |||
47 | src_compile() | ||
48 | { | ||
49 | local myconf | ||
50 | [[ ${ARCH} = i*86 ]] && myconf+=" --enable-nasm" | ||
51 | |||
52 | if [[ ${ARCH} = x86_64 ]] | ||
53 | then | ||
54 | only-m32 myconf+=" --enable-nasm" | ||
55 | fi | ||
56 | |||
57 | # no arts support anymore -> using kde4-branch | ||
58 | myconf+=" --disable-arts" | ||
59 | |||
60 | # use esd for pulseaudio | ||
61 | myconf+=" --enable-esd" | ||
62 | |||
63 | # disable rpath | ||
64 | myconf+=" --disable-rpath" | ||
65 | |||
66 | mconfigure \ | ||
67 | --enable-events \ | ||
68 | --enable-cdrom \ | ||
69 | --enable-threads \ | ||
70 | --enable-timers \ | ||
71 | --enable-endian \ | ||
72 | --enable-file \ | ||
73 | --enable-video-dummy \ | ||
74 | --enable-oss \ | ||
75 | --enable-alsa \ | ||
76 | --enable-video-x11 \ | ||
77 | --enable-dga \ | ||
78 | --enable-video-x11-xv \ | ||
79 | --enable-video-dga \ | ||
80 | --enable-video-opengl \ | ||
81 | ${myconf} \ | ||
82 | || die | ||
83 | |||
84 | mmake || die | ||
85 | } | ||
86 | |||
87 | src_install() | ||
88 | { | ||
89 | mmake DESTDIR=${BINDIR} install || die | ||
90 | minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die | ||
91 | } |