Magellan Linux

Annotation of /branches/branch-xorg18/core/libsdl/libsdl-1.2.14-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3606 - (hide annotations) (download)
Tue Oct 27 09:39:18 2009 UTC (14 years, 7 months ago) by niro
Original Path: trunk/core/libsdl/libsdl-1.2.14-r1.smage2
File size: 1788 byte(s)
-removed upstream patches
1 niro 3604 # $Id$
2    
3     PNAME="libsdl"
4     PVER="1.2.14"
5     PBUILD="r1"
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.2.6
21     >= media-libs/alsa-lib-1.0.21"
22    
23     SDEPEND=">= sys-apps/sed-4
24     >= x11-proto/xextproto-1
25     >= x11-proto/xproto-1
26     >= x11-proto/xf86dgaproto-1
27     >= x11-proto/videoproto-2"
28    
29     SRCFILE="SDL-${PVER}.tar.gz"
30     SRCDIR="${BUILDDIR}/SDL-${PVER}"
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     cd ${SRCDIR}
44    
45     mpatch ${PNAME}-1.2.11-sdl-config.patch || die
46     ./autogen.sh || die
47     }
48    
49     src_compile()
50     {
51     cd ${SRCDIR}
52    
53     local myconf
54     [[ ${ARCH} = i*86 ]] && myconf="--enable-nasm"
55    
56     # no arts support anymore -> using kde4-branch
57     myconf="${myconf} --disable-arts"
58    
59     # no esound anymore (gnome-2.28)
60     myconf="${myconf} --disable-esd"
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     cd ${SRCDIR}
86    
87     mmake DESTDIR=${BINDIR} install || die
88     # sed -i -e "s:-pthread::g" ${BINDIR}/usr/lib/libSDL.la || die
89     minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die
90     }

Properties

Name Value
svn:keywords Id