Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 03:26:19 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/187762: net/easysoap: Fix build on -current
Message-ID:  <20140320032619.d70c652ae0b62427cc8bcffc@yahoo.com>
Resent-Message-ID: <201403191840.s2JIe8m8002641@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187762
>Category:       ports
>Synopsis:       net/easysoap: Fix build on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 18:40:08 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix build on -current
- Add LICENSE

New file:
files/patch-src__SOAPSSLContext.cpp

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net/easysoap/Makefile net/easysoap/Makefile
--- /usr/ports/net/easysoap/Makefile	2014-03-02 00:23:55.000000000 +0900
+++ net/easysoap/Makefile	2014-03-20 00:00:00.000000000 +0900
@@ -3,7 +3,7 @@
 
 PORTNAME=	easysoap
 PORTVERSION=	0.8.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/SWANSONG
 DISTNAME=	EasySoap++-${PORTVERSION}
@@ -11,22 +11,16 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	C++ SOAP Library based on expat
 
-LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
+LICENSE=	LGPL21
+
+LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2
 
 USE_OPENSSL=	yes
-GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
-CPPFLAGS+=	-I${LOCALBASE}/include
+USE_AUTOTOOLS=	libtool
+CONFIGURE_ENV=	ac_cv_lib_stdcpp_main=no
 USE_LDCONFIG=	yes
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
-	    ${WRKSRC}/configure
-
-post-install:
-	@${RM} -f ${PREFIX}/lib/libeasysoap.la
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/net/easysoap/files/patch-src__SOAPSSLContext.cpp net/easysoap/files/patch-src__SOAPSSLContext.cpp
--- /usr/ports/net/easysoap/files/patch-src__SOAPSSLContext.cpp	1970-01-01 09:00:00.000000000 +0900
+++ net/easysoap/files/patch-src__SOAPSSLContext.cpp	2014-03-20 00:00:00.000000000 +0900
@@ -0,0 +1,23 @@
+--- src/SOAPSSLContext.cpp.orig
++++ src/SOAPSSLContext.cpp
+@@ -143,16 +143,16 @@
+         switch(methodType)
+         {
+         case SOAPSSLContext::SSL_v2:
+-                method = SSLv2_client_method();
++                method = const_cast<SSL_METHOD*>(SSLv2_client_method());
+                 break;
+         case SOAPSSLContext::SSL_v23:
+-                method = SSLv23_client_method();
++                method = const_cast<SSL_METHOD*>(SSLv23_client_method());
+                 break; 
+         case SOAPSSLContext::SSL_v3:
+-                method = SSLv3_client_method();
++                method = const_cast<SSL_METHOD*>(SSLv3_client_method());
+                 break; 
+         case SOAPSSLContext::TLS_v1:
+-                method = TLSv1_client_method();
++                method = const_cast<SSL_METHOD*>(TLSv1_client_method());
+                 break; 
+         default:
+                 break;
diff -urN /usr/ports/net/easysoap/pkg-plist net/easysoap/pkg-plist
--- /usr/ports/net/easysoap/pkg-plist	2014-01-23 04:12:00.000000000 +0900
+++ net/easysoap/pkg-plist	2014-03-20 00:00:00.000000000 +0900
@@ -41,6 +41,7 @@
 include/easysoap/es_msvc.h
 include/easysoap/es_mwerks.h
 lib/libeasysoap.a
+lib/libeasysoap.la
 lib/libeasysoap.so
 lib/libeasysoap.so.0
 @dirrm include/easysoap
>Release-Note:
>Audit-Trail:
>Unformatted:



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