1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/sysutils/incron/Makefile
2021-04-06 16:31:07 +02:00

43 lines
1.1 KiB
Makefile

# Created by: mi@aldan.algebra.com
PORTNAME= incron
DISTVERSION= 2017-11-13
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= joh.hendriks@gmail.com
COMMENT= Handle filesystem-events the way cron handles time ones
LICENSE= GPLv2 LGPL21 MIT
LICENSE_COMB= dual
LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE-GPL
LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE-LGPL
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-X11
LIB_DEPENDS= libinotify.so:devel/libinotify
USES= compiler
USE_GITHUB= yes
GH_ACCOUNT= ar-
GH_TAGNAME= 81421d3a8bde0989d7e167d8a814d5232896c930
CPPFLAGS+= -I${LOCALBASE}/include -D__NR_inotify_init
LDFLAGS+= -L${LOCALBASE}/lib -linotify
MAKE_ARGS= PREFIX="${PREFIX}" USER=${UID} \
DOCDIR="${PREFIX}/etc" \
MANPATH=${MANPREFIX}/man
USE_RC_SUBR= ${PORTNAME}
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e 's,/etc/incron,${PREFIX}/etc/incron,' \
${WRKSRC}/*conf* ${WRKSRC}/Makefile ${WRKSRC}/*.[158h] \
${WRKSRC}/*.cpp
${REINPLACE_CMD} -e '/INITDIR/d' ${WRKSRC}/Makefile
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/inotify-cxx.cpp \
${WRKSRC}/usertable.cpp
.endif
.include <bsd.port.post.mk>