pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/synergy synergy: Don't hardcode paths to libssl/li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b9810fb42539
branches:  trunk
changeset: 336629:b9810fb42539
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 18 16:04:43 2019 +0000

description:
synergy: Don't hardcode paths to libssl/libcrypt on Darwin.

>From madewokherd on freenode.

diffstat:

 net/synergy/distinfo                     |   4 +-
 net/synergy/patches/patch-CMakeLists.txt |  42 +++++++++++++++++++++++++------
 2 files changed, 35 insertions(+), 11 deletions(-)

diffs (69 lines):

diff -r e7101221a46a -r b9810fb42539 net/synergy/distinfo
--- a/net/synergy/distinfo      Thu Jul 18 16:01:21 2019 +0000
+++ b/net/synergy/distinfo      Thu Jul 18 16:04:43 2019 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.28 2019/06/04 12:27:55 abs Exp $
+$NetBSD: distinfo,v 1.29 2019/07/18 16:04:43 nia Exp $
 
 SHA1 (synergy-core-1.10.2.tar.gz) = ad236af38aa2b24f21ebab19abcf67a95e602bcf
 RMD160 (synergy-core-1.10.2.tar.gz) = 06216e1e22be7427e041017e3d08ae26243d2708
 SHA512 (synergy-core-1.10.2.tar.gz) = adf2f0fd3319d81d16384a0b44a23b03b5f118aa4ada6acfd16149d8dba0a79f2685bd25bc0a9b571564e0cf1abde9997cfc94aadb4da5592040e242268dbffc
 Size (synergy-core-1.10.2.tar.gz) = 6700286 bytes
-SHA1 (patch-CMakeLists.txt) = c8009e8a58ef9ab0bdc0d10674d4d8e7b584565e
+SHA1 (patch-CMakeLists.txt) = 69a702eb389c92104e1cdbe6be8a059dcc7d8765
 SHA1 (patch-src_lib_server_CConfig.cpp) = 94c5e9a57f9880ab8fcb75320bd2dbb306540966
 SHA1 (patch-tools_gmock-1.6.0_configure) = 0a3a23076b15858b79a8b3c2a9144ddaaad7ebe3
 SHA1 (patch-tools_gmock-1.6.0_include_gmock_internal_gmock-port.h) = 70d0f775e952a67b2680c480f757e60eb183e5be
diff -r e7101221a46a -r b9810fb42539 net/synergy/patches/patch-CMakeLists.txt
--- a/net/synergy/patches/patch-CMakeLists.txt  Thu Jul 18 16:01:21 2019 +0000
+++ b/net/synergy/patches/patch-CMakeLists.txt  Thu Jul 18 16:04:43 2019 +0000
@@ -1,16 +1,40 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2018/01/25 14:13:22 tnn Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2019/07/18 16:04:43 nia Exp $
 
---- CMakeLists.txt.orig        2017-09-18 11:05:03.000000000 +0000
+Don't use hardcoded paths for finding libcrypto and libssl.
+
+--- CMakeLists.txt.orig        2019-05-09 16:52:59.000000000 +0000
 +++ CMakeLists.txt
-@@ -299,10 +299,8 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Da
-         ${OPENSSL_ROOT}/lib/libssl.a
-         ${OPENSSL_ROOT}/lib/libcrypto.a
-     )
+@@ -279,32 +279,7 @@ endif()
+ #
+ # OpenSSL
+ #
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+-    set (OPENSSL_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/windows)
+-    if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+-        set (OPENSSL_ROOT "${OPENSSL_ROOT}/x64")
+-    else()
+-        set (OPENSSL_ROOT "${OPENSSL_ROOT}/x86")
+-    endif()
+-
+-    include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
+-    set (OPENSSL_LIBS
+-        ${OPENSSL_ROOT}/lib/libeay32.lib
+-        ${OPENSSL_ROOT}/lib/ssleay32.lib
+-    )
+-elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+-    set (OPENSSL_ROOT /usr/local/opt/openssl)
+-
+-    include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
+-    set (OPENSSL_LIBS
+-        ${OPENSSL_ROOT}/lib/libssl.a
+-        ${OPENSSL_ROOT}/lib/libcrypto.a
+-    )
 -elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-+else()
-     set (OPENSSL_LIBS ssl crypto)
+-    set (OPENSSL_LIBS ssl crypto)
 -else()
 -    message (FATAL_ERROR "Couldn't find OpenSSL")
- endif()
+-endif()
++set (OPENSSL_LIBS ssl crypto)
  
  #
+ # Configure_file... but for directories, recursively.



Home | Main Index | Thread Index | Old Index