Contents of /branches/magellan-next/core/libsdl/libsdl-1.2.14-r3.smage2
Parent Directory | Revision Log
Revision 8046 -
(show annotations)
(download)
Wed Jun 29 13:03:36 2011 UTC (13 years, 3 months ago) by niro
File size: 1715 byte(s)
Wed Jun 29 13:03:36 2011 UTC (13 years, 3 months ago) by niro
File size: 1715 byte(s)
auto added: ver bump to 1.2.14-r3
1 | # $Id$ |
2 | |
3 | PNAME="libsdl" |
4 | PVER="1.2.14" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="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 | SRC_URI=( |
30 | http://www.libsdl.org/release/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch |
33 | ) |
34 | |
35 | UP2DATE="updatecmd 'http://www.libsdl.org/release/?C=M;O=A' | grep SDL-[0-9] | lasttarball gz" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | mpatch ${PNAME}-1.2.11-sdl-config.patch || die |
43 | ./autogen.sh || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | local myconf |
51 | [[ ${ARCH} = i*86 ]] && myconf="--enable-nasm" |
52 | |
53 | # no arts support anymore -> using kde4-branch |
54 | myconf="${myconf} --disable-arts" |
55 | |
56 | # no esound anymore (gnome-2.28) |
57 | myconf="${myconf} --disable-esd" |
58 | |
59 | mconfigure \ |
60 | --enable-events \ |
61 | --enable-cdrom \ |
62 | --enable-threads \ |
63 | --enable-timers \ |
64 | --enable-endian \ |
65 | --enable-file \ |
66 | --enable-video-dummy \ |
67 | --enable-oss \ |
68 | --enable-alsa \ |
69 | --enable-video-x11 \ |
70 | --enable-dga \ |
71 | --enable-video-x11-xv \ |
72 | --enable-video-dga \ |
73 | --enable-video-opengl \ |
74 | ${myconf} \ |
75 | || die |
76 | |
77 | mmake || die |
78 | } |
79 | |
80 | src_install() |
81 | { |
82 | cd ${SRCDIR} |
83 | |
84 | mmake DESTDIR=${BINDIR} install || die |
85 | # sed -i -e "s:-pthread::g" ${BINDIR}/usr/lib/libSDL.la || die |
86 | minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die |
87 | } |