# 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.31 2006/07/29 21:30:02 itetcu Exp $
#

PORTNAME=	httrack
PORTVERSION=	3.40
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	http://www.httrack.com/
DISTNAME=	${PORTNAME}-${PORTVERSION}-${PORTREVISION}

MAINTAINER=	andrew.nau.ua@gmail.com
COMMENT=	Easy-to-use offline browser utility and website copier

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}.`expr ${PORTREVISION} + 1`

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
INSTALLS_SHLIB=	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>
