Contents of /smage/trunk/deprecated/libsdl/libsdl-1.2.15-r1.smage2
Parent Directory | Revision Log
Revision 11114 -
(show annotations)
(download)
Fri Sep 8 12:00:28 2017 UTC (7 years ago) by niro
File size: 1823 byte(s)
Fri Sep 8 12:00:28 2017 UTC (7 years ago) by niro
File size: 1823 byte(s)
-moved to 'deprecated'
1 | # $Id$ |
2 | |
3 | PNAME="libsdl" |
4 | PVER="1.2.15" |
5 | PBUILD="r1" |
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 | ALX_DEV_DEPEND=">= virtual/opengl-dev |
22 | >= media-libs/alsa-lib-dev-1.0.29" |
23 | |
24 | SDEPEND=">= virtual/sed |
25 | ${ALX_DEV_DEPEND}" |
26 | |
27 | SRCFILE="SDL-${PVER}.tar.gz" |
28 | SRCDIR="${BUILDDIR}/SDL-${PVER}" |
29 | |
30 | sminclude multilib |
31 | msetfeature "!check" |
32 | |
33 | SRC_URI=( |
34 | http://www.libsdl.org/release/${SRCFILE} |
35 | mirror://${PNAME}/${SRCFILE} |
36 | mirror://${PNAME}/${PNAME}-1.2.11-sdl-config.patch |
37 | mirror://${PNAME}/${PNAME}-${PVER}-x11-symbols.patch |
38 | ) |
39 | |
40 | UP2DATE="updatecmd http://www.libsdl.org/release/ | grep SDL-[0-9] | highesttarball gz" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | |
46 | mpatch ${PNAME}-1.2.11-sdl-config.patch || die |
47 | # fixes a ftbfs with newer x11 |
48 | mpatch ${PNAME}-${PVER}-x11-symbols.patch || die |
49 | all-abis ./autogen.sh || die |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | local myconf |
55 | [[ ${ARCH} = i*86 ]] && myconf+=" --enable-nasm" |
56 | |
57 | # no arts support anymore -> using kde4-branch |
58 | myconf+=" --disable-arts" |
59 | |
60 | # use esd for pulseaudio |
61 | myconf+=" --enable-esd" |
62 | |
63 | # disable rpath |
64 | myconf+=" --disable-rpath" |
65 | |
66 | mconfigure \ |
67 | --enable-events \ |
68 | --enable-cdrom \ |
69 | --enable-threads \ |
70 | --enable-timers \ |
71 | --enable-endian \ |
72 | --enable-file \ |
73 | --enable-video-dummy \ |
74 | --enable-oss \ |
75 | --enable-alsa \ |
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 | mmake DESTDIR=${BINDIR} install || die |
90 | minstalldocs BUGS COPYING CREDITS README* TODO WhatsNew || die |
91 | } |