git: a254074c95d0 - main - mail/libsrs_alt: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Aug 2023 12:30:47 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a254074c95d0260f238b84fbeef4c126704c4d51
commit a254074c95d0260f238b84fbeef4c126704c4d51
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 11:51:31 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 12:30:36 +0000
mail/libsrs_alt: Fix build with llvm16
- Utilize OPTIONSNG where applicable
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
mail/libsrs_alt/Makefile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/mail/libsrs_alt/Makefile b/mail/libsrs_alt/Makefile
index 65b5f0694800..f69e06ce8acf 100644
--- a/mail/libsrs_alt/Makefile
+++ b/mail/libsrs_alt/Makefile
@@ -10,18 +10,23 @@ WWW= https://opsec.eu/src/srs/
USES= libtool tar:bzip2
USE_LDCONFIG= yes
-SHLIB_MAJOR= 1
+
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 ${PORT_OPTIONS:MCOMPAT_BASE64}
-CONFIGURE_ARGS+= --with-base64compat
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch: