Date: Sun, 28 Oct 2018 10:58:47 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483270 - head/sysutils/incron Message-ID: <201810281058.w9SAwlhf079288@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Sun Oct 28 10:58:46 2018 New Revision: 483270 URL: https://svnweb.freebsd.org/changeset/ports/483270 Log: Fix build on GCC-based architectures. PR: 232529 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Modified: head/sysutils/incron/Makefile Modified: head/sysutils/incron/Makefile ============================================================================== --- head/sysutils/incron/Makefile Sun Oct 28 10:55:44 2018 (r483269) +++ head/sysutils/incron/Makefile Sun Oct 28 10:58:46 2018 (r483270) @@ -15,10 +15,6 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE-GPL LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE-LGPL LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-X11 -BROKEN_mips= fails to compile: usertable.cpp:440: \#pragma GCC diagnostic not allowed inside functions -BROKEN_mips64= fails to compile: usertable.cpp:440: \#pragma GCC diagnostic not allowed inside functions -BROKEN_powerpc64= fails to compile: usertable.cpp:440: \#pragma GCC diagnostic not allowed inside functions - LIB_DEPENDS= libinotify.so:devel/libinotify USE_GITHUB= indeed @@ -31,10 +27,16 @@ MAKE_ARGS= PREFIX="${PREFIX}" USER=${UID} \ 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 ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64 + ${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/inotify-cxx.cpp \ + ${WRKSRC}/usertable.cpp +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810281058.w9SAwlhf079288>