freebsd-ports/mail/qmail-rblchk/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

46 lines
1.2 KiB
Makefile

PORTNAME= qmail-rblchk
PORTVERSION= 2.4.1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.morettoni.net/qmail/ \
LOCAL/ehaupt
MAINTAINER= ports@FreeBSD.org
COMMENT= Qmail RBL filter
WWW= http://www.morettoni.net/qmail-rblchk.en.html
USES= groff qmail:run
ALL_TARGET= default
INSTALL_TARGET= setup
CFLAGS?= -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized \
-Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
LDFLAGS?= -s
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${REINPLACE_CMD} -e '/"cat/d; s|,02755|,0755|' ${WRKSRC}/hier.c
do-configure:
${PRINTF} "${STAGEDIR}${PREFIX}\n\n.../bin.\n" > ${WRKSRC}/conf-home
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in rbllist.sh spam-report.sh dot-qmail-storeip
${INSTALL_DATA} ${WRKSRC}/contrib/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>