aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/granite/files/patch-cmake__FindGObjectIntrospection.cmake
blob: 3dae38e5adddb0f3166357eb9d87e28709adc133 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ./cmake/FindGObjectIntrospection.cmake.orig 2013-08-10 02:01:58.000000000 +0000
+++ ./cmake/FindGObjectIntrospection.cmake  2013-09-28 15:03:47.000000000 +0000
@@ -50,6 +50,18 @@
   endif()
 endif()
 
+if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
+  string (REPLACE "/usr/local"
+    ${CMAKE_INSTALL_PREFIX} GIR_DIR ${INTROSPECTION_GIRDIR})
+  unset (INTROSPECTION_GIRDIR)
+  set (INTROSPECTION_GIRDIR ${GIR_DIR})
+
+  string (REPLACE "/usr/local"
+    ${CMAKE_INSTALL_PREFIX} TYPELIB_DIR ${INTROSPECTION_TYPELIBDIR})
+  unset (INTROSPECTION_TYPELIBDIR)
+  set (INTROSPECTION_TYPELIBDIR ${TYPELIB_DIR})
+endif ()
+
 mark_as_advanced(
   INTROSPECTION_SCANNER
   INTROSPECTION_COMPILER