Blame view

buildroot/buildroot-2016.08.1/package/midori/0002-gcr-for-x11-only.patch 1.05 KB
6b13f685e   김민수   BSP 최초 추가
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
  GCR support only works/is useful with X11 support.
  
  Reported upstream: https://bugs.launchpad.net/midori/+bug/1515985
  
  Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  
  diff -Nura midori-0.5.11.orig/CMakeLists.txt midori-0.5.11/CMakeLists.txt
  --- midori-0.5.11.orig/CMakeLists.txt	2015-11-12 13:41:02.045898814 -0300
  +++ midori-0.5.11/CMakeLists.txt	2015-11-12 14:00:09.765545018 -0300
  @@ -175,18 +175,14 @@
       set(PKGS ${PKGS} zeitgeist-2.0)
   endif()
   
  -if (WIN32)
  -    add_definitions("-DGCR_VERSION=\"No\"")
  -else ()
  -    if (USE_GTK3)
  -        pkg_check_modules(GCR REQUIRED gcr-3>=2.32)
  -    else ()
  -        pkg_check_modules(GCR REQUIRED gcr-base-3>=2.32)
  -    endif ()
  +if (USE_GTK3 AND X11)
  +    pkg_check_modules(GCR REQUIRED gcr-3>=2.32)
       add_definitions("-DGCR_VERSION=\"${GCR_VERSION}\"")
       add_definitions("-DHAVE_GCR")
       set(OPTS_INCLUDE_DIRS ${OPTS_INCLUDE_DIRS} ${GCR_INCLUDE_DIRS})
       set(OPTS_LIBRARIES ${OPTS_LIBRARIES} ${GCR_LIBRARIES})
  +else ()
  +    add_definitions("-DGCR_VERSION=\"No\"")
   endif ()
   
   if (HALF_BRO_INCOM_WEBKIT2)