Contents of /trunk/core/libdrm/libdrm-2.4.45-r1.smage2
Parent Directory | Revision Log
Revision 17179 -
(show annotations)
(download)
Mon Jun 3 13:48:50 2013 UTC (11 years, 3 months ago) by niro
File size: 1042 byte(s)
Mon Jun 3 13:48:50 2013 UTC (11 years, 3 months ago) by niro
File size: 1042 byte(s)
auto added: ver bump to 2.4.45-r1
1 | # $Id$ |
2 | |
3 | PNAME="libdrm" |
4 | PVER="2.4.45" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-libs" |
8 | |
9 | DESCRIPTION="Xorg drm library." |
10 | HOMEPAGE="http://dri.freedesktop.org/" |
11 | |
12 | sminclude xorg multilib |
13 | |
14 | DEPEND=">= x11-libs/libpciaccess-0.13 |
15 | >= sys-fs/libudev-200" |
16 | SDEPEND=">= dev-libs/libpthread-stubs-0.1 |
17 | >= x11-libs/cairo-1.12" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 | |
21 | SRC_URI=( |
22 | http://dri.freedesktop.org/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-${PVER}-build-fix.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | mpatch ${PNAME}-${PVER}-build-fix.patch || die |
33 | mautoreconf || 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 | } |