diff options
-rw-r--r-- | meta/recipes-graphics/drm/libdrm.inc | 2 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm/nocairo.patch | 39 | ||||
-rw-r--r-- | meta/recipes-graphics/drm/libdrm_2.4.39.bb | 1 |
3 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-graphics/drm/libdrm.inc b/meta/recipes-graphics/drm/libdrm.inc index cc09791070..2ed9c14b1d 100644 --- a/meta/recipes-graphics/drm/libdrm.inc +++ b/meta/recipes-graphics/drm/libdrm.inc | |||
@@ -18,6 +18,8 @@ DEPENDS += " libpciaccess" | |||
18 | 18 | ||
19 | inherit autotools pkgconfig | 19 | inherit autotools pkgconfig |
20 | 20 | ||
21 | EXTRA_OECONF += "--disable-cairo" | ||
22 | |||
21 | PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-kms" | 23 | PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-kms" |
22 | FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode*" | 24 | FILES_${PN}-tests = "${bindir}/dr* ${bindir}/mode*" |
23 | FILES_${PN}-drivers = "${libdir}/libdrm_*.so.*" | 25 | FILES_${PN}-drivers = "${libdir}/libdrm_*.so.*" |
diff --git a/meta/recipes-graphics/drm/libdrm/nocairo.patch b/meta/recipes-graphics/drm/libdrm/nocairo.patch new file mode 100644 index 0000000000..f9b7f3acec --- /dev/null +++ b/meta/recipes-graphics/drm/libdrm/nocairo.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | We don't want the cairo dependency. Unfortunately simply checking whether its present | ||
2 | isn't good enough. If its not in DEPENDS, it can disappear half way through building. | ||
3 | We therefore need to explictly disable it. | ||
4 | |||
5 | RP | ||
6 | 2012/10/5 | ||
7 | |||
8 | Index: libdrm-2.4.39/configure.ac | ||
9 | =================================================================== | ||
10 | --- libdrm-2.4.39.orig/configure.ac 2012-08-24 14:54:42.000000000 +0000 | ||
11 | +++ libdrm-2.4.39/configure.ac 2012-10-05 11:37:52.484821221 +0000 | ||
12 | @@ -63,6 +63,11 @@ | ||
13 | [Disable KMS mm abstraction library (default: auto)]), | ||
14 | [LIBKMS=$enableval], [LIBKMS=auto]) | ||
15 | |||
16 | +AC_ARG_ENABLE(cairo, | ||
17 | + AS_HELP_STRING([--disable-cairo], | ||
18 | + [Disable cairo (default: auto)]), | ||
19 | + [ENABLECAIRO=$enableval], [ENABLECAIRO=auto]) | ||
20 | + | ||
21 | AC_ARG_ENABLE(intel, | ||
22 | AS_HELP_STRING([--disable-intel], | ||
23 | [Enable support for intel's KMS API (default: auto)]), | ||
24 | @@ -201,9 +206,12 @@ | ||
25 | AC_DEFINE(HAVE_EXYNOS, 1, [Have EXYNOS support]) | ||
26 | fi | ||
27 | |||
28 | -PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no]) | ||
29 | -if test "x$HAVE_CAIRO" = xyes; then | ||
30 | - AC_DEFINE(HAVE_CAIRO, 1, [Have cairo support]) | ||
31 | +HAVE_CAIRO=no | ||
32 | +if test "x$ENABLECAIRO" = xyes; then | ||
33 | + PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no]) | ||
34 | + if test "x$HAVE_CAIRO" = xyes; then | ||
35 | + AC_DEFINE(HAVE_CAIRO, 1, [Have cairo support]) | ||
36 | + fi | ||
37 | fi | ||
38 | AM_CONDITIONAL(HAVE_CAIRO, [test "x$HAVE_CAIRO" = xyes]) | ||
39 | |||
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.39.bb b/meta/recipes-graphics/drm/libdrm_2.4.39.bb index 4e6a8d56c6..cb1f7f99fc 100644 --- a/meta/recipes-graphics/drm/libdrm_2.4.39.bb +++ b/meta/recipes-graphics/drm/libdrm_2.4.39.bb | |||
@@ -4,6 +4,7 @@ PR = "${INC_PR}.0" | |||
4 | 4 | ||
5 | SRC_URI += "file://installtests.patch \ | 5 | SRC_URI += "file://installtests.patch \ |
6 | file://GNU_SOURCE_definition.patch \ | 6 | file://GNU_SOURCE_definition.patch \ |
7 | file://nocairo.patch \ | ||
7 | " | 8 | " |
8 | 9 | ||
9 | SRC_URI[md5sum] = "9a299e021d81bab6c82307582c78319d" | 10 | SRC_URI[md5sum] = "9a299e021d81bab6c82307582c78319d" |