git: 00c70aca8582 - main - net/gq: Mark BROKEN* on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 02 May 2023 11:38:49 UTC
The branch main has been updated by bofh:

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

commit 00c70aca85828cbef233e89fe604aa1a07133242
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-02 11:26:39 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-02 11:38:34 +0000

    net/gq: Mark BROKEN* on HEAD
    
    - Fails to build with any OpenSSL version starting from 1.1.1.t
    - Mark BROKEN/BROKEN_SSL
    - Mark DEPRERCATED as upstream last release was on 2008
    - Pet portclippy
    - Utilize USES=localbase
---
 net/gq/Makefile | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/net/gq/Makefile b/net/gq/Makefile
index de2fb2905d37..0a27cedf1f93 100644
--- a/net/gq/Makefile
+++ b/net/gq/Makefile
@@ -13,6 +13,8 @@ LICENSE=	GPLv2+ LGPL21+ # some source files are under lgpl
 LICENSE_COMB=	multi
 LICENSE_FILE_GPLv2+ =	${WRKSRC}/COPYING
 
+DEPRECATED=	Upstream last release was in 2008
+
 LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libgcrypt.so:security/libgcrypt \
@@ -20,21 +22,32 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libgpg-error.so:security/libgpg-error \
 		libharfbuzz.so:print/harfbuzz
 
-USES=		desktop-file-utils gettext gmake gnome iconv ldap pkgconfig \
-		shared-mime-info ssl
+USES=		desktop-file-utils gettext gmake gnome iconv ldap localbase \
+		pkgconfig shared-mime-info ssl
 USE_GNOME=	cairo intltool gdkpixbuf2 libglade2
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-ldap-prefix=${LOCALBASE} --disable-update-mimedb
 
-CPPFLAGS+=	-I${LOCALBASE}/include -Wno-return-type
-LIBS+=		-L${LOCALBASE}/lib -lcrypto
+CPPFLAGS+=	-Wno-return-type
+LIBS+=		-lcrypto
 
 OPTIONS_DEFINE=	DND CACHE
 OPTIONS_DEFAULT=	DND CACHE
-DND_DESC=	Enable Drag and drop support in browse mode
-DND_CONFIGURE_ENABLE=	browser-dns
+
 CACHE_DESC=	Support the OpenLDAP experimental client cache
+DND_DESC=	Enable Drag and drop support in browse mode
+
 CACHE_CONFIGURE_ENABLE=	cache
+DND_CONFIGURE_ENABLE=	browser-dns
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+BROKEN=	Fails to build with OpenSSL 1.1.1t and later
+BROKEN_SSL=	base openssl openssl30 openssl31
+BROKEN_SSL_REASON=	Fails to build with OpenSSL 1.1.1t and later
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
@@ -45,4 +58,4 @@ post-patch:
 		${WRKSRC}/src/gq-stack.[ch] \
 		${WRKSRC}/src/gq-tab.h
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>