Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 994 - (show annotations) (download)
Thu Dec 16 21:10:19 2010 UTC (13 years, 5 months ago) by niro
Original Path: smage/trunk/extras/libdrm/libdrm-2.4.23-r1.smage2
File size: 995 byte(s)
auto added: ver bump to 2.4.23-r1
1 # $Id: libdrm-2.4.20-r1.smage2 514 2010-05-08 01:44:12Z niro $
2
3 PNAME="libdrm"
4 PVER="2.4.23"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Xorg drm library."
11 HOMEPAGE="http://dri.freedesktop.org/"
12
13 sminclude xorg multilib mcore-split
14
15 DEPEND=""
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}-mesa-fix.patch
24 )
25
26 UP2DATE="updatecmd http://dri.freedesktop.org/${PNAME}/ | lasttarball"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31
32 # fix build issues with mesa-7.8.1
33 # see: https://bugs.freedesktop.org/show_bug.cgi?id=27612
34 mpatch ${PNAME}-${PVER}-mesa-fix.patch || 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 || die
45 mmake || die
46 }