# ex:ts=8
# New ports collection makefile for:	libcomprex
# Date created:			Nov 22, 2001
# Whom:				ijliao
#
# $FreeBSD: ports/archivers/libcomprex/Makefile,v 1.8 2003/02/20 16:44:15 knu Exp $
#

PORTNAME=	libcomprex
PORTVERSION=	0.3.2
CATEGORIES=	archivers
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	gnupdate

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Transparently handles automatic compression and decompression of files

LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext \
		curl.2:${PORTSDIR}/ftp/curl

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

USE_LIBTOOL=	yes
LIBTOOLFLAGS=	# none
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lintl"
INSTALLS_SHLIB=	yes

.include "Makefile.man"
.include <bsd.port.mk>
