1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/mail/libsrs_alt/Makefile
Muhammad Moinur Rahman a254074c95 mail/libsrs_alt: Fix build with llvm16
- Utilize OPTIONSNG where applicable
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-08-06 14:30:36 +02:00

41 lines
966 B
Makefile

PORTNAME= libsrs_alt
DISTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://opsec.eu/src/srs/
MAINTAINER= pi@FreeBSD.org
COMMENT= Sender Rewriting Scheme C Implementation
WWW= https://opsec.eu/src/srs/
USES= libtool tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
OPTIONS_DEFINE= COMPAT_BASE64
COMPAT_BASE64_DESC= MTA Friendly base64 compatibility mode
COMPAT_BASE64_CONFIGURE_ON= --with-base64compat
SHLIB_MAJOR= 1
.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 's,^(test_LDFLAGS.*$$),\1 -lcompat,' \
${WRKSRC}/Makefile.in
post-install:
${MV} ${STAGEDIR}${PREFIX}/bin/srs ${STAGEDIR}${PREFIX}/bin/srs_alt
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsrs_alt.so.1.0.0
.include <bsd.port.mk>