Magellan Linux

Contents of /branches/R11-stable/extras/libsdl/libsdl-1.2.15-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15237 - (show annotations) (download)
Wed Jan 2 11:00:46 2013 UTC (11 years, 4 months ago) by niro
File size: 1675 byte(s)
-release branches/R11-stable
1 # $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 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 )
37
38 UP2DATE="updatecmd 'http://www.libsdl.org/release/?C=M;O=A' | grep SDL-[0-9] | lasttarball gz"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} || die
43
44 mpatch ${PNAME}-1.2.11-sdl-config.patch || die
45 all-abis ./autogen.sh || die
46 }
47
48 src_compile()
49 {
50 local myconf
51 [[ ${ARCH} = i*86 ]] && myconf+=" --enable-nasm"
52
53 # no arts support anymore -> using kde4-branch
54 myconf+=" --disable-arts"
55
56 # use esd for pulseaudio
57 myconf+=" --enable-esd"
58
59 # disable rpath
60 myconf+=" --disable-rpath"
61
62 mconfigure \
63 --enable-events \
64 --enable-cdrom \
65 --enable-threads \
66 --enable-timers \
67 --enable-endian \
68 --enable-file \
69 --enable-video-dummy \
70 --enable-oss \
71 --enable-alsa \
72 --enable-video-x11 \
73 --enable-dga \
74 --enable-video-x11-xv \
75 --enable-video-dga \
76 --enable-video-opengl \
77 ${myconf} \
78 || die
79
80 mmake || die
81 }
82
83 src_install()
84 {
85 mmake DESTDIR=${BINDIR} install || die
86 minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die
87 }