1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/mail/rmilter/Makefile
Mark Linimon 82c3cac0d2 Mark some ports failing on power64. In cases where the error message
was a stub, provide a real one.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
Reported by:	swills
2017-05-22 16:04:19 +00:00

58 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= rmilter
PORTVERSION= 1.10.0
CATEGORIES= mail
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= Milter that performs rspamd, clamav, and other checks
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libpcre.so:devel/pcre
BROKEN_armv6= fails to configure in cmake
BROKEN_powerpc64= fails to build: btrie.c: '__SIZEOF_POINTER__' undeclared here
NOT_FOR_ARCHS= mips sparc64
NOT_FOR_ARCHS_REASON= fails to compile: error: Unsupported word size
USE_GITHUB= yes
GH_ACCOUNT= vstakhov
USES= cmake:outsource bison pkgconfig ssl
USE_GNOME= glib20
USERS= _rmilter
GROUPS= _rmilter
WITH_SENDMAIL_BASE= yes
OPTIONS_DEFINE= DKIM
OPTIONS_DEFAULT= DKIM
DKIM_DESC= DKIM signing support
DKIM_LIB_DEPENDS= libopendkim.so:mail/opendkim
.include <bsd.port.pre.mk>
# Workaround to prevent bsd.milter.mk from breaking the build with the recent clang
WITHOUT_MILTER_LDFLAGS= yes
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
.if ! ${PORT_OPTIONS:MDKIM}
CMAKE_ARGS+= -DENABLE_DKIM=OFF
.endif
post-patch:
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${WRKSRC}/freebsd/rmilter > ${WRKDIR}/rmilter
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/rmilter ${STAGEDIR}${PREFIX}/etc/rc.d/
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/rmilter ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/rmilter.conf.sample ${STAGEDIR}${PREFIX}/etc/
${INSTALL} -d ${STAGEDIR}/var/run/rmilter
.include <bsd.port.post.mk>