diff --git a/databases/tarantool-c/Makefile b/databases/tarantool-c/Makefile index b799bbf42e3e..958f9432a0e7 100644 --- a/databases/tarantool-c/Makefile +++ b/databases/tarantool-c/Makefile @@ -1,26 +1,22 @@ PORTNAME= tarantool-c PORTVERSION= 1.0.1 PORTREVISION= 5 CATEGORIES= databases MAINTAINER= sunpoet@FreeBSD.org COMMENT= C client for Tarantool 1.6+ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libmsgpuck.so:devel/msgpuck USES= cmake compiler:c11 CMAKE_OFF= ENABLE_BUNDLED_DOCS ENABLE_BUNDLED_MSGPUCK USE_GITHUB= yes GH_ACCOUNT= tarantool GH_TAGNAME= 2aa7937 -post-patch: - @${GREP} -lr 'msgpuck/msgpuck.h' ${WRKSRC}/ | ${XARGS} ${REINPLACE_CMD} -e 's|msgpuck/msgpuck.h|msgpuck.h|' - @${REINPLACE_CMD} -e 's|libmsgpuck.a|libmsgpuck.so|' ${WRKSRC}/cmake/FindMsgPuck.cmake - .include diff --git a/databases/tarantool-c/files/patch-CMakeLists.txt b/databases/tarantool-c/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..5ab36717da11 --- /dev/null +++ b/databases/tarantool-c/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2021-11-26 15:16:51 UTC ++++ CMakeLists.txt +@@ -46,7 +46,7 @@ if (NOT ENABLE_BUNDLED_MSGPUCK) + set (MSGPUCK_REQUIRED ON) + include (cmake/FindMsgPuck.cmake) + include_directories(${MSGPUCK_INCLUDE_DIR}) +-elseif (NOT EXISTS "${PROJECT_SOURCE_DIR}/third_party/msgpuck/msgpuck.h") ++elseif (NOT EXISTS "${PROJECT_SOURCE_DIR}/third_party/msgpuck.h") + message(FATAL_ERROR "Could not find msgpuck development files") + else (NOT ENABLE_BUNDLED_MSGPUCK) + set (MSGPUCK_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/third_party") diff --git a/databases/tarantool-c/files/patch-cmake-FindMsgPuck.cmake b/databases/tarantool-c/files/patch-cmake-FindMsgPuck.cmake new file mode 100644 index 000000000000..640053688282 --- /dev/null +++ b/databases/tarantool-c/files/patch-cmake-FindMsgPuck.cmake @@ -0,0 +1,11 @@ +--- cmake/FindMsgPuck.cmake.orig 2021-11-26 15:16:51 UTC ++++ cmake/FindMsgPuck.cmake +@@ -7,7 +7,7 @@ + # + + find_path(MSGPUCK_INCLUDE_DIR msgpuck.h PATH_SUFFIXES msgpuck) +-find_library(MSGPUCK_LIBRARY NAMES libmsgpuck.a) ++find_library(MSGPUCK_LIBRARY NAMES libmsgpuck.so) + + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args(MsgPuck diff --git a/databases/tarantool-c/files/patch-include_tp.h b/databases/tarantool-c/files/patch-include_tp.h new file mode 100644 index 000000000000..e12cea2444e4 --- /dev/null +++ b/databases/tarantool-c/files/patch-include_tp.h @@ -0,0 +1,11 @@ +--- include/tp.h.orig 2021-11-26 15:16:51 UTC ++++ include/tp.h +@@ -6,7 +6,7 @@ + #include + #include + +-#include ++#include + #include + #include + diff --git a/databases/tarantool-c/files/patch-test-plain_test.c b/databases/tarantool-c/files/patch-test-plain_test.c new file mode 100644 index 000000000000..0264a64711b0 --- /dev/null +++ b/databases/tarantool-c/files/patch-test-plain_test.c @@ -0,0 +1,11 @@ +--- test/plain_test.c.orig 2021-11-26 15:16:51 UTC ++++ test/plain_test.c +@@ -8,7 +8,7 @@ + + #include + +-#include ++#include + + #include +