diff options
author | Eric Hameleers <alien@slackware.com> | 2016-05-18 13:40:36 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-05-18 13:40:36 +0200 |
commit | 457d224ec57625a940612d7288904c25547e5338 (patch) | |
tree | 65db2f51a9beec50158df957f82bab0e1f90bbe2 /kde | |
parent | a8539185154211579e0474568a4a5c33a7d081d6 (diff) | |
download | ktown-457d224ec57625a940612d7288904c25547e5338.tar.gz ktown-457d224ec57625a940612d7288904c25547e5338.tar.xz |
The 'freerdp' package should be a runtime dependency only.
The source configuration process of KRDC searches for the xfreerdp
binary and disables RDP support if the binary is not found.
I do not call that a "run-time dependency". But since xfreerdp actually
*is* a run-time dependency only, the SlackBuild will create a workaround.
With this modification you can add the 'freerdp' package afterwards and
RDP support will work out of the box without recompilation of 'krdc'.
Diffstat (limited to 'kde')
-rw-r--r-- | kde/build/krdc | 1 | ||||
-rw-r--r--[l---------] | kde/cmake/krdc | 39 |
2 files changed, 39 insertions, 1 deletions
diff --git a/kde/build/krdc b/kde/build/krdc new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/kde/build/krdc @@ -0,0 +1 @@ +2 diff --git a/kde/cmake/krdc b/kde/cmake/krdc index ab12832..9a9958a 120000..100644 --- a/kde/cmake/krdc +++ b/kde/cmake/krdc @@ -1 +1,38 @@ -applications5
\ No newline at end of file +# Since xfreerdp is a runtime dependency, krdc should not be looking for it +# and disabling support for RDP if the binary is not found at compile-time... +if which xfreerdp 1>/dev/null 2>&1 ; then + AB_REMOVE_KLUDGE=0 +else + AB_REMOVE_KLUDGE=1 + touch /usr/local/bin/xfreerdp + chmod 755 /usr/local/bin/xfreerdp +fi + +mkdir build +cd build + cmake \ + $KDE_OPT_ARGS \ + -DKDE_PLATFORM_FEATURE_DISABLE_DEPRECATED=TRUE \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMAN_INSTALL_DIR=/usr/man \ + -DSYSCONF_INSTALL_DIR=/etc/kde \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DLIB_INSTALL_DIR=lib$LIBDIRSUFFIX \ + -DLIBEXEC_INSTALL_DIR=lib$LIBDIRSUFFIX \ + -DQT_PLUGIN_INSTALL_DIR=lib$LIBDIRSUFFIX/qt5/plugins \ + -DQML_INSTALL_DIR=lib$LIBDIRSUFFIX/qt5/qml \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_TESTING=OFF \ + -DQca-qt5_DIR=/usr/lib${LIBDIRSUFFIX}/cmake/Qca \ + .. + +# Cleanup: +if [ $AB_REMOVE_KLUDGE -eq 1 ]; then + rm -f /usr/local/bin/xfreerdp +fi +unset AB_REMOVE_KLUDGE |