# New ports collection makefile for:	libarchive
# Date created:		11 Jun 2004
# Whom:			Martin Matuska <martin@matuska.org>
#
# $FreeBSD: ports/archivers/bsdtar/Makefile,v 1.14 2005/06/15 19:39:58 glewis Exp $

PORTNAME=	bsdtar
PORTVERSION=	1.02.027
PORTEPOCH=	1
CATEGORIES=	archivers
MASTER_SITES=	http://people.freebsd.org/~kientzle/libarchive/src/

MAINTAINER=	glewis@FreeBSD.org
COMMENT=	A utility to create and manipulate streaming archive files

BUILD_DEPENDS=	${LOCALBASE}/lib/libarchive.a:${PORTSDIR}/archivers/libarchive

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"

PLIST_FILES=	bin/bsdtar

MANCOMPRESSED=	no
MAN1=		bsdtar.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500040
USE_GETOPT_LONG=yes
.endif

.if ${OSVERSION} >= 502111
IGNORE=		is in the base system
.endif

.include <bsd.port.post.mk>
