signond: patch Config.cmake to work better when cross compiling
This commit is contained in:
parent
5abcd7da52
commit
6d445f0727
2 changed files with 29 additions and 1 deletions
28
srcpkgs/signond/patches/cross.patch
Normal file
28
srcpkgs/signond/patches/cross.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
--- lib/SignOn/SignOnQt5Config.cmake.in 2018-09-17 18:28:27.000000000 +0200
|
||||
+++ - 2020-04-27 00:51:57.131405714 +0200
|
||||
@@ -2,6 +2,21 @@
|
||||
# SIGNONQT_LIBRARIES - The libraries needed to use libsignon-qt
|
||||
# SIGNONQT_LIBRARIES_STATIC - The static version of libsignon-qt
|
||||
|
||||
-set(SIGNONQT_LIBRARIES $${INSTALL_LIBDIR}/lib$${TARGET}.so)
|
||||
-set(SIGNONQT_LIBRARIES_STATIC $${INSTALL_LIBDIR}/lib$${TARGET}.a)
|
||||
-set(SIGNONQT_INCLUDE_DIRS $${INSTALL_PREFIX}/include/$${TARGET})
|
||||
\ No newline at end of file
|
||||
+get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
+if(_realCurr STREQUAL _realOrig)
|
||||
+ set(_IMPORT_PREFIX "/usr/lib/cmake/SignOnQt5")
|
||||
+endif()
|
||||
+unset(_realOrig)
|
||||
+unset(_realCurr)
|
||||
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
+get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
+if(_IMPORT_PREFIX STREQUAL "/")
|
||||
+ set(_IMPORT_PREFIX "")
|
||||
+endif()
|
||||
+
|
||||
+set(SIGNONQT_LIBRARIES ${_IMPORT_PREFIX}/lib/lib$${TARGET}.so)
|
||||
+set(SIGNONQT_LIBRARIES_STATIC ${_IMPORT_PREFIX}/lib/lib$${TARGET}.a)
|
||||
+set(SIGNONQT_INCLUDE_DIRS ${_IMPORT_PREFIX}/include/$${TARGET})
|
||||
+
|
||||
+set(_IMPORT_PREFIX)
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'signond'
|
||||
pkgname=signond
|
||||
version=8.60
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="signond-VERSION_${version}-4d195e4dc7a47ff5cb51e36a83d4d05808c5befe"
|
||||
build_style=qmake
|
||||
configure_args="LIBDIR=/usr/lib"
|
||||
|
|
Loading…
Reference in a new issue