1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/mail/milter-callback/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

59 lines
1.8 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
PORTNAME= milter-callback
PORTVERSION= 1.6.0
PORTREVISION= 6
CATEGORIES= mail
MASTER_SITES= LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Milter to perform a envelope-from sender verification on target MX
LICENSE= GPLv3
BROKEN_mips= fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
BROKEN_mips64= fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
BROKEN_powerpc64= fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
LIB_DEPENDS= libspf2.so:mail/libspf2
USES= tar:xz
USE_RC_SUBR= milter-callback
USE_GCC= any
SUB_FILES= pkg-message
SRC_FILES= cache.c commonprocs.c cpit.c dealwithmxes.c detectlamespf.c \
makedecision.c mcspf.c milter-callback.c pgupdate.c \
processdirectpart.c processmxpart.c pushhistory.c sigusr1.c
CFLAGS+= -DFREEBSD -DHAVE_NS_TYPE -DWITH_SPF -I${LOCALBASE}/include \
-I${WRKSRC} -std=gnu99
LDFLAGS+= -lmilter -lthr -L${LOCALBASE}/lib -lspf2
do-build:
.for f in ${SRC_FILES}
${CC} ${CFLAGS} -c ${WRKSRC}/${f} -o ${WRKSRC}/${f:C/\.c/.o/}
.endfor
${CC} ${LDFLAGS} ${SRC_FILES:C/(.*)\.c/${WRKSRC}\/\1.o/} \
-o ${WRKSRC}/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
${WRKSRC}/${PORTNAME}.c
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|/var/tmp/|/var/run/|' \
${WRKSRC}/${PORTNAME}.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/mail
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/mail/${PORTNAME}.conf.sample
.include <bsd.port.mk>