From b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Wed, 22 Sep 2021 15:00:32 +0200 Subject: [looking-glass-client] Add module for looking-glass-client source build --- core/modules/looking-glass-client/module.build | 24 ++++++++++++++++++++++ core/modules/looking-glass-client/module.conf | 7 +++++++ .../looking-glass-client/module.conf.ubuntu | 23 +++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 core/modules/looking-glass-client/module.build create mode 100644 core/modules/looking-glass-client/module.conf create mode 100644 core/modules/looking-glass-client/module.conf.ubuntu (limited to 'core/modules/looking-glass-client') diff --git a/core/modules/looking-glass-client/module.build b/core/modules/looking-glass-client/module.build new file mode 100644 index 00000000..df334e41 --- /dev/null +++ b/core/modules/looking-glass-client/module.build @@ -0,0 +1,24 @@ +#!/bin/bash +fetch_source() { + local SRCDIR="${MODULE_WORK_DIR}/src/LookingGlass" + autoclone + cde "${SRCDIR}" + git submodule update --init --recursive || perror "Failed to init and update submodules!" +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/LookingGlass" + local CLIENTBUILDDIR="client/build" + mkdir -p "${SRCDIR}/${CLIENTBUILDDIR}" || perror "Failed to create CMake build directory!" + cde "${SRCDIR}/${CLIENTBUILDDIR}" + cmake -DENABLE_WAYLAND=no \ + -DENABLE_X11=yes \ + ../ || perror "'cmake' failed." + make || perror "'make' failed." + mkdir -p "${MODULE_BUILD_DIR}/opt/openslx/bin" + cp "${SRCDIR}/${CLIENTBUILDDIR}/looking-glass-client" "${MODULE_BUILD_DIR}/opt/openslx/bin/looking-glass-client" || perror "'cp' failed." +} + +post_copy() { + : +} \ No newline at end of file diff --git a/core/modules/looking-glass-client/module.conf b/core/modules/looking-glass-client/module.conf new file mode 100644 index 00000000..11283429 --- /dev/null +++ b/core/modules/looking-glass-client/module.conf @@ -0,0 +1,7 @@ +#!/bin/bash +REQUIRED_BINARIES=" + looking-glass-client +" +REQUIRED_GIT=" + https://github.com/gnif/LookingGlass.git +" diff --git a/core/modules/looking-glass-client/module.conf.ubuntu b/core/modules/looking-glass-client/module.conf.ubuntu new file mode 100644 index 00000000..00a5d1a9 --- /dev/null +++ b/core/modules/looking-glass-client/module.conf.ubuntu @@ -0,0 +1,23 @@ +#!/bin/bash +REQUIRED_INSTALLED_PACKAGES=" + gcc + pkg-config + gawk + binutils-dev + cmake + fonts-freefont-ttf + libfontconfig1-dev + libgl-dev + libgles-dev + libegl-dev + libgmp-dev + libspice-protocol-dev + nettle-dev + libx11-dev + libxpresent-dev + libxfixes-dev + libxkbcommon-x11-dev + libxi-dev + libxinerama-dev + libxss-dev +" -- cgit v1.2.3-55-g7522