imagemagick: bump version to 7.0.3-7 (security)
[buildroot-gz.git] / package / midori / 0002-gcr-for-x11-only.patch
blob85e769765f209d21f030af24fb59413a733fce98
1 GCR support only works/is useful with X11 support.
3 Reported upstream: https://bugs.launchpad.net/midori/+bug/1515985
5 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
7 diff -Nura midori-0.5.11.orig/CMakeLists.txt midori-0.5.11/CMakeLists.txt
8 --- midori-0.5.11.orig/CMakeLists.txt 2015-11-12 13:41:02.045898814 -0300
9 +++ midori-0.5.11/CMakeLists.txt 2015-11-12 14:00:09.765545018 -0300
10 @@ -175,18 +175,14 @@
11 set(PKGS ${PKGS} zeitgeist-2.0)
12 endif()
14 -if (WIN32)
15 - add_definitions("-DGCR_VERSION=\"No\"")
16 -else ()
17 - if (USE_GTK3)
18 - pkg_check_modules(GCR REQUIRED gcr-3>=2.32)
19 - else ()
20 - pkg_check_modules(GCR REQUIRED gcr-base-3>=2.32)
21 - endif ()
22 +if (USE_GTK3 AND X11)
23 + pkg_check_modules(GCR REQUIRED gcr-3>=2.32)
24 add_definitions("-DGCR_VERSION=\"${GCR_VERSION}\"")
25 add_definitions("-DHAVE_GCR")
26 set(OPTS_INCLUDE_DIRS ${OPTS_INCLUDE_DIRS} ${GCR_INCLUDE_DIRS})
27 set(OPTS_LIBRARIES ${OPTS_LIBRARIES} ${GCR_LIBRARIES})
28 +else ()
29 + add_definitions("-DGCR_VERSION=\"No\"")
30 endif ()
32 if (HALF_BRO_INCOM_WEBKIT2)