Source: libmirage
Version: 3.3.1-3
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
libmirage fails to cross build from source, because its upstream build
system hard codes the build architecture vapigen. The vapigen.pc package
configuration exports a matching vapigen executable on Debian systems
and discovering it that way fixes the cross build. Please consider
applying the attached patch and forwarding it upstream.
Helmut
--- libmirage-3.3.1.orig/CMakeLists.txt
+++ libmirage-3.3.1/CMakeLists.txt
@@ -57,7 +57,15 @@
set(VAPI_STATUS "OFF (introspection disabled)")
else()
find_program(VALAC valac DOC "the Vala compiler")
- find_program(VAPIGEN vapigen DOC "tool to generate the Vala API")
+ pkg_check_modules(_pc_vapigen vapigen)
+ if(_pc_vapigen_FOUND)
+ pkg_get_variable(_pc_vapigen_executable vapigen vapigen)
+ endif()
+ if(_pc_vapigen_executable)
+ set(VAPIGEN "${_pc_vapigen_executable}")
+ else()
+ find_program(VAPIGEN vapigen DOC "tool to generate the Vala API")
+ endif()
if(VALAC AND VAPIGEN)
include(GObjectIntrospection)
set(VAPI_STATUS "ON")