diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2019-12-28 20:25:38 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-12-29 08:59:50 +0100 |
commit | d1b5924935577356046594dd8cb34d19a6caea56 (patch) | |
tree | 2585d810328ad51bd258ee9496283421f7a1ab8c /source/l/libvncserver | |
parent | 2d09b7457a5c97591238b34ef717734a84167ec2 (diff) | |
download | current-d1b5924935577356046594dd8cb34d19a6caea56.tar.gz |
Sat Dec 28 20:25:38 UTC 201920191228202538
ap/sysstat-12.3.1-x86_64-1.txz: Upgraded.
d/doxygen-1.8.17-x86_64-1.txz: Upgraded.
kde/krdc-4.14.3-x86_64-5.txz: Rebuilt.
Recompiled against libvncserver-0.9.12.
l/libvncserver-0.9.12-x86_64-1.txz: Upgraded.
Shared library .so-version bump.
Diffstat (limited to 'source/l/libvncserver')
-rw-r--r-- | source/l/libvncserver/libvncserver.CMAKE_INSTALL_LIBDIR.diff | 22 | ||||
-rwxr-xr-x | source/l/libvncserver/libvncserver.SlackBuild | 47 |
2 files changed, 45 insertions, 24 deletions
diff --git a/source/l/libvncserver/libvncserver.CMAKE_INSTALL_LIBDIR.diff b/source/l/libvncserver/libvncserver.CMAKE_INSTALL_LIBDIR.diff new file mode 100644 index 00000000..4271d57c --- /dev/null +++ b/source/l/libvncserver/libvncserver.CMAKE_INSTALL_LIBDIR.diff @@ -0,0 +1,22 @@ +--- ./CMakeLists.txt.orig 2019-01-06 13:09:30.000000000 -0600 ++++ ./CMakeLists.txt 2019-12-28 13:27:44.893589607 -0600 +@@ -666,8 +666,8 @@ + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libvncclient.pc.cmakein ${CMAKE_CURRENT_BINARY_DIR}/libvncclient.pc @ONLY) + + +-install_targets(/lib vncserver) +-install_targets(/lib vncclient) ++install_targets(/${CMAKE_INSTALL_LIBDIR} vncserver) ++install_targets(/${CMAKE_INSTALL_LIBDIR} vncclient) + install_files(/include/rfb FILES + rfb/keysym.h + rfb/rfb.h +@@ -677,7 +677,7 @@ + rfb/rfbregion.h + ) + +-install_files(/lib/pkgconfig FILES ++install_files(/${CMAKE_INSTALL_LIBDIR}/pkgconfig FILES + libvncserver.pc + libvncclient.pc + ) diff --git a/source/l/libvncserver/libvncserver.SlackBuild b/source/l/libvncserver/libvncserver.SlackBuild index 45875918..015b6a5f 100755 --- a/source/l/libvncserver/libvncserver.SlackBuild +++ b/source/l/libvncserver/libvncserver.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2007, 2014 Heinz Wiesinger, Amsterdam, NL -# Copyright 2008, 2009, 2010, 2011, 2012, 2015, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2011, 2012, 2015, 2018, 2019 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=libvncserver VERSION=${VERSION:-$(echo LibVNCServer-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-4} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -90,27 +90,26 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -./autogen.sh - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --disable-static \ - --build=$TARGET || exit 1 - -make $NUMJOBS || make || exit 1 -make install DESTDIR=$PKG || exit 1 - -# Don't ship .la files: -rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la - -if [ -x client_examples/.libs/SDLvncviewer ]; then - cp -a client_examples/.libs/SDLvncviewer $PKG/usr/bin/SDLvncviewer +zcat $CWD/libvncserver.CMAKE_INSTALL_LIBDIR.diff.gz | patch -p1 --verbose || exit 1 + +# Configure, build, and install: +mkdir cmake-build +cd cmake-build + cmake \ + -DCMAKE_C_FLAGS="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR="lib$LIBDIRSUFFIX" \ + -DDOC_INSTALL_DIR="doc" \ + -DMAN_INSTALL_DIR=/usr/man \ + .. || exit 1 + make $NUMJOBS || make || exit 1 + make install DESTDIR=$PKG || exit 1 +cd .. + +if [ -x cmake-build/client_examples/SDLvncviewer ]; then + mkdir -p $PKG/usr/bin + cp -a cmake-build/client_examples/SDLvncviewer $PKG/usr/bin/SDLvncviewer fi find $PKG | xargs file | grep -e "executable" -e "shared object" \ @@ -118,7 +117,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" \ mkdir -p $PKG/usr/doc/libvncserver-$VERSION cp -a \ - AUTHORS COPYING* INSTALL NEWS* README* TODO* \ + AUTHORS COPYING* NEWS* README* TODO* \ $PKG/usr/doc/libvncserver-$VERSION # If there's a ChangeLog, installing at least part of the recent history |