Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2023 12:30:47 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a254074c95d0 - main - mail/libsrs_alt: Fix build with llvm16
Message-ID:  <202308061230.376CUlEq034914@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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:


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308061230.376CUlEq034914>