Contents of /branches/magellan-next/core/libsdl/libsdl-1.2.14-r2.smage2
Parent Directory | Revision Log
Revision 6612 -
(show annotations)
(download)
Mon Sep 6 20:44:10 2010 UTC (14 years ago) by niro
File size: 1789 byte(s)
Mon Sep 6 20:44:10 2010 UTC (14 years ago) by niro
File size: 1789 byte(s)
-fixed dependencies
1 | # $Id: libsdl-1.2.14-r1.smage2 3606 2009-10-27 09:39:18Z niro $ |
2 | |
3 | PNAME="libsdl" |
4 | PVER="1.2.14" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Simple DirectMedia Layer is a cross-platform multimedia library." |
11 | HOMEPAGE="http://www.libsdl.org/" |
12 | |
13 | DEPEND=">= virtual/opengl |
14 | >= x11-libs/libXt-1 |
15 | >= x11-libs/libXext-1 |
16 | >= x11-libs/libX11-1 |
17 | >= x11-libs/libXv-1 |
18 | >= x11-libs/libXvMC-1 |
19 | >= media-libs/audiofile-0.2.7 |
20 | >= media-libs/alsa-lib-1.0.23" |
21 | |
22 | SDEPEND=">= sys-apps/sed-4 |
23 | >= x11-proto/xextproto-1 |
24 | >= x11-proto/xproto-1 |
25 | >= x11-proto/videoproto-2" |
26 | |
27 | SRCFILE="SDL-${PVER}.tar.gz" |
28 | SRCDIR="${BUILDDIR}/SDL-${PVER}" |
29 | |
30 | SRC_URI=( |
31 | http://www.libsdl.org/release/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch |
34 | ) |
35 | |
36 | UP2DATE="updatecmd 'http://www.libsdl.org/release/?C=M;O=A' | grep SDL-[0-9] | lasttarball gz" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | mpatch ${PNAME}-1.2.11-sdl-config.patch || die |
44 | ./autogen.sh || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | |
51 | local myconf |
52 | [[ ${ARCH} = i*86 ]] && myconf="--enable-nasm" |
53 | |
54 | # no arts support anymore -> using kde4-branch |
55 | myconf="${myconf} --disable-arts" |
56 | |
57 | # no esound anymore (gnome-2.28) |
58 | myconf="${myconf} --disable-esd" |
59 | |
60 | mconfigure \ |
61 | --enable-events \ |
62 | --enable-cdrom \ |
63 | --enable-threads \ |
64 | --enable-timers \ |
65 | --enable-endian \ |
66 | --enable-file \ |
67 | --enable-video-dummy \ |
68 | --enable-oss \ |
69 | --enable-alsa \ |
70 | --enable-video-x11 \ |
71 | --enable-dga \ |
72 | --enable-video-x11-xv \ |
73 | --enable-video-dga \ |
74 | --enable-video-opengl \ |
75 | ${myconf} \ |
76 | || die |
77 | |
78 | mmake || die |
79 | } |
80 | |
81 | src_install() |
82 | { |
83 | cd ${SRCDIR} |
84 | |
85 | mmake DESTDIR=${BINDIR} install || die |
86 | # sed -i -e "s:-pthread::g" ${BINDIR}/usr/lib/libSDL.la || die |
87 | minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die |
88 | } |