summaryrefslogtreecommitdiff
path: root/meta/packages/drm
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-04-21 17:37:39 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-04-21 17:37:39 +0100
commit1370ba3fc0b554fd9edd4ede653f7e3e8413ec3d (patch)
treec9a659d88cb53e9c7f241dc3e1e5380e0eedaf80 /meta/packages/drm
parent31f3e71947685f98774f6a2a1dabaed7b2f09531 (diff)
downloadopenembedded-core-1370ba3fc0b554fd9edd4ede653f7e3e8413ec3d.tar.gz
openembedded-core-1370ba3fc0b554fd9edd4ede653f7e3e8413ec3d.tar.bz2
openembedded-core-1370ba3fc0b554fd9edd4ede653f7e3e8413ec3d.tar.xz
openembedded-core-1370ba3fc0b554fd9edd4ede653f7e3e8413ec3d.zip
libdrm: Package test utils
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/drm')
-rw-r--r--meta/packages/drm/libdrm-2.4.7/installtests.patch39
-rw-r--r--meta/packages/drm/libdrm_2.4.7.bb10
2 files changed, 46 insertions, 3 deletions
diff --git a/meta/packages/drm/libdrm-2.4.7/installtests.patch b/meta/packages/drm/libdrm-2.4.7/installtests.patch
new file mode 100644
index 000000000..a16c8a738
--- /dev/null
+++ b/meta/packages/drm/libdrm-2.4.7/installtests.patch
@@ -0,0 +1,39 @@
+Index: libdrm-2.4.7/tests/Makefile.am
+===================================================================
+--- libdrm-2.4.7.orig/tests/Makefile.am 2009-04-09 20:16:35.000000000 +0100
++++ libdrm-2.4.7/tests/Makefile.am 2009-04-17 12:35:14.000000000 +0100
+@@ -4,7 +4,7 @@
+
+ LDADD = $(top_builddir)/libdrm/libdrm.la
+
+-noinst_PROGRAMS = \
++bin_PROGRAMS = \
+ dristat \
+ drmstat
+
+Index: libdrm-2.4.7/tests/modeprint/Makefile.am
+===================================================================
+--- libdrm-2.4.7.orig/tests/modeprint/Makefile.am 2009-02-17 19:52:37.000000000 +0000
++++ libdrm-2.4.7/tests/modeprint/Makefile.am 2009-04-17 12:35:32.000000000 +0100
+@@ -3,7 +3,7 @@
+ -I$(top_srcdir)/libdrm/intel/ \
+ -I$(top_srcdir)/libdrm
+
+-noinst_PROGRAMS = \
++bin_PROGRAMS = \
+ modeprint
+
+ modeprint_SOURCES = \
+Index: libdrm-2.4.7/tests/modetest/Makefile.am
+===================================================================
+--- libdrm-2.4.7.orig/tests/modetest/Makefile.am 2009-02-17 19:52:37.000000000 +0000
++++ libdrm-2.4.7/tests/modetest/Makefile.am 2009-04-17 12:35:42.000000000 +0100
+@@ -4,7 +4,7 @@
+ -I$(top_srcdir)/libdrm \
+ $(CAIRO_CFLAGS)
+
+-noinst_PROGRAMS = \
++bin_PROGRAMS = \
+ modetest
+
+ modetest_SOURCES = \
diff --git a/meta/packages/drm/libdrm_2.4.7.bb b/meta/packages/drm/libdrm_2.4.7.bb
index ee5643b42..f0d566893 100644
--- a/meta/packages/drm/libdrm_2.4.7.bb
+++ b/meta/packages/drm/libdrm_2.4.7.bb
@@ -1,8 +1,12 @@
SECTION = "x11/base"
LICENSE = "MIT"
-SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2"
-PR = "r0"
+SRC_URI = "http://dri.freedesktop.org/libdrm/libdrm-${PV}.tar.bz2 \
+ file://installtests.patch;patch=1"
+PR = "r1"
PROVIDES = "drm"
-DEPENDS = "libpthread-stubs"
+DEPENDS = "libpthread-stubs udev cairo"
+
+PACKAGES =+ "libdrm-tests"
+FILES_libdrm-tests = "${bindir}/dr* ${bindir}/mode*"
inherit autotools_stage pkgconfig