[gnome-boxes/flatpak-install-freerdp-in-the-correct-prefix] flatpak: Install libfreerdp under the expected prefix



commit b2514338acc7e25f04655297bb53e421874442c5
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Sep 20 11:54:25 2018 +0200

    flatpak: Install libfreerdp under the expected prefix
    
    Flatpak applications should be build for the prefix /app. See[0].
    
    libfreerdp uses cmake and automatically places its lib files under
    $PREFIX/lib64, which is not presented in $PKG_CONFIG_PATH in the
    flatpak sandbox. Therefore we need to pass extra config options in
    order to build freerdp at the expected location.
    
    [0] https://github.com/flatpak/flatpak/wiki/Filesystem

 build-aux/flatpak/org.gnome.Boxes.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/build-aux/flatpak/org.gnome.Boxes.json b/build-aux/flatpak/org.gnome.Boxes.json
index 4ea4de3e..92a693dc 100644
--- a/build-aux/flatpak/org.gnome.Boxes.json
+++ b/build-aux/flatpak/org.gnome.Boxes.json
@@ -274,7 +274,9 @@
             "buildsystem": "cmake-ninja",
             "builddir": true,
             "config-opts": [
-                "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
+                "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
+                "-DCMAKE_INSTALL_PREFIX=/app",
+                "-DCMAKE_INSTALL_LIBDIR=lib"
             ],
             "sources" : [
                 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]