git: d460a655e8b7 - main - net/xmlrpc-c: Fix build with openssl from ports

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Thu, 02 Nov 2023 12:04:40 UTC
The branch main has been updated by garga:

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

commit d460a655e8b70d632fddce72e6850495a24a6984
Author:     Rozhuk Ivan <rozhuk.im@gmail.com>
AuthorDate: 2023-11-02 12:03:10 +0000
Commit:     Renato Botelho <garga@FreeBSD.org>
CommitDate: 2023-11-02 12:04:36 +0000

    net/xmlrpc-c: Fix build with openssl from ports
    
    Make the port to always depend of openssl since it's always used when
    detected.
    
    PR:             273969
---
 net/xmlrpc-c/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/xmlrpc-c/Makefile b/net/xmlrpc-c/Makefile
index b39ccb0ac3cb..41c7820f8c93 100644
--- a/net/xmlrpc-c/Makefile
+++ b/net/xmlrpc-c/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xmlrpc-c
 PORTVERSION=	1.54.06
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/Xmlrpc-c%20Super%20Stable/${PORTVERSION}
 
@@ -9,7 +10,7 @@ WWW=		http://xmlrpc-c.sourceforge.net/
 
 LICENSE=	BSD3CLAUSE
 
-USES=		gmake pkgconfig tar:tgz
+USES=		gmake pkgconfig ssl tar:tgz
 USE_CXXSTD=	c++11
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
@@ -18,7 +19,8 @@ MAKEFILE=	GNUmakefile
 MAKE_ENV+=	INSTALL_SHLIB="${INSTALL_LIB}" \
 		INSTALL_SCRIPT="${INSTALL_SCRIPT}"
 MAKE_JOBS_UNSAFE=	yes
-LDFLAGS+=	-lm
+CFLAGS=		-I${OPENSSLINC}
+LDFLAGS=	-L${OPENSSLLIB} -lm
 
 CONFLICTS=	xmlrpc-epi-0.*
 
@@ -34,7 +36,6 @@ CURL_LIB_DEPENDS=	libcurl.so:ftp/curl
 CURL_CONFIGURE_ENABLE=	curl-client
 LIBWWW_LIB_DEPENDS=	libwwwcore.so:www/libwww \
 		libexpat.so:textproc/expat2
-LIBWWW_USES=	ssl
 LIBWWW_CONFIGURE_ENABLE=libwww-client
 LIBWWW_CONFIGURE_WITH=	libwww-ssl