summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/drm
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/drm')
-rw-r--r--meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch43
-rw-r--r--meta/recipes-graphics/drm/libdrm.inc14
-rw-r--r--meta/recipes-graphics/drm/libdrm_2.4.21.bb4
-rw-r--r--meta/recipes-graphics/drm/libdrm_git.bb8
4 files changed, 69 insertions, 0 deletions
diff --git a/meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch b/meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch
new file mode 100644
index 0000000000..9d6a168bbc
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm-2.4.21/installtests.patch
@@ -0,0 +1,43 @@
1Index: libdrm-2.4.7/tests/Makefile.am
2===================================================================
3--- libdrm-2.4.7.orig/tests/Makefile.am 2009-04-09 20:16:35.000000000 +0100
4+++ libdrm-2.4.7/tests/Makefile.am 2009-04-17 12:35:14.000000000 +0100
5@@ -6,10 +6,11 @@
6
7 LDADD = $(top_builddir)/libdrm.la
8
9-check_PROGRAMS = \
10+bin_PROGRAMS = \
11 dristat \
12 drmstat
13
14+check_PROGRAMS =
15 SUBDIRS =
16
17 if HAVE_LIBKMS
18Index: libdrm-2.4.7/tests/modeprint/Makefile.am
19===================================================================
20--- libdrm-2.4.7.orig/tests/modeprint/Makefile.am 2009-02-17 19:52:37.000000000 +0000
21+++ libdrm-2.4.7/tests/modeprint/Makefile.am 2009-04-17 12:35:32.000000000 +0100
22@@ -3,7 +3,7 @@
23 -I$(top_srcdir)/libdrm/intel/ \
24 -I$(top_srcdir)/libdrm
25
26-noinst_PROGRAMS = \
27+bin_PROGRAMS = \
28 modeprint
29
30 modeprint_SOURCES = \
31Index: libdrm-2.4.7/tests/modetest/Makefile.am
32===================================================================
33--- libdrm-2.4.7.orig/tests/modetest/Makefile.am 2009-02-17 19:52:37.000000000 +0000
34+++ libdrm-2.4.7/tests/modetest/Makefile.am 2009-04-17 12:35:42.000000000 +0100
35@@ -4,7 +4,7 @@
36 -I$(top_srcdir)/libdrm \
37 $(CAIRO_CFLAGS)
38
39-noinst_PROGRAMS = \
40+bin_PROGRAMS = \
41 modetest
42
43 modetest_SOURCES = \
diff --git a/meta/recipes-graphics/drm/libdrm.inc b/meta/recipes-graphics/drm/libdrm.inc
new file mode 100644
index 0000000000..4f153ff7f7
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm.inc
@@ -0,0 +1,14 @@
1DESCRIPTION = "userspace library for accessing the DRM(direct rendering manager)"
2HOMEPAGE = "http://dri.freedesktop.org"
3SECTION = "x11/base"
4LICENSE = "MIT"
5SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2"
6PROVIDES = "drm"
7DEPENDS = "libpthread-stubs udev cairo virtual/libx11"
8
9inherit autotools pkgconfig
10
11PACKAGES =+ "libdrm-tests"
12FILES_libdrm-tests = "${bindir}/dr* ${bindir}/mode*"
13
14LEAD_SONAME = "libdrm.so"
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.21.bb b/meta/recipes-graphics/drm/libdrm_2.4.21.bb
new file mode 100644
index 0000000000..97ca069004
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm_2.4.21.bb
@@ -0,0 +1,4 @@
1require libdrm.inc
2
3SRC_URI += "file://installtests.patch"
4PR = "r0"
diff --git a/meta/recipes-graphics/drm/libdrm_git.bb b/meta/recipes-graphics/drm/libdrm_git.bb
new file mode 100644
index 0000000000..d80dd5f433
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm_git.bb
@@ -0,0 +1,8 @@
1require libdrm.inc
2
3SRC_URI = "git://anongit.freedesktop.org/git/mesa/drm;protocol=git"
4
5S = ${WORKDIR}/git
6
7PV = "2.4.15+git${SRCREV}"
8PR = "r0"