ports/net/libproxy/files/patch-utils_CMakeLists.txt
Tobias C. Berner ca21823b65 Update net/libproxy to 0.4.15
* this release switched the build system to cmake
* move libproxy-gnome to libproxy-gnome2 for consistency
* add new slave libproxy-webkit3
* try to simplify the whole thing

* bump revisions in the dependencies

Reviewed by:	gnome (kwm), mat
Differential Revision:	https://reviews.freebsd.org/D15655
2018-06-22 19:59:41 +00:00

17 lines
583 B
Text

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.
--- utils/CMakeLists.txt.orig 2017-05-11 09:33:33 UTC
+++ utils/CMakeLists.txt
@@ -1,5 +1,9 @@
include_directories("../libproxy")
add_executable(proxy proxy.c)
-target_link_libraries(proxy libproxy)
+if (WITH_LIBRARY)
+ target_link_libraries(proxy libproxy)
+else ()
+ target_link_libraries(proxy PkgConfig::LIBPROXY)
+endif ()
install(TARGETS proxy RUNTIME DESTINATION ${BIN_INSTALL_DIR})