Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-03-08 02:27:31 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-03-08 02:27:31 +0300
commiteba4883d20ca38e12aeb394c4d4b43f3d6bee036 (patch)
treea9a19a95e55f7c042e11846a714a62ea46d9b36b
parentf56a81c403d3c7bdc149bd6ecf7e136934769bc8 (diff)
Removing dependencies that are available as extensions
Removed packages: - libgnutls28-dev - libjpeg-dev - libxcursor-dev - libxdamage-dev - libxext-dev - libxi-dev - libxinerama-dev - libxml2-dev - libxrandr-dev - libxtst-dev - libgcrypt20-dev - libwebkit2gtk-4.0-dev - libpcre2-dev - python3-dev - xdg-user-dirs - gtk-3-examples - libthai0 - libsndfile1 - libasyncns0 - libflac8 - libvorbisenc2 - libxau6 - libxdmcp6 - libogg0 - libvorbis0a - libpcre2-8-0 I've improved some CMakeFiles that were not handling correctly the include and librari directories
-rw-r--r--cmake/FindAPPINDICATOR.cmake45
-rw-r--r--cmake/FindPCRE2.cmake63
-rw-r--r--cmake/FindWEBKIT2GTK.cmake65
-rw-r--r--flatpak/org.remmina.Remmina.json6
-rw-r--r--plugins/CMakeLists.txt12
-rw-r--r--plugins/www/CMakeLists.txt6
-rw-r--r--snap/snapcraft.yaml28
-rw-r--r--src/CMakeLists.txt2
8 files changed, 135 insertions, 92 deletions
diff --git a/cmake/FindAPPINDICATOR.cmake b/cmake/FindAPPINDICATOR.cmake
index ab05019b0..b50a10067 100644
--- a/cmake/FindAPPINDICATOR.cmake
+++ b/cmake/FindAPPINDICATOR.cmake
@@ -25,36 +25,39 @@ include(FindPackageHandleStandardArgs)
pkg_check_modules(PC_AYATANA_APPINDICATOR ayatana-appindicator3-0.1)
find_path(AYATANA_APPINDICATOR_INCLUDE_DIR NAMES libayatana-appindicator/app-indicator.h
- HINTS ${PC_AYATANA_APPINDICATOR_INCLUDEDIR} ${PC_AYATANA_APPINDICATOR_INCLUDE_DIRS}
- PATH_SUFFIXES libayatana-appindicator3-0.1)
+ HINTS ${PC_AYATANA_APPINDICATOR_INCLUDEDIR} ${PC_AYATANA_APPINDICATOR_INCLUDE_DIRS}
+ )
-find_library(AYATANA_APPINDICATOR_LIBRARY NAMES ayatana-appindicator3)
+find_library(AYATANA_APPINDICATOR_LIBRARY NAMES ayatana-appindicator3
+ HINTS ${PC_AYATANA_APPINDICATOR_LIBDIR} ${PC_AYATANA_APPINDICATOR_LIBRARY_DIRS}
+ )
-if (AYATANA_APPINDICATOR_INCLUDE_DIR AND AYATANA_APPINDICATOR_LIBRARY)
- find_package_handle_standard_args(APPINDICATOR DEFAULT_MSG AYATANA_APPINDICATOR_LIBRARY AYATANA_APPINDICATOR_INCLUDE_DIR)
+if(AYATANA_APPINDICATOR_INCLUDE_DIR AND AYATANA_APPINDICATOR_LIBRARY)
+ find_package_handle_standard_args(APPINDICATOR DEFAULT_MSG AYATANA_APPINDICATOR_LIBRARY AYATANA_APPINDICATOR_INCLUDE_DIR)
endif()
-if (APPINDICATOR_FOUND)
- add_definitions(-DHAVE_AYATANA_LIBAPPINDICATOR)
- set(APPINDICATOR_LIBRARIES ${AYATANA_APPINDICATOR_LIBRARY})
- set(APPINDICATOR_INCLUDE_DIRS ${AYATANA_APPINDICATOR_INCLUDE_DIR})
+if(APPINDICATOR_FOUND)
+ add_definitions(-DHAVE_AYATANA_LIBAPPINDICATOR)
+ set(APPINDICATOR_LIBRARIES ${AYATANA_APPINDICATOR_LIBRARY})
+ set(APPINDICATOR_INCLUDE_DIRS ${AYATANA_APPINDICATOR_INCLUDE_DIR})
else()
- # Try with normal libappindicator
- pkg_check_modules(PC_APPINDICATOR appindicator3-0.1)
+ # Try with normal libappindicator
+ pkg_check_modules(PC_APPINDICATOR appindicator3-0.1)
- find_path(APPINDICATOR_INCLUDE_DIR NAMES libappindicator/app-indicator.h
- HINTS ${PC_APPINDICATOR_INCLUDEDIR} ${PC_APPINDICATOR_INCLUDE_DIRS}
- PATH_SUFFIXES libappindicator3-0.1)
+find_path(APPINDICATOR_INCLUDE_DIR NAMES libappindicator/app-indicator.h
+ HINTS ${PC_APPINDICATOR_INCLUDEDIR} ${PC_APPINDICATOR_INCLUDE_DIRS}
+ )
- find_library(APPINDICATOR_LIBRARY NAMES appindicator3)
+find_library(APPINDICATOR_LIBRARY NAMES appindicator3
+ HINTS ${PC_APPINDICATOR_LIBDIR} ${PC_APPINDICATOR_LIBRARY_DIRS}
+ )
- find_package_handle_standard_args(APPINDICATOR DEFAULT_MSG APPINDICATOR_LIBRARY APPINDICATOR_INCLUDE_DIR)
+ find_package_handle_standard_args(APPINDICATOR DEFAULT_MSG APPINDICATOR_LIBRARY APPINDICATOR_INCLUDE_DIR)
- if(APPINDICATOR_FOUND)
- set(APPINDICATOR_LIBRARIES ${APPINDICATOR_LIBRARY})
- set(APPINDICATOR_INCLUDE_DIRS ${APPINDICATOR_INCLUDE_DIR})
- endif()
+ if(APPINDICATOR_FOUND)
+ set(APPINDICATOR_LIBRARIES ${APPINDICATOR_LIBRARY})
+ set(APPINDICATOR_INCLUDE_DIRS ${APPINDICATOR_INCLUDE_DIR})
+ endif()
endif()
mark_as_advanced(APPINDICATOR_INCLUDE_DIR APPINDICATOR_LIBRARY)
-
diff --git a/cmake/FindPCRE2.cmake b/cmake/FindPCRE2.cmake
index 9cd074ef7..eb0a444c9 100644
--- a/cmake/FindPCRE2.cmake
+++ b/cmake/FindPCRE2.cmake
@@ -17,31 +17,40 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
-include(FindPackageHandleStandardArgs)
-
-pkg_check_modules(PC_LIBPCRE2 libpcre2-8-0)
-
-
-find_path(PCRE2_INCLUDE_DIR
- NAMES pcre2.h
- PATHS ../../../../libs
- /usr
- PATH_SUFFIXES include)
-
-find_library(PCRE2_LIBRARY
- NAMES pcre2-8
- PATHS ../../../../libs
- /usr
- PATH_SUFFIXES lib)
-
-if (PCRE2_INCLUDE_DIR AND PCRE2_LIBRARY)
- message(STATUS "Found pcre2 headers at ${PCRE2_INCLUDE_DIR}")
- message(STATUS "Found pcre2 libraries at ${PCRE2_LIBRARY}")
- set(PCRE2_INCLUDE_DIRS ${PCRE2_INCLUDE_DIR})
- set(PCRE2_LIBRARIES ${PCRE2_LIBRARY})
- set(PCRE2_FOUND yes)
-else()
- set(PCRE2_INCLUDE_DIRS)
- set(PCRE2_LIBRARIES)
- set(PCRE2_FOUND no)
+#
+# PCRE2_INCLUDE_DIRS
+# PCRE2_LIBRARIES
+# PCRE2_CFLAGS
+
+find_package(PkgConfig)
+
+if(PKG_CONFIG_FOUND)
+ pkg_check_modules(_PCRE2 libpcre2-8)
+endif(PKG_CONFIG_FOUND)
+
+find_library(PCRE2_LIB pcre
+ HINTS
+ ${_PCRE2_LIBRARY_DIRS}
+ ${COMMON_LIB_DIR}
+)
+
+if(PCRE2_LIB)
+ set(PCRE2_LIBRARIES ${PCRE2_LIB})
+ message(STATUS "PCRE2-Libs: ${PCRE2_LIBRARIES}")
+endif()
+
+find_path(PCRE2_INCLUDE_DIR pcre2.h
+ PATHS
+ ${_PCRE2_INCLUDE_DIRS}
+ ${COMMON_INCLUDE_DIR}
+)
+
+
+if(PCRE2_INCLUDE_DIR)
+ set(PCRE2_INCLUDE_DIRS ${PCRE2_INCLUDE_DIR})
+ message(STATUS "PCRE2-Include-Dirs: ${PCRE2_INCLUDE_DIRS}")
+endif()
+
+if(PCRE2_INCLUDE_DIRS)
+ set(PCRE2_FOUND TRUE)
endif()
diff --git a/cmake/FindWEBKIT2GTK.cmake b/cmake/FindWEBKIT2GTK.cmake
new file mode 100644
index 000000000..c766ebfe1
--- /dev/null
+++ b/cmake/FindWEBKIT2GTK.cmake
@@ -0,0 +1,65 @@
+# Remmina - The GTK+ Remote Desktop Client
+#
+# Copyright (C) 2015-2022 Antenore Gatta, Giovanni Panozzo
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+#
+# In addition, as a special exception, the copyright holders give
+# permission to link the code of portions of this program with the
+# OpenSSL library under certain conditions as described in each
+# individual source file, and distribute linked combinations
+# including the two.
+# You must obey the GNU General Public License in all respects
+# for all of the code used other than OpenSSL. * If you modify
+# file(s) with this exception, you may extend this exception to your
+# version of the file(s), but you are not obligated to do so. * If you
+# do not wish to do so, delete this exception statement from your
+# version. * If you delete this exception statement from all source
+# files in the program, then also delete it here.
+
+find_package(PkgConfig)
+
+if(PKG_CONFIG_FOUND)
+ pkg_check_modules(_WEBKIT2GTK webkit2gtk-4.0)
+endif(PKG_CONFIG_FOUND)
+
+find_library(WEBKIT2GTK_LIB webkit2gtk-4.0
+ HINTS
+ ${_WEBKIT2GTK_LIBRARY_DIRS}
+ ${COMMON_LIB_DIR}
+)
+
+if(WEBKIT2GTK_LIB)
+ set(WEBKIT2GTK_LIBRARIES ${WEBKIT2GTK_LIB})
+ message(STATUS "WEBKIT2GTK-Libs: ${WEBKIT2GTK_LIBRARIES}")
+endif()
+
+find_path(WEBKIT2GTK_INCLUDE_DIR webkit2.h
+ PATH_SUFFIXES webkit2
+ PATHS
+ ${_WEBKIT2GTK_INCLUDE_DIRS}
+ ${COMMON_INCLUDE_DIR}
+)
+
+
+if(WEBKIT2GTK_INCLUDE_DIR)
+ set(WEBKIT2GTK_INCLUDE_DIRS ${WEBKIT2GTK_INCLUDE_DIR})
+ message(STATUS "WEBKIT2GTK-Include-Dirs: ${WEBKIT2GTK_INCLUDE_DIRS}")
+endif()
+
+if(WEBKIT2GTK_INCLUDE_DIRS)
+ set(WEBKIT2GTK_FOUND TRUE)
+endif()
diff --git a/flatpak/org.remmina.Remmina.json b/flatpak/org.remmina.Remmina.json
index 2d5e7f606..9b0f36b98 100644
--- a/flatpak/org.remmina.Remmina.json
+++ b/flatpak/org.remmina.Remmina.json
@@ -381,7 +381,7 @@
"type": "git",
"url": "https://github.com/jedisct1/libsodium.git",
"branch": "stable",
- "commit": "32cba2b5e90c2b98b61e8cc4c8105c0a27725fb0"
+ "commit": "f0ad119206032b39790fa2882d666443fc7481b7"
}
],
"post-install": [
@@ -462,8 +462,8 @@
{
"type": "git",
"url": "https://github.com/FreeRDP/FreeRDP.git",
- "tag": "2.6.0",
- "commit": "8a5c034d547c428c512b0a4b840d3a8a4762f989",
+ "tag": "2.6.1",
+ "commit": "658a72980f6e93241d927c46cfa664bf2547b8b1",
"x-checker-data": {
"type": "git",
"tag-pattern": "^([\\d.]+)$"
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 0fb941fce..b3e5daed4 100644
--- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt
@@ -102,17 +102,9 @@ option(WITH_WWW "Build WWW plugin" ON)
if(WITH_WWW)
message(STATUS "Enabling WWW plugin.")
add_definitions(-DWITH_WWW)
- pkg_search_module(WEBKIT2
- webkit2gtk-4.0
- webkit2gtk-3.0
- libwebkit2gtk-4.0
- libwebkit2gtk-3.0
- )
- if(WEBKIT2_FOUND)
- message(STATUS "WWW plugin dependencies found")
+ find_suggested_package(WEBKIT2GTK)
+ if(_WEBKIT2GTKFOUND)
add_subdirectory(www)
- else()
- message(WARNING "WEBKIT not found")
endif()
else()
message(STATUS "Disabling WWW plugin.")
diff --git a/plugins/www/CMakeLists.txt b/plugins/www/CMakeLists.txt
index 97d446a24..445646b19 100644
--- a/plugins/www/CMakeLists.txt
+++ b/plugins/www/CMakeLists.txt
@@ -43,9 +43,9 @@ add_library(remmina-plugin-www MODULE ${REMMINA_PLUGIN_WWW_SRCS})
set_target_properties(remmina-plugin-www PROPERTIES PREFIX "")
set_target_properties(remmina-plugin-www PROPERTIES NO_SONAME 1)
-add_definitions(${WEBKIT2_CFLAGS_OTHER})
-include_directories(${REMMINA_COMMON_INCLUDE_DIRS} ${GTK_INCLUDE_DIRS} ${WEBKIT2_INCLUDE_DIRS})
-target_link_libraries(remmina-plugin-www ${REMMINA_COMMON_LIBRARIES} ${WEBKIT2_LIBRARIES})
+add_definitions(${WEBKIT2GTK_CFLAGS_OTHER})
+include_directories(${REMMINA_COMMON_INCLUDE_DIRS} ${GTK_INCLUDE_DIRS} ${WEBKIT2GTK_INCLUDE_DIRS})
+target_link_libraries(remmina-plugin-www ${REMMINA_COMMON_LIBRARIES} ${WEBKIT2GTK_LIBRARIES})
install(TARGETS remmina-plugin-www DESTINATION ${REMMINA_PLUGINDIR})
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 19427bbbd..d80172a5f 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -94,7 +94,7 @@ parts:
freerdp:
plugin: cmake
source: https://github.com/FreeRDP/FreeRDP.git
- source-tag: 2.6.0
+ source-tag: 2.6.1
source-depth: 1
# override-build: |
# current_dir=$PWD
@@ -109,24 +109,14 @@ parts:
- libavutil-dev
- libcups2-dev
- libffi-dev
- - libgnutls28-dev
- libnacl-dev
- - libjpeg-dev
- libpcsclite-dev
- libpulse-dev
- libsecret-1-dev
- libssl-dev
- libx11-dev
- libusb-1.0-0-dev
- - libxcursor-dev
- - libxdamage-dev
- - libxext-dev
- - libxi-dev
- - libxinerama-dev
- libxkbfile-dev
- - libxml2-dev
- - libxrandr-dev
- - libxtst-dev
- libxv-dev
- libavresample-dev
stage-packages:
@@ -182,7 +172,6 @@ parts:
- intltool
- libappindicator3-dev
- libavahi-ui-gtk3-dev
- - libgcrypt20-dev
- libsecret-1-dev
- libgtk-3-dev
- libgtk-vnc-2.0-dev
@@ -197,9 +186,6 @@ parts:
- libvncserver-dev
- libvte-2.91-dev
- libxkbfile-dev
- - libwebkit2gtk-4.0-dev
- - libpcre2-dev
- - python3-dev
- pyhoca-cli
- xdg-utils
stage-packages:
@@ -230,7 +216,6 @@ parts:
- suckless-tools
- vim
- xauth
- - xdg-user-dirs
- xterm
cmake-parameters:
- -DCMAKE_BUILD_TYPE=Release
@@ -267,7 +252,6 @@ parts:
app:
plugin: nil
stage-packages:
- - gtk-3-examples
- libappindicator3-1
- libindicator3-7
- libgdbm6
@@ -306,7 +290,6 @@ parts:
- libgsm1
- libvdpau1
- libva-x11-2
- - libthai0
- libsoxr0
- libva-drm2
- libnuma1
@@ -314,15 +297,6 @@ parts:
- libsodium23
- libusb-1.0-0
- python3
- - libsndfile1
- - libasyncns0
- - libflac8
- - libvorbisenc2
- - libxau6
- - libxdmcp6
- - libogg0
- - libvorbis0a
- - libpcre2-8-0
cleanup:
after: [freerdp, remmina, app] # Make this part run last; list all your other parts here
plugin: nil
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5d3439832..ca002d95f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -296,7 +296,7 @@ if(GTK3_FOUND)
endif()
endif()
-include(FindPCRE2)
+find_required_package(PCRE2)
if(NOT PCRE2_FOUND)
message(FATAL_ERROR "libpcre2 library not found")
endif()