freebsd-ports/sysutils/lsyncd/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

34 lines
717 B
Makefile

# $FreeBSD$
PORTNAME= lsyncd
DISTVERSIONPREFIX= release-
DISTVERSION= 2.2.3
CATEGORIES= sysutils
MAINTAINER= junichi@junichi.org
COMMENT= Live Syncing (Mirror) Daemon
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libinotify.so:devel/libinotify
USES= cmake localbase lua
USE_GITHUB= yes
GH_ACCOUNT= axkibe
USE_RC_SUBR= lsyncd
CFLAGS+= -D__BSD_VISIBLE # for DT_{UNKNOWN,DIR}
PLIST_FILES= sbin/lsyncd \
man/man1/lsyncd.1.gz \
"@sample etc/lsyncd.conf.sample"
post-patch:
@${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/default-rsync.lua
post-install:
${INSTALL_DATA} ${FILESDIR}/lsyncd.conf.sample ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>