diff options
Diffstat (limited to 'core/modules/looking-glass-client')
-rw-r--r-- | core/modules/looking-glass-client/module.build | 24 | ||||
-rw-r--r-- | core/modules/looking-glass-client/module.conf | 7 | ||||
-rw-r--r-- | core/modules/looking-glass-client/module.conf.ubuntu | 23 |
3 files changed, 54 insertions, 0 deletions
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 +" |