Contents of /branches/R11-unstable/extras/libdrm/libdrm-2.4.61-r1.smage2
Parent Directory | Revision Log
Revision 25495 -
(show annotations)
(download)
Tue Nov 25 03:50:27 2014 UTC (9 years, 10 months ago) by niro
File size: 891 byte(s)
Tue Nov 25 03:50:27 2014 UTC (9 years, 10 months ago) by niro
File size: 891 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="libdrm" |
4 | PVER="2.4.61" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-libs" |
8 | |
9 | DESCRIPTION="Xorg drm library." |
10 | HOMEPAGE="http://dri.freedesktop.org/" |
11 | |
12 | DEPEND=">= x11-libs/libpciaccess-0.13 |
13 | >= sys-fs/libudev-216" |
14 | SDEPEND=">= dev-libs/libpthread-stubs-0.1" |
15 | |
16 | if mqueryfeature "check" |
17 | then |
18 | SDEPEND+=" |
19 | >= x11-libs/cairo-1.12" |
20 | fi |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
23 | |
24 | sminclude xorg multilib |
25 | |
26 | SRC_URI=( |
27 | http://dri.freedesktop.org/${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | ) |
30 | |
31 | UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball" |
32 | |
33 | src_compile() |
34 | { |
35 | # add march=native to cflags to fix compile issues |
36 | # see http://bugs.freedesktop.org/show_bug.cgi?id=24381 |
37 | export CFLAGS="${CFLAGS} -march=native" |
38 | export CXXFLAGS="${CXXFLAGS} -march=native" |
39 | |
40 | mconfigure \ |
41 | --enable-udev \ |
42 | --enable-intel \ |
43 | --enable-radeon \ |
44 | --enable-nouveau \ |
45 | --enable-vmwgfx \ |
46 | || die |
47 | |
48 | mmake || die |
49 | } |