mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
ac7e5faf87
PR: 211943 Submitted by: amdmi3
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# Created by: Kevin Lo <kevlo@FreeBSD.org>
|
|
# $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= ports@FreeBSD.org
|
|
COMMENT= Backup software to synchronize files and folders
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
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 <bsd.port.pre.mk>
|
|
|
|
.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|<sys/vfs.h>|<sys/mount.h>|' \
|
|
${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 <bsd.port.post.mk>
|