Index: head/sysutils/freefilesync/Makefile =================================================================== --- head/sysutils/freefilesync/Makefile (revision 420376) +++ head/sysutils/freefilesync/Makefile (revision 420377) @@ -1,41 +1,46 @@ +# Created by: Kevin Lo # $FreeBSD$ PORTNAME= freefilesync PORTVERSION= 8.3 CATEGORIES= sysutils MASTER_SITES= http://www.freefilesync.org/download/ \ http://www.freefilesync.org/archive/ DISTNAME= FreeFileSync_${PORTVERSION}_Source -MAINTAINER= kevlo@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Backup software to synchronize files and folders LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_FreeBSD_9= does not build on FreeBSD < 10.x - BUILD_DEPENDS= ${LOCALBASE}/include/zenxml/xml.h:textproc/zenxml LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libnotify.so:devel/libnotify FETCH_ARGS= --user-agent=firefox WRKSRC= ${WRKDIR}/FreeFileSync/Source DOS2UNIX_WRKSRC=${WRKDIR} DOS2UNIX_GLOB= *.cpp *.h USES= compiler:c++14-lang dos2unix gmake pkgconfig zip USE_LDCONFIG= yes USE_WX= 3.0+ +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1003000 +BROKEN= does not build on FreeBSD < 10.3 (lack of futimens(2)) +.endif + post-patch: @${REINPLACE_CMD} -e 's/wx-config/$${WX_CONFIG:T}/' \ -e 's,g++,$${CXX},' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|||' \ ${WRKDIR}/zen/file_access.cpp @${REINPLACE_CMD} -e 's|WEXITSTATUS||' ${WRKDIR}/zen/shell_execute.h @${REINPLACE_CMD} -e 's|CLOCK_MONOTONIC_RAW|CLOCK_MONOTONIC|' \ ${WRKDIR}/zen/tick_count.h -.include +.include Index: head/sysutils/freefilesync/files/patch-zen_file__access.cpp =================================================================== --- head/sysutils/freefilesync/files/patch-zen_file__access.cpp (revision 420376) +++ head/sysutils/freefilesync/files/patch-zen_file__access.cpp (nonexistent) @@ -1,26 +0,0 @@ ---- ../../zen/file_access.cpp.orig 2016-01-11 12:13:10 UTC -+++ ../../zen/file_access.cpp -@@ -877,6 +877,15 @@ void setFileTimeRaw(const Zstring& fileP - //https://sourceforge.net/p/freefilesync/discussion/open-discussion/thread/218564cf/ - newTimes[1] = modTime; //modification time - -+#if defined(__FreeBSD__) -+// only defines __FreeBSD_version -+#include -+#endif -+ -+#if (defined(__FreeBSD__) && (__FreeBSD_version < 1002506 || \ -+ (__FreeBSD_version >= 1100000 && __FreeBSD_version < 1100056))) -+ throw ErrorLinuxFallbackToUtimes(L""); -+#else - //=> using open()/futimens() for regular files and utimensat(AT_SYMLINK_NOFOLLOW) for symlinks is consistent with "cp" and "touch"! - if (procSl == ProcSymlink::FOLLOW) - { -@@ -898,6 +907,7 @@ void setFileTimeRaw(const Zstring& fileP - if (::utimensat(AT_FDCWD, filePath.c_str(), newTimes, AT_SYMLINK_NOFOLLOW) != 0) - THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot write modification time of %x."), L"%x", fmtPath(filePath)), L"utimensat"); - } -+#endif - } - - Property changes on: head/sysutils/freefilesync/files/patch-zen_file__access.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property