# ex:ts=8
# New ports collection makefile for:	dact
# Date created:			May 2, 2002
# Whom:				ijliao
#
# $FreeBSD: ports/archivers/dact/Makefile,v 1.7 2003/02/20 16:44:15 knu Exp $
#

PORTNAME=	dact
PORTVERSION=	0.8.11
PORTREVISION=	1
CATEGORIES=	archivers
#MASTER_SITES=	http://www.rkeene.org/devel/
MASTER_SITES=	http://www.lbsd.k12.ms.us/~rkeene/www.rkeene.org/devel/ \
		http://www.jian.tv/pub/linux/distfiles/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Dynamic Adaptive Compression Tool

LIB_DEPENDS=	mcrypt.8:${PORTSDIR}/security/libmcrypt
.if !exists(/usr/bin/bzip2)
LIB_DEPENDS+=	bz2.1:${PORTSDIR}/archivers/bzip2
.endif

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

MAN1=		dact.1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dact ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/dact.conf ${PREFIX}/etc
	${INSTALL_MAN} ${WRKSRC}/Docs/dact.1 ${MANPREFIX}/man/man1

.include <bsd.port.mk>
