1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/benchmarks/apib/files/patch-apib_CMakeLists.txt
Alexey Dokuchaev 0fdebe53ba benchmarks/apib: the port had been updated (+)
- Belatedly update to version 1.2.1 and sync port description
- Builds with CMake now and uses modern libraries instead of the
  Apache Portable Runtime (devel/apr1)
- While upstream asks for C++11, force C++17 because that's how
  Abseil C++ libraries are currently built, otherwise it won't
  link due to ABI incompatibilities
- Hook two provided tests to our framework (USES+=cmake:testing)
2021-07-04 06:14:48 +00:00

29 lines
668 B
Plaintext

--- apib/CMakeLists.txt.orig 2020-04-15 05:06:21 UTC
+++ apib/CMakeLists.txt
@@ -22,7 +22,7 @@ target_link_libraries(common PUBLIC -lhttp_parser
add_library(
cpu OBJECT
- apib_cpu_generic.cc
+ apib_cpu_bsd.cc
)
target_link_libraries(cpu PUBLIC common)
@@ -44,7 +44,7 @@ add_library(
socket.h
tlssocket.h
)
-target_link_libraries(io PUBLIC common base64 -lev -lssl.1.1 -lcrypto.1.1)
+target_link_libraries(io PUBLIC common base64 -lev -lpthread -lssl -lcrypto)
add_library(
mon_lib OBJECT
@@ -65,3 +65,7 @@ add_executable(
)
target_link_libraries(apibmon mon_lib io cpu common base64)
+install(TARGETS
+ apib apibmon
+ DESTINATION bin
+)