# New ports collection makefile for:	easysoap
# Date created:			21th September 2001
# Whom:				Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
#
# $FreeBSD: ports/net/easysoap/Makefile,v 1.21 2011/09/23 22:24:26 amdmi3 Exp $
#

PORTNAME=	easysoap
PORTVERSION=	0.8.0
PORTREVISION=	3
CATEGORIES=	net
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/SWANSONG
DISTNAME=	EasySoap++-${PORTVERSION}

MAINTAINER=	glarkin@FreeBSD.org
COMMENT=	C++ SOAP Library based on expat

LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2

USE_OPENSSL=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+=	-I${LOCALBASE}/include
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700042 && ${ARCH} == "amd64"
USE_GCC=	4.2+
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
	    ${WRKSRC}/configure

post-install:
	@${RM} -f ${PREFIX}/lib/libeasysoap.la

.include <bsd.port.post.mk>
