Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/libdrm/libdrm-2.4.40-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4950 - (show annotations) (download)
Wed Jun 5 13:11:05 2013 UTC (11 years ago) by niro
File size: 1123 byte(s)
auto added: ver bump to 2.4.40-r1
1 # $Id$
2
3 PNAME="libdrm"
4 PVER="2.4.40"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-libs"
8
9 DESCRIPTION="Xorg drm library."
10 HOMEPAGE="http://dri.freedesktop.org/"
11
12 sminclude xorg multilib alx-split
13
14 DEPEND=">= sys-fs/udev-166
15 >= x11-libs/libpciaccess-0.12"
16 SDEPEND=">= dev-libs/libpthread-stubs-0.1"
17
18 SRCFILE="${PNAME}-${PVER}.tar.bz2"
19
20 SRC_URI=(
21 http://dri.freedesktop.org/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-2.4.33-no-cairo.patch
24 )
25
26 UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31
32 # adds --disable-cairo-patch switch to disable hardcoded cairo dep
33 mpatch ${PNAME}-2.4.33-no-cairo.patch || die
34 mautoreconf || die
35 }
36
37 src_compile()
38 {
39 # add march=native to cflags to fix compile issues
40 # see http://bugs.freedesktop.org/show_bug.cgi?id=24381
41 export CFLAGS="${CFLAGS} -march=native"
42 export CXXFLAGS="${CXXFLAGS} -march=native"
43
44 mconfigure \
45 --enable-udev \
46 --enable-intel \
47 --enable-radeon \
48 --enable-vmwgfx-experimental-api \
49 --enable-nouveau-experimental-api \
50 --disable-cairo-tests \
51 || die
52
53 mmake || die
54 }