Index: head/net/grive2/Makefile =================================================================== --- head/net/grive2/Makefile (revision 459141) +++ head/net/grive2/Makefile (revision 459142) @@ -1,33 +1,33 @@ # Created by: Carlos J Puga Medina # $FreeBSD$ PORTNAME= grive2 PORTVERSION= 0.5.0 DISTVERSIONPREFIX= v PORTREVISION= 5 CATEGORIES= net MAINTAINER= cpm@FreeBSD.org COMMENT= Open source client for Google Drive LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ libcurl.so:ftp/curl \ libexpat.so:textproc/expat2 \ libgcrypt.so:security/libgcrypt \ libgpg-error.so:security/libgpg-error \ libyajl.so:devel/yajl CONFLICTS_INSTALL= grive-[0-9]* +USES= cmake pkgconfig localbase + USE_GITHUB= yes GH_ACCOUNT= vitalif - -USES= cmake pkgconfig localbase PLIST_FILES= bin/grive \ man/man1/grive.1.gz .include Index: head/net/grive2/files/patch-grive_CMakeLists.txt =================================================================== --- head/net/grive2/files/patch-grive_CMakeLists.txt (revision 459141) +++ head/net/grive2/files/patch-grive_CMakeLists.txt (revision 459142) @@ -1,8 +1,13 @@ --- grive/CMakeLists.txt.orig 2016-01-14 20:51:31 UTC +++ grive/CMakeLists.txt -@@ -26,4 +26,4 @@ set_target_properties( grive_executable +@@ -26,4 +26,9 @@ set_target_properties( grive_executable ) install(TARGETS grive_executable RUNTIME DESTINATION bin) -install(FILES doc/grive.1 DESTINATION share/man/man1 ) -+install(FILES doc/grive.1 DESTINATION man/man1 ) ++ ++if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) ++ install(FILES doc/grive.1 DESTINATION man/man1 ) ++else ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) ++ install(FILES doc/grive.1 DESTINATION share/man/man1 ) ++endif( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" ) Index: head/net/grive2/files/patch-libgrive_CMakeLists.txt =================================================================== --- head/net/grive2/files/patch-libgrive_CMakeLists.txt (nonexistent) +++ head/net/grive2/files/patch-libgrive_CMakeLists.txt (revision 459142) @@ -0,0 +1,13 @@ +--- libgrive/CMakeLists.txt.orig 2018-01-15 23:32:17 UTC ++++ libgrive/CMakeLists.txt +@@ -149,6 +149,10 @@ target_link_libraries( btest + ${Boost_LIBRARIES} + ) + ++if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" ) ++ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++11-narrowing" ) ++endif ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" ) ++ + if ( WIN32 ) + else ( WIN32 ) + set_target_properties( btest Property changes on: head/net/grive2/files/patch-libgrive_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/grive2/files/patch-libgrive_src_util_File.cc =================================================================== --- head/net/grive2/files/patch-libgrive_src_util_File.cc (revision 459141) +++ head/net/grive2/files/patch-libgrive_src_util_File.cc (revision 459142) @@ -1,10 +1,13 @@ ---- libgrive/src/util/File.cc.orig 2016-08-28 12:56:18 UTC +--- libgrive/src/util/File.cc.orig 2016-01-14 20:51:31 UTC +++ libgrive/src/util/File.cc -@@ -32,6 +32,7 @@ - #include +@@ -33,6 +33,10 @@ #include #include -+#include ++#if defined(__FreeBSD__) || defined(__OpenBSD__) ++#include ++#endif ++ #ifdef WIN32 #include + typedef int ssize_t ; Index: head/net/grive2/pkg-descr =================================================================== --- head/net/grive2/pkg-descr (revision 459141) +++ head/net/grive2/pkg-descr (revision 459142) @@ -1,4 +1,4 @@ Grive2 is the fork of original "Grive" Google Drive client with the support for the new Drive REST API and partial sync. -WWW: https://github.com/vitalif/grive2/ +WWW: https://github.com/vitalif/grive2