summaryrefslogtreecommitdiff
path: root/net/libproxy/files/patch-utils_CMakeLists.txt
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2018-06-22 19:59:41 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2018-06-22 19:59:41 +0000
commitca21823b65ea22aea7534e28a607f7b7d2fdcff6 (patch)
tree17c54ee81284568526278b3357e355cf65710ca2 /net/libproxy/files/patch-utils_CMakeLists.txt
parentx11/qterminal: Update to 0.9.0 (diff)
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
Diffstat (limited to 'net/libproxy/files/patch-utils_CMakeLists.txt')
-rw-r--r--net/libproxy/files/patch-utils_CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/libproxy/files/patch-utils_CMakeLists.txt b/net/libproxy/files/patch-utils_CMakeLists.txt
new file mode 100644
index 000000000000..0e92372a0191
--- /dev/null
+++ b/net/libproxy/files/patch-utils_CMakeLists.txt
@@ -0,0 +1,17 @@
+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})