Magellan Linux

Contents of /smage/trunk/core/libdrm/libdrm-2.4.59-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6141 - (show annotations) (download)
Tue Mar 24 08:11:44 2015 UTC (9 years, 2 months ago) by niro
File size: 993 byte(s)
-added
1 # $Id$
2
3 PNAME="libdrm"
4 PVER="2.4.59"
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
15 SDEPEND=">= dev-libs/libpthread-stubs-0.1
16 >= x11-libs/libpciaccess-dev-0.13
17 >= sys-fs/libudev-dev-216"
18
19 if mqueryfeature "check"
20 then
21 SDEPEND+="
22 >= x11-libs/cairo-1.12
23 >= x11-libs/cairo-dev-1.12"
24 fi
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27
28 sminclude xorg multilib alx-split
29
30 SRC_URI=(
31 http://dri.freedesktop.org/${PNAME}/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 )
34
35 UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball"
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-nouveau \
49 --enable-vmwgfx \
50 || die
51
52 mmake || die
53 }