# New ports collection makefile for:	sitecopy
# Date created:		15 January 1999
# Whom:			nik
#
# $FreeBSD: ports/www/sitecopy/Makefile,v 1.50 2008/09/26 19:30:30 olgeni Exp $
#

PORTNAME=	sitecopy
PORTVERSION=	0.16.6
CATEGORIES=	www
MASTER_SITES=	http://www.manyfish.co.uk/${PORTNAME}/ \
		${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=	distfiles

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Maintains remote websites, uses FTP or WebDAV to sync up with local copy

LIB_DEPENDS=	neon.28:${PORTSDIR}/www/neon28

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CC="${CC} -I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib -lintl"
CONFIGURE_ARGS=	--with-neon --with-libxml2
USE_GETTEXT=	yes
USE_GNOME=	libxml2
USE_GMAKE=	yes

.ifndef WITHOUT_SSL
USE_OPENSSL=	yes
CONFIGURE_ARGS+=	--with-ssl
.endif

MAN1=		sitecopy.1

post-patch:
	@${REINPLACE_CMD} -e 's|;;|;|g' \
		${WRKSRC}/src/sitestore.c

.include <bsd.port.mk>
