blob: 2b105eb1fe9600b57910ed9f4f80e54c3a356510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
SECTION = "x11/base"
LICENSE = "MIT"
SRC_URI = "${FREEDESKTOP_CVS}/dri;module=drm;method=pserver"
PV = "0.0+cvs${SRCDATE}"
PR = "r2"
S = "${WORKDIR}/drm"
do_compile() {
oe_runmake -C libdrm
}
do_stage() {
oe_libinstall -so -C libdrm libdrm ${STAGING_LIBDIR}
ln -sf libdrm.so ${STAGING_LIBDIR}/libdrm.so.1
for i in xf86drmCompat.h xf86drm.h; do
install -m 0644 libdrm/$i ${STAGING_INCDIR}
done
for i in drm.h; do
install -m 0644 shared-core/$i ${STAGING_INCDIR}
done
}
do_install() {
install -d ${D}${includedir}
install -d ${D}/lib
oe_runmake -C libdrm DESTDIR="${D}" install
install -d ${D}${libdir}
mv ${D}/lib/libdrm.so ${D}${libdir}/libdrm.so.1
ln -sf libdrm.so.1 ${D}${libdir}/libdrm.so
rmdir ${D}/lib
}
|