# New ports collection makefile for:	httrack
# Date created:		Sun Jun 17 10:28:52 CEST 2001
# Whom:			Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD: ports/www/httrack/Makefile,v 1.37 2007/12/15 19:59:07 pav Exp $
#

PORTNAME=	httrack
PORTVERSION=	3.42.1
CATEGORIES=	www
MASTER_SITES=	http://www.httrack.com/ \
		http://sunpoet.net/distfiles/
DISTNAME=	${PORTNAME}-${PORTVERSION:R}

MAINTAINER=	sunpoet@sunpoet.net
COMMENT=	Easy-to-use offline browser utility and website copier

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_GNOME=	gnometarget
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool:15
USE_LDCONFIG=	yes

MAN1=		htsserver.1 httrack.1 proxytrack.1 webhttrack.1

post-patch:
	@${REINPLACE_CMD} -e 's|>&6,|>\&6|g ; \
		 s|-O -g3 ||g ; \
		 s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

.include <bsd.port.mk>
