summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/tigervnc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/tigervnc')
-rw-r--r--meta-oe/recipes-graphics/tigervnc/files/0001-do-not-build-tests-sub-directory.patch (renamed from meta-oe/recipes-graphics/tigervnc/files/0002-do-not-build-tests-sub-directory.patch)14
-rw-r--r--meta-oe/recipes-graphics/tigervnc/files/0002-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch (renamed from meta-oe/recipes-graphics/tigervnc/files/0003-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch)14
-rw-r--r--meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch (renamed from meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch)16
-rw-r--r--meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb133
-rw-r--r--meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb87
5 files changed, 109 insertions, 155 deletions
diff --git a/meta-oe/recipes-graphics/tigervnc/files/0002-do-not-build-tests-sub-directory.patch b/meta-oe/recipes-graphics/tigervnc/files/0001-do-not-build-tests-sub-directory.patch
index 5a42e67d06..0d58d2502d 100644
--- a/meta-oe/recipes-graphics/tigervnc/files/0002-do-not-build-tests-sub-directory.patch
+++ b/meta-oe/recipes-graphics/tigervnc/files/0001-do-not-build-tests-sub-directory.patch
@@ -1,4 +1,4 @@
1From 076d0e12a7be6cd2108e4ca0dcde1cb658918fa5 Mon Sep 17 00:00:00 2001 1From e117ccc2b4ebb116ab63a3aa6097104964ee223b Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 19 Apr 2021 23:02:45 -0700 3Date: Mon, 19 Apr 2021 23:02:45 -0700
4Subject: [PATCH] do not build tests sub directory 4Subject: [PATCH] do not build tests sub directory
@@ -12,19 +12,19 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
12 1 file changed, 3 deletions(-) 12 1 file changed, 3 deletions(-)
13 13
14diff --git a/CMakeLists.txt b/CMakeLists.txt 14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index 7bf99441..bda80598 100644 15index 468f4b54..c47c9c0e 100644
16--- a/CMakeLists.txt 16--- a/CMakeLists.txt
17+++ b/CMakeLists.txt 17+++ b/CMakeLists.txt
18@@ -304,9 +304,6 @@ if(BUILD_VIEWER) 18@@ -351,9 +351,6 @@ if(BUILD_VIEWER)
19 add_subdirectory(media) 19 add_subdirectory(media)
20 endif() 20 endif()
21 21
22-add_subdirectory(tests) 22-add_subdirectory(tests)
23- 23-
24- 24-
25 add_subdirectory(release) 25 if(BUILD_VIEWER)
26 26 add_subdirectory(release)
27 # uninstall 27 endif()
28-- 28--
292.30.2 292.25.1
30 30
diff --git a/meta-oe/recipes-graphics/tigervnc/files/0003-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch b/meta-oe/recipes-graphics/tigervnc/files/0002-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch
index cfb84ac141..101adaa82f 100644
--- a/meta-oe/recipes-graphics/tigervnc/files/0003-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch
+++ b/meta-oe/recipes-graphics/tigervnc/files/0002-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch
@@ -1,7 +1,7 @@
1From 6369a5be2af2ed1fa443f40f48deaf318d22713e Mon Sep 17 00:00:00 2001 1From 4c7658b43f903599608c1fea4fbd7e37dc117119 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 20 Jul 2017 05:06:00 -0400 3Date: Thu, 20 Jul 2017 05:06:00 -0400
4Subject: [PATCH 3/4] add missing dynamic library to FLTK_LIBRARIES 4Subject: [PATCH] add missing dynamic library to FLTK_LIBRARIES
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
@@ -11,18 +11,18 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
11 1 file changed, 2 insertions(+) 11 1 file changed, 2 insertions(+)
12 12
13diff --git a/CMakeLists.txt b/CMakeLists.txt 13diff --git a/CMakeLists.txt b/CMakeLists.txt
14index fb72a00..5732dc8 100644 14index 80c2762c..eb581600 100644
15--- a/CMakeLists.txt 15--- a/CMakeLists.txt
16+++ b/CMakeLists.txt 16+++ b/CMakeLists.txt
17@@ -246,6 +246,8 @@ if(UNIX AND NOT APPLE) 17@@ -315,6 +315,8 @@ if(BUILD_VIEWER)
18 endif() 18 set(CMAKE_REQUIRED_LIBRARIES)
19 endif() 19 endif()
20 20
21+set(FLTK_LIBRARIES ${FLTK_LIBRARIES} -lm -ldl -lpng -ljpeg) 21+set(FLTK_LIBRARIES ${FLTK_LIBRARIES} -lm -ldl -lpng -ljpeg)
22+ 22+
23 # Check for GNUTLS library 23 # Check for GNUTLS library
24 option(ENABLE_GNUTLS "Enable protocol encryption and advanced authentication" ON) 24 trioption(ENABLE_GNUTLS "Enable protocol encryption and advanced authentication")
25 if(ENABLE_GNUTLS) 25 if(ENABLE_GNUTLS)
26-- 26--
272.7.4 272.25.1
28 28
diff --git a/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch b/meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
index 5f14665b8d..c292df4a52 100644
--- a/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
+++ b/meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
@@ -1,4 +1,4 @@
1From 7f8acd59bb2e54f9be25a98dd71534700a9e355a Mon Sep 17 00:00:00 2001 1From 36bf37cb638cd87d7f8eb96afaf69c2d95177614 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 19 Apr 2021 23:14:28 -0700 3Date: Mon, 19 Apr 2021 23:14:28 -0700
4Subject: [PATCH] tigervnc: add fPIC option to COMPILE_FLAGS 4Subject: [PATCH] tigervnc: add fPIC option to COMPILE_FLAGS
@@ -18,35 +18,35 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
18 3 files changed, 3 insertions(+) 18 3 files changed, 3 insertions(+)
19 19
20diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt 20diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt
21index d00ca452..e84e0290 100644 21index f08eaa31..85c05951 100644
22--- a/common/network/CMakeLists.txt 22--- a/common/network/CMakeLists.txt
23+++ b/common/network/CMakeLists.txt 23+++ b/common/network/CMakeLists.txt
24@@ -16,4 +16,5 @@ endif() 24@@ -15,4 +15,5 @@ endif()
25 25
26 if(UNIX) 26 if(UNIX)
27 libtool_create_control_file(network) 27 libtool_create_control_file(network)
28+ set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC) 28+ set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC)
29 endif() 29 endif()
30diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt 30diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt
31index 989ba2f4..20f6489d 100644 31index 30c2403a..94e1ff98 100644
32--- a/common/rdr/CMakeLists.txt 32--- a/common/rdr/CMakeLists.txt
33+++ b/common/rdr/CMakeLists.txt 33+++ b/common/rdr/CMakeLists.txt
34@@ -27,4 +27,5 @@ target_link_libraries(rdr ${RDR_LIBRARIES}) 34@@ -35,4 +35,5 @@ endif()
35 35
36 if(UNIX) 36 if(UNIX)
37 libtool_create_control_file(rdr) 37 libtool_create_control_file(rdr)
38+ set_target_properties(rdr PROPERTIES COMPILE_FLAGS -fPIC) 38+ set_target_properties(rdr PROPERTIES COMPILE_FLAGS -fPIC)
39 endif() 39 endif()
40diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt 40diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt
41index fc5a37bf..7f5ce131 100644 41index 360434a9..28566e90 100644
42--- a/common/rfb/CMakeLists.txt 42--- a/common/rfb/CMakeLists.txt
43+++ b/common/rfb/CMakeLists.txt 43+++ b/common/rfb/CMakeLists.txt
44@@ -99,4 +99,5 @@ target_link_libraries(rfb ${RFB_LIBRARIES}) 44@@ -116,4 +116,5 @@ endif()
45 45
46 if(UNIX) 46 if(UNIX)
47 libtool_create_control_file(rfb) 47 libtool_create_control_file(rfb)
48+ set_target_properties(rfb PROPERTIES COMPILE_FLAGS -fPIC) 48+ set_target_properties(rfb PROPERTIES COMPILE_FLAGS -fPIC)
49 endif() 49 endif()
50-- 50--
512.30.2 512.25.1
52 52
diff --git a/meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb b/meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb
deleted file mode 100644
index 5cde7c9fb4..0000000000
--- a/meta-oe/recipes-graphics/tigervnc/tigervnc_1.11.0.bb
+++ /dev/null
@@ -1,133 +0,0 @@
1DESCRIPTION = "TigerVNC remote display system"
2HOMEPAGE = "http://www.tigervnc.com/"
3LICENSE = "GPL-2.0-or-later"
4SECTION = "x11/utils"
5DEPENDS = "xserver-xorg gnutls jpeg libxtst gettext-native fltk libpam"
6RDEPENDS:${PN} = "coreutils hicolor-icon-theme perl bash xkbcomp"
7
8LIC_FILES_CHKSUM = "file://LICENCE.TXT;md5=75b02c2872421380bbd47781d2bd75d3"
9
10S = "${WORKDIR}/git"
11
12inherit autotools cmake features_check pkgconfig
13
14REQUIRED_DISTRO_FEATURES = "x11 pam"
15
16B = "${S}"
17
18SRCREV = "540bfc3278e396321124d4b18a798ac2bc18b6ca"
19
20SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.11-branch;protocol=https \
21 file://0002-do-not-build-tests-sub-directory.patch \
22 file://0003-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch \
23 file://0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch \
24"
25
26# Keep sync with xorg-server in oe-core
27XORG_PN ?= "xorg-server"
28XORG_PV ?= "1.20.6"
29SRC_URI += "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${XORG_PV}.tar.bz2;name=xorg"
30XORG_S = "${WORKDIR}/${XORG_PN}-${XORG_PV}"
31SRC_URI[xorg.md5sum] = "a98170084f2c8fed480d2ff601f8a14b"
32SRC_URI[xorg.sha256sum] = "6316146304e6e8a36d5904987ae2917b5d5b195dc9fc63d67f7aca137e5a51d1"
33
34# It is the directory containing the Xorg source for the
35# machine on which you are building TigerVNC.
36XSERVER_SOURCE_DIR="${S}/unix/xserver"
37
38do_patch[postfuncs] += "do_patch_xserver"
39do_patch_xserver () {
40 for subdir in Xext xkb GL hw/xquartz/bundle hw/xfree86/common; do
41 install -d ${XSERVER_SOURCE_DIR}/$subdir
42 done
43
44 for subdir in hw/dmx/doc man doc hw/dmx/doxygen; do
45 install -d ${XSERVER_SOURCE_DIR}/$subdir
46 done
47
48 sources="hw/xquartz/bundle/cpprules.in man/Xserver.man doc/smartsched \
49 hw/dmx/doxygen/doxygen.conf.in xserver.ent.in xkb/README.compiled \
50 hw/xfree86/xorgconf.cpp hw/xfree86/Xorg.sh.in"
51 for i in ${sources}; do
52 install -m 0644 ${XORG_S}/$i ${XSERVER_SOURCE_DIR}/$i;
53 done
54
55 cd ${XORG_S}
56 find . -type f | egrep '.*\.(c|h|am|ac|inc|m4|h.in|pc.in|man.pre|pl|txt)$' | \
57 xargs tar cf - | (cd ${XSERVER_SOURCE_DIR} && tar xf -)
58
59 cd ${XSERVER_SOURCE_DIR}
60 xserverpatch="${S}/unix/xserver120.patch"
61 echo "Apply $xserverpatch"
62 patch -p1 -b --suffix .vnc < $xserverpatch
63}
64
65EXTRA_OECONF = "--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
66 --disable-xwin --disable-xephyr --disable-kdrive --with-pic \
67 --disable-static --disable-xinerama \
68 --with-xkb-output=${localstatedir}/lib/xkb \
69 --disable-glx --disable-dri --disable-dri2 \
70 --disable-config-hal \
71 --disable-config-udev \
72 --without-dtrace \
73 --disable-unit-tests \
74 --disable-devel-docs \
75 --disable-selective-werror \
76 --disable-xshmfence \
77 --disable-config-udev \
78 --disable-dri3 \
79 --disable-libunwind \
80 --without-xmlto \
81 --enable-systemd-logind=no \
82 --disable-xinerama \
83 --disable-xwayland \
84"
85
86EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DCMAKE_INSTALL_UNITDIR=${systemd_unitdir}', '-DINSTALL_SYSTEMD_UNITS=OFF', d)}"
87
88do_configure:append () {
89 olddir=`pwd`
90 cd ${XSERVER_SOURCE_DIR}
91
92 rm -rf aclocal-copy/
93 rm -f aclocal.m4
94
95 export ACLOCALDIR="${XSERVER_SOURCE_DIR}/aclocal-copy"
96 mkdir -p ${ACLOCALDIR}/
97 if [ -d ${STAGING_DATADIR_NATIVE}/aclocal ]; then
98 cp-noerror ${STAGING_DATADIR_NATIVE}/aclocal/ ${ACLOCALDIR}/
99 fi
100 if [ -d ${STAGING_DATADIR}/aclocal -a "${STAGING_DATADIR_NATIVE}/aclocal" != "${STAGING_DATADIR}/aclocal" ]; then
101 cp-noerror ${STAGING_DATADIR}/aclocal/ ${ACLOCALDIR}/
102 fi
103 ACLOCAL="aclocal --system-acdir=${ACLOCALDIR}/" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || bbfatal "autoreconf execution failed."
104 chmod +x ./configure
105 ${CACHED_CONFIGUREVARS} ./configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
106 cd $olddir
107}
108
109do_compile:append () {
110 olddir=`pwd`
111 cd ${XSERVER_SOURCE_DIR}
112
113 oe_runmake
114
115 cd $olddir
116}
117
118do_install:append() {
119 olddir=`pwd`
120 cd ${XSERVER_SOURCE_DIR}/hw/vnc
121
122 oe_runmake 'DESTDIR=${D}' install
123
124 cd $olddir
125}
126
127FILES:${PN} += " \
128 ${libdir}/xorg/modules/extensions \
129 ${datadir}/icons \
130 ${systemd_unitdir} \
131"
132
133FILES:${PN}-dbg += "${libdir}/xorg/modules/extensions/.debug"
diff --git a/meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb b/meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb
new file mode 100644
index 0000000000..dd4f79c314
--- /dev/null
+++ b/meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb
@@ -0,0 +1,87 @@
1DESCRIPTION = "TigerVNC remote display system"
2HOMEPAGE = "http://www.tigervnc.com/"
3LICENSE = "GPL-2.0-or-later"
4SECTION = "x11/utils"
5DEPENDS = "gettext-native xserver-xorg gnutls nettle jpeg pixman libxtst fltk libpam libx11 libxdamage libxfixes libxrandr xkbcomp"
6RDEPENDS:${PN} = "coreutils hicolor-icon-theme perl bash xkbcomp"
7
8LIC_FILES_CHKSUM = "file://LICENCE.TXT;md5=75b02c2872421380bbd47781d2bd75d3"
9
10
11inherit autotools cmake features_check pkgconfig systemd
12
13REQUIRED_DISTRO_FEATURES = "x11 pam"
14
15# For ease we do in-tree builds right now. It should be possible to do
16# out-of-tree builds.
17B = "${S}"
18
19SRCREV = "8bdf8734ce12c8ed3c232496fc8a4ccdb04636b8"
20
21SRC_URI = "git://github.com/TigerVNC/tigervnc.git;branch=1.15-branch;protocol=https \
22 file://0001-do-not-build-tests-sub-directory.patch \
23 file://0002-add-missing-dynamic-library-to-FLTK_LIBRARIES.patch \
24 file://0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch \
25"
26
27# Keep sync with xorg-server in oe-core
28XORG_PN ?= "xorg-server"
29XORG_PV ?= "21.1.16"
30SRC_URI += "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${XORG_PV}.tar.xz;name=xorg"
31XORG_S = "${UNPACKDIR}/${XORG_PN}-${XORG_PV}"
32SRC_URI[xorg.sha256sum] = "b14a116d2d805debc5b5b2aac505a279e69b217dae2fae2dfcb62400471a9970"
33
34# It is the directory containing the Xorg source for the
35# machine on which you are building TigerVNC.
36XSERVER_SOURCE_DIR = "${S}/unix/xserver"
37AUTOTOOLS_SCRIPT_PATH = "${XSERVER_SOURCE_DIR}"
38
39do_patch[postfuncs] += "do_patch_xserver"
40do_patch_xserver () {
41 # Put the xserver source in the right place in the tigervnc source tree
42 cp -rfl ${XORG_S}/* ${XSERVER_SOURCE_DIR}
43 # Apply the patch to integrate the vnc server
44 patch -p1 -b --suffix .vnc --directory ${XSERVER_SOURCE_DIR} <${S}/unix/xserver21.patch
45}
46
47EXTRA_OECONF = "--disable-xorg --disable-xnest --disable-xvfb \
48 --disable-xwin --disable-xephyr --disable-kdrive --with-pic \
49 --disable-static --disable-xinerama \
50 --with-xkb-output=${localstatedir}/lib/xkb \
51 --disable-glx --disable-dri --disable-dri2 \
52 --disable-config-hal \
53 --disable-config-udev \
54 --without-dtrace \
55 --disable-unit-tests \
56 --disable-devel-docs \
57 --disable-selective-werror \
58 --disable-xshmfence \
59 --disable-config-udev \
60 --disable-dri3 \
61 --disable-libunwind \
62 --without-xmlto \
63 --enable-systemd-logind=no \
64 --disable-xinerama \
65"
66
67EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DCMAKE_INSTALL_UNITDIR=${systemd_system_unitdir}', '-DINSTALL_SYSTEMD_UNITS=OFF', d)}"
68
69do_configure:append () {
70 autotools_do_configure
71}
72
73do_compile:append () {
74 oe_runmake 'TIGERVNC_BUILDDIR=${B}'
75}
76
77do_install:append() {
78 oe_runmake -C ${B}/hw/vnc 'DESTDIR=${D}' install
79}
80
81FILES:${PN} += " \
82 ${libdir}/xorg/modules/extensions \
83 ${datadir}/icons \
84 ${datadir}/metainfo \
85"
86
87SYSTEMD_SERVICE:${PN} = "vncserver@.service"