1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Fix the build against contemporary OpenSSL versions

- Improve COMMENT wording, convert to USES+=localbase
This commit is contained in:
Alexey Dokuchaev 2020-08-29 17:19:04 +00:00
parent fd1baf6ba3
commit cfa54aad37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546928
2 changed files with 4 additions and 14 deletions

View File

@ -9,26 +9,16 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/SWANSONG
DISTNAME= EasySoap++-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ SOAP Library based on expat
COMMENT= C++ SOAP library based on Expat
LICENSE= LGPL21
LIB_DEPENDS= libexpat.so:textproc/expat2
USES= libtool ssl
USES= libtool localbase ssl
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_lib_stdcpp_main=no
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT} == base
BROKEN_FreeBSD_12= use of undeclared identifier 'SSLv2_client_method'
BROKEN_FreeBSD_13= use of undeclared identifier 'SSLv2_client_method'
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -4,7 +4,7 @@
switch(methodType)
{
+#ifndef OPENSSL_NO_SSL2
+#if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(OPENSSL_NO_SSL2)
case SOAPSSLContext::SSL_v2:
- method = SSLv2_client_method();
+ method = const_cast<SSL_METHOD*>(SSLv2_client_method());