# Created by: Albert Vernon <f3cun3c02@sneakemail.com>
# $FreeBSD: archivers/zutils/Makefile 328351 2013-09-26 12:23:46Z danilo $

PORTNAME=	zutils
PORTVERSION=	1.1
CATEGORIES=	archivers
MASTER_SITES=	SAVANNAH/zutils
EXTRACT_SUFX=	.tar.lz

MAINTAINER=	danilo@FreeBSD.org
COMMENT=	Utilities for searching in bzip2, gzip, lzip, and xz archives

LICENSE=	GPLv3

EXTRACT_DEPENDS=	lzip:${PORTSDIR}/archivers/lzip

INFO=		zutils

GNU_CONFIGURE=	yes

do-extract:
	@${MKDIR} ${WRKDIR}
	@(cd ${WRKDIR} ; ${LOCALBASE}/bin/lzip -cd \
		${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | ${TAR} -xf -)

post-patch:
	# Remove compiler hardcoded flags and use environment
	${REINPLACE_CMD} '24,27d' ${WRKSRC}/configure

.include <bsd.port.mk>
