Magellan Linux

Contents of /branches/R11-unstable/extras/libsdl/libsdl-1.2.15-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32640 - (show annotations) (download)
Mon Apr 29 13:19:33 2019 UTC (5 years ago) by niro
File size: 1729 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="libsdl"
4 PVER="1.2.15"
5 PBUILD="r5"
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.1
14 >= x11-libs/libXext-1.3
15 >= x11-libs/libX11-1.6
16 >= x11-libs/libXv-1
17 >= x11-libs/libXvMC-1
18 >= media-libs/audiofile-0.3
19 >= media-libs/alsa-lib-1.0.29"
20
21 SDEPEND=">= virtual/sed"
22
23 SRCFILE="SDL-${PVER}.tar.gz"
24 SRCDIR="${BUILDDIR}/SDL-${PVER}"
25
26 sminclude multilib
27 msetfeature "!check"
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 mirror://${PNAME}/${PNAME}-${PVER}-x11-symbols.patch
34 )
35
36 UP2DATE="updatecmd http://www.libsdl.org/release/ | grep SDL-[0-9] | highesttarball gz"
37
38 src_prepare()
39 {
40 munpack ${SRCFILE} || die
41
42 mpatch ${PNAME}-1.2.11-sdl-config.patch || die
43 # fixes a ftbfs with newer x11
44 mpatch ${PNAME}-${PVER}-x11-symbols.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 }