Magellan Linux

Contents of /trunk/core/libdrm/libdrm-2.4.33-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12180 - (show annotations) (download)
Thu May 10 12:16:40 2012 UTC (12 years ago) by niro
File size: 1078 byte(s)
-added patch from upstream to fix build with newest nouveau
1 # $Id$
2
3 PNAME="libdrm"
4 PVER="2.4.33"
5 PBUILD="r2"
6
7 PCAT="x11-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Xorg drm library."
11 HOMEPAGE="http://dri.freedesktop.org/"
12
13 sminclude xorg multilib
14
15 DEPEND=">= x11-libs/libpciaccess-0.12.1"
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}-${PVER}-fix-nouveau-pkgconfig-version.patch
24 )
25
26 UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31
32 # fix pkgconfig version of libdrm_nouveau
33 mpatch ${PNAME}-${PVER}-fix-nouveau-pkgconfig-version.patch || die
34 }
35
36 src_compile()
37 {
38 # add march=native to cflags to fix compile issues
39 # see http://bugs.freedesktop.org/show_bug.cgi?id=24381
40 export CFLAGS="${CFLAGS} -march=native"
41 export CXXFLAGS="${CXXFLAGS} -march=native"
42
43 mconfigure \
44 --enable-udev \
45 --enable-intel \
46 --enable-radeon \
47 --enable-vmwgfx-experimental-api \
48 --enable-nouveau-experimental-api \
49 || die
50 mmake || die
51 }