Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jun 2023 19:16:30 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: d99c374ec84c - main - security/pidgin-encryption: Fix build with llvm15
Message-ID:  <202306111916.35BJGUuU052453@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d99c374ec84c7f958014b5897459f3514997505a

commit d99c374ec84c7f958014b5897459f3514997505a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-11 17:11:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-11 19:16:21 +0000

    security/pidgin-encryption: Fix build with llvm15
    
    - Pet portclippy
    - Refactor USES=localbase
    
    Approved by:    portmgr (blanket)
---
 security/pidgin-encryption/Makefile | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/security/pidgin-encryption/Makefile b/security/pidgin-encryption/Makefile
index 07c9aa4bdeca..e4c884e338ea 100644
--- a/security/pidgin-encryption/Makefile
+++ b/security/pidgin-encryption/Makefile
@@ -11,9 +11,12 @@ COMMENT=	Encryption Plugin for the Pidgin instant messenger client
 WWW=		http://pidgin-encrypt.sf.net
 
 BUILD_DEPENDS=	${LOCALBASE}/bin/pidgin:net-im/pidgin
-RUN_DEPENDS=	${LOCALBASE}/bin/pidgin:net-im/pidgin
 LIB_DEPENDS=	libpurple.so:net-im/libpurple \
 		libnss3.so:security/nss
+RUN_DEPENDS=	${LOCALBASE}/bin/pidgin:net-im/pidgin
+
+USES=		gettext gmake gnome libtool localbase pkgconfig
+USE_GNOME=	gtk20
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-static \
@@ -21,16 +24,20 @@ CONFIGURE_ARGS=	--disable-static \
 		--with-nspr-libs=${LOCALBASE}/lib	\
 		--with-nss-includes=${LOCALBASE}/include/nss \
 		--with-nss-libs=${LOCALBASE}/lib
-CPPFLAGS+=	-I${LOCALBASE}/include
-LIBS+=		-L${LOCALBASE}/lib
+
 INSTALL_TARGET=	install-strip
-USES=		gettext gmake gnome libtool pkgconfig
-USE_GNOME=	gtk20
 
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
-NLS_CONFIGURE_ENABLE=	nls
+
 NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
 
 post-extract:
 	@${REINPLACE_CMD} -e 's|glib/.*\.h"|glib.h"|g' ${WRKSRC}/rsa_nss.c



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