summaryrefslogtreecommitdiff
path: root/net-im/tdlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/tdlib/Makefile')
-rw-r--r--net-im/tdlib/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/net-im/tdlib/Makefile b/net-im/tdlib/Makefile
index 28fbf97c053e..77fe4f5caaad 100644
--- a/net-im/tdlib/Makefile
+++ b/net-im/tdlib/Makefile
@@ -1,6 +1,7 @@
PORTNAME= tdlib
DISTVERSIONPREFIX= v
DISTVERSION= 1.8.48
+PORTREVISION= 3
CATEGORIES= net-im devel
MAINTAINER= yuri@FreeBSD.org
@@ -15,8 +16,10 @@ USE_GITHUB= yes
GH_PROJECT= td
GH_TAGNAME= b8b08b0 # hash corresponding to 1.8.48
-CMAKE_ON= TD_INSTALL_SHARED_LIBRARIES TD_INSTALL_STATIC_LIBRARIES
-CMAKE_OFF= BUILD_TESTING FREEBSD_BUILD_BENCHMARKS
+CMAKE_ON= TD_INSTALL_SHARED_LIBRARIES TD_INSTALL_STATIC_LIBRARIES \
+ BUILD_SHARED_LIBS
+CMAKE_OFF+= TD_E2E_ONLY # supposed to install tde2e but it fails to install headers
+CMAKE_OFF+= BUILD_TESTING FREEBSD_BUILD_BENCHMARKS
PLIST_SUB+= LIBVERSION=${PORTVERSION}
@@ -24,4 +27,12 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%COMMIT%%|${GH_TAGNAME}|g' \
${WRKSRC}/CMake/GetGitRevisionDescription.cmake
+post-install: # see https://github.com/tdlib/td/issues/3328
+ @cd ${WRKSRC}/td && \
+ ${COPYTREE_SHARE} telegram ${STAGEDIR}${PREFIX}/include/td "-name *\.h -o -name *\.hpp"
+ @cd ${WRKSRC}/tdutils/td && \
+ ${COPYTREE_SHARE} utils ${STAGEDIR}${PREFIX}/include/td "-name *\.h -o -name *\.hpp"
+ @cd ${WRKSRC}/tde2e/td && \
+ ${COPYTREE_SHARE} e2e ${STAGEDIR}${PREFIX}/include/td "-name *\.h -o -name *\.hpp"
+
.include <bsd.port.mk>