Magellan Linux

Contents of /trunk/core/libsdl/libsdl-1.2.13-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 961 - (show annotations) (download)
Sun Dec 28 22:55:57 2008 UTC (15 years, 4 months ago) by niro
File size: 2078 byte(s)
-rev bump to 1.2.13-r2
1 # $Header: /magellan-cvs/smage/libsdl/libsdl-1.2.13-r1.smage2,v 1.3 2008/02/13 19:43:54 niro Exp $
2
3 PNAME="libsdl"
4 PVER="1.2.13"
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 >= x11-libs/libXxf86dga-1
20 >= media-libs/audiofile-0.1.9
21 >= media-libs/alsa-lib-1.0.2"
22
23 SDEPEND=">= sys-apps/sed-4
24 >= media-sound/esound-0.2.19
25 >= x11-proto/xextproto-1
26 >= x11-proto/xproto-1
27 >= x11-proto/xf86dgaproto-1
28 >= x11-proto/videoproto-2"
29
30 SRCFILE="SDL-${PVER}.tar.gz"
31 SRCDIR="${BUILDDIR}/SDL-${PVER}"
32
33 SRC_URI=(
34 http://www.libsdl.org/release/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/${PNAME}-1.2.11-libcaca-new-api.patch
37 mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch
38 mirror://${PNAME}/${PNAME}-1.2.11-xinerama-head-0.patch
39 )
40
41 UP2DATE="updatecmd 'http://www.libsdl.org/release/?C=M;O=A' | grep SDL-[0-9] | lasttarball gz"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 cd ${SRCDIR}
47
48 mpatch ${PNAME}-1.2.11-libcaca-new-api.patch || die
49 mpatch ${PNAME}-1.2.11-sdl-config.patch || die
50 mpatch ${PNAME}-1.2.11-xinerama-head-0.patch || die
51
52 ./autogen.sh || die
53 }
54
55 src_compile()
56 {
57 cd ${SRCDIR}
58
59 local myconf
60 [[ ${ARCH} = i*86 ]] && myconf="--enable-nasm"
61
62 # no arts support anymore -> using kde4-branch
63 myconf="${myconf} --disable-arts"
64
65 mconfigure \
66 --enable-events \
67 --enable-cdrom \
68 --enable-threads \
69 --enable-timers \
70 --enable-endian \
71 --enable-file \
72 --enable-video-dummy \
73 --enable-oss \
74 --enable-alsa \
75 --enable-esd \
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 cd ${SRCDIR}
90
91 mmake DESTDIR=${BINDIR} install || die
92 # sed -i -e "s:-pthread::g" ${BINDIR}/usr/lib/libSDL.la || die
93 minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die
94 }

Properties

Name Value
svn:keywords Id